locust 2.37.14.dev4__py3-none-any.whl → 2.37.14.dev8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,249 +0,0 @@
1
- var EN=Object.defineProperty;var IN=(e,t,r)=>t in e?EN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Os=(e,t,r)=>IN(e,typeof t!="symbol"?t+"":t,r);function AN(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[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"]'))n(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"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function YS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d0={exports:{}},Jc={},p0={exports:{}},gt={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var IT;function DN(){if(IT)return gt;IT=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;function h(W){return W===null||typeof W!="object"?null:(W=p&&W[p]||W["@@iterator"],typeof W=="function"?W:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,x={};function y(W,Y,te){this.props=W,this.context=Y,this.refs=x,this.updater=te||v}y.prototype.isReactComponent={},y.prototype.setState=function(W,Y){if(typeof W!="object"&&typeof W!="function"&&W!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,W,Y,"setState")},y.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function S(){}S.prototype=y.prototype;function w(W,Y,te){this.props=W,this.context=Y,this.refs=x,this.updater=te||v}var b=w.prototype=new S;b.constructor=w,g(b,y.prototype),b.isPureReactComponent=!0;var C=Array.isArray,T=Object.prototype.hasOwnProperty,P={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function A(W,Y,te){var le,ne={},Z=null,ce=null;if(Y!=null)for(le in Y.ref!==void 0&&(ce=Y.ref),Y.key!==void 0&&(Z=""+Y.key),Y)T.call(Y,le)&&!E.hasOwnProperty(le)&&(ne[le]=Y[le]);var me=arguments.length-2;if(me===1)ne.children=te;else if(1<me){for(var de=Array(me),fe=0;fe<me;fe++)de[fe]=arguments[fe+2];ne.children=de}if(W&&W.defaultProps)for(le in me=W.defaultProps,me)ne[le]===void 0&&(ne[le]=me[le]);return{$$typeof:e,type:W,key:Z,ref:ce,props:ne,_owner:P.current}}function O(W,Y){return{$$typeof:e,type:W.type,key:Y,ref:W.ref,props:W.props,_owner:W._owner}}function R(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function L(W){var Y={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(te){return Y[te]})}var N=/\/+/g;function B(W,Y){return typeof W=="object"&&W!==null&&W.key!=null?L(""+W.key):Y.toString(36)}function F(W,Y,te,le,ne){var Z=typeof W;(Z==="undefined"||Z==="boolean")&&(W=null);var ce=!1;if(W===null)ce=!0;else switch(Z){case"string":case"number":ce=!0;break;case"object":switch(W.$$typeof){case e:case t:ce=!0}}if(ce)return ce=W,ne=ne(ce),W=le===""?"."+B(ce,0):le,C(ne)?(te="",W!=null&&(te=W.replace(N,"$&/")+"/"),F(ne,Y,te,"",function(fe){return fe})):ne!=null&&(R(ne)&&(ne=O(ne,te+(!ne.key||ce&&ce.key===ne.key?"":(""+ne.key).replace(N,"$&/")+"/")+W)),Y.push(ne)),1;if(ce=0,le=le===""?".":le+":",C(W))for(var me=0;me<W.length;me++){Z=W[me];var de=le+B(Z,me);ce+=F(Z,Y,te,de,ne)}else if(de=h(W),typeof de=="function")for(W=de.call(W),me=0;!(Z=W.next()).done;)Z=Z.value,de=le+B(Z,me++),ce+=F(Z,Y,te,de,ne);else if(Z==="object")throw Y=String(W),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return ce}function z(W,Y,te){if(W==null)return W;var le=[],ne=0;return F(W,le,"","",function(Z){return Y.call(te,Z,ne++)}),le}function j(W){if(W._status===-1){var Y=W._result;Y=Y(),Y.then(function(te){(W._status===0||W._status===-1)&&(W._status=1,W._result=te)},function(te){(W._status===0||W._status===-1)&&(W._status=2,W._result=te)}),W._status===-1&&(W._status=0,W._result=Y)}if(W._status===1)return W._result.default;throw W._result}var X={current:null},V={transition:null},H={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:V,ReactCurrentOwner:P};function G(){throw Error("act(...) is not supported in production builds of React.")}return gt.Children={map:z,forEach:function(W,Y,te){z(W,function(){Y.apply(this,arguments)},te)},count:function(W){var Y=0;return z(W,function(){Y++}),Y},toArray:function(W){return z(W,function(Y){return Y})||[]},only:function(W){if(!R(W))throw Error("React.Children.only expected to receive a single React element child.");return W}},gt.Component=y,gt.Fragment=r,gt.Profiler=i,gt.PureComponent=w,gt.StrictMode=n,gt.Suspense=l,gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,gt.act=G,gt.cloneElement=function(W,Y,te){if(W==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+W+".");var le=g({},W.props),ne=W.key,Z=W.ref,ce=W._owner;if(Y!=null){if(Y.ref!==void 0&&(Z=Y.ref,ce=P.current),Y.key!==void 0&&(ne=""+Y.key),W.type&&W.type.defaultProps)var me=W.type.defaultProps;for(de in Y)T.call(Y,de)&&!E.hasOwnProperty(de)&&(le[de]=Y[de]===void 0&&me!==void 0?me[de]:Y[de])}var de=arguments.length-2;if(de===1)le.children=te;else if(1<de){me=Array(de);for(var fe=0;fe<de;fe++)me[fe]=arguments[fe+2];le.children=me}return{$$typeof:e,type:W.type,key:ne,ref:Z,props:le,_owner:ce}},gt.createContext=function(W){return W={$$typeof:a,_currentValue:W,_currentValue2:W,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},W.Provider={$$typeof:o,_context:W},W.Consumer=W},gt.createElement=A,gt.createFactory=function(W){var Y=A.bind(null,W);return Y.type=W,Y},gt.createRef=function(){return{current:null}},gt.forwardRef=function(W){return{$$typeof:s,render:W}},gt.isValidElement=R,gt.lazy=function(W){return{$$typeof:d,_payload:{_status:-1,_result:W},_init:j}},gt.memo=function(W,Y){return{$$typeof:c,type:W,compare:Y===void 0?null:Y}},gt.startTransition=function(W){var Y=V.transition;V.transition={};try{W()}finally{V.transition=Y}},gt.unstable_act=G,gt.useCallback=function(W,Y){return X.current.useCallback(W,Y)},gt.useContext=function(W){return X.current.useContext(W)},gt.useDebugValue=function(){},gt.useDeferredValue=function(W){return X.current.useDeferredValue(W)},gt.useEffect=function(W,Y){return X.current.useEffect(W,Y)},gt.useId=function(){return X.current.useId()},gt.useImperativeHandle=function(W,Y,te){return X.current.useImperativeHandle(W,Y,te)},gt.useInsertionEffect=function(W,Y){return X.current.useInsertionEffect(W,Y)},gt.useLayoutEffect=function(W,Y){return X.current.useLayoutEffect(W,Y)},gt.useMemo=function(W,Y){return X.current.useMemo(W,Y)},gt.useReducer=function(W,Y,te){return X.current.useReducer(W,Y,te)},gt.useRef=function(W){return X.current.useRef(W)},gt.useState=function(W){return X.current.useState(W)},gt.useSyncExternalStore=function(W,Y,te){return X.current.useSyncExternalStore(W,Y,te)},gt.useTransition=function(){return X.current.useTransition()},gt.version="18.3.1",gt}var AT;function kg(){return AT||(AT=1,p0.exports=DN()),p0.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var DT;function LN(){if(DT)return Jc;DT=1;var e=kg(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,p={},h=null,v=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(v=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(p[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)p[d]===void 0&&(p[d]=l[d]);return{$$typeof:t,type:s,key:h,ref:v,props:p,_owner:i.current}}return Jc.Fragment=r,Jc.jsx=a,Jc.jsxs=a,Jc}var LT;function ON(){return LT||(LT=1,d0.exports=LN()),d0.exports}var M=ON(),vh={},h0={exports:{}},En={},v0={exports:{}},g0={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var OT;function NN(){return OT||(OT=1,function(e){function t(V,H){var G=V.length;V.push(H);e:for(;0<G;){var W=G-1>>>1,Y=V[W];if(0<i(Y,H))V[W]=H,V[G]=Y,G=W;else break e}}function r(V){return V.length===0?null:V[0]}function n(V){if(V.length===0)return null;var H=V[0],G=V.pop();if(G!==H){V[0]=G;e:for(var W=0,Y=V.length,te=Y>>>1;W<te;){var le=2*(W+1)-1,ne=V[le],Z=le+1,ce=V[Z];if(0>i(ne,G))Z<Y&&0>i(ce,ne)?(V[W]=ce,V[Z]=G,W=Z):(V[W]=ne,V[le]=G,W=le);else if(Z<Y&&0>i(ce,G))V[W]=ce,V[Z]=G,W=Z;else break e}}return H}function i(V,H){var G=V.sortIndex-H.sortIndex;return G!==0?G:V.id-H.id}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}}var l=[],c=[],d=1,p=null,h=3,v=!1,g=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(V){for(var H=r(c);H!==null;){if(H.callback===null)n(c);else if(H.startTime<=V)n(c),H.sortIndex=H.expirationTime,t(l,H);else break;H=r(c)}}function C(V){if(x=!1,b(V),!g)if(r(l)!==null)g=!0,j(T);else{var H=r(c);H!==null&&X(C,H.startTime-V)}}function T(V,H){g=!1,x&&(x=!1,S(A),A=-1),v=!0;var G=h;try{for(b(H),p=r(l);p!==null&&(!(p.expirationTime>H)||V&&!L());){var W=p.callback;if(typeof W=="function"){p.callback=null,h=p.priorityLevel;var Y=W(p.expirationTime<=H);H=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===r(l)&&n(l),b(H)}else n(l);p=r(l)}if(p!==null)var te=!0;else{var le=r(c);le!==null&&X(C,le.startTime-H),te=!1}return te}finally{p=null,h=G,v=!1}}var P=!1,E=null,A=-1,O=5,R=-1;function L(){return!(e.unstable_now()-R<O)}function N(){if(E!==null){var V=e.unstable_now();R=V;var H=!0;try{H=E(!0,V)}finally{H?B():(P=!1,E=null)}}else P=!1}var B;if(typeof w=="function")B=function(){w(N)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,z=F.port2;F.port1.onmessage=N,B=function(){z.postMessage(null)}}else B=function(){y(N,0)};function j(V){E=V,P||(P=!0,B())}function X(V,H){A=y(function(){V(e.unstable_now())},H)}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(V){V.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,j(T))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(V){switch(h){case 1:case 2:case 3:var H=3;break;default:H=h}var G=h;h=H;try{return V()}finally{h=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,H){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var G=h;h=V;try{return H()}finally{h=G}},e.unstable_scheduleCallback=function(V,H,G){var W=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?W+G:W):G=W,V){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=G+Y,V={id:d++,callback:H,priorityLevel:V,startTime:G,expirationTime:Y,sortIndex:-1},G>W?(V.sortIndex=G,t(c,V),r(l)===null&&V===r(c)&&(x?(S(A),A=-1):x=!0,X(C,G-W))):(V.sortIndex=Y,t(l,V),g||v||(g=!0,j(T))),V},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(V){var H=h;return function(){var G=h;h=H;try{return V.apply(this,arguments)}finally{h=G}}}}(g0)),g0}var NT;function $N(){return NT||(NT=1,v0.exports=NN()),v0.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var $T;function BN(){if($T)return En;$T=1;var e=kg(),t=$N();function r(u){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+u,m=1;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(u,f){a(u,f),a(u+"Capture",f)}function a(u,f){for(i[u]=f,u=0;u<f.length;u++)n.add(f[u])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,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]*$/,d={},p={};function h(u){return l.call(p,u)?!0:l.call(d,u)?!1:c.test(u)?p[u]=!0:(d[u]=!0,!1)}function v(u,f,m,_){if(m!==null&&m.type===0)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":return _?!1:m!==null?!m.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function g(u,f,m,_){if(f===null||typeof f>"u"||v(u,f,m,_))return!0;if(_)return!1;if(m!==null)switch(m.type){case 3:return!f;case 4:return f===!1;case 5:return isNaN(f);case 6:return isNaN(f)||1>f}return!1}function x(u,f,m,_,k,I,$){this.acceptsBooleans=f===2||f===3||f===4,this.attributeName=_,this.attributeNamespace=k,this.mustUseProperty=m,this.propertyName=u,this.type=f,this.sanitizeURL=I,this.removeEmptyString=$}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){y[u]=new x(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var f=u[0];y[f]=new x(f,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){y[u]=new x(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){y[u]=new x(u,2,!1,u,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(u){y[u]=new x(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){y[u]=new x(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){y[u]=new x(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){y[u]=new x(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){y[u]=new x(u,5,!1,u.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function w(u){return u[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(u){var f=u.replace(S,w);y[f]=new x(f,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var f=u.replace(S,w);y[f]=new x(f,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var f=u.replace(S,w);y[f]=new x(f,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){y[u]=new x(u,1,!1,u.toLowerCase(),null,!1,!1)}),y.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){y[u]=new x(u,1,!1,u.toLowerCase(),null,!0,!0)});function b(u,f,m,_){var k=y.hasOwnProperty(f)?y[f]:null;(k!==null?k.type!==0:_||!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(g(f,m,k,_)&&(m=null),_||k===null?h(f)&&(m===null?u.removeAttribute(f):u.setAttribute(f,""+m)):k.mustUseProperty?u[k.propertyName]=m===null?k.type===3?!1:"":m:(f=k.attributeName,_=k.attributeNamespace,m===null?u.removeAttribute(f):(k=k.type,m=k===3||k===4&&m===!0?"":""+m,_?u.setAttributeNS(_,f,m):u.setAttribute(f,m))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),P=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),L=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),V=Symbol.iterator;function H(u){return u===null||typeof u!="object"?null:(u=V&&u[V]||u["@@iterator"],typeof u=="function"?u:null)}var G=Object.assign,W;function Y(u){if(W===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);W=f&&f[1]||""}return`
34
- `+W+u}var te=!1;function le(u,f){if(!u||te)return"";te=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(re){var _=re}Reflect.construct(u,[],f)}else{try{f.call()}catch(re){_=re}u.call(f.prototype)}else{try{throw Error()}catch(re){_=re}u()}}catch(re){if(re&&_&&typeof re.stack=="string"){for(var k=re.stack.split(`
35
- `),I=_.stack.split(`
36
- `),$=k.length-1,U=I.length-1;1<=$&&0<=U&&k[$]!==I[U];)U--;for(;1<=$&&0<=U;$--,U--)if(k[$]!==I[U]){if($!==1||U!==1)do if($--,U--,0>U||k[$]!==I[U]){var q=`
37
- `+k[$].replace(" at new "," at ");return u.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",u.displayName)),q}while(1<=$&&0<=U);break}}}finally{te=!1,Error.prepareStackTrace=m}return(u=u?u.displayName||u.name:"")?Y(u):""}function ne(u){switch(u.tag){case 5:return Y(u.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return u=le(u.type,!1),u;case 11:return u=le(u.type.render,!1),u;case 1:return u=le(u.type,!0),u;default:return""}}function Z(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case E:return"Fragment";case P:return"Portal";case O:return"Profiler";case A:return"StrictMode";case B:return"Suspense";case F:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case L:return(u.displayName||"Context")+".Consumer";case R:return(u._context.displayName||"Context")+".Provider";case N:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case z:return f=u.displayName||null,f!==null?f:Z(u.type)||"Memo";case j:f=u._payload,u=u._init;try{return Z(u(f))}catch{}}return null}function ce(u){var f=u.type;switch(u.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=f.render,u=u.displayName||u.name||"",f.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(f);case 8:return f===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function me(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function de(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function fe(u){var f=de(u)?"checked":"value",m=Object.getOwnPropertyDescriptor(u.constructor.prototype,f),_=""+u[f];if(!u.hasOwnProperty(f)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var k=m.get,I=m.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return k.call(this)},set:function($){_=""+$,I.call(this,$)}}),Object.defineProperty(u,f,{enumerable:m.enumerable}),{getValue:function(){return _},setValue:function($){_=""+$},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function ge(u){u._valueTracker||(u._valueTracker=fe(u))}function pe(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var m=f.getValue(),_="";return u&&(_=de(u)?u.checked?"true":"false":u.value),u=_,u!==m?(f.setValue(u),!0):!1}function Oe(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function ke(u,f){var m=f.checked;return G({},f,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??u._wrapperState.initialChecked})}function nt(u,f){var m=f.defaultValue==null?"":f.defaultValue,_=f.checked!=null?f.checked:f.defaultChecked;m=me(f.value!=null?f.value:m),u._wrapperState={initialChecked:_,initialValue:m,controlled:f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null}}function tt(u,f){f=f.checked,f!=null&&b(u,"checked",f,!1)}function ct(u,f){tt(u,f);var m=me(f.value),_=f.type;if(m!=null)_==="number"?(m===0&&u.value===""||u.value!=m)&&(u.value=""+m):u.value!==""+m&&(u.value=""+m);else if(_==="submit"||_==="reset"){u.removeAttribute("value");return}f.hasOwnProperty("value")?it(u,f.type,m):f.hasOwnProperty("defaultValue")&&it(u,f.type,me(f.defaultValue)),f.checked==null&&f.defaultChecked!=null&&(u.defaultChecked=!!f.defaultChecked)}function we(u,f,m){if(f.hasOwnProperty("value")||f.hasOwnProperty("defaultValue")){var _=f.type;if(!(_!=="submit"&&_!=="reset"||f.value!==void 0&&f.value!==null))return;f=""+u._wrapperState.initialValue,m||f===u.value||(u.value=f),u.defaultValue=f}m=u.name,m!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,m!==""&&(u.name=m)}function it(u,f,m){(f!=="number"||Oe(u.ownerDocument)!==u)&&(m==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+m&&(u.defaultValue=""+m))}var Me=Array.isArray;function Ge(u,f,m,_){if(u=u.options,f){f={};for(var k=0;k<m.length;k++)f["$"+m[k]]=!0;for(m=0;m<u.length;m++)k=f.hasOwnProperty("$"+u[m].value),u[m].selected!==k&&(u[m].selected=k),k&&_&&(u[m].defaultSelected=!0)}else{for(m=""+me(m),f=null,k=0;k<u.length;k++){if(u[k].value===m){u[k].selected=!0,_&&(u[k].defaultSelected=!0);return}f!==null||u[k].disabled||(f=u[k])}f!==null&&(f.selected=!0)}}function _e(u,f){if(f.dangerouslySetInnerHTML!=null)throw Error(r(91));return G({},f,{value:void 0,defaultValue:void 0,children:""+u._wrapperState.initialValue})}function Gt(u,f){var m=f.value;if(m==null){if(m=f.children,f=f.defaultValue,m!=null){if(f!=null)throw Error(r(92));if(Me(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),m=f}u._wrapperState={initialValue:me(m)}}function vt(u,f){var m=me(f.value),_=me(f.defaultValue);m!=null&&(m=""+m,m!==u.value&&(u.value=m),f.defaultValue==null&&u.defaultValue!==m&&(u.defaultValue=m)),_!=null&&(u.defaultValue=""+_)}function Bt(u){var f=u.textContent;f===u._wrapperState.initialValue&&f!==""&&f!==null&&(u.value=f)}function Qt(u){switch(u){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 ir(u,f){return u==null||u==="http://www.w3.org/1999/xhtml"?Qt(f):u==="http://www.w3.org/2000/svg"&&f==="foreignObject"?"http://www.w3.org/1999/xhtml":u}var Et,Jt=function(u){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(f,m,_,k){MSApp.execUnsafeLocalFunction(function(){return u(f,m,_,k)})}:u}(function(u,f){if(u.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in u)u.innerHTML=f;else{for(Et=Et||document.createElement("div"),Et.innerHTML="<svg>"+f.valueOf().toString()+"</svg>",f=Et.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;f.firstChild;)u.appendChild(f.firstChild)}});function Ze(u,f){if(f){var m=u.firstChild;if(m&&m===u.lastChild&&m.nodeType===3){m.nodeValue=f;return}}u.textContent=f}var xe={animationIterationCount:!0,aspectRatio:!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},xt=["Webkit","ms","Moz","O"];Object.keys(xe).forEach(function(u){xt.forEach(function(f){f=f+u.charAt(0).toUpperCase()+u.substring(1),xe[f]=xe[u]})});function Ct(u,f,m){return f==null||typeof f=="boolean"||f===""?"":m||typeof f!="number"||f===0||xe.hasOwnProperty(u)&&xe[u]?(""+f).trim():f+"px"}function st(u,f){u=u.style;for(var m in f)if(f.hasOwnProperty(m)){var _=m.indexOf("--")===0,k=Ct(m,f[m],_);m==="float"&&(m="cssFloat"),_?u.setProperty(m,k):u[m]=k}}var Ne=G({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 ot(u,f){if(f){if(Ne[u]&&(f.children!=null||f.dangerouslySetInnerHTML!=null))throw Error(r(137,u));if(f.dangerouslySetInnerHTML!=null){if(f.children!=null)throw Error(r(60));if(typeof f.dangerouslySetInnerHTML!="object"||!("__html"in f.dangerouslySetInnerHTML))throw Error(r(61))}if(f.style!=null&&typeof f.style!="object")throw Error(r(62))}}function St(u,f){if(u.indexOf("-")===-1)return typeof f.is=="string";switch(u){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}}var pr=null;function Ar(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var zi=null,er=null,Tr=null;function Qr(u){if(u=Bc(u)){if(typeof zi!="function")throw Error(r(280));var f=u.stateNode;f&&(f=Ep(f),zi(u.stateNode,u.type,f))}}function Gn(u){er?Tr?Tr.push(u):Tr=[u]:er=u}function Hr(){if(er){var u=er,f=Tr;if(Tr=er=null,Qr(u),f)for(u=0;u<f.length;u++)Qr(f[u])}}function ji(u,f){return u(f)}function Je(){}var tr=!1;function Te(u,f,m){if(tr)return u(f,m);tr=!0;try{return ji(u,f,m)}finally{tr=!1,(er!==null||Tr!==null)&&(Je(),Hr())}}function Ee(u,f){var m=u.stateNode;if(m===null)return null;var _=Ep(m);if(_===null)return null;m=_[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(u=u.type,_=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!_;break e;default:u=!1}if(u)return null;if(m&&typeof m!="function")throw Error(r(231,f,typeof m));return m}var lt=!1;if(s)try{var ft={};Object.defineProperty(ft,"passive",{get:function(){lt=!0}}),window.addEventListener("test",ft,ft),window.removeEventListener("test",ft,ft)}catch{lt=!1}function Dt(u,f,m,_,k,I,$,U,q){var re=Array.prototype.slice.call(arguments,3);try{f.apply(m,re)}catch(ve){this.onError(ve)}}var kr=!1,Zr=null,hn=!1,Wo=null,ci={onError:function(u){kr=!0,Zr=u}};function Pr(u,f,m,_,k,I,$,U,q){kr=!1,Zr=null,Dt.apply(ci,arguments)}function Rr(u,f,m,_,k,I,$,U,q){if(Pr.apply(this,arguments),kr){if(kr){var re=Zr;kr=!1,Zr=null}else throw Error(r(198));hn||(hn=!0,Wo=re)}}function Jr(u){var f=u,m=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(m=f.return),u=f.return;while(u)}return f.tag===3?m:null}function ya(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function bs(u){if(Jr(u)!==u)throw Error(r(188))}function ae(u){var f=u.alternate;if(!f){if(f=Jr(u),f===null)throw Error(r(188));return f!==u?null:u}for(var m=u,_=f;;){var k=m.return;if(k===null)break;var I=k.alternate;if(I===null){if(_=k.return,_!==null){m=_;continue}break}if(k.child===I.child){for(I=k.child;I;){if(I===m)return bs(k),u;if(I===_)return bs(k),f;I=I.sibling}throw Error(r(188))}if(m.return!==_.return)m=k,_=I;else{for(var $=!1,U=k.child;U;){if(U===m){$=!0,m=k,_=I;break}if(U===_){$=!0,_=k,m=I;break}U=U.sibling}if(!$){for(U=I.child;U;){if(U===m){$=!0,m=I,_=k;break}if(U===_){$=!0,_=I,m=k;break}U=U.sibling}if(!$)throw Error(r(189))}}if(m.alternate!==_)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?u:f}function ie(u){return u=ae(u),u!==null?Pe(u):null}function Pe(u){if(u.tag===5||u.tag===6)return u;for(u=u.child;u!==null;){var f=Pe(u);if(f!==null)return f;u=u.sibling}return null}var pt=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,or=t.unstable_shouldYield,hr=t.unstable_requestPaint,Tt=t.unstable_now,mc=t.unstable_getCurrentPriorityLevel,yc=t.unstable_ImmediatePriority,xc=t.unstable_UserBlockingPriority,Ho=t.unstable_NormalPriority,jl=t.unstable_LowPriority,_t=t.unstable_IdlePriority,Yn=null,Dr=null;function ws(u){if(Dr&&typeof Dr.onCommitFiberRoot=="function")try{Dr.onCommitFiberRoot(Yn,u,void 0,(u.current.flags&128)===128)}catch{}}var Wi=Math.clz32?Math.clz32:q5,G5=Math.log,Y5=Math.LN2;function q5(u){return u>>>=0,u===0?32:31-(G5(u)/Y5|0)|0}var dp=64,pp=4194304;function Sc(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function hp(u,f){var m=u.pendingLanes;if(m===0)return 0;var _=0,k=u.suspendedLanes,I=u.pingedLanes,$=m&268435455;if($!==0){var U=$&~k;U!==0?_=Sc(U):(I&=$,I!==0&&(_=Sc(I)))}else $=m&~k,$!==0?_=Sc($):I!==0&&(_=Sc(I));if(_===0)return 0;if(f!==0&&f!==_&&(f&k)===0&&(k=_&-_,I=f&-f,k>=I||k===16&&(I&4194240)!==0))return f;if((_&4)!==0&&(_|=m&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=_;0<f;)m=31-Wi(f),k=1<<m,_|=u[m],f&=~k;return _}function K5(u,f){switch(u){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function X5(u,f){for(var m=u.suspendedLanes,_=u.pingedLanes,k=u.expirationTimes,I=u.pendingLanes;0<I;){var $=31-Wi(I),U=1<<$,q=k[$];q===-1?((U&m)===0||(U&_)!==0)&&(k[$]=K5(U,f)):q<=f&&(u.expiredLanes|=U),I&=~U}}function Dm(u){return u=u.pendingLanes&-1073741825,u!==0?u:u&1073741824?1073741824:0}function l_(){var u=dp;return dp<<=1,(dp&4194240)===0&&(dp=64),u}function Lm(u){for(var f=[],m=0;31>m;m++)f.push(u);return f}function bc(u,f,m){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-Wi(f),u[f]=m}function Q5(u,f){var m=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var _=u.eventTimes;for(u=u.expirationTimes;0<m;){var k=31-Wi(m),I=1<<k;f[k]=0,_[k]=-1,u[k]=-1,m&=~I}}function Om(u,f){var m=u.entangledLanes|=f;for(u=u.entanglements;m;){var _=31-Wi(m),k=1<<_;k&f|u[_]&f&&(u[_]|=f),m&=~k}}var Ft=0;function u_(u){return u&=-u,1<u?4<u?(u&268435455)!==0?16:536870912:4:1}var c_,Nm,f_,d_,p_,$m=!1,vp=[],xa=null,Sa=null,ba=null,wc=new Map,_c=new Map,wa=[],Z5="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 h_(u,f){switch(u){case"focusin":case"focusout":xa=null;break;case"dragenter":case"dragleave":Sa=null;break;case"mouseover":case"mouseout":ba=null;break;case"pointerover":case"pointerout":wc.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":_c.delete(f.pointerId)}}function Cc(u,f,m,_,k,I){return u===null||u.nativeEvent!==I?(u={blockedOn:f,domEventName:m,eventSystemFlags:_,nativeEvent:I,targetContainers:[k]},f!==null&&(f=Bc(f),f!==null&&Nm(f)),u):(u.eventSystemFlags|=_,f=u.targetContainers,k!==null&&f.indexOf(k)===-1&&f.push(k),u)}function J5(u,f,m,_,k){switch(f){case"focusin":return xa=Cc(xa,u,f,m,_,k),!0;case"dragenter":return Sa=Cc(Sa,u,f,m,_,k),!0;case"mouseover":return ba=Cc(ba,u,f,m,_,k),!0;case"pointerover":var I=k.pointerId;return wc.set(I,Cc(wc.get(I)||null,u,f,m,_,k)),!0;case"gotpointercapture":return I=k.pointerId,_c.set(I,Cc(_c.get(I)||null,u,f,m,_,k)),!0}return!1}function v_(u){var f=_s(u.target);if(f!==null){var m=Jr(f);if(m!==null){if(f=m.tag,f===13){if(f=ya(m),f!==null){u.blockedOn=f,p_(u.priority,function(){f_(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){u.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}u.blockedOn=null}function gp(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var m=Fm(u.domEventName,u.eventSystemFlags,f[0],u.nativeEvent);if(m===null){m=u.nativeEvent;var _=new m.constructor(m.type,m);pr=_,m.target.dispatchEvent(_),pr=null}else return f=Bc(m),f!==null&&Nm(f),u.blockedOn=m,!1;f.shift()}return!0}function g_(u,f,m){gp(u)&&m.delete(f)}function e3(){$m=!1,xa!==null&&gp(xa)&&(xa=null),Sa!==null&&gp(Sa)&&(Sa=null),ba!==null&&gp(ba)&&(ba=null),wc.forEach(g_),_c.forEach(g_)}function Tc(u,f){u.blockedOn===f&&(u.blockedOn=null,$m||($m=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,e3)))}function kc(u){function f(k){return Tc(k,u)}if(0<vp.length){Tc(vp[0],u);for(var m=1;m<vp.length;m++){var _=vp[m];_.blockedOn===u&&(_.blockedOn=null)}}for(xa!==null&&Tc(xa,u),Sa!==null&&Tc(Sa,u),ba!==null&&Tc(ba,u),wc.forEach(f),_c.forEach(f),m=0;m<wa.length;m++)_=wa[m],_.blockedOn===u&&(_.blockedOn=null);for(;0<wa.length&&(m=wa[0],m.blockedOn===null);)v_(m),m.blockedOn===null&&wa.shift()}var Wl=C.ReactCurrentBatchConfig,mp=!0;function t3(u,f,m,_){var k=Ft,I=Wl.transition;Wl.transition=null;try{Ft=1,Bm(u,f,m,_)}finally{Ft=k,Wl.transition=I}}function r3(u,f,m,_){var k=Ft,I=Wl.transition;Wl.transition=null;try{Ft=4,Bm(u,f,m,_)}finally{Ft=k,Wl.transition=I}}function Bm(u,f,m,_){if(mp){var k=Fm(u,f,m,_);if(k===null)ry(u,f,_,yp,m),h_(u,_);else if(J5(k,u,f,m,_))_.stopPropagation();else if(h_(u,_),f&4&&-1<Z5.indexOf(u)){for(;k!==null;){var I=Bc(k);if(I!==null&&c_(I),I=Fm(u,f,m,_),I===null&&ry(u,f,_,yp,m),I===k)break;k=I}k!==null&&_.stopPropagation()}else ry(u,f,_,null,m)}}var yp=null;function Fm(u,f,m,_){if(yp=null,u=Ar(_),u=_s(u),u!==null)if(f=Jr(u),f===null)u=null;else if(m=f.tag,m===13){if(u=ya(f),u!==null)return u;u=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null);return yp=u,null}function m_(u){switch(u){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mc()){case yc:return 1;case xc:return 4;case Ho:case jl:return 16;case _t:return 536870912;default:return 16}default:return 16}}var _a=null,zm=null,xp=null;function y_(){if(xp)return xp;var u,f=zm,m=f.length,_,k="value"in _a?_a.value:_a.textContent,I=k.length;for(u=0;u<m&&f[u]===k[u];u++);var $=m-u;for(_=1;_<=$&&f[m-_]===k[I-_];_++);return xp=k.slice(u,1<_?1-_:void 0)}function Sp(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function bp(){return!0}function x_(){return!1}function qn(u){function f(m,_,k,I,$){this._reactName=m,this._targetInst=k,this.type=_,this.nativeEvent=I,this.target=$,this.currentTarget=null;for(var U in u)u.hasOwnProperty(U)&&(m=u[U],this[U]=m?m(I):I[U]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?bp:x_,this.isPropagationStopped=x_,this}return G(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=bp)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=bp)},persist:function(){},isPersistent:bp}),f}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jm=qn(Hl),Pc=G({},Hl,{view:0,detail:0}),n3=qn(Pc),Wm,Hm,Rc,wp=G({},Pc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Um,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Rc&&(Rc&&u.type==="mousemove"?(Wm=u.screenX-Rc.screenX,Hm=u.screenY-Rc.screenY):Hm=Wm=0,Rc=u),Wm)},movementY:function(u){return"movementY"in u?u.movementY:Hm}}),S_=qn(wp),i3=G({},wp,{dataTransfer:0}),o3=qn(i3),a3=G({},Pc,{relatedTarget:0}),Vm=qn(a3),s3=G({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),l3=qn(s3),u3=G({},Hl,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),c3=qn(u3),f3=G({},Hl,{data:0}),b_=qn(f3),d3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p3={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"},h3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v3(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=h3[u])?!!f[u]:!1}function Um(){return v3}var g3=G({},Pc,{key:function(u){if(u.key){var f=d3[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=Sp(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?p3[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Um,charCode:function(u){return u.type==="keypress"?Sp(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Sp(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),m3=qn(g3),y3=G({},wp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w_=qn(y3),x3=G({},Pc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Um}),S3=qn(x3),b3=G({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),w3=qn(b3),_3=G({},wp,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),C3=qn(_3),T3=[9,13,27,32],Gm=s&&"CompositionEvent"in window,Mc=null;s&&"documentMode"in document&&(Mc=document.documentMode);var k3=s&&"TextEvent"in window&&!Mc,__=s&&(!Gm||Mc&&8<Mc&&11>=Mc),C_=" ",T_=!1;function k_(u,f){switch(u){case"keyup":return T3.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P_(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Vl=!1;function P3(u,f){switch(u){case"compositionend":return P_(f);case"keypress":return f.which!==32?null:(T_=!0,C_);case"textInput":return u=f.data,u===C_&&T_?null:u;default:return null}}function R3(u,f){if(Vl)return u==="compositionend"||!Gm&&k_(u,f)?(u=y_(),xp=zm=_a=null,Vl=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return __&&f.locale!=="ko"?null:f.data;default:return null}}var M3={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 R_(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!M3[u.type]:f==="textarea"}function M_(u,f,m,_){Gn(_),f=Pp(f,"onChange"),0<f.length&&(m=new jm("onChange","change",null,m,_),u.push({event:m,listeners:f}))}var Ec=null,Ic=null;function E3(u){Y_(u,0)}function _p(u){var f=Kl(u);if(pe(f))return u}function I3(u,f){if(u==="change")return f}var E_=!1;if(s){var Ym;if(s){var qm="oninput"in document;if(!qm){var I_=document.createElement("div");I_.setAttribute("oninput","return;"),qm=typeof I_.oninput=="function"}Ym=qm}else Ym=!1;E_=Ym&&(!document.documentMode||9<document.documentMode)}function A_(){Ec&&(Ec.detachEvent("onpropertychange",D_),Ic=Ec=null)}function D_(u){if(u.propertyName==="value"&&_p(Ic)){var f=[];M_(f,Ic,u,Ar(u)),Te(E3,f)}}function A3(u,f,m){u==="focusin"?(A_(),Ec=f,Ic=m,Ec.attachEvent("onpropertychange",D_)):u==="focusout"&&A_()}function D3(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return _p(Ic)}function L3(u,f){if(u==="click")return _p(f)}function O3(u,f){if(u==="input"||u==="change")return _p(f)}function N3(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var Hi=typeof Object.is=="function"?Object.is:N3;function Ac(u,f){if(Hi(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var m=Object.keys(u),_=Object.keys(f);if(m.length!==_.length)return!1;for(_=0;_<m.length;_++){var k=m[_];if(!l.call(f,k)||!Hi(u[k],f[k]))return!1}return!0}function L_(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function O_(u,f){var m=L_(u);u=0;for(var _;m;){if(m.nodeType===3){if(_=u+m.textContent.length,u<=f&&_>=f)return{node:m,offset:f-u};u=_}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=L_(m)}}function N_(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?N_(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function $_(){for(var u=window,f=Oe();f instanceof u.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)u=f.contentWindow;else break;f=Oe(u.document)}return f}function Km(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}function $3(u){var f=$_(),m=u.focusedElem,_=u.selectionRange;if(f!==m&&m&&m.ownerDocument&&N_(m.ownerDocument.documentElement,m)){if(_!==null&&Km(m)){if(f=_.start,u=_.end,u===void 0&&(u=f),"selectionStart"in m)m.selectionStart=f,m.selectionEnd=Math.min(u,m.value.length);else if(u=(f=m.ownerDocument||document)&&f.defaultView||window,u.getSelection){u=u.getSelection();var k=m.textContent.length,I=Math.min(_.start,k);_=_.end===void 0?I:Math.min(_.end,k),!u.extend&&I>_&&(k=_,_=I,I=k),k=O_(m,I);var $=O_(m,_);k&&$&&(u.rangeCount!==1||u.anchorNode!==k.node||u.anchorOffset!==k.offset||u.focusNode!==$.node||u.focusOffset!==$.offset)&&(f=f.createRange(),f.setStart(k.node,k.offset),u.removeAllRanges(),I>_?(u.addRange(f),u.extend($.node,$.offset)):(f.setEnd($.node,$.offset),u.addRange(f)))}}for(f=[],u=m;u=u.parentNode;)u.nodeType===1&&f.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<f.length;m++)u=f[m],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var B3=s&&"documentMode"in document&&11>=document.documentMode,Ul=null,Xm=null,Dc=null,Qm=!1;function B_(u,f,m){var _=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Qm||Ul==null||Ul!==Oe(_)||(_=Ul,"selectionStart"in _&&Km(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Dc&&Ac(Dc,_)||(Dc=_,_=Pp(Xm,"onSelect"),0<_.length&&(f=new jm("onSelect","select",null,f,m),u.push({event:f,listeners:_}),f.target=Ul)))}function Cp(u,f){var m={};return m[u.toLowerCase()]=f.toLowerCase(),m["Webkit"+u]="webkit"+f,m["Moz"+u]="moz"+f,m}var Gl={animationend:Cp("Animation","AnimationEnd"),animationiteration:Cp("Animation","AnimationIteration"),animationstart:Cp("Animation","AnimationStart"),transitionend:Cp("Transition","TransitionEnd")},Zm={},F_={};s&&(F_=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function Tp(u){if(Zm[u])return Zm[u];if(!Gl[u])return u;var f=Gl[u],m;for(m in f)if(f.hasOwnProperty(m)&&m in F_)return Zm[u]=f[m];return u}var z_=Tp("animationend"),j_=Tp("animationiteration"),W_=Tp("animationstart"),H_=Tp("transitionend"),V_=new Map,U_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ca(u,f){V_.set(u,f),o(f,[u])}for(var Jm=0;Jm<U_.length;Jm++){var ey=U_[Jm],F3=ey.toLowerCase(),z3=ey[0].toUpperCase()+ey.slice(1);Ca(F3,"on"+z3)}Ca(z_,"onAnimationEnd"),Ca(j_,"onAnimationIteration"),Ca(W_,"onAnimationStart"),Ca("dblclick","onDoubleClick"),Ca("focusin","onFocus"),Ca("focusout","onBlur"),Ca(H_,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),j3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lc));function G_(u,f,m){var _=u.type||"unknown-event";u.currentTarget=m,Rr(_,f,void 0,u),u.currentTarget=null}function Y_(u,f){f=(f&4)!==0;for(var m=0;m<u.length;m++){var _=u[m],k=_.event;_=_.listeners;e:{var I=void 0;if(f)for(var $=_.length-1;0<=$;$--){var U=_[$],q=U.instance,re=U.currentTarget;if(U=U.listener,q!==I&&k.isPropagationStopped())break e;G_(k,U,re),I=q}else for($=0;$<_.length;$++){if(U=_[$],q=U.instance,re=U.currentTarget,U=U.listener,q!==I&&k.isPropagationStopped())break e;G_(k,U,re),I=q}}}if(hn)throw u=Wo,hn=!1,Wo=null,u}function rr(u,f){var m=f[ly];m===void 0&&(m=f[ly]=new Set);var _=u+"__bubble";m.has(_)||(q_(f,u,2,!1),m.add(_))}function ty(u,f,m){var _=0;f&&(_|=4),q_(m,u,_,f)}var kp="_reactListening"+Math.random().toString(36).slice(2);function Oc(u){if(!u[kp]){u[kp]=!0,n.forEach(function(m){m!=="selectionchange"&&(j3.has(m)||ty(m,!1,u),ty(m,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[kp]||(f[kp]=!0,ty("selectionchange",!1,f))}}function q_(u,f,m,_){switch(m_(f)){case 1:var k=t3;break;case 4:k=r3;break;default:k=Bm}m=k.bind(null,f,m,u),k=void 0,!lt||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(k=!0),_?k!==void 0?u.addEventListener(f,m,{capture:!0,passive:k}):u.addEventListener(f,m,!0):k!==void 0?u.addEventListener(f,m,{passive:k}):u.addEventListener(f,m,!1)}function ry(u,f,m,_,k){var I=_;if((f&1)===0&&(f&2)===0&&_!==null)e:for(;;){if(_===null)return;var $=_.tag;if($===3||$===4){var U=_.stateNode.containerInfo;if(U===k||U.nodeType===8&&U.parentNode===k)break;if($===4)for($=_.return;$!==null;){var q=$.tag;if((q===3||q===4)&&(q=$.stateNode.containerInfo,q===k||q.nodeType===8&&q.parentNode===k))return;$=$.return}for(;U!==null;){if($=_s(U),$===null)return;if(q=$.tag,q===5||q===6){_=I=$;continue e}U=U.parentNode}}_=_.return}Te(function(){var re=I,ve=Ar(m),ye=[];e:{var he=V_.get(u);if(he!==void 0){var Re=jm,De=u;switch(u){case"keypress":if(Sp(m)===0)break e;case"keydown":case"keyup":Re=m3;break;case"focusin":De="focus",Re=Vm;break;case"focusout":De="blur",Re=Vm;break;case"beforeblur":case"afterblur":Re=Vm;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=S_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=o3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=S3;break;case z_:case j_:case W_:Re=l3;break;case H_:Re=w3;break;case"scroll":Re=n3;break;case"wheel":Re=C3;break;case"copy":case"cut":case"paste":Re=c3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=w_}var Be=(f&4)!==0,Sr=!Be&&u==="scroll",J=Be?he!==null?he+"Capture":null:he;Be=[];for(var Q=re,ee;Q!==null;){ee=Q;var be=ee.stateNode;if(ee.tag===5&&be!==null&&(ee=be,J!==null&&(be=Ee(Q,J),be!=null&&Be.push(Nc(Q,be,ee)))),Sr)break;Q=Q.return}0<Be.length&&(he=new Re(he,De,null,m,ve),ye.push({event:he,listeners:Be}))}}if((f&7)===0){e:{if(he=u==="mouseover"||u==="pointerover",Re=u==="mouseout"||u==="pointerout",he&&m!==pr&&(De=m.relatedTarget||m.fromElement)&&(_s(De)||De[Vo]))break e;if((Re||he)&&(he=ve.window===ve?ve:(he=ve.ownerDocument)?he.defaultView||he.parentWindow:window,Re?(De=m.relatedTarget||m.toElement,Re=re,De=De?_s(De):null,De!==null&&(Sr=Jr(De),De!==Sr||De.tag!==5&&De.tag!==6)&&(De=null)):(Re=null,De=re),Re!==De)){if(Be=S_,be="onMouseLeave",J="onMouseEnter",Q="mouse",(u==="pointerout"||u==="pointerover")&&(Be=w_,be="onPointerLeave",J="onPointerEnter",Q="pointer"),Sr=Re==null?he:Kl(Re),ee=De==null?he:Kl(De),he=new Be(be,Q+"leave",Re,m,ve),he.target=Sr,he.relatedTarget=ee,be=null,_s(ve)===re&&(Be=new Be(J,Q+"enter",De,m,ve),Be.target=ee,Be.relatedTarget=Sr,be=Be),Sr=be,Re&&De)t:{for(Be=Re,J=De,Q=0,ee=Be;ee;ee=Yl(ee))Q++;for(ee=0,be=J;be;be=Yl(be))ee++;for(;0<Q-ee;)Be=Yl(Be),Q--;for(;0<ee-Q;)J=Yl(J),ee--;for(;Q--;){if(Be===J||J!==null&&Be===J.alternate)break t;Be=Yl(Be),J=Yl(J)}Be=null}else Be=null;Re!==null&&K_(ye,he,Re,Be,!1),De!==null&&Sr!==null&&K_(ye,Sr,De,Be,!0)}}e:{if(he=re?Kl(re):window,Re=he.nodeName&&he.nodeName.toLowerCase(),Re==="select"||Re==="input"&&he.type==="file")var He=I3;else if(R_(he))if(E_)He=O3;else{He=D3;var Ke=A3}else(Re=he.nodeName)&&Re.toLowerCase()==="input"&&(he.type==="checkbox"||he.type==="radio")&&(He=L3);if(He&&(He=He(u,re))){M_(ye,He,m,ve);break e}Ke&&Ke(u,he,re),u==="focusout"&&(Ke=he._wrapperState)&&Ke.controlled&&he.type==="number"&&it(he,"number",he.value)}switch(Ke=re?Kl(re):window,u){case"focusin":(R_(Ke)||Ke.contentEditable==="true")&&(Ul=Ke,Xm=re,Dc=null);break;case"focusout":Dc=Xm=Ul=null;break;case"mousedown":Qm=!0;break;case"contextmenu":case"mouseup":case"dragend":Qm=!1,B_(ye,m,ve);break;case"selectionchange":if(B3)break;case"keydown":case"keyup":B_(ye,m,ve)}var Xe;if(Gm)e:{switch(u){case"compositionstart":var rt="onCompositionStart";break e;case"compositionend":rt="onCompositionEnd";break e;case"compositionupdate":rt="onCompositionUpdate";break e}rt=void 0}else Vl?k_(u,m)&&(rt="onCompositionEnd"):u==="keydown"&&m.keyCode===229&&(rt="onCompositionStart");rt&&(__&&m.locale!=="ko"&&(Vl||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&Vl&&(Xe=y_()):(_a=ve,zm="value"in _a?_a.value:_a.textContent,Vl=!0)),Ke=Pp(re,rt),0<Ke.length&&(rt=new b_(rt,u,null,m,ve),ye.push({event:rt,listeners:Ke}),Xe?rt.data=Xe:(Xe=P_(m),Xe!==null&&(rt.data=Xe)))),(Xe=k3?P3(u,m):R3(u,m))&&(re=Pp(re,"onBeforeInput"),0<re.length&&(ve=new b_("onBeforeInput","beforeinput",null,m,ve),ye.push({event:ve,listeners:re}),ve.data=Xe))}Y_(ye,f)})}function Nc(u,f,m){return{instance:u,listener:f,currentTarget:m}}function Pp(u,f){for(var m=f+"Capture",_=[];u!==null;){var k=u,I=k.stateNode;k.tag===5&&I!==null&&(k=I,I=Ee(u,m),I!=null&&_.unshift(Nc(u,I,k)),I=Ee(u,f),I!=null&&_.push(Nc(u,I,k))),u=u.return}return _}function Yl(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5);return u||null}function K_(u,f,m,_,k){for(var I=f._reactName,$=[];m!==null&&m!==_;){var U=m,q=U.alternate,re=U.stateNode;if(q!==null&&q===_)break;U.tag===5&&re!==null&&(U=re,k?(q=Ee(m,I),q!=null&&$.unshift(Nc(m,q,U))):k||(q=Ee(m,I),q!=null&&$.push(Nc(m,q,U)))),m=m.return}$.length!==0&&u.push({event:f,listeners:$})}var W3=/\r\n?/g,H3=/\u0000|\uFFFD/g;function X_(u){return(typeof u=="string"?u:""+u).replace(W3,`
38
- `).replace(H3,"")}function Rp(u,f,m){if(f=X_(f),X_(u)!==f&&m)throw Error(r(425))}function Mp(){}var ny=null,iy=null;function oy(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var ay=typeof setTimeout=="function"?setTimeout:void 0,V3=typeof clearTimeout=="function"?clearTimeout:void 0,Q_=typeof Promise=="function"?Promise:void 0,U3=typeof queueMicrotask=="function"?queueMicrotask:typeof Q_<"u"?function(u){return Q_.resolve(null).then(u).catch(G3)}:ay;function G3(u){setTimeout(function(){throw u})}function sy(u,f){var m=f,_=0;do{var k=m.nextSibling;if(u.removeChild(m),k&&k.nodeType===8)if(m=k.data,m==="/$"){if(_===0){u.removeChild(k),kc(f);return}_--}else m!=="$"&&m!=="$?"&&m!=="$!"||_++;m=k}while(m);kc(f)}function Ta(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?")break;if(f==="/$")return null}}return u}function Z_(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var m=u.data;if(m==="$"||m==="$!"||m==="$?"){if(f===0)return u;f--}else m==="/$"&&f++}u=u.previousSibling}return null}var ql=Math.random().toString(36).slice(2),lo="__reactFiber$"+ql,$c="__reactProps$"+ql,Vo="__reactContainer$"+ql,ly="__reactEvents$"+ql,Y3="__reactListeners$"+ql,q3="__reactHandles$"+ql;function _s(u){var f=u[lo];if(f)return f;for(var m=u.parentNode;m;){if(f=m[Vo]||m[lo]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(u=Z_(u);u!==null;){if(m=u[lo])return m;u=Z_(u)}return f}u=m,m=u.parentNode}return null}function Bc(u){return u=u[lo]||u[Vo],!u||u.tag!==5&&u.tag!==6&&u.tag!==13&&u.tag!==3?null:u}function Kl(u){if(u.tag===5||u.tag===6)return u.stateNode;throw Error(r(33))}function Ep(u){return u[$c]||null}var uy=[],Xl=-1;function ka(u){return{current:u}}function nr(u){0>Xl||(u.current=uy[Xl],uy[Xl]=null,Xl--)}function Zt(u,f){Xl++,uy[Xl]=u.current,u.current=f}var Pa={},en=ka(Pa),Tn=ka(!1),Cs=Pa;function Ql(u,f){var m=u.type.contextTypes;if(!m)return Pa;var _=u.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var k={},I;for(I in m)k[I]=f[I];return _&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=k),k}function kn(u){return u=u.childContextTypes,u!=null}function Ip(){nr(Tn),nr(en)}function J_(u,f,m){if(en.current!==Pa)throw Error(r(168));Zt(en,f),Zt(Tn,m)}function eC(u,f,m){var _=u.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return m;_=_.getChildContext();for(var k in _)if(!(k in f))throw Error(r(108,ce(u)||"Unknown",k));return G({},m,_)}function Ap(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||Pa,Cs=en.current,Zt(en,u),Zt(Tn,Tn.current),!0}function tC(u,f,m){var _=u.stateNode;if(!_)throw Error(r(169));m?(u=eC(u,f,Cs),_.__reactInternalMemoizedMergedChildContext=u,nr(Tn),nr(en),Zt(en,u)):nr(Tn),Zt(Tn,m)}var Uo=null,Dp=!1,cy=!1;function rC(u){Uo===null?Uo=[u]:Uo.push(u)}function K3(u){Dp=!0,rC(u)}function Ra(){if(!cy&&Uo!==null){cy=!0;var u=0,f=Ft;try{var m=Uo;for(Ft=1;u<m.length;u++){var _=m[u];do _=_(!0);while(_!==null)}Uo=null,Dp=!1}catch(k){throw Uo!==null&&(Uo=Uo.slice(u+1)),pt(yc,Ra),k}finally{Ft=f,cy=!1}}return null}var Zl=[],Jl=0,Lp=null,Op=0,fi=[],di=0,Ts=null,Go=1,Yo="";function ks(u,f){Zl[Jl++]=Op,Zl[Jl++]=Lp,Lp=u,Op=f}function nC(u,f,m){fi[di++]=Go,fi[di++]=Yo,fi[di++]=Ts,Ts=u;var _=Go;u=Yo;var k=32-Wi(_)-1;_&=~(1<<k),m+=1;var I=32-Wi(f)+k;if(30<I){var $=k-k%5;I=(_&(1<<$)-1).toString(32),_>>=$,k-=$,Go=1<<32-Wi(f)+k|m<<k|_,Yo=I+u}else Go=1<<I|m<<k|_,Yo=u}function fy(u){u.return!==null&&(ks(u,1),nC(u,1,0))}function dy(u){for(;u===Lp;)Lp=Zl[--Jl],Zl[Jl]=null,Op=Zl[--Jl],Zl[Jl]=null;for(;u===Ts;)Ts=fi[--di],fi[di]=null,Yo=fi[--di],fi[di]=null,Go=fi[--di],fi[di]=null}var Kn=null,Xn=null,ar=!1,Vi=null;function iC(u,f){var m=gi(5,null,null,0);m.elementType="DELETED",m.stateNode=f,m.return=u,f=u.deletions,f===null?(u.deletions=[m],u.flags|=16):f.push(m)}function oC(u,f){switch(u.tag){case 5:var m=u.type;return f=f.nodeType!==1||m.toLowerCase()!==f.nodeName.toLowerCase()?null:f,f!==null?(u.stateNode=f,Kn=u,Xn=Ta(f.firstChild),!0):!1;case 6:return f=u.pendingProps===""||f.nodeType!==3?null:f,f!==null?(u.stateNode=f,Kn=u,Xn=null,!0):!1;case 13:return f=f.nodeType!==8?null:f,f!==null?(m=Ts!==null?{id:Go,overflow:Yo}:null,u.memoizedState={dehydrated:f,treeContext:m,retryLane:1073741824},m=gi(18,null,null,0),m.stateNode=f,m.return=u,u.child=m,Kn=u,Xn=null,!0):!1;default:return!1}}function py(u){return(u.mode&1)!==0&&(u.flags&128)===0}function hy(u){if(ar){var f=Xn;if(f){var m=f;if(!oC(u,f)){if(py(u))throw Error(r(418));f=Ta(m.nextSibling);var _=Kn;f&&oC(u,f)?iC(_,m):(u.flags=u.flags&-4097|2,ar=!1,Kn=u)}}else{if(py(u))throw Error(r(418));u.flags=u.flags&-4097|2,ar=!1,Kn=u}}}function aC(u){for(u=u.return;u!==null&&u.tag!==5&&u.tag!==3&&u.tag!==13;)u=u.return;Kn=u}function Np(u){if(u!==Kn)return!1;if(!ar)return aC(u),ar=!0,!1;var f;if((f=u.tag!==3)&&!(f=u.tag!==5)&&(f=u.type,f=f!=="head"&&f!=="body"&&!oy(u.type,u.memoizedProps)),f&&(f=Xn)){if(py(u))throw sC(),Error(r(418));for(;f;)iC(u,f),f=Ta(f.nextSibling)}if(aC(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,f=0;u;){if(u.nodeType===8){var m=u.data;if(m==="/$"){if(f===0){Xn=Ta(u.nextSibling);break e}f--}else m!=="$"&&m!=="$!"&&m!=="$?"||f++}u=u.nextSibling}Xn=null}}else Xn=Kn?Ta(u.stateNode.nextSibling):null;return!0}function sC(){for(var u=Xn;u;)u=Ta(u.nextSibling)}function eu(){Xn=Kn=null,ar=!1}function vy(u){Vi===null?Vi=[u]:Vi.push(u)}var X3=C.ReactCurrentBatchConfig;function Fc(u,f,m){if(u=m.ref,u!==null&&typeof u!="function"&&typeof u!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(r(309));var _=m.stateNode}if(!_)throw Error(r(147,u));var k=_,I=""+u;return f!==null&&f.ref!==null&&typeof f.ref=="function"&&f.ref._stringRef===I?f.ref:(f=function($){var U=k.refs;$===null?delete U[I]:U[I]=$},f._stringRef=I,f)}if(typeof u!="string")throw Error(r(284));if(!m._owner)throw Error(r(290,u))}return u}function $p(u,f){throw u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u))}function lC(u){var f=u._init;return f(u._payload)}function uC(u){function f(J,Q){if(u){var ee=J.deletions;ee===null?(J.deletions=[Q],J.flags|=16):ee.push(Q)}}function m(J,Q){if(!u)return null;for(;Q!==null;)f(J,Q),Q=Q.sibling;return null}function _(J,Q){for(J=new Map;Q!==null;)Q.key!==null?J.set(Q.key,Q):J.set(Q.index,Q),Q=Q.sibling;return J}function k(J,Q){return J=Na(J,Q),J.index=0,J.sibling=null,J}function I(J,Q,ee){return J.index=ee,u?(ee=J.alternate,ee!==null?(ee=ee.index,ee<Q?(J.flags|=2,Q):ee):(J.flags|=2,Q)):(J.flags|=1048576,Q)}function $(J){return u&&J.alternate===null&&(J.flags|=2),J}function U(J,Q,ee,be){return Q===null||Q.tag!==6?(Q=a0(ee,J.mode,be),Q.return=J,Q):(Q=k(Q,ee),Q.return=J,Q)}function q(J,Q,ee,be){var He=ee.type;return He===E?ve(J,Q,ee.props.children,be,ee.key):Q!==null&&(Q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===j&&lC(He)===Q.type)?(be=k(Q,ee.props),be.ref=Fc(J,Q,ee),be.return=J,be):(be=sh(ee.type,ee.key,ee.props,null,J.mode,be),be.ref=Fc(J,Q,ee),be.return=J,be)}function re(J,Q,ee,be){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ee.containerInfo||Q.stateNode.implementation!==ee.implementation?(Q=s0(ee,J.mode,be),Q.return=J,Q):(Q=k(Q,ee.children||[]),Q.return=J,Q)}function ve(J,Q,ee,be,He){return Q===null||Q.tag!==7?(Q=Ls(ee,J.mode,be,He),Q.return=J,Q):(Q=k(Q,ee),Q.return=J,Q)}function ye(J,Q,ee){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Q=a0(""+Q,J.mode,ee),Q.return=J,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case T:return ee=sh(Q.type,Q.key,Q.props,null,J.mode,ee),ee.ref=Fc(J,null,Q),ee.return=J,ee;case P:return Q=s0(Q,J.mode,ee),Q.return=J,Q;case j:var be=Q._init;return ye(J,be(Q._payload),ee)}if(Me(Q)||H(Q))return Q=Ls(Q,J.mode,ee,null),Q.return=J,Q;$p(J,Q)}return null}function he(J,Q,ee,be){var He=Q!==null?Q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number")return He!==null?null:U(J,Q,""+ee,be);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:return ee.key===He?q(J,Q,ee,be):null;case P:return ee.key===He?re(J,Q,ee,be):null;case j:return He=ee._init,he(J,Q,He(ee._payload),be)}if(Me(ee)||H(ee))return He!==null?null:ve(J,Q,ee,be,null);$p(J,ee)}return null}function Re(J,Q,ee,be,He){if(typeof be=="string"&&be!==""||typeof be=="number")return J=J.get(ee)||null,U(Q,J,""+be,He);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case T:return J=J.get(be.key===null?ee:be.key)||null,q(Q,J,be,He);case P:return J=J.get(be.key===null?ee:be.key)||null,re(Q,J,be,He);case j:var Ke=be._init;return Re(J,Q,ee,Ke(be._payload),He)}if(Me(be)||H(be))return J=J.get(ee)||null,ve(Q,J,be,He,null);$p(Q,be)}return null}function De(J,Q,ee,be){for(var He=null,Ke=null,Xe=Q,rt=Q=0,Fr=null;Xe!==null&&rt<ee.length;rt++){Xe.index>rt?(Fr=Xe,Xe=null):Fr=Xe.sibling;var Mt=he(J,Xe,ee[rt],be);if(Mt===null){Xe===null&&(Xe=Fr);break}u&&Xe&&Mt.alternate===null&&f(J,Xe),Q=I(Mt,Q,rt),Ke===null?He=Mt:Ke.sibling=Mt,Ke=Mt,Xe=Fr}if(rt===ee.length)return m(J,Xe),ar&&ks(J,rt),He;if(Xe===null){for(;rt<ee.length;rt++)Xe=ye(J,ee[rt],be),Xe!==null&&(Q=I(Xe,Q,rt),Ke===null?He=Xe:Ke.sibling=Xe,Ke=Xe);return ar&&ks(J,rt),He}for(Xe=_(J,Xe);rt<ee.length;rt++)Fr=Re(Xe,J,rt,ee[rt],be),Fr!==null&&(u&&Fr.alternate!==null&&Xe.delete(Fr.key===null?rt:Fr.key),Q=I(Fr,Q,rt),Ke===null?He=Fr:Ke.sibling=Fr,Ke=Fr);return u&&Xe.forEach(function($a){return f(J,$a)}),ar&&ks(J,rt),He}function Be(J,Q,ee,be){var He=H(ee);if(typeof He!="function")throw Error(r(150));if(ee=He.call(ee),ee==null)throw Error(r(151));for(var Ke=He=null,Xe=Q,rt=Q=0,Fr=null,Mt=ee.next();Xe!==null&&!Mt.done;rt++,Mt=ee.next()){Xe.index>rt?(Fr=Xe,Xe=null):Fr=Xe.sibling;var $a=he(J,Xe,Mt.value,be);if($a===null){Xe===null&&(Xe=Fr);break}u&&Xe&&$a.alternate===null&&f(J,Xe),Q=I($a,Q,rt),Ke===null?He=$a:Ke.sibling=$a,Ke=$a,Xe=Fr}if(Mt.done)return m(J,Xe),ar&&ks(J,rt),He;if(Xe===null){for(;!Mt.done;rt++,Mt=ee.next())Mt=ye(J,Mt.value,be),Mt!==null&&(Q=I(Mt,Q,rt),Ke===null?He=Mt:Ke.sibling=Mt,Ke=Mt);return ar&&ks(J,rt),He}for(Xe=_(J,Xe);!Mt.done;rt++,Mt=ee.next())Mt=Re(Xe,J,rt,Mt.value,be),Mt!==null&&(u&&Mt.alternate!==null&&Xe.delete(Mt.key===null?rt:Mt.key),Q=I(Mt,Q,rt),Ke===null?He=Mt:Ke.sibling=Mt,Ke=Mt);return u&&Xe.forEach(function(MN){return f(J,MN)}),ar&&ks(J,rt),He}function Sr(J,Q,ee,be){if(typeof ee=="object"&&ee!==null&&ee.type===E&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:e:{for(var He=ee.key,Ke=Q;Ke!==null;){if(Ke.key===He){if(He=ee.type,He===E){if(Ke.tag===7){m(J,Ke.sibling),Q=k(Ke,ee.props.children),Q.return=J,J=Q;break e}}else if(Ke.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===j&&lC(He)===Ke.type){m(J,Ke.sibling),Q=k(Ke,ee.props),Q.ref=Fc(J,Ke,ee),Q.return=J,J=Q;break e}m(J,Ke);break}else f(J,Ke);Ke=Ke.sibling}ee.type===E?(Q=Ls(ee.props.children,J.mode,be,ee.key),Q.return=J,J=Q):(be=sh(ee.type,ee.key,ee.props,null,J.mode,be),be.ref=Fc(J,Q,ee),be.return=J,J=be)}return $(J);case P:e:{for(Ke=ee.key;Q!==null;){if(Q.key===Ke)if(Q.tag===4&&Q.stateNode.containerInfo===ee.containerInfo&&Q.stateNode.implementation===ee.implementation){m(J,Q.sibling),Q=k(Q,ee.children||[]),Q.return=J,J=Q;break e}else{m(J,Q);break}else f(J,Q);Q=Q.sibling}Q=s0(ee,J.mode,be),Q.return=J,J=Q}return $(J);case j:return Ke=ee._init,Sr(J,Q,Ke(ee._payload),be)}if(Me(ee))return De(J,Q,ee,be);if(H(ee))return Be(J,Q,ee,be);$p(J,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,Q!==null&&Q.tag===6?(m(J,Q.sibling),Q=k(Q,ee),Q.return=J,J=Q):(m(J,Q),Q=a0(ee,J.mode,be),Q.return=J,J=Q),$(J)):m(J,Q)}return Sr}var tu=uC(!0),cC=uC(!1),Bp=ka(null),Fp=null,ru=null,gy=null;function my(){gy=ru=Fp=null}function yy(u){var f=Bp.current;nr(Bp),u._currentValue=f}function xy(u,f,m){for(;u!==null;){var _=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,_!==null&&(_.childLanes|=f)):_!==null&&(_.childLanes&f)!==f&&(_.childLanes|=f),u===m)break;u=u.return}}function nu(u,f){Fp=u,gy=ru=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(Pn=!0),u.firstContext=null)}function pi(u){var f=u._currentValue;if(gy!==u)if(u={context:u,memoizedValue:f,next:null},ru===null){if(Fp===null)throw Error(r(308));ru=u,Fp.dependencies={lanes:0,firstContext:u}}else ru=ru.next=u;return f}var Ps=null;function Sy(u){Ps===null?Ps=[u]:Ps.push(u)}function fC(u,f,m,_){var k=f.interleaved;return k===null?(m.next=m,Sy(f)):(m.next=k.next,k.next=m),f.interleaved=m,qo(u,_)}function qo(u,f){u.lanes|=f;var m=u.alternate;for(m!==null&&(m.lanes|=f),m=u,u=u.return;u!==null;)u.childLanes|=f,m=u.alternate,m!==null&&(m.childLanes|=f),m=u,u=u.return;return m.tag===3?m.stateNode:null}var Ma=!1;function by(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dC(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function Ko(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Ea(u,f,m){var _=u.updateQueue;if(_===null)return null;if(_=_.shared,(Rt&2)!==0){var k=_.pending;return k===null?f.next=f:(f.next=k.next,k.next=f),_.pending=f,qo(u,m)}return k=_.interleaved,k===null?(f.next=f,Sy(_)):(f.next=k.next,k.next=f),_.interleaved=f,qo(u,m)}function zp(u,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194240)!==0)){var _=f.lanes;_&=u.pendingLanes,m|=_,f.lanes=m,Om(u,m)}}function pC(u,f){var m=u.updateQueue,_=u.alternate;if(_!==null&&(_=_.updateQueue,m===_)){var k=null,I=null;if(m=m.firstBaseUpdate,m!==null){do{var $={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};I===null?k=I=$:I=I.next=$,m=m.next}while(m!==null);I===null?k=I=f:I=I.next=f}else k=I=f;m={baseState:_.baseState,firstBaseUpdate:k,lastBaseUpdate:I,shared:_.shared,effects:_.effects},u.updateQueue=m;return}u=m.lastBaseUpdate,u===null?m.firstBaseUpdate=f:u.next=f,m.lastBaseUpdate=f}function jp(u,f,m,_){var k=u.updateQueue;Ma=!1;var I=k.firstBaseUpdate,$=k.lastBaseUpdate,U=k.shared.pending;if(U!==null){k.shared.pending=null;var q=U,re=q.next;q.next=null,$===null?I=re:$.next=re,$=q;var ve=u.alternate;ve!==null&&(ve=ve.updateQueue,U=ve.lastBaseUpdate,U!==$&&(U===null?ve.firstBaseUpdate=re:U.next=re,ve.lastBaseUpdate=q))}if(I!==null){var ye=k.baseState;$=0,ve=re=q=null,U=I;do{var he=U.lane,Re=U.eventTime;if((_&he)===he){ve!==null&&(ve=ve.next={eventTime:Re,lane:0,tag:U.tag,payload:U.payload,callback:U.callback,next:null});e:{var De=u,Be=U;switch(he=f,Re=m,Be.tag){case 1:if(De=Be.payload,typeof De=="function"){ye=De.call(Re,ye,he);break e}ye=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Be.payload,he=typeof De=="function"?De.call(Re,ye,he):De,he==null)break e;ye=G({},ye,he);break e;case 2:Ma=!0}}U.callback!==null&&U.lane!==0&&(u.flags|=64,he=k.effects,he===null?k.effects=[U]:he.push(U))}else Re={eventTime:Re,lane:he,tag:U.tag,payload:U.payload,callback:U.callback,next:null},ve===null?(re=ve=Re,q=ye):ve=ve.next=Re,$|=he;if(U=U.next,U===null){if(U=k.shared.pending,U===null)break;he=U,U=he.next,he.next=null,k.lastBaseUpdate=he,k.shared.pending=null}}while(!0);if(ve===null&&(q=ye),k.baseState=q,k.firstBaseUpdate=re,k.lastBaseUpdate=ve,f=k.shared.interleaved,f!==null){k=f;do $|=k.lane,k=k.next;while(k!==f)}else I===null&&(k.shared.lanes=0);Es|=$,u.lanes=$,u.memoizedState=ye}}function hC(u,f,m){if(u=f.effects,f.effects=null,u!==null)for(f=0;f<u.length;f++){var _=u[f],k=_.callback;if(k!==null){if(_.callback=null,_=m,typeof k!="function")throw Error(r(191,k));k.call(_)}}}var zc={},uo=ka(zc),jc=ka(zc),Wc=ka(zc);function Rs(u){if(u===zc)throw Error(r(174));return u}function wy(u,f){switch(Zt(Wc,f),Zt(jc,u),Zt(uo,zc),u=f.nodeType,u){case 9:case 11:f=(f=f.documentElement)?f.namespaceURI:ir(null,"");break;default:u=u===8?f.parentNode:f,f=u.namespaceURI||null,u=u.tagName,f=ir(f,u)}nr(uo),Zt(uo,f)}function iu(){nr(uo),nr(jc),nr(Wc)}function vC(u){Rs(Wc.current);var f=Rs(uo.current),m=ir(f,u.type);f!==m&&(Zt(jc,u),Zt(uo,m))}function _y(u){jc.current===u&&(nr(uo),nr(jc))}var cr=ka(0);function Wp(u){for(var f=u;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var Cy=[];function Ty(){for(var u=0;u<Cy.length;u++)Cy[u]._workInProgressVersionPrimary=null;Cy.length=0}var Hp=C.ReactCurrentDispatcher,ky=C.ReactCurrentBatchConfig,Ms=0,fr=null,Lr=null,$r=null,Vp=!1,Hc=!1,Vc=0,Q3=0;function tn(){throw Error(r(321))}function Py(u,f){if(f===null)return!1;for(var m=0;m<f.length&&m<u.length;m++)if(!Hi(u[m],f[m]))return!1;return!0}function Ry(u,f,m,_,k,I){if(Ms=I,fr=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,Hp.current=u===null||u.memoizedState===null?tN:rN,u=m(_,k),Hc){I=0;do{if(Hc=!1,Vc=0,25<=I)throw Error(r(301));I+=1,$r=Lr=null,f.updateQueue=null,Hp.current=nN,u=m(_,k)}while(Hc)}if(Hp.current=Yp,f=Lr!==null&&Lr.next!==null,Ms=0,$r=Lr=fr=null,Vp=!1,f)throw Error(r(300));return u}function My(){var u=Vc!==0;return Vc=0,u}function co(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $r===null?fr.memoizedState=$r=u:$r=$r.next=u,$r}function hi(){if(Lr===null){var u=fr.alternate;u=u!==null?u.memoizedState:null}else u=Lr.next;var f=$r===null?fr.memoizedState:$r.next;if(f!==null)$r=f,Lr=u;else{if(u===null)throw Error(r(310));Lr=u,u={memoizedState:Lr.memoizedState,baseState:Lr.baseState,baseQueue:Lr.baseQueue,queue:Lr.queue,next:null},$r===null?fr.memoizedState=$r=u:$r=$r.next=u}return $r}function Uc(u,f){return typeof f=="function"?f(u):f}function Ey(u){var f=hi(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var _=Lr,k=_.baseQueue,I=m.pending;if(I!==null){if(k!==null){var $=k.next;k.next=I.next,I.next=$}_.baseQueue=k=I,m.pending=null}if(k!==null){I=k.next,_=_.baseState;var U=$=null,q=null,re=I;do{var ve=re.lane;if((Ms&ve)===ve)q!==null&&(q=q.next={lane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),_=re.hasEagerState?re.eagerState:u(_,re.action);else{var ye={lane:ve,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null};q===null?(U=q=ye,$=_):q=q.next=ye,fr.lanes|=ve,Es|=ve}re=re.next}while(re!==null&&re!==I);q===null?$=_:q.next=U,Hi(_,f.memoizedState)||(Pn=!0),f.memoizedState=_,f.baseState=$,f.baseQueue=q,m.lastRenderedState=_}if(u=m.interleaved,u!==null){k=u;do I=k.lane,fr.lanes|=I,Es|=I,k=k.next;while(k!==u)}else k===null&&(m.lanes=0);return[f.memoizedState,m.dispatch]}function Iy(u){var f=hi(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var _=m.dispatch,k=m.pending,I=f.memoizedState;if(k!==null){m.pending=null;var $=k=k.next;do I=u(I,$.action),$=$.next;while($!==k);Hi(I,f.memoizedState)||(Pn=!0),f.memoizedState=I,f.baseQueue===null&&(f.baseState=I),m.lastRenderedState=I}return[I,_]}function gC(){}function mC(u,f){var m=fr,_=hi(),k=f(),I=!Hi(_.memoizedState,k);if(I&&(_.memoizedState=k,Pn=!0),_=_.queue,Ay(SC.bind(null,m,_,u),[u]),_.getSnapshot!==f||I||$r!==null&&$r.memoizedState.tag&1){if(m.flags|=2048,Gc(9,xC.bind(null,m,_,k,f),void 0,null),Br===null)throw Error(r(349));(Ms&30)!==0||yC(m,f,k)}return k}function yC(u,f,m){u.flags|=16384,u={getSnapshot:f,value:m},f=fr.updateQueue,f===null?(f={lastEffect:null,stores:null},fr.updateQueue=f,f.stores=[u]):(m=f.stores,m===null?f.stores=[u]:m.push(u))}function xC(u,f,m,_){f.value=m,f.getSnapshot=_,bC(f)&&wC(u)}function SC(u,f,m){return m(function(){bC(f)&&wC(u)})}function bC(u){var f=u.getSnapshot;u=u.value;try{var m=f();return!Hi(u,m)}catch{return!0}}function wC(u){var f=qo(u,1);f!==null&&qi(f,u,1,-1)}function _C(u){var f=co();return typeof u=="function"&&(u=u()),f.memoizedState=f.baseState=u,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uc,lastRenderedState:u},f.queue=u,u=u.dispatch=eN.bind(null,fr,u),[f.memoizedState,u]}function Gc(u,f,m,_){return u={tag:u,create:f,destroy:m,deps:_,next:null},f=fr.updateQueue,f===null?(f={lastEffect:null,stores:null},fr.updateQueue=f,f.lastEffect=u.next=u):(m=f.lastEffect,m===null?f.lastEffect=u.next=u:(_=m.next,m.next=u,u.next=_,f.lastEffect=u)),u}function CC(){return hi().memoizedState}function Up(u,f,m,_){var k=co();fr.flags|=u,k.memoizedState=Gc(1|f,m,void 0,_===void 0?null:_)}function Gp(u,f,m,_){var k=hi();_=_===void 0?null:_;var I=void 0;if(Lr!==null){var $=Lr.memoizedState;if(I=$.destroy,_!==null&&Py(_,$.deps)){k.memoizedState=Gc(f,m,I,_);return}}fr.flags|=u,k.memoizedState=Gc(1|f,m,I,_)}function TC(u,f){return Up(8390656,8,u,f)}function Ay(u,f){return Gp(2048,8,u,f)}function kC(u,f){return Gp(4,2,u,f)}function PC(u,f){return Gp(4,4,u,f)}function RC(u,f){if(typeof f=="function")return u=u(),f(u),function(){f(null)};if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function MC(u,f,m){return m=m!=null?m.concat([u]):null,Gp(4,4,RC.bind(null,f,u),m)}function Dy(){}function EC(u,f){var m=hi();f=f===void 0?null:f;var _=m.memoizedState;return _!==null&&f!==null&&Py(f,_[1])?_[0]:(m.memoizedState=[u,f],u)}function IC(u,f){var m=hi();f=f===void 0?null:f;var _=m.memoizedState;return _!==null&&f!==null&&Py(f,_[1])?_[0]:(u=u(),m.memoizedState=[u,f],u)}function AC(u,f,m){return(Ms&21)===0?(u.baseState&&(u.baseState=!1,Pn=!0),u.memoizedState=m):(Hi(m,f)||(m=l_(),fr.lanes|=m,Es|=m,u.baseState=!0),f)}function Z3(u,f){var m=Ft;Ft=m!==0&&4>m?m:4,u(!0);var _=ky.transition;ky.transition={};try{u(!1),f()}finally{Ft=m,ky.transition=_}}function DC(){return hi().memoizedState}function J3(u,f,m){var _=La(u);if(m={lane:_,action:m,hasEagerState:!1,eagerState:null,next:null},LC(u))OC(f,m);else if(m=fC(u,f,m,_),m!==null){var k=gn();qi(m,u,_,k),NC(m,f,_)}}function eN(u,f,m){var _=La(u),k={lane:_,action:m,hasEagerState:!1,eagerState:null,next:null};if(LC(u))OC(f,k);else{var I=u.alternate;if(u.lanes===0&&(I===null||I.lanes===0)&&(I=f.lastRenderedReducer,I!==null))try{var $=f.lastRenderedState,U=I($,m);if(k.hasEagerState=!0,k.eagerState=U,Hi(U,$)){var q=f.interleaved;q===null?(k.next=k,Sy(f)):(k.next=q.next,q.next=k),f.interleaved=k;return}}catch{}finally{}m=fC(u,f,k,_),m!==null&&(k=gn(),qi(m,u,_,k),NC(m,f,_))}}function LC(u){var f=u.alternate;return u===fr||f!==null&&f===fr}function OC(u,f){Hc=Vp=!0;var m=u.pending;m===null?f.next=f:(f.next=m.next,m.next=f),u.pending=f}function NC(u,f,m){if((m&4194240)!==0){var _=f.lanes;_&=u.pendingLanes,m|=_,f.lanes=m,Om(u,m)}}var Yp={readContext:pi,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},tN={readContext:pi,useCallback:function(u,f){return co().memoizedState=[u,f===void 0?null:f],u},useContext:pi,useEffect:TC,useImperativeHandle:function(u,f,m){return m=m!=null?m.concat([u]):null,Up(4194308,4,RC.bind(null,f,u),m)},useLayoutEffect:function(u,f){return Up(4194308,4,u,f)},useInsertionEffect:function(u,f){return Up(4,2,u,f)},useMemo:function(u,f){var m=co();return f=f===void 0?null:f,u=u(),m.memoizedState=[u,f],u},useReducer:function(u,f,m){var _=co();return f=m!==void 0?m(f):f,_.memoizedState=_.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},_.queue=u,u=u.dispatch=J3.bind(null,fr,u),[_.memoizedState,u]},useRef:function(u){var f=co();return u={current:u},f.memoizedState=u},useState:_C,useDebugValue:Dy,useDeferredValue:function(u){return co().memoizedState=u},useTransition:function(){var u=_C(!1),f=u[0];return u=Z3.bind(null,u[1]),co().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,m){var _=fr,k=co();if(ar){if(m===void 0)throw Error(r(407));m=m()}else{if(m=f(),Br===null)throw Error(r(349));(Ms&30)!==0||yC(_,f,m)}k.memoizedState=m;var I={value:m,getSnapshot:f};return k.queue=I,TC(SC.bind(null,_,I,u),[u]),_.flags|=2048,Gc(9,xC.bind(null,_,I,m,f),void 0,null),m},useId:function(){var u=co(),f=Br.identifierPrefix;if(ar){var m=Yo,_=Go;m=(_&~(1<<32-Wi(_)-1)).toString(32)+m,f=":"+f+"R"+m,m=Vc++,0<m&&(f+="H"+m.toString(32)),f+=":"}else m=Q3++,f=":"+f+"r"+m.toString(32)+":";return u.memoizedState=f},unstable_isNewReconciler:!1},rN={readContext:pi,useCallback:EC,useContext:pi,useEffect:Ay,useImperativeHandle:MC,useInsertionEffect:kC,useLayoutEffect:PC,useMemo:IC,useReducer:Ey,useRef:CC,useState:function(){return Ey(Uc)},useDebugValue:Dy,useDeferredValue:function(u){var f=hi();return AC(f,Lr.memoizedState,u)},useTransition:function(){var u=Ey(Uc)[0],f=hi().memoizedState;return[u,f]},useMutableSource:gC,useSyncExternalStore:mC,useId:DC,unstable_isNewReconciler:!1},nN={readContext:pi,useCallback:EC,useContext:pi,useEffect:Ay,useImperativeHandle:MC,useInsertionEffect:kC,useLayoutEffect:PC,useMemo:IC,useReducer:Iy,useRef:CC,useState:function(){return Iy(Uc)},useDebugValue:Dy,useDeferredValue:function(u){var f=hi();return Lr===null?f.memoizedState=u:AC(f,Lr.memoizedState,u)},useTransition:function(){var u=Iy(Uc)[0],f=hi().memoizedState;return[u,f]},useMutableSource:gC,useSyncExternalStore:mC,useId:DC,unstable_isNewReconciler:!1};function Ui(u,f){if(u&&u.defaultProps){f=G({},f),u=u.defaultProps;for(var m in u)f[m]===void 0&&(f[m]=u[m]);return f}return f}function Ly(u,f,m,_){f=u.memoizedState,m=m(_,f),m=m==null?f:G({},f,m),u.memoizedState=m,u.lanes===0&&(u.updateQueue.baseState=m)}var qp={isMounted:function(u){return(u=u._reactInternals)?Jr(u)===u:!1},enqueueSetState:function(u,f,m){u=u._reactInternals;var _=gn(),k=La(u),I=Ko(_,k);I.payload=f,m!=null&&(I.callback=m),f=Ea(u,I,k),f!==null&&(qi(f,u,k,_),zp(f,u,k))},enqueueReplaceState:function(u,f,m){u=u._reactInternals;var _=gn(),k=La(u),I=Ko(_,k);I.tag=1,I.payload=f,m!=null&&(I.callback=m),f=Ea(u,I,k),f!==null&&(qi(f,u,k,_),zp(f,u,k))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var m=gn(),_=La(u),k=Ko(m,_);k.tag=2,f!=null&&(k.callback=f),f=Ea(u,k,_),f!==null&&(qi(f,u,_,m),zp(f,u,_))}};function $C(u,f,m,_,k,I,$){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(_,I,$):f.prototype&&f.prototype.isPureReactComponent?!Ac(m,_)||!Ac(k,I):!0}function BC(u,f,m){var _=!1,k=Pa,I=f.contextType;return typeof I=="object"&&I!==null?I=pi(I):(k=kn(f)?Cs:en.current,_=f.contextTypes,I=(_=_!=null)?Ql(u,k):Pa),f=new f(m,I),u.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=qp,u.stateNode=f,f._reactInternals=u,_&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=k,u.__reactInternalMemoizedMaskedChildContext=I),f}function FC(u,f,m,_){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,_),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,_),f.state!==u&&qp.enqueueReplaceState(f,f.state,null)}function Oy(u,f,m,_){var k=u.stateNode;k.props=m,k.state=u.memoizedState,k.refs={},by(u);var I=f.contextType;typeof I=="object"&&I!==null?k.context=pi(I):(I=kn(f)?Cs:en.current,k.context=Ql(u,I)),k.state=u.memoizedState,I=f.getDerivedStateFromProps,typeof I=="function"&&(Ly(u,f,I,m),k.state=u.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(f=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),f!==k.state&&qp.enqueueReplaceState(k,k.state,null),jp(u,m,k,_),k.state=u.memoizedState),typeof k.componentDidMount=="function"&&(u.flags|=4194308)}function ou(u,f){try{var m="",_=f;do m+=ne(_),_=_.return;while(_);var k=m}catch(I){k=`
39
- Error generating stack: `+I.message+`
40
- `+I.stack}return{value:u,source:f,stack:k,digest:null}}function Ny(u,f,m){return{value:u,source:null,stack:m??null,digest:f??null}}function $y(u,f){try{console.error(f.value)}catch(m){setTimeout(function(){throw m})}}var iN=typeof WeakMap=="function"?WeakMap:Map;function zC(u,f,m){m=Ko(-1,m),m.tag=3,m.payload={element:null};var _=f.value;return m.callback=function(){th||(th=!0,Zy=_),$y(u,f)},m}function jC(u,f,m){m=Ko(-1,m),m.tag=3;var _=u.type.getDerivedStateFromError;if(typeof _=="function"){var k=f.value;m.payload=function(){return _(k)},m.callback=function(){$y(u,f)}}var I=u.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(m.callback=function(){$y(u,f),typeof _!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var $=f.stack;this.componentDidCatch(f.value,{componentStack:$!==null?$:""})}),m}function WC(u,f,m){var _=u.pingCache;if(_===null){_=u.pingCache=new iN;var k=new Set;_.set(f,k)}else k=_.get(f),k===void 0&&(k=new Set,_.set(f,k));k.has(m)||(k.add(m),u=yN.bind(null,u,f,m),f.then(u,u))}function HC(u){do{var f;if((f=u.tag===13)&&(f=u.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return u;u=u.return}while(u!==null);return null}function VC(u,f,m,_,k){return(u.mode&1)===0?(u===f?u.flags|=65536:(u.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(f=Ko(-1,1),f.tag=2,Ea(m,f,1))),m.lanes|=1),u):(u.flags|=65536,u.lanes=k,u)}var oN=C.ReactCurrentOwner,Pn=!1;function vn(u,f,m,_){f.child=u===null?cC(f,null,m,_):tu(f,u.child,m,_)}function UC(u,f,m,_,k){m=m.render;var I=f.ref;return nu(f,k),_=Ry(u,f,m,_,I,k),m=My(),u!==null&&!Pn?(f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~k,Xo(u,f,k)):(ar&&m&&fy(f),f.flags|=1,vn(u,f,_,k),f.child)}function GC(u,f,m,_,k){if(u===null){var I=m.type;return typeof I=="function"&&!o0(I)&&I.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(f.tag=15,f.type=I,YC(u,f,I,_,k)):(u=sh(m.type,null,_,f,f.mode,k),u.ref=f.ref,u.return=f,f.child=u)}if(I=u.child,(u.lanes&k)===0){var $=I.memoizedProps;if(m=m.compare,m=m!==null?m:Ac,m($,_)&&u.ref===f.ref)return Xo(u,f,k)}return f.flags|=1,u=Na(I,_),u.ref=f.ref,u.return=f,f.child=u}function YC(u,f,m,_,k){if(u!==null){var I=u.memoizedProps;if(Ac(I,_)&&u.ref===f.ref)if(Pn=!1,f.pendingProps=_=I,(u.lanes&k)!==0)(u.flags&131072)!==0&&(Pn=!0);else return f.lanes=u.lanes,Xo(u,f,k)}return By(u,f,m,_,k)}function qC(u,f,m){var _=f.pendingProps,k=_.children,I=u!==null?u.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zt(su,Qn),Qn|=m;else{if((m&1073741824)===0)return u=I!==null?I.baseLanes|m:m,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:u,cachePool:null,transitions:null},f.updateQueue=null,Zt(su,Qn),Qn|=u,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=I!==null?I.baseLanes:m,Zt(su,Qn),Qn|=_}else I!==null?(_=I.baseLanes|m,f.memoizedState=null):_=m,Zt(su,Qn),Qn|=_;return vn(u,f,k,m),f.child}function KC(u,f){var m=f.ref;(u===null&&m!==null||u!==null&&u.ref!==m)&&(f.flags|=512,f.flags|=2097152)}function By(u,f,m,_,k){var I=kn(m)?Cs:en.current;return I=Ql(f,I),nu(f,k),m=Ry(u,f,m,_,I,k),_=My(),u!==null&&!Pn?(f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~k,Xo(u,f,k)):(ar&&_&&fy(f),f.flags|=1,vn(u,f,m,k),f.child)}function XC(u,f,m,_,k){if(kn(m)){var I=!0;Ap(f)}else I=!1;if(nu(f,k),f.stateNode===null)Xp(u,f),BC(f,m,_),Oy(f,m,_,k),_=!0;else if(u===null){var $=f.stateNode,U=f.memoizedProps;$.props=U;var q=$.context,re=m.contextType;typeof re=="object"&&re!==null?re=pi(re):(re=kn(m)?Cs:en.current,re=Ql(f,re));var ve=m.getDerivedStateFromProps,ye=typeof ve=="function"||typeof $.getSnapshotBeforeUpdate=="function";ye||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(U!==_||q!==re)&&FC(f,$,_,re),Ma=!1;var he=f.memoizedState;$.state=he,jp(f,_,$,k),q=f.memoizedState,U!==_||he!==q||Tn.current||Ma?(typeof ve=="function"&&(Ly(f,m,ve,_),q=f.memoizedState),(U=Ma||$C(f,m,U,_,he,q,re))?(ye||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(f.flags|=4194308)):(typeof $.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=_,f.memoizedState=q),$.props=_,$.state=q,$.context=re,_=U):(typeof $.componentDidMount=="function"&&(f.flags|=4194308),_=!1)}else{$=f.stateNode,dC(u,f),U=f.memoizedProps,re=f.type===f.elementType?U:Ui(f.type,U),$.props=re,ye=f.pendingProps,he=$.context,q=m.contextType,typeof q=="object"&&q!==null?q=pi(q):(q=kn(m)?Cs:en.current,q=Ql(f,q));var Re=m.getDerivedStateFromProps;(ve=typeof Re=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(U!==ye||he!==q)&&FC(f,$,_,q),Ma=!1,he=f.memoizedState,$.state=he,jp(f,_,$,k);var De=f.memoizedState;U!==ye||he!==De||Tn.current||Ma?(typeof Re=="function"&&(Ly(f,m,Re,_),De=f.memoizedState),(re=Ma||$C(f,m,re,_,he,De,q)||!1)?(ve||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(_,De,q),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(_,De,q)),typeof $.componentDidUpdate=="function"&&(f.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof $.componentDidUpdate!="function"||U===u.memoizedProps&&he===u.memoizedState||(f.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||U===u.memoizedProps&&he===u.memoizedState||(f.flags|=1024),f.memoizedProps=_,f.memoizedState=De),$.props=_,$.state=De,$.context=q,_=re):(typeof $.componentDidUpdate!="function"||U===u.memoizedProps&&he===u.memoizedState||(f.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||U===u.memoizedProps&&he===u.memoizedState||(f.flags|=1024),_=!1)}return Fy(u,f,m,_,I,k)}function Fy(u,f,m,_,k,I){KC(u,f);var $=(f.flags&128)!==0;if(!_&&!$)return k&&tC(f,m,!1),Xo(u,f,I);_=f.stateNode,oN.current=f;var U=$&&typeof m.getDerivedStateFromError!="function"?null:_.render();return f.flags|=1,u!==null&&$?(f.child=tu(f,u.child,null,I),f.child=tu(f,null,U,I)):vn(u,f,U,I),f.memoizedState=_.state,k&&tC(f,m,!0),f.child}function QC(u){var f=u.stateNode;f.pendingContext?J_(u,f.pendingContext,f.pendingContext!==f.context):f.context&&J_(u,f.context,!1),wy(u,f.containerInfo)}function ZC(u,f,m,_,k){return eu(),vy(k),f.flags|=256,vn(u,f,m,_),f.child}var zy={dehydrated:null,treeContext:null,retryLane:0};function jy(u){return{baseLanes:u,cachePool:null,transitions:null}}function JC(u,f,m){var _=f.pendingProps,k=cr.current,I=!1,$=(f.flags&128)!==0,U;if((U=$)||(U=u!==null&&u.memoizedState===null?!1:(k&2)!==0),U?(I=!0,f.flags&=-129):(u===null||u.memoizedState!==null)&&(k|=1),Zt(cr,k&1),u===null)return hy(f),u=f.memoizedState,u!==null&&(u=u.dehydrated,u!==null)?((f.mode&1)===0?f.lanes=1:u.data==="$!"?f.lanes=8:f.lanes=1073741824,null):($=_.children,u=_.fallback,I?(_=f.mode,I=f.child,$={mode:"hidden",children:$},(_&1)===0&&I!==null?(I.childLanes=0,I.pendingProps=$):I=lh($,_,0,null),u=Ls(u,_,m,null),I.return=f,u.return=f,I.sibling=u,f.child=I,f.child.memoizedState=jy(m),f.memoizedState=zy,u):Wy(f,$));if(k=u.memoizedState,k!==null&&(U=k.dehydrated,U!==null))return aN(u,f,$,_,U,k,m);if(I){I=_.fallback,$=f.mode,k=u.child,U=k.sibling;var q={mode:"hidden",children:_.children};return($&1)===0&&f.child!==k?(_=f.child,_.childLanes=0,_.pendingProps=q,f.deletions=null):(_=Na(k,q),_.subtreeFlags=k.subtreeFlags&14680064),U!==null?I=Na(U,I):(I=Ls(I,$,m,null),I.flags|=2),I.return=f,_.return=f,_.sibling=I,f.child=_,_=I,I=f.child,$=u.child.memoizedState,$=$===null?jy(m):{baseLanes:$.baseLanes|m,cachePool:null,transitions:$.transitions},I.memoizedState=$,I.childLanes=u.childLanes&~m,f.memoizedState=zy,_}return I=u.child,u=I.sibling,_=Na(I,{mode:"visible",children:_.children}),(f.mode&1)===0&&(_.lanes=m),_.return=f,_.sibling=null,u!==null&&(m=f.deletions,m===null?(f.deletions=[u],f.flags|=16):m.push(u)),f.child=_,f.memoizedState=null,_}function Wy(u,f){return f=lh({mode:"visible",children:f},u.mode,0,null),f.return=u,u.child=f}function Kp(u,f,m,_){return _!==null&&vy(_),tu(f,u.child,null,m),u=Wy(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function aN(u,f,m,_,k,I,$){if(m)return f.flags&256?(f.flags&=-257,_=Ny(Error(r(422))),Kp(u,f,$,_)):f.memoizedState!==null?(f.child=u.child,f.flags|=128,null):(I=_.fallback,k=f.mode,_=lh({mode:"visible",children:_.children},k,0,null),I=Ls(I,k,$,null),I.flags|=2,_.return=f,I.return=f,_.sibling=I,f.child=_,(f.mode&1)!==0&&tu(f,u.child,null,$),f.child.memoizedState=jy($),f.memoizedState=zy,I);if((f.mode&1)===0)return Kp(u,f,$,null);if(k.data==="$!"){if(_=k.nextSibling&&k.nextSibling.dataset,_)var U=_.dgst;return _=U,I=Error(r(419)),_=Ny(I,_,void 0),Kp(u,f,$,_)}if(U=($&u.childLanes)!==0,Pn||U){if(_=Br,_!==null){switch($&-$){case 4:k=2;break;case 16:k=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:k=32;break;case 536870912:k=268435456;break;default:k=0}k=(k&(_.suspendedLanes|$))!==0?0:k,k!==0&&k!==I.retryLane&&(I.retryLane=k,qo(u,k),qi(_,u,k,-1))}return i0(),_=Ny(Error(r(421))),Kp(u,f,$,_)}return k.data==="$?"?(f.flags|=128,f.child=u.child,f=xN.bind(null,u),k._reactRetry=f,null):(u=I.treeContext,Xn=Ta(k.nextSibling),Kn=f,ar=!0,Vi=null,u!==null&&(fi[di++]=Go,fi[di++]=Yo,fi[di++]=Ts,Go=u.id,Yo=u.overflow,Ts=f),f=Wy(f,_.children),f.flags|=4096,f)}function eT(u,f,m){u.lanes|=f;var _=u.alternate;_!==null&&(_.lanes|=f),xy(u.return,f,m)}function Hy(u,f,m,_,k){var I=u.memoizedState;I===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:_,tail:m,tailMode:k}:(I.isBackwards=f,I.rendering=null,I.renderingStartTime=0,I.last=_,I.tail=m,I.tailMode=k)}function tT(u,f,m){var _=f.pendingProps,k=_.revealOrder,I=_.tail;if(vn(u,f,_.children,m),_=cr.current,(_&2)!==0)_=_&1|2,f.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&eT(u,m,f);else if(u.tag===19)eT(u,m,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break e;for(;u.sibling===null;){if(u.return===null||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}_&=1}if(Zt(cr,_),(f.mode&1)===0)f.memoizedState=null;else switch(k){case"forwards":for(m=f.child,k=null;m!==null;)u=m.alternate,u!==null&&Wp(u)===null&&(k=m),m=m.sibling;m=k,m===null?(k=f.child,f.child=null):(k=m.sibling,m.sibling=null),Hy(f,!1,k,m,I);break;case"backwards":for(m=null,k=f.child,f.child=null;k!==null;){if(u=k.alternate,u!==null&&Wp(u)===null){f.child=k;break}u=k.sibling,k.sibling=m,m=k,k=u}Hy(f,!0,m,null,I);break;case"together":Hy(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function Xp(u,f){(f.mode&1)===0&&u!==null&&(u.alternate=null,f.alternate=null,f.flags|=2)}function Xo(u,f,m){if(u!==null&&(f.dependencies=u.dependencies),Es|=f.lanes,(m&f.childLanes)===0)return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,m=Na(u,u.pendingProps),f.child=m,m.return=f;u.sibling!==null;)u=u.sibling,m=m.sibling=Na(u,u.pendingProps),m.return=f;m.sibling=null}return f.child}function sN(u,f,m){switch(f.tag){case 3:QC(f),eu();break;case 5:vC(f);break;case 1:kn(f.type)&&Ap(f);break;case 4:wy(f,f.stateNode.containerInfo);break;case 10:var _=f.type._context,k=f.memoizedProps.value;Zt(Bp,_._currentValue),_._currentValue=k;break;case 13:if(_=f.memoizedState,_!==null)return _.dehydrated!==null?(Zt(cr,cr.current&1),f.flags|=128,null):(m&f.child.childLanes)!==0?JC(u,f,m):(Zt(cr,cr.current&1),u=Xo(u,f,m),u!==null?u.sibling:null);Zt(cr,cr.current&1);break;case 19:if(_=(m&f.childLanes)!==0,(u.flags&128)!==0){if(_)return tT(u,f,m);f.flags|=128}if(k=f.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),Zt(cr,cr.current),_)break;return null;case 22:case 23:return f.lanes=0,qC(u,f,m)}return Xo(u,f,m)}var rT,Vy,nT,iT;rT=function(u,f){for(var m=f.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},Vy=function(){},nT=function(u,f,m,_){var k=u.memoizedProps;if(k!==_){u=f.stateNode,Rs(uo.current);var I=null;switch(m){case"input":k=ke(u,k),_=ke(u,_),I=[];break;case"select":k=G({},k,{value:void 0}),_=G({},_,{value:void 0}),I=[];break;case"textarea":k=_e(u,k),_=_e(u,_),I=[];break;default:typeof k.onClick!="function"&&typeof _.onClick=="function"&&(u.onclick=Mp)}ot(m,_);var $;m=null;for(re in k)if(!_.hasOwnProperty(re)&&k.hasOwnProperty(re)&&k[re]!=null)if(re==="style"){var U=k[re];for($ in U)U.hasOwnProperty($)&&(m||(m={}),m[$]="")}else re!=="dangerouslySetInnerHTML"&&re!=="children"&&re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&re!=="autoFocus"&&(i.hasOwnProperty(re)?I||(I=[]):(I=I||[]).push(re,null));for(re in _){var q=_[re];if(U=k!=null?k[re]:void 0,_.hasOwnProperty(re)&&q!==U&&(q!=null||U!=null))if(re==="style")if(U){for($ in U)!U.hasOwnProperty($)||q&&q.hasOwnProperty($)||(m||(m={}),m[$]="");for($ in q)q.hasOwnProperty($)&&U[$]!==q[$]&&(m||(m={}),m[$]=q[$])}else m||(I||(I=[]),I.push(re,m)),m=q;else re==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,U=U?U.__html:void 0,q!=null&&U!==q&&(I=I||[]).push(re,q)):re==="children"?typeof q!="string"&&typeof q!="number"||(I=I||[]).push(re,""+q):re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&(i.hasOwnProperty(re)?(q!=null&&re==="onScroll"&&rr("scroll",u),I||U===q||(I=[])):(I=I||[]).push(re,q))}m&&(I=I||[]).push("style",m);var re=I;(f.updateQueue=re)&&(f.flags|=4)}},iT=function(u,f,m,_){m!==_&&(f.flags|=4)};function Yc(u,f){if(!ar)switch(u.tailMode){case"hidden":f=u.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?u.tail=null:m.sibling=null;break;case"collapsed":m=u.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:_.sibling=null}}function rn(u){var f=u.alternate!==null&&u.alternate.child===u.child,m=0,_=0;if(f)for(var k=u.child;k!==null;)m|=k.lanes|k.childLanes,_|=k.subtreeFlags&14680064,_|=k.flags&14680064,k.return=u,k=k.sibling;else for(k=u.child;k!==null;)m|=k.lanes|k.childLanes,_|=k.subtreeFlags,_|=k.flags,k.return=u,k=k.sibling;return u.subtreeFlags|=_,u.childLanes=m,f}function lN(u,f,m){var _=f.pendingProps;switch(dy(f),f.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(f),null;case 1:return kn(f.type)&&Ip(),rn(f),null;case 3:return _=f.stateNode,iu(),nr(Tn),nr(en),Ty(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(u===null||u.child===null)&&(Np(f)?f.flags|=4:u===null||u.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,Vi!==null&&(t0(Vi),Vi=null))),Vy(u,f),rn(f),null;case 5:_y(f);var k=Rs(Wc.current);if(m=f.type,u!==null&&f.stateNode!=null)nT(u,f,m,_,k),u.ref!==f.ref&&(f.flags|=512,f.flags|=2097152);else{if(!_){if(f.stateNode===null)throw Error(r(166));return rn(f),null}if(u=Rs(uo.current),Np(f)){_=f.stateNode,m=f.type;var I=f.memoizedProps;switch(_[lo]=f,_[$c]=I,u=(f.mode&1)!==0,m){case"dialog":rr("cancel",_),rr("close",_);break;case"iframe":case"object":case"embed":rr("load",_);break;case"video":case"audio":for(k=0;k<Lc.length;k++)rr(Lc[k],_);break;case"source":rr("error",_);break;case"img":case"image":case"link":rr("error",_),rr("load",_);break;case"details":rr("toggle",_);break;case"input":nt(_,I),rr("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!I.multiple},rr("invalid",_);break;case"textarea":Gt(_,I),rr("invalid",_)}ot(m,I),k=null;for(var $ in I)if(I.hasOwnProperty($)){var U=I[$];$==="children"?typeof U=="string"?_.textContent!==U&&(I.suppressHydrationWarning!==!0&&Rp(_.textContent,U,u),k=["children",U]):typeof U=="number"&&_.textContent!==""+U&&(I.suppressHydrationWarning!==!0&&Rp(_.textContent,U,u),k=["children",""+U]):i.hasOwnProperty($)&&U!=null&&$==="onScroll"&&rr("scroll",_)}switch(m){case"input":ge(_),we(_,I,!0);break;case"textarea":ge(_),Bt(_);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(_.onclick=Mp)}_=k,f.updateQueue=_,_!==null&&(f.flags|=4)}else{$=k.nodeType===9?k:k.ownerDocument,u==="http://www.w3.org/1999/xhtml"&&(u=Qt(m)),u==="http://www.w3.org/1999/xhtml"?m==="script"?(u=$.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild)):typeof _.is=="string"?u=$.createElement(m,{is:_.is}):(u=$.createElement(m),m==="select"&&($=u,_.multiple?$.multiple=!0:_.size&&($.size=_.size))):u=$.createElementNS(u,m),u[lo]=f,u[$c]=_,rT(u,f,!1,!1),f.stateNode=u;e:{switch($=St(m,_),m){case"dialog":rr("cancel",u),rr("close",u),k=_;break;case"iframe":case"object":case"embed":rr("load",u),k=_;break;case"video":case"audio":for(k=0;k<Lc.length;k++)rr(Lc[k],u);k=_;break;case"source":rr("error",u),k=_;break;case"img":case"image":case"link":rr("error",u),rr("load",u),k=_;break;case"details":rr("toggle",u),k=_;break;case"input":nt(u,_),k=ke(u,_),rr("invalid",u);break;case"option":k=_;break;case"select":u._wrapperState={wasMultiple:!!_.multiple},k=G({},_,{value:void 0}),rr("invalid",u);break;case"textarea":Gt(u,_),k=_e(u,_),rr("invalid",u);break;default:k=_}ot(m,k),U=k;for(I in U)if(U.hasOwnProperty(I)){var q=U[I];I==="style"?st(u,q):I==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,q!=null&&Jt(u,q)):I==="children"?typeof q=="string"?(m!=="textarea"||q!=="")&&Ze(u,q):typeof q=="number"&&Ze(u,""+q):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?q!=null&&I==="onScroll"&&rr("scroll",u):q!=null&&b(u,I,q,$))}switch(m){case"input":ge(u),we(u,_,!1);break;case"textarea":ge(u),Bt(u);break;case"option":_.value!=null&&u.setAttribute("value",""+me(_.value));break;case"select":u.multiple=!!_.multiple,I=_.value,I!=null?Ge(u,!!_.multiple,I,!1):_.defaultValue!=null&&Ge(u,!!_.multiple,_.defaultValue,!0);break;default:typeof k.onClick=="function"&&(u.onclick=Mp)}switch(m){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(f.flags|=4)}f.ref!==null&&(f.flags|=512,f.flags|=2097152)}return rn(f),null;case 6:if(u&&f.stateNode!=null)iT(u,f,u.memoizedProps,_);else{if(typeof _!="string"&&f.stateNode===null)throw Error(r(166));if(m=Rs(Wc.current),Rs(uo.current),Np(f)){if(_=f.stateNode,m=f.memoizedProps,_[lo]=f,(I=_.nodeValue!==m)&&(u=Kn,u!==null))switch(u.tag){case 3:Rp(_.nodeValue,m,(u.mode&1)!==0);break;case 5:u.memoizedProps.suppressHydrationWarning!==!0&&Rp(_.nodeValue,m,(u.mode&1)!==0)}I&&(f.flags|=4)}else _=(m.nodeType===9?m:m.ownerDocument).createTextNode(_),_[lo]=f,f.stateNode=_}return rn(f),null;case 13:if(nr(cr),_=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(ar&&Xn!==null&&(f.mode&1)!==0&&(f.flags&128)===0)sC(),eu(),f.flags|=98560,I=!1;else if(I=Np(f),_!==null&&_.dehydrated!==null){if(u===null){if(!I)throw Error(r(318));if(I=f.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(r(317));I[lo]=f}else eu(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;rn(f),I=!1}else Vi!==null&&(t0(Vi),Vi=null),I=!0;if(!I)return f.flags&65536?f:null}return(f.flags&128)!==0?(f.lanes=m,f):(_=_!==null,_!==(u!==null&&u.memoizedState!==null)&&_&&(f.child.flags|=8192,(f.mode&1)!==0&&(u===null||(cr.current&1)!==0?Or===0&&(Or=3):i0())),f.updateQueue!==null&&(f.flags|=4),rn(f),null);case 4:return iu(),Vy(u,f),u===null&&Oc(f.stateNode.containerInfo),rn(f),null;case 10:return yy(f.type._context),rn(f),null;case 17:return kn(f.type)&&Ip(),rn(f),null;case 19:if(nr(cr),I=f.memoizedState,I===null)return rn(f),null;if(_=(f.flags&128)!==0,$=I.rendering,$===null)if(_)Yc(I,!1);else{if(Or!==0||u!==null&&(u.flags&128)!==0)for(u=f.child;u!==null;){if($=Wp(u),$!==null){for(f.flags|=128,Yc(I,!1),_=$.updateQueue,_!==null&&(f.updateQueue=_,f.flags|=4),f.subtreeFlags=0,_=m,m=f.child;m!==null;)I=m,u=_,I.flags&=14680066,$=I.alternate,$===null?(I.childLanes=0,I.lanes=u,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=$.childLanes,I.lanes=$.lanes,I.child=$.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=$.memoizedProps,I.memoizedState=$.memoizedState,I.updateQueue=$.updateQueue,I.type=$.type,u=$.dependencies,I.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),m=m.sibling;return Zt(cr,cr.current&1|2),f.child}u=u.sibling}I.tail!==null&&Tt()>lu&&(f.flags|=128,_=!0,Yc(I,!1),f.lanes=4194304)}else{if(!_)if(u=Wp($),u!==null){if(f.flags|=128,_=!0,m=u.updateQueue,m!==null&&(f.updateQueue=m,f.flags|=4),Yc(I,!0),I.tail===null&&I.tailMode==="hidden"&&!$.alternate&&!ar)return rn(f),null}else 2*Tt()-I.renderingStartTime>lu&&m!==1073741824&&(f.flags|=128,_=!0,Yc(I,!1),f.lanes=4194304);I.isBackwards?($.sibling=f.child,f.child=$):(m=I.last,m!==null?m.sibling=$:f.child=$,I.last=$)}return I.tail!==null?(f=I.tail,I.rendering=f,I.tail=f.sibling,I.renderingStartTime=Tt(),f.sibling=null,m=cr.current,Zt(cr,_?m&1|2:m&1),f):(rn(f),null);case 22:case 23:return n0(),_=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==_&&(f.flags|=8192),_&&(f.mode&1)!==0?(Qn&1073741824)!==0&&(rn(f),f.subtreeFlags&6&&(f.flags|=8192)):rn(f),null;case 24:return null;case 25:return null}throw Error(r(156,f.tag))}function uN(u,f){switch(dy(f),f.tag){case 1:return kn(f.type)&&Ip(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return iu(),nr(Tn),nr(en),Ty(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return _y(f),null;case 13:if(nr(cr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));eu()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return nr(cr),null;case 4:return iu(),null;case 10:return yy(f.type._context),null;case 22:case 23:return n0(),null;case 24:return null;default:return null}}var Qp=!1,nn=!1,cN=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function au(u,f){var m=u.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(_){vr(u,f,_)}else m.current=null}function Uy(u,f,m){try{m()}catch(_){vr(u,f,_)}}var oT=!1;function fN(u,f){if(ny=mp,u=$_(),Km(u)){if("selectionStart"in u)var m={start:u.selectionStart,end:u.selectionEnd};else e:{m=(m=u.ownerDocument)&&m.defaultView||window;var _=m.getSelection&&m.getSelection();if(_&&_.rangeCount!==0){m=_.anchorNode;var k=_.anchorOffset,I=_.focusNode;_=_.focusOffset;try{m.nodeType,I.nodeType}catch{m=null;break e}var $=0,U=-1,q=-1,re=0,ve=0,ye=u,he=null;t:for(;;){for(var Re;ye!==m||k!==0&&ye.nodeType!==3||(U=$+k),ye!==I||_!==0&&ye.nodeType!==3||(q=$+_),ye.nodeType===3&&($+=ye.nodeValue.length),(Re=ye.firstChild)!==null;)he=ye,ye=Re;for(;;){if(ye===u)break t;if(he===m&&++re===k&&(U=$),he===I&&++ve===_&&(q=$),(Re=ye.nextSibling)!==null)break;ye=he,he=ye.parentNode}ye=Re}m=U===-1||q===-1?null:{start:U,end:q}}else m=null}m=m||{start:0,end:0}}else m=null;for(iy={focusedElem:u,selectionRange:m},mp=!1,Ie=f;Ie!==null;)if(f=Ie,u=f.child,(f.subtreeFlags&1028)!==0&&u!==null)u.return=f,Ie=u;else for(;Ie!==null;){f=Ie;try{var De=f.alternate;if((f.flags&1024)!==0)switch(f.tag){case 0:case 11:case 15:break;case 1:if(De!==null){var Be=De.memoizedProps,Sr=De.memoizedState,J=f.stateNode,Q=J.getSnapshotBeforeUpdate(f.elementType===f.type?Be:Ui(f.type,Be),Sr);J.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var ee=f.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){vr(f,f.return,be)}if(u=f.sibling,u!==null){u.return=f.return,Ie=u;break}Ie=f.return}return De=oT,oT=!1,De}function qc(u,f,m){var _=f.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var k=_=_.next;do{if((k.tag&u)===u){var I=k.destroy;k.destroy=void 0,I!==void 0&&Uy(f,m,I)}k=k.next}while(k!==_)}}function Zp(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var m=f=f.next;do{if((m.tag&u)===u){var _=m.create;m.destroy=_()}m=m.next}while(m!==f)}}function Gy(u){var f=u.ref;if(f!==null){var m=u.stateNode;switch(u.tag){case 5:u=m;break;default:u=m}typeof f=="function"?f(u):f.current=u}}function aT(u){var f=u.alternate;f!==null&&(u.alternate=null,aT(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&(delete f[lo],delete f[$c],delete f[ly],delete f[Y3],delete f[q3])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function sT(u){return u.tag===5||u.tag===3||u.tag===4}function lT(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||sT(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Yy(u,f,m){var _=u.tag;if(_===5||_===6)u=u.stateNode,f?m.nodeType===8?m.parentNode.insertBefore(u,f):m.insertBefore(u,f):(m.nodeType===8?(f=m.parentNode,f.insertBefore(u,m)):(f=m,f.appendChild(u)),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Mp));else if(_!==4&&(u=u.child,u!==null))for(Yy(u,f,m),u=u.sibling;u!==null;)Yy(u,f,m),u=u.sibling}function qy(u,f,m){var _=u.tag;if(_===5||_===6)u=u.stateNode,f?m.insertBefore(u,f):m.appendChild(u);else if(_!==4&&(u=u.child,u!==null))for(qy(u,f,m),u=u.sibling;u!==null;)qy(u,f,m),u=u.sibling}var Vr=null,Gi=!1;function Ia(u,f,m){for(m=m.child;m!==null;)uT(u,f,m),m=m.sibling}function uT(u,f,m){if(Dr&&typeof Dr.onCommitFiberUnmount=="function")try{Dr.onCommitFiberUnmount(Yn,m)}catch{}switch(m.tag){case 5:nn||au(m,f);case 6:var _=Vr,k=Gi;Vr=null,Ia(u,f,m),Vr=_,Gi=k,Vr!==null&&(Gi?(u=Vr,m=m.stateNode,u.nodeType===8?u.parentNode.removeChild(m):u.removeChild(m)):Vr.removeChild(m.stateNode));break;case 18:Vr!==null&&(Gi?(u=Vr,m=m.stateNode,u.nodeType===8?sy(u.parentNode,m):u.nodeType===1&&sy(u,m),kc(u)):sy(Vr,m.stateNode));break;case 4:_=Vr,k=Gi,Vr=m.stateNode.containerInfo,Gi=!0,Ia(u,f,m),Vr=_,Gi=k;break;case 0:case 11:case 14:case 15:if(!nn&&(_=m.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){k=_=_.next;do{var I=k,$=I.destroy;I=I.tag,$!==void 0&&((I&2)!==0||(I&4)!==0)&&Uy(m,f,$),k=k.next}while(k!==_)}Ia(u,f,m);break;case 1:if(!nn&&(au(m,f),_=m.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=m.memoizedProps,_.state=m.memoizedState,_.componentWillUnmount()}catch(U){vr(m,f,U)}Ia(u,f,m);break;case 21:Ia(u,f,m);break;case 22:m.mode&1?(nn=(_=nn)||m.memoizedState!==null,Ia(u,f,m),nn=_):Ia(u,f,m);break;default:Ia(u,f,m)}}function cT(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var m=u.stateNode;m===null&&(m=u.stateNode=new cN),f.forEach(function(_){var k=SN.bind(null,u,_);m.has(_)||(m.add(_),_.then(k,k))})}}function Yi(u,f){var m=f.deletions;if(m!==null)for(var _=0;_<m.length;_++){var k=m[_];try{var I=u,$=f,U=$;e:for(;U!==null;){switch(U.tag){case 5:Vr=U.stateNode,Gi=!1;break e;case 3:Vr=U.stateNode.containerInfo,Gi=!0;break e;case 4:Vr=U.stateNode.containerInfo,Gi=!0;break e}U=U.return}if(Vr===null)throw Error(r(160));uT(I,$,k),Vr=null,Gi=!1;var q=k.alternate;q!==null&&(q.return=null),k.return=null}catch(re){vr(k,f,re)}}if(f.subtreeFlags&12854)for(f=f.child;f!==null;)fT(f,u),f=f.sibling}function fT(u,f){var m=u.alternate,_=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:if(Yi(f,u),fo(u),_&4){try{qc(3,u,u.return),Zp(3,u)}catch(Be){vr(u,u.return,Be)}try{qc(5,u,u.return)}catch(Be){vr(u,u.return,Be)}}break;case 1:Yi(f,u),fo(u),_&512&&m!==null&&au(m,m.return);break;case 5:if(Yi(f,u),fo(u),_&512&&m!==null&&au(m,m.return),u.flags&32){var k=u.stateNode;try{Ze(k,"")}catch(Be){vr(u,u.return,Be)}}if(_&4&&(k=u.stateNode,k!=null)){var I=u.memoizedProps,$=m!==null?m.memoizedProps:I,U=u.type,q=u.updateQueue;if(u.updateQueue=null,q!==null)try{U==="input"&&I.type==="radio"&&I.name!=null&&tt(k,I),St(U,$);var re=St(U,I);for($=0;$<q.length;$+=2){var ve=q[$],ye=q[$+1];ve==="style"?st(k,ye):ve==="dangerouslySetInnerHTML"?Jt(k,ye):ve==="children"?Ze(k,ye):b(k,ve,ye,re)}switch(U){case"input":ct(k,I);break;case"textarea":vt(k,I);break;case"select":var he=k._wrapperState.wasMultiple;k._wrapperState.wasMultiple=!!I.multiple;var Re=I.value;Re!=null?Ge(k,!!I.multiple,Re,!1):he!==!!I.multiple&&(I.defaultValue!=null?Ge(k,!!I.multiple,I.defaultValue,!0):Ge(k,!!I.multiple,I.multiple?[]:"",!1))}k[$c]=I}catch(Be){vr(u,u.return,Be)}}break;case 6:if(Yi(f,u),fo(u),_&4){if(u.stateNode===null)throw Error(r(162));k=u.stateNode,I=u.memoizedProps;try{k.nodeValue=I}catch(Be){vr(u,u.return,Be)}}break;case 3:if(Yi(f,u),fo(u),_&4&&m!==null&&m.memoizedState.isDehydrated)try{kc(f.containerInfo)}catch(Be){vr(u,u.return,Be)}break;case 4:Yi(f,u),fo(u);break;case 13:Yi(f,u),fo(u),k=u.child,k.flags&8192&&(I=k.memoizedState!==null,k.stateNode.isHidden=I,!I||k.alternate!==null&&k.alternate.memoizedState!==null||(Qy=Tt())),_&4&&cT(u);break;case 22:if(ve=m!==null&&m.memoizedState!==null,u.mode&1?(nn=(re=nn)||ve,Yi(f,u),nn=re):Yi(f,u),fo(u),_&8192){if(re=u.memoizedState!==null,(u.stateNode.isHidden=re)&&!ve&&(u.mode&1)!==0)for(Ie=u,ve=u.child;ve!==null;){for(ye=Ie=ve;Ie!==null;){switch(he=Ie,Re=he.child,he.tag){case 0:case 11:case 14:case 15:qc(4,he,he.return);break;case 1:au(he,he.return);var De=he.stateNode;if(typeof De.componentWillUnmount=="function"){_=he,m=he.return;try{f=_,De.props=f.memoizedProps,De.state=f.memoizedState,De.componentWillUnmount()}catch(Be){vr(_,m,Be)}}break;case 5:au(he,he.return);break;case 22:if(he.memoizedState!==null){hT(ye);continue}}Re!==null?(Re.return=he,Ie=Re):hT(ye)}ve=ve.sibling}e:for(ve=null,ye=u;;){if(ye.tag===5){if(ve===null){ve=ye;try{k=ye.stateNode,re?(I=k.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(U=ye.stateNode,q=ye.memoizedProps.style,$=q!=null&&q.hasOwnProperty("display")?q.display:null,U.style.display=Ct("display",$))}catch(Be){vr(u,u.return,Be)}}}else if(ye.tag===6){if(ve===null)try{ye.stateNode.nodeValue=re?"":ye.memoizedProps}catch(Be){vr(u,u.return,Be)}}else if((ye.tag!==22&&ye.tag!==23||ye.memoizedState===null||ye===u)&&ye.child!==null){ye.child.return=ye,ye=ye.child;continue}if(ye===u)break e;for(;ye.sibling===null;){if(ye.return===null||ye.return===u)break e;ve===ye&&(ve=null),ye=ye.return}ve===ye&&(ve=null),ye.sibling.return=ye.return,ye=ye.sibling}}break;case 19:Yi(f,u),fo(u),_&4&&cT(u);break;case 21:break;default:Yi(f,u),fo(u)}}function fo(u){var f=u.flags;if(f&2){try{e:{for(var m=u.return;m!==null;){if(sT(m)){var _=m;break e}m=m.return}throw Error(r(160))}switch(_.tag){case 5:var k=_.stateNode;_.flags&32&&(Ze(k,""),_.flags&=-33);var I=lT(u);qy(u,I,k);break;case 3:case 4:var $=_.stateNode.containerInfo,U=lT(u);Yy(u,U,$);break;default:throw Error(r(161))}}catch(q){vr(u,u.return,q)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function dN(u,f,m){Ie=u,dT(u)}function dT(u,f,m){for(var _=(u.mode&1)!==0;Ie!==null;){var k=Ie,I=k.child;if(k.tag===22&&_){var $=k.memoizedState!==null||Qp;if(!$){var U=k.alternate,q=U!==null&&U.memoizedState!==null||nn;U=Qp;var re=nn;if(Qp=$,(nn=q)&&!re)for(Ie=k;Ie!==null;)$=Ie,q=$.child,$.tag===22&&$.memoizedState!==null?vT(k):q!==null?(q.return=$,Ie=q):vT(k);for(;I!==null;)Ie=I,dT(I),I=I.sibling;Ie=k,Qp=U,nn=re}pT(u)}else(k.subtreeFlags&8772)!==0&&I!==null?(I.return=k,Ie=I):pT(u)}}function pT(u){for(;Ie!==null;){var f=Ie;if((f.flags&8772)!==0){var m=f.alternate;try{if((f.flags&8772)!==0)switch(f.tag){case 0:case 11:case 15:nn||Zp(5,f);break;case 1:var _=f.stateNode;if(f.flags&4&&!nn)if(m===null)_.componentDidMount();else{var k=f.elementType===f.type?m.memoizedProps:Ui(f.type,m.memoizedProps);_.componentDidUpdate(k,m.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var I=f.updateQueue;I!==null&&hC(f,I,_);break;case 3:var $=f.updateQueue;if($!==null){if(m=null,f.child!==null)switch(f.child.tag){case 5:m=f.child.stateNode;break;case 1:m=f.child.stateNode}hC(f,$,m)}break;case 5:var U=f.stateNode;if(m===null&&f.flags&4){m=U;var q=f.memoizedProps;switch(f.type){case"button":case"input":case"select":case"textarea":q.autoFocus&&m.focus();break;case"img":q.src&&(m.src=q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(f.memoizedState===null){var re=f.alternate;if(re!==null){var ve=re.memoizedState;if(ve!==null){var ye=ve.dehydrated;ye!==null&&kc(ye)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}nn||f.flags&512&&Gy(f)}catch(he){vr(f,f.return,he)}}if(f===u){Ie=null;break}if(m=f.sibling,m!==null){m.return=f.return,Ie=m;break}Ie=f.return}}function hT(u){for(;Ie!==null;){var f=Ie;if(f===u){Ie=null;break}var m=f.sibling;if(m!==null){m.return=f.return,Ie=m;break}Ie=f.return}}function vT(u){for(;Ie!==null;){var f=Ie;try{switch(f.tag){case 0:case 11:case 15:var m=f.return;try{Zp(4,f)}catch(q){vr(f,m,q)}break;case 1:var _=f.stateNode;if(typeof _.componentDidMount=="function"){var k=f.return;try{_.componentDidMount()}catch(q){vr(f,k,q)}}var I=f.return;try{Gy(f)}catch(q){vr(f,I,q)}break;case 5:var $=f.return;try{Gy(f)}catch(q){vr(f,$,q)}}}catch(q){vr(f,f.return,q)}if(f===u){Ie=null;break}var U=f.sibling;if(U!==null){U.return=f.return,Ie=U;break}Ie=f.return}}var pN=Math.ceil,Jp=C.ReactCurrentDispatcher,Ky=C.ReactCurrentOwner,vi=C.ReactCurrentBatchConfig,Rt=0,Br=null,Mr=null,Ur=0,Qn=0,su=ka(0),Or=0,Kc=null,Es=0,eh=0,Xy=0,Xc=null,Rn=null,Qy=0,lu=1/0,Qo=null,th=!1,Zy=null,Aa=null,rh=!1,Da=null,nh=0,Qc=0,Jy=null,ih=-1,oh=0;function gn(){return(Rt&6)!==0?Tt():ih!==-1?ih:ih=Tt()}function La(u){return(u.mode&1)===0?1:(Rt&2)!==0&&Ur!==0?Ur&-Ur:X3.transition!==null?(oh===0&&(oh=l_()),oh):(u=Ft,u!==0||(u=window.event,u=u===void 0?16:m_(u.type)),u)}function qi(u,f,m,_){if(50<Qc)throw Qc=0,Jy=null,Error(r(185));bc(u,m,_),((Rt&2)===0||u!==Br)&&(u===Br&&((Rt&2)===0&&(eh|=m),Or===4&&Oa(u,Ur)),Mn(u,_),m===1&&Rt===0&&(f.mode&1)===0&&(lu=Tt()+500,Dp&&Ra()))}function Mn(u,f){var m=u.callbackNode;X5(u,f);var _=hp(u,u===Br?Ur:0);if(_===0)m!==null&&Ye(m),u.callbackNode=null,u.callbackPriority=0;else if(f=_&-_,u.callbackPriority!==f){if(m!=null&&Ye(m),f===1)u.tag===0?K3(mT.bind(null,u)):rC(mT.bind(null,u)),U3(function(){(Rt&6)===0&&Ra()}),m=null;else{switch(u_(_)){case 1:m=yc;break;case 4:m=xc;break;case 16:m=Ho;break;case 536870912:m=_t;break;default:m=Ho}m=TT(m,gT.bind(null,u))}u.callbackPriority=f,u.callbackNode=m}}function gT(u,f){if(ih=-1,oh=0,(Rt&6)!==0)throw Error(r(327));var m=u.callbackNode;if(uu()&&u.callbackNode!==m)return null;var _=hp(u,u===Br?Ur:0);if(_===0)return null;if((_&30)!==0||(_&u.expiredLanes)!==0||f)f=ah(u,_);else{f=_;var k=Rt;Rt|=2;var I=xT();(Br!==u||Ur!==f)&&(Qo=null,lu=Tt()+500,As(u,f));do try{gN();break}catch(U){yT(u,U)}while(!0);my(),Jp.current=I,Rt=k,Mr!==null?f=0:(Br=null,Ur=0,f=Or)}if(f!==0){if(f===2&&(k=Dm(u),k!==0&&(_=k,f=e0(u,k))),f===1)throw m=Kc,As(u,0),Oa(u,_),Mn(u,Tt()),m;if(f===6)Oa(u,_);else{if(k=u.current.alternate,(_&30)===0&&!hN(k)&&(f=ah(u,_),f===2&&(I=Dm(u),I!==0&&(_=I,f=e0(u,I))),f===1))throw m=Kc,As(u,0),Oa(u,_),Mn(u,Tt()),m;switch(u.finishedWork=k,u.finishedLanes=_,f){case 0:case 1:throw Error(r(345));case 2:Ds(u,Rn,Qo);break;case 3:if(Oa(u,_),(_&130023424)===_&&(f=Qy+500-Tt(),10<f)){if(hp(u,0)!==0)break;if(k=u.suspendedLanes,(k&_)!==_){gn(),u.pingedLanes|=u.suspendedLanes&k;break}u.timeoutHandle=ay(Ds.bind(null,u,Rn,Qo),f);break}Ds(u,Rn,Qo);break;case 4:if(Oa(u,_),(_&4194240)===_)break;for(f=u.eventTimes,k=-1;0<_;){var $=31-Wi(_);I=1<<$,$=f[$],$>k&&(k=$),_&=~I}if(_=k,_=Tt()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*pN(_/1960))-_,10<_){u.timeoutHandle=ay(Ds.bind(null,u,Rn,Qo),_);break}Ds(u,Rn,Qo);break;case 5:Ds(u,Rn,Qo);break;default:throw Error(r(329))}}}return Mn(u,Tt()),u.callbackNode===m?gT.bind(null,u):null}function e0(u,f){var m=Xc;return u.current.memoizedState.isDehydrated&&(As(u,f).flags|=256),u=ah(u,f),u!==2&&(f=Rn,Rn=m,f!==null&&t0(f)),u}function t0(u){Rn===null?Rn=u:Rn.push.apply(Rn,u)}function hN(u){for(var f=u;;){if(f.flags&16384){var m=f.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var _=0;_<m.length;_++){var k=m[_],I=k.getSnapshot;k=k.value;try{if(!Hi(I(),k))return!1}catch{return!1}}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function Oa(u,f){for(f&=~Xy,f&=~eh,u.suspendedLanes|=f,u.pingedLanes&=~f,u=u.expirationTimes;0<f;){var m=31-Wi(f),_=1<<m;u[m]=-1,f&=~_}}function mT(u){if((Rt&6)!==0)throw Error(r(327));uu();var f=hp(u,0);if((f&1)===0)return Mn(u,Tt()),null;var m=ah(u,f);if(u.tag!==0&&m===2){var _=Dm(u);_!==0&&(f=_,m=e0(u,_))}if(m===1)throw m=Kc,As(u,0),Oa(u,f),Mn(u,Tt()),m;if(m===6)throw Error(r(345));return u.finishedWork=u.current.alternate,u.finishedLanes=f,Ds(u,Rn,Qo),Mn(u,Tt()),null}function r0(u,f){var m=Rt;Rt|=1;try{return u(f)}finally{Rt=m,Rt===0&&(lu=Tt()+500,Dp&&Ra())}}function Is(u){Da!==null&&Da.tag===0&&(Rt&6)===0&&uu();var f=Rt;Rt|=1;var m=vi.transition,_=Ft;try{if(vi.transition=null,Ft=1,u)return u()}finally{Ft=_,vi.transition=m,Rt=f,(Rt&6)===0&&Ra()}}function n0(){Qn=su.current,nr(su)}function As(u,f){u.finishedWork=null,u.finishedLanes=0;var m=u.timeoutHandle;if(m!==-1&&(u.timeoutHandle=-1,V3(m)),Mr!==null)for(m=Mr.return;m!==null;){var _=m;switch(dy(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&Ip();break;case 3:iu(),nr(Tn),nr(en),Ty();break;case 5:_y(_);break;case 4:iu();break;case 13:nr(cr);break;case 19:nr(cr);break;case 10:yy(_.type._context);break;case 22:case 23:n0()}m=m.return}if(Br=u,Mr=u=Na(u.current,null),Ur=Qn=f,Or=0,Kc=null,Xy=eh=Es=0,Rn=Xc=null,Ps!==null){for(f=0;f<Ps.length;f++)if(m=Ps[f],_=m.interleaved,_!==null){m.interleaved=null;var k=_.next,I=m.pending;if(I!==null){var $=I.next;I.next=k,_.next=$}m.pending=_}Ps=null}return u}function yT(u,f){do{var m=Mr;try{if(my(),Hp.current=Yp,Vp){for(var _=fr.memoizedState;_!==null;){var k=_.queue;k!==null&&(k.pending=null),_=_.next}Vp=!1}if(Ms=0,$r=Lr=fr=null,Hc=!1,Vc=0,Ky.current=null,m===null||m.return===null){Or=1,Kc=f,Mr=null;break}e:{var I=u,$=m.return,U=m,q=f;if(f=Ur,U.flags|=32768,q!==null&&typeof q=="object"&&typeof q.then=="function"){var re=q,ve=U,ye=ve.tag;if((ve.mode&1)===0&&(ye===0||ye===11||ye===15)){var he=ve.alternate;he?(ve.updateQueue=he.updateQueue,ve.memoizedState=he.memoizedState,ve.lanes=he.lanes):(ve.updateQueue=null,ve.memoizedState=null)}var Re=HC($);if(Re!==null){Re.flags&=-257,VC(Re,$,U,I,f),Re.mode&1&&WC(I,re,f),f=Re,q=re;var De=f.updateQueue;if(De===null){var Be=new Set;Be.add(q),f.updateQueue=Be}else De.add(q);break e}else{if((f&1)===0){WC(I,re,f),i0();break e}q=Error(r(426))}}else if(ar&&U.mode&1){var Sr=HC($);if(Sr!==null){(Sr.flags&65536)===0&&(Sr.flags|=256),VC(Sr,$,U,I,f),vy(ou(q,U));break e}}I=q=ou(q,U),Or!==4&&(Or=2),Xc===null?Xc=[I]:Xc.push(I),I=$;do{switch(I.tag){case 3:I.flags|=65536,f&=-f,I.lanes|=f;var J=zC(I,q,f);pC(I,J);break e;case 1:U=q;var Q=I.type,ee=I.stateNode;if((I.flags&128)===0&&(typeof Q.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(Aa===null||!Aa.has(ee)))){I.flags|=65536,f&=-f,I.lanes|=f;var be=jC(I,U,f);pC(I,be);break e}}I=I.return}while(I!==null)}bT(m)}catch(He){f=He,Mr===m&&m!==null&&(Mr=m=m.return);continue}break}while(!0)}function xT(){var u=Jp.current;return Jp.current=Yp,u===null?Yp:u}function i0(){(Or===0||Or===3||Or===2)&&(Or=4),Br===null||(Es&268435455)===0&&(eh&268435455)===0||Oa(Br,Ur)}function ah(u,f){var m=Rt;Rt|=2;var _=xT();(Br!==u||Ur!==f)&&(Qo=null,As(u,f));do try{vN();break}catch(k){yT(u,k)}while(!0);if(my(),Rt=m,Jp.current=_,Mr!==null)throw Error(r(261));return Br=null,Ur=0,Or}function vN(){for(;Mr!==null;)ST(Mr)}function gN(){for(;Mr!==null&&!or();)ST(Mr)}function ST(u){var f=CT(u.alternate,u,Qn);u.memoizedProps=u.pendingProps,f===null?bT(u):Mr=f,Ky.current=null}function bT(u){var f=u;do{var m=f.alternate;if(u=f.return,(f.flags&32768)===0){if(m=lN(m,f,Qn),m!==null){Mr=m;return}}else{if(m=uN(m,f),m!==null){m.flags&=32767,Mr=m;return}if(u!==null)u.flags|=32768,u.subtreeFlags=0,u.deletions=null;else{Or=6,Mr=null;return}}if(f=f.sibling,f!==null){Mr=f;return}Mr=f=u}while(f!==null);Or===0&&(Or=5)}function Ds(u,f,m){var _=Ft,k=vi.transition;try{vi.transition=null,Ft=1,mN(u,f,m,_)}finally{vi.transition=k,Ft=_}return null}function mN(u,f,m,_){do uu();while(Da!==null);if((Rt&6)!==0)throw Error(r(327));m=u.finishedWork;var k=u.finishedLanes;if(m===null)return null;if(u.finishedWork=null,u.finishedLanes=0,m===u.current)throw Error(r(177));u.callbackNode=null,u.callbackPriority=0;var I=m.lanes|m.childLanes;if(Q5(u,I),u===Br&&(Mr=Br=null,Ur=0),(m.subtreeFlags&2064)===0&&(m.flags&2064)===0||rh||(rh=!0,TT(Ho,function(){return uu(),null})),I=(m.flags&15990)!==0,(m.subtreeFlags&15990)!==0||I){I=vi.transition,vi.transition=null;var $=Ft;Ft=1;var U=Rt;Rt|=4,Ky.current=null,fN(u,m),fT(m,u),$3(iy),mp=!!ny,iy=ny=null,u.current=m,dN(m),hr(),Rt=U,Ft=$,vi.transition=I}else u.current=m;if(rh&&(rh=!1,Da=u,nh=k),I=u.pendingLanes,I===0&&(Aa=null),ws(m.stateNode),Mn(u,Tt()),f!==null)for(_=u.onRecoverableError,m=0;m<f.length;m++)k=f[m],_(k.value,{componentStack:k.stack,digest:k.digest});if(th)throw th=!1,u=Zy,Zy=null,u;return(nh&1)!==0&&u.tag!==0&&uu(),I=u.pendingLanes,(I&1)!==0?u===Jy?Qc++:(Qc=0,Jy=u):Qc=0,Ra(),null}function uu(){if(Da!==null){var u=u_(nh),f=vi.transition,m=Ft;try{if(vi.transition=null,Ft=16>u?16:u,Da===null)var _=!1;else{if(u=Da,Da=null,nh=0,(Rt&6)!==0)throw Error(r(331));var k=Rt;for(Rt|=4,Ie=u.current;Ie!==null;){var I=Ie,$=I.child;if((Ie.flags&16)!==0){var U=I.deletions;if(U!==null){for(var q=0;q<U.length;q++){var re=U[q];for(Ie=re;Ie!==null;){var ve=Ie;switch(ve.tag){case 0:case 11:case 15:qc(8,ve,I)}var ye=ve.child;if(ye!==null)ye.return=ve,Ie=ye;else for(;Ie!==null;){ve=Ie;var he=ve.sibling,Re=ve.return;if(aT(ve),ve===re){Ie=null;break}if(he!==null){he.return=Re,Ie=he;break}Ie=Re}}}var De=I.alternate;if(De!==null){var Be=De.child;if(Be!==null){De.child=null;do{var Sr=Be.sibling;Be.sibling=null,Be=Sr}while(Be!==null)}}Ie=I}}if((I.subtreeFlags&2064)!==0&&$!==null)$.return=I,Ie=$;else e:for(;Ie!==null;){if(I=Ie,(I.flags&2048)!==0)switch(I.tag){case 0:case 11:case 15:qc(9,I,I.return)}var J=I.sibling;if(J!==null){J.return=I.return,Ie=J;break e}Ie=I.return}}var Q=u.current;for(Ie=Q;Ie!==null;){$=Ie;var ee=$.child;if(($.subtreeFlags&2064)!==0&&ee!==null)ee.return=$,Ie=ee;else e:for($=Q;Ie!==null;){if(U=Ie,(U.flags&2048)!==0)try{switch(U.tag){case 0:case 11:case 15:Zp(9,U)}}catch(He){vr(U,U.return,He)}if(U===$){Ie=null;break e}var be=U.sibling;if(be!==null){be.return=U.return,Ie=be;break e}Ie=U.return}}if(Rt=k,Ra(),Dr&&typeof Dr.onPostCommitFiberRoot=="function")try{Dr.onPostCommitFiberRoot(Yn,u)}catch{}_=!0}return _}finally{Ft=m,vi.transition=f}}return!1}function wT(u,f,m){f=ou(m,f),f=zC(u,f,1),u=Ea(u,f,1),f=gn(),u!==null&&(bc(u,1,f),Mn(u,f))}function vr(u,f,m){if(u.tag===3)wT(u,u,m);else for(;f!==null;){if(f.tag===3){wT(f,u,m);break}else if(f.tag===1){var _=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(Aa===null||!Aa.has(_))){u=ou(m,u),u=jC(f,u,1),f=Ea(f,u,1),u=gn(),f!==null&&(bc(f,1,u),Mn(f,u));break}}f=f.return}}function yN(u,f,m){var _=u.pingCache;_!==null&&_.delete(f),f=gn(),u.pingedLanes|=u.suspendedLanes&m,Br===u&&(Ur&m)===m&&(Or===4||Or===3&&(Ur&130023424)===Ur&&500>Tt()-Qy?As(u,0):Xy|=m),Mn(u,f)}function _T(u,f){f===0&&((u.mode&1)===0?f=1:(f=pp,pp<<=1,(pp&130023424)===0&&(pp=4194304)));var m=gn();u=qo(u,f),u!==null&&(bc(u,f,m),Mn(u,m))}function xN(u){var f=u.memoizedState,m=0;f!==null&&(m=f.retryLane),_T(u,m)}function SN(u,f){var m=0;switch(u.tag){case 13:var _=u.stateNode,k=u.memoizedState;k!==null&&(m=k.retryLane);break;case 19:_=u.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(f),_T(u,m)}var CT;CT=function(u,f,m){if(u!==null)if(u.memoizedProps!==f.pendingProps||Tn.current)Pn=!0;else{if((u.lanes&m)===0&&(f.flags&128)===0)return Pn=!1,sN(u,f,m);Pn=(u.flags&131072)!==0}else Pn=!1,ar&&(f.flags&1048576)!==0&&nC(f,Op,f.index);switch(f.lanes=0,f.tag){case 2:var _=f.type;Xp(u,f),u=f.pendingProps;var k=Ql(f,en.current);nu(f,m),k=Ry(null,f,_,u,k,m);var I=My();return f.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,kn(_)?(I=!0,Ap(f)):I=!1,f.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,by(f),k.updater=qp,f.stateNode=k,k._reactInternals=f,Oy(f,_,u,m),f=Fy(null,f,_,!0,I,m)):(f.tag=0,ar&&I&&fy(f),vn(null,f,k,m),f=f.child),f;case 16:_=f.elementType;e:{switch(Xp(u,f),u=f.pendingProps,k=_._init,_=k(_._payload),f.type=_,k=f.tag=wN(_),u=Ui(_,u),k){case 0:f=By(null,f,_,u,m);break e;case 1:f=XC(null,f,_,u,m);break e;case 11:f=UC(null,f,_,u,m);break e;case 14:f=GC(null,f,_,Ui(_.type,u),m);break e}throw Error(r(306,_,""))}return f;case 0:return _=f.type,k=f.pendingProps,k=f.elementType===_?k:Ui(_,k),By(u,f,_,k,m);case 1:return _=f.type,k=f.pendingProps,k=f.elementType===_?k:Ui(_,k),XC(u,f,_,k,m);case 3:e:{if(QC(f),u===null)throw Error(r(387));_=f.pendingProps,I=f.memoizedState,k=I.element,dC(u,f),jp(f,_,null,m);var $=f.memoizedState;if(_=$.element,I.isDehydrated)if(I={element:_,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},f.updateQueue.baseState=I,f.memoizedState=I,f.flags&256){k=ou(Error(r(423)),f),f=ZC(u,f,_,m,k);break e}else if(_!==k){k=ou(Error(r(424)),f),f=ZC(u,f,_,m,k);break e}else for(Xn=Ta(f.stateNode.containerInfo.firstChild),Kn=f,ar=!0,Vi=null,m=cC(f,null,_,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(eu(),_===k){f=Xo(u,f,m);break e}vn(u,f,_,m)}f=f.child}return f;case 5:return vC(f),u===null&&hy(f),_=f.type,k=f.pendingProps,I=u!==null?u.memoizedProps:null,$=k.children,oy(_,k)?$=null:I!==null&&oy(_,I)&&(f.flags|=32),KC(u,f),vn(u,f,$,m),f.child;case 6:return u===null&&hy(f),null;case 13:return JC(u,f,m);case 4:return wy(f,f.stateNode.containerInfo),_=f.pendingProps,u===null?f.child=tu(f,null,_,m):vn(u,f,_,m),f.child;case 11:return _=f.type,k=f.pendingProps,k=f.elementType===_?k:Ui(_,k),UC(u,f,_,k,m);case 7:return vn(u,f,f.pendingProps,m),f.child;case 8:return vn(u,f,f.pendingProps.children,m),f.child;case 12:return vn(u,f,f.pendingProps.children,m),f.child;case 10:e:{if(_=f.type._context,k=f.pendingProps,I=f.memoizedProps,$=k.value,Zt(Bp,_._currentValue),_._currentValue=$,I!==null)if(Hi(I.value,$)){if(I.children===k.children&&!Tn.current){f=Xo(u,f,m);break e}}else for(I=f.child,I!==null&&(I.return=f);I!==null;){var U=I.dependencies;if(U!==null){$=I.child;for(var q=U.firstContext;q!==null;){if(q.context===_){if(I.tag===1){q=Ko(-1,m&-m),q.tag=2;var re=I.updateQueue;if(re!==null){re=re.shared;var ve=re.pending;ve===null?q.next=q:(q.next=ve.next,ve.next=q),re.pending=q}}I.lanes|=m,q=I.alternate,q!==null&&(q.lanes|=m),xy(I.return,m,f),U.lanes|=m;break}q=q.next}}else if(I.tag===10)$=I.type===f.type?null:I.child;else if(I.tag===18){if($=I.return,$===null)throw Error(r(341));$.lanes|=m,U=$.alternate,U!==null&&(U.lanes|=m),xy($,m,f),$=I.sibling}else $=I.child;if($!==null)$.return=I;else for($=I;$!==null;){if($===f){$=null;break}if(I=$.sibling,I!==null){I.return=$.return,$=I;break}$=$.return}I=$}vn(u,f,k.children,m),f=f.child}return f;case 9:return k=f.type,_=f.pendingProps.children,nu(f,m),k=pi(k),_=_(k),f.flags|=1,vn(u,f,_,m),f.child;case 14:return _=f.type,k=Ui(_,f.pendingProps),k=Ui(_.type,k),GC(u,f,_,k,m);case 15:return YC(u,f,f.type,f.pendingProps,m);case 17:return _=f.type,k=f.pendingProps,k=f.elementType===_?k:Ui(_,k),Xp(u,f),f.tag=1,kn(_)?(u=!0,Ap(f)):u=!1,nu(f,m),BC(f,_,k),Oy(f,_,k,m),Fy(null,f,_,!0,u,m);case 19:return tT(u,f,m);case 22:return qC(u,f,m)}throw Error(r(156,f.tag))};function TT(u,f){return pt(u,f)}function bN(u,f,m,_){this.tag=u,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(u,f,m,_){return new bN(u,f,m,_)}function o0(u){return u=u.prototype,!(!u||!u.isReactComponent)}function wN(u){if(typeof u=="function")return o0(u)?1:0;if(u!=null){if(u=u.$$typeof,u===N)return 11;if(u===z)return 14}return 2}function Na(u,f){var m=u.alternate;return m===null?(m=gi(u.tag,f,u.key,u.mode),m.elementType=u.elementType,m.type=u.type,m.stateNode=u.stateNode,m.alternate=u,u.alternate=m):(m.pendingProps=f,m.type=u.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=u.flags&14680064,m.childLanes=u.childLanes,m.lanes=u.lanes,m.child=u.child,m.memoizedProps=u.memoizedProps,m.memoizedState=u.memoizedState,m.updateQueue=u.updateQueue,f=u.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=u.sibling,m.index=u.index,m.ref=u.ref,m}function sh(u,f,m,_,k,I){var $=2;if(_=u,typeof u=="function")o0(u)&&($=1);else if(typeof u=="string")$=5;else e:switch(u){case E:return Ls(m.children,k,I,f);case A:$=8,k|=8;break;case O:return u=gi(12,m,f,k|2),u.elementType=O,u.lanes=I,u;case B:return u=gi(13,m,f,k),u.elementType=B,u.lanes=I,u;case F:return u=gi(19,m,f,k),u.elementType=F,u.lanes=I,u;case X:return lh(m,k,I,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case R:$=10;break e;case L:$=9;break e;case N:$=11;break e;case z:$=14;break e;case j:$=16,_=null;break e}throw Error(r(130,u==null?u:typeof u,""))}return f=gi($,m,f,k),f.elementType=u,f.type=_,f.lanes=I,f}function Ls(u,f,m,_){return u=gi(7,u,_,f),u.lanes=m,u}function lh(u,f,m,_){return u=gi(22,u,_,f),u.elementType=X,u.lanes=m,u.stateNode={isHidden:!1},u}function a0(u,f,m){return u=gi(6,u,null,f),u.lanes=m,u}function s0(u,f,m){return f=gi(4,u.children!==null?u.children:[],u.key,f),f.lanes=m,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function _N(u,f,m,_,k){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lm(0),this.expirationTimes=Lm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lm(0),this.identifierPrefix=_,this.onRecoverableError=k,this.mutableSourceEagerHydrationData=null}function l0(u,f,m,_,k,I,$,U,q){return u=new _N(u,f,m,U,q),f===1?(f=1,I===!0&&(f|=8)):f=0,I=gi(3,null,null,f),u.current=I,I.stateNode=u,I.memoizedState={element:_,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},by(I),u}function CN(u,f,m){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:_==null?null:""+_,children:u,containerInfo:f,implementation:m}}function kT(u){if(!u)return Pa;u=u._reactInternals;e:{if(Jr(u)!==u||u.tag!==1)throw Error(r(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(kn(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(r(171))}if(u.tag===1){var m=u.type;if(kn(m))return eC(u,m,f)}return f}function PT(u,f,m,_,k,I,$,U,q){return u=l0(m,_,!0,u,k,I,$,U,q),u.context=kT(null),m=u.current,_=gn(),k=La(m),I=Ko(_,k),I.callback=f??null,Ea(m,I,k),u.current.lanes=k,bc(u,k,_),Mn(u,_),u}function uh(u,f,m,_){var k=f.current,I=gn(),$=La(k);return m=kT(m),f.context===null?f.context=m:f.pendingContext=m,f=Ko(I,$),f.payload={element:u},_=_===void 0?null:_,_!==null&&(f.callback=_),u=Ea(k,f,$),u!==null&&(qi(u,k,$,I),zp(u,k,$)),$}function ch(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return u.child.stateNode;default:return u.child.stateNode}}function RT(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var m=u.retryLane;u.retryLane=m!==0&&m<f?m:f}}function u0(u,f){RT(u,f),(u=u.alternate)&&RT(u,f)}function TN(){return null}var MT=typeof reportError=="function"?reportError:function(u){console.error(u)};function c0(u){this._internalRoot=u}fh.prototype.render=c0.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));uh(u,f,null,null)},fh.prototype.unmount=c0.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;Is(function(){uh(null,u,null,null)}),f[Vo]=null}};function fh(u){this._internalRoot=u}fh.prototype.unstable_scheduleHydration=function(u){if(u){var f=d_();u={blockedOn:null,target:u,priority:f};for(var m=0;m<wa.length&&f!==0&&f<wa[m].priority;m++);wa.splice(m,0,u),m===0&&v_(u)}};function f0(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function dh(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11&&(u.nodeType!==8||u.nodeValue!==" react-mount-point-unstable "))}function ET(){}function kN(u,f,m,_,k){if(k){if(typeof _=="function"){var I=_;_=function(){var re=ch($);I.call(re)}}var $=PT(f,_,u,0,null,!1,!1,"",ET);return u._reactRootContainer=$,u[Vo]=$.current,Oc(u.nodeType===8?u.parentNode:u),Is(),$}for(;k=u.lastChild;)u.removeChild(k);if(typeof _=="function"){var U=_;_=function(){var re=ch(q);U.call(re)}}var q=l0(u,0,!1,null,null,!1,!1,"",ET);return u._reactRootContainer=q,u[Vo]=q.current,Oc(u.nodeType===8?u.parentNode:u),Is(function(){uh(f,q,m,_)}),q}function ph(u,f,m,_,k){var I=m._reactRootContainer;if(I){var $=I;if(typeof k=="function"){var U=k;k=function(){var q=ch($);U.call(q)}}uh(f,$,u,k)}else $=kN(m,f,u,k,_);return ch($)}c_=function(u){switch(u.tag){case 3:var f=u.stateNode;if(f.current.memoizedState.isDehydrated){var m=Sc(f.pendingLanes);m!==0&&(Om(f,m|1),Mn(f,Tt()),(Rt&6)===0&&(lu=Tt()+500,Ra()))}break;case 13:Is(function(){var _=qo(u,1);if(_!==null){var k=gn();qi(_,u,1,k)}}),u0(u,1)}},Nm=function(u){if(u.tag===13){var f=qo(u,134217728);if(f!==null){var m=gn();qi(f,u,134217728,m)}u0(u,134217728)}},f_=function(u){if(u.tag===13){var f=La(u),m=qo(u,f);if(m!==null){var _=gn();qi(m,u,f,_)}u0(u,f)}},d_=function(){return Ft},p_=function(u,f){var m=Ft;try{return Ft=u,f()}finally{Ft=m}},zi=function(u,f,m){switch(f){case"input":if(ct(u,m),f=m.name,m.type==="radio"&&f!=null){for(m=u;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+f)+'][type="radio"]'),f=0;f<m.length;f++){var _=m[f];if(_!==u&&_.form===u.form){var k=Ep(_);if(!k)throw Error(r(90));pe(_),ct(_,k)}}}break;case"textarea":vt(u,m);break;case"select":f=m.value,f!=null&&Ge(u,!!m.multiple,f,!1)}},ji=r0,Je=Is;var PN={usingClientEntryPoint:!1,Events:[Bc,Kl,Ep,Gn,Hr,r0]},Zc={findFiberByHostInstance:_s,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RN={bundleType:Zc.bundleType,version:Zc.version,rendererPackageName:Zc.rendererPackageName,rendererConfig:Zc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(u){return u=ie(u),u===null?null:u.stateNode},findFiberByHostInstance:Zc.findFiberByHostInstance||TN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hh.isDisabled&&hh.supportsFiber)try{Yn=hh.inject(RN),Dr=hh}catch{}}return En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=PN,En.createPortal=function(u,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f0(f))throw Error(r(200));return CN(u,f,null,m)},En.createRoot=function(u,f){if(!f0(u))throw Error(r(299));var m=!1,_="",k=MT;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(_=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),f=l0(u,1,!1,null,null,m,!1,_,k),u[Vo]=f.current,Oc(u.nodeType===8?u.parentNode:u),new c0(f)},En.findDOMNode=function(u){if(u==null)return null;if(u.nodeType===1)return u;var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=ie(f),u=u===null?null:u.stateNode,u},En.flushSync=function(u){return Is(u)},En.hydrate=function(u,f,m){if(!dh(f))throw Error(r(200));return ph(null,u,f,!0,m)},En.hydrateRoot=function(u,f,m){if(!f0(u))throw Error(r(405));var _=m!=null&&m.hydratedSources||null,k=!1,I="",$=MT;if(m!=null&&(m.unstable_strictMode===!0&&(k=!0),m.identifierPrefix!==void 0&&(I=m.identifierPrefix),m.onRecoverableError!==void 0&&($=m.onRecoverableError)),f=PT(f,null,u,1,m??null,k,!1,I,$),u[Vo]=f.current,Oc(u),_)for(u=0;u<_.length;u++)m=_[u],k=m._getVersion,k=k(m._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[m,k]:f.mutableSourceEagerHydrationData.push(m,k);return new fh(f)},En.render=function(u,f,m){if(!dh(f))throw Error(r(200));return ph(null,u,f,!1,m)},En.unmountComponentAtNode=function(u){if(!dh(u))throw Error(r(40));return u._reactRootContainer?(Is(function(){ph(null,null,u,!1,function(){u._reactRootContainer=null,u[Vo]=null})}),!0):!1},En.unstable_batchedUpdates=r0,En.unstable_renderSubtreeIntoContainer=function(u,f,m,_){if(!dh(m))throw Error(r(200));if(u==null||u._reactInternals===void 0)throw Error(r(38));return ph(u,f,m,!1,_)},En.version="18.3.1-next-f1338f8080-20240426",En}var BT;function OE(){if(BT)return h0.exports;BT=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(),h0.exports=BN(),h0.exports}var FT;function FN(){if(FT)return vh;FT=1;var e=OE();return vh.createRoot=e.createRoot,vh.hydrateRoot=e.hydrateRoot,vh}var zN=FN();const jN=YS(zN);var D=kg();const eo=YS(D),cd=AN({__proto__:null,default:eo},[D]),WN=D.createContext(null),m0={didCatch:!1,error:null};class HN extends D.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=m0}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(m0)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&VN(t.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(m0)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=t;if(o){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=D.createElement(n,l);else if(i===null||D.isValidElement(i))s=i;else throw a}return D.createElement(WN.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function VN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function Gr(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 UN=typeof Symbol=="function"&&Symbol.observable||"@@observable",zT=UN,y0=()=>Math.random().toString(36).substring(7).split("").join("."),GN={INIT:`@@redux/INIT${y0()}`,REPLACE:`@@redux/REPLACE${y0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${y0()}`},jv=GN;function Do(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function NE(e,t,r){if(typeof e!="function")throw new Error(Gr(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Gr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Gr(1));return r(NE)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((y,S)=>{a.set(S,y)}))}function d(){if(l)throw new Error(Gr(3));return i}function p(y){if(typeof y!="function")throw new Error(Gr(4));if(l)throw new Error(Gr(5));let S=!0;c();const w=s++;return a.set(w,y),function(){if(S){if(l)throw new Error(Gr(6));S=!1,c(),a.delete(w),o=null}}}function h(y){if(!Do(y))throw new Error(Gr(7));if(typeof y.type>"u")throw new Error(Gr(8));if(typeof y.type!="string")throw new Error(Gr(17));if(l)throw new Error(Gr(9));try{l=!0,i=n(i,y)}finally{l=!1}return(o=a).forEach(w=>{w()}),y}function v(y){if(typeof y!="function")throw new Error(Gr(10));n=y,h({type:jv.REPLACE})}function g(){const y=p;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(Gr(11));function w(){const C=S;C.next&&C.next(d())}return w(),{unsubscribe:y(w)}},[zT](){return this}}}return h({type:jv.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:v,[zT]:g}}function YN(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:jv.INIT})>"u")throw new Error(Gr(12));if(typeof r(void 0,{type:jv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Gr(13))})}function Pg(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;try{YN(r)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const c={};for(let d=0;d<n.length;d++){const p=n[d],h=r[p],v=a[p],g=h(v,s);if(typeof g>"u")throw s&&s.type,new Error(Gr(14));c[p]=g,l=l||g!==v}return l=l||n.length!==Object.keys(a).length,l?c:a}}function Wv(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function qN(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(Gr(15))};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=Wv(...s)(i.dispatch),{...i,dispatch:o}}}function $E(e){return Do(e)&&"type"in e&&typeof e.type=="string"}var qS=Symbol.for("immer-nothing"),Hf=Symbol.for("immer-draftable"),Fn=Symbol.for("immer-state");function Kr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Pl=Object.getPrototypeOf;function ro(e){return!!e&&!!e[Fn]}function no(e){var t;return e?BE(e)||Array.isArray(e)||!!e[Hf]||!!((t=e.constructor)!=null&&t[Hf])||Wd(e)||Hd(e):!1}var KN=Object.prototype.constructor.toString();function BE(e){if(!e||typeof e!="object")return!1;const t=Pl(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===KN}function XN(e){return ro(e)||Kr(15,e),e[Fn].base_}function fd(e,t){Rl(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Rl(e){const t=e[Fn];return t?t.type_:Array.isArray(e)?1:Wd(e)?2:Hd(e)?3:0}function dd(e,t){return Rl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function x0(e,t){return Rl(e)===2?e.get(t):e[t]}function FE(e,t,r){const n=Rl(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function QN(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Wd(e){return e instanceof Map}function Hd(e){return e instanceof Set}function ol(e){return e.copy_||e.base_}function ox(e,t){if(Wd(e))return new Map(e);if(Hd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=BE(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Fn];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const a=i[o],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Pl(e),n)}else{const n=Pl(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function KS(e,t=!1){return Rg(e)||ro(e)||!no(e)||(Rl(e)>1&&(e.set=e.add=e.clear=e.delete=ZN),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>KS(n,!0))),e}function ZN(){Kr(2)}function Rg(e){return Object.isFrozen(e)}var ax={};function Ml(e){const t=ax[e];return t||Kr(0,e),t}function JN(e,t){ax[e]||(ax[e]=t)}var pd;function zE(){return pd}function e4(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jT(e,t){t&&(Ml("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function sx(e){lx(e),e.drafts_.forEach(t4),e.drafts_=null}function lx(e){e===pd&&(pd=e.parent_)}function WT(e){return pd=e4(pd,e)}function t4(e){const t=e[Fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function HT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Fn].modified_&&(sx(t),Kr(4)),no(e)&&(e=Hv(t,e),t.parent_||Vv(t,e)),t.patches_&&Ml("Patches").generateReplacementPatches_(r[Fn].base_,e,t.patches_,t.inversePatches_)):e=Hv(t,r,[]),sx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qS?e:void 0}function Hv(e,t,r){if(Rg(t))return t;const n=t[Fn];if(!n)return fd(t,(i,o)=>VT(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Vv(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,a=!1;n.type_===3&&(o=new Set(i),i.clear(),a=!0),fd(o,(s,l)=>VT(e,n,i,s,l,r,a)),Vv(e,i,!1),r&&e.patches_&&Ml("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function VT(e,t,r,n,i,o,a){if(ro(i)){const s=o&&t&&t.type_!==3&&!dd(t.assigned_,n)?o.concat(n):void 0,l=Hv(e,i,s);if(FE(r,n,l),ro(l))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(no(i)&&!Rg(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Hv(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Vv(e,i)}}function Vv(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&KS(t,r)}function r4(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:zE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=XS;r&&(i=[n],o=hd);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var XS={get(e,t){if(t===Fn)return e;const r=ol(e);if(!dd(r,t))return n4(e,r,t);const n=r[t];return e.finalized_||!no(n)?n:n===S0(e.base_,t)?(b0(e),e.copy_[t]=cx(n,e)):n},has(e,t){return t in ol(e)},ownKeys(e){return Reflect.ownKeys(ol(e))},set(e,t,r){const n=jE(ol(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=S0(ol(e),t),o=i==null?void 0:i[Fn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(QN(r,i)&&(r!==void 0||dd(e.base_,t)))return!0;b0(e),ux(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return S0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,b0(e),ux(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ol(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Kr(11)},getPrototypeOf(e){return Pl(e.base_)},setPrototypeOf(){Kr(12)}},hd={};fd(XS,(e,t)=>{hd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});hd.deleteProperty=function(e,t){return hd.set.call(this,e,t,void 0)};hd.set=function(e,t,r){return XS.set.call(this,e[0],t,r,e[0])};function S0(e,t){const r=e[Fn];return(r?ol(r):e)[t]}function n4(e,t,r){var i;const n=jE(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function jE(e,t){if(!(t in e))return;let r=Pl(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Pl(r)}}function ux(e){e.modified_||(e.modified_=!0,e.parent_&&ux(e.parent_))}function b0(e){e.copy_||(e.copy_=ox(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var i4=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(l=o,...c){return a.produce(l,d=>r.call(this,d,...c))}}typeof r!="function"&&Kr(6),n!==void 0&&typeof n!="function"&&Kr(7);let i;if(no(t)){const o=WT(this),a=cx(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?sx(o):lx(o)}return jT(o,n),HT(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===qS&&(i=void 0),this.autoFreeze_&&KS(i,!0),n){const o=[],a=[];Ml("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else Kr(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){no(e)||Kr(8),ro(e)&&(e=WE(e));const t=WT(this),r=cx(e,void 0);return r[Fn].isManual_=!0,lx(t),r}finishDraft(e,t){const r=e&&e[Fn];(!r||!r.isManual_)&&Kr(9);const{scope_:n}=r;return jT(n,t),HT(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Ml("Patches").applyPatches_;return ro(e)?n(e,t):this.produce(e,i=>n(i,t))}};function cx(e,t){const r=Wd(e)?Ml("MapSet").proxyMap_(e,t):Hd(e)?Ml("MapSet").proxySet_(e,t):r4(e,t);return(t?t.scope_:zE()).drafts_.push(r),r}function WE(e){return ro(e)||Kr(10,e),HE(e)}function HE(e){if(!no(e)||Rg(e))return e;const t=e[Fn];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ox(e,t.scope_.immer_.useStrictShallowCopy_)}else r=ox(e,!0);return fd(r,(n,i)=>{FE(r,n,HE(i))}),t&&(t.finalized_=!1),r}function o4(){const t="replace",r="add",n="remove";function i(h,v,g,x){switch(h.type_){case 0:case 2:return a(h,v,g,x);case 1:return o(h,v,g,x);case 3:return s(h,v,g,x)}}function o(h,v,g,x){let{base_:y,assigned_:S}=h,w=h.copy_;w.length<y.length&&([y,w]=[w,y],[g,x]=[x,g]);for(let b=0;b<y.length;b++)if(S[b]&&w[b]!==y[b]){const C=v.concat([b]);g.push({op:t,path:C,value:p(w[b])}),x.push({op:t,path:C,value:p(y[b])})}for(let b=y.length;b<w.length;b++){const C=v.concat([b]);g.push({op:r,path:C,value:p(w[b])})}for(let b=w.length-1;y.length<=b;--b){const C=v.concat([b]);x.push({op:n,path:C})}}function a(h,v,g,x){const{base_:y,copy_:S}=h;fd(h.assigned_,(w,b)=>{const C=x0(y,w),T=x0(S,w),P=b?dd(y,w)?t:r:n;if(C===T&&P===t)return;const E=v.concat(w);g.push(P===n?{op:P,path:E}:{op:P,path:E,value:T}),x.push(P===r?{op:n,path:E}:P===n?{op:r,path:E,value:p(C)}:{op:t,path:E,value:p(C)})})}function s(h,v,g,x){let{base_:y,copy_:S}=h,w=0;y.forEach(b=>{if(!S.has(b)){const C=v.concat([w]);g.push({op:n,path:C,value:b}),x.unshift({op:r,path:C,value:b})}w++}),w=0,S.forEach(b=>{if(!y.has(b)){const C=v.concat([w]);g.push({op:r,path:C,value:b}),x.unshift({op:n,path:C,value:b})}w++})}function l(h,v,g,x){g.push({op:t,path:[],value:v===qS?void 0:v}),x.push({op:t,path:[],value:h})}function c(h,v){return v.forEach(g=>{const{path:x,op:y}=g;let S=h;for(let T=0;T<x.length-1;T++){const P=Rl(S);let E=x[T];typeof E!="string"&&typeof E!="number"&&(E=""+E),(P===0||P===1)&&(E==="__proto__"||E==="constructor")&&Kr(19),typeof S=="function"&&E==="prototype"&&Kr(19),S=x0(S,E),typeof S!="object"&&Kr(18,x.join("/"))}const w=Rl(S),b=d(g.value),C=x[x.length-1];switch(y){case t:switch(w){case 2:return S.set(C,b);case 3:Kr(16);default:return S[C]=b}case r:switch(w){case 1:return C==="-"?S.push(b):S.splice(C,0,b);case 2:return S.set(C,b);case 3:return S.add(b);default:return S[C]=b}case n:switch(w){case 1:return S.splice(C,1);case 2:return S.delete(C);case 3:return S.delete(g.value);default:return delete S[C]}default:Kr(17,y)}}),h}function d(h){if(!no(h))return h;if(Array.isArray(h))return h.map(d);if(Wd(h))return new Map(Array.from(h.entries()).map(([g,x])=>[g,d(x)]));if(Hd(h))return new Set(Array.from(h).map(d));const v=Object.create(Pl(h));for(const g in h)v[g]=d(h[g]);return dd(h,Hf)&&(v[Hf]=h[Hf]),v}function p(h){return ro(h)?d(h):h}JN("Patches",{applyPatches_:c,generatePatches_:i,generateReplacementPatches_:l})}var oi=new i4,Vd=oi.produce,VE=oi.produceWithPatches.bind(oi);oi.setAutoFreeze.bind(oi);oi.setUseStrictShallowCopy.bind(oi);var UT=oi.applyPatches.bind(oi);oi.createDraft.bind(oi);oi.finishDraft.bind(oi);function a4(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function s4(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function l4(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var GT=e=>Array.isArray(e)?e:[e];function u4(e){const t=Array.isArray(e[0])?e[0]:e;return l4(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function c4(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var f4=class{constructor(e){this.value=e}deref(){return this.value}},d4=typeof WeakRef<"u"?WeakRef:f4,p4=0,YT=1;function gh(){return{s:p4,v:void 0,o:null,p:null}}function vd(e,t={}){let r=gh();const{resultEqualityCheck:n}=t;let i,o=0;function a(){var p;let s=r;const{length:l}=arguments;for(let h=0,v=l;h<v;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let x=s.o;x===null&&(s.o=x=new WeakMap);const y=x.get(g);y===void 0?(s=gh(),x.set(g,s)):s=y}else{let x=s.p;x===null&&(s.p=x=new Map);const y=x.get(g);y===void 0?(s=gh(),x.set(g,s)):s=y}}const c=s;let d;if(s.s===YT)d=s.v;else if(d=e.apply(null,arguments),o++,n){const h=((p=i==null?void 0:i.deref)==null?void 0:p.call(i))??i;h!=null&&n(h,d)&&(d=h,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new d4(d):d}return c.s=YT,c.v=d,d}return a.clearCache=()=>{r=gh(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function UE(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),a4(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...r,...l},{memoize:p,memoizeOptions:h=[],argsMemoize:v=vd,argsMemoizeOptions:g=[]}=d,x=GT(h),y=GT(g),S=u4(i),w=p(function(){return o++,c.apply(null,arguments)},...x),b=v(function(){a++;const T=c4(S,arguments);return s=w.apply(null,T),s},...y);return Object.assign(b,{resultFunc:c,memoizedResultFunc:w,dependencies:S,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var QS=UE(vd),h4=Object.assign((e,t=QS)=>{s4(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(o=>e[o]);return t(n,(...o)=>o.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>h4});function GE(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var v4=GE(),g4=GE,m4=(...e)=>{const t=UE(...e),r=Object.assign((...n)=>{const i=t(...n),o=(a,...s)=>i(ro(a)?WE(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>r});return r};m4(vd);var y4=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Wv:Wv.apply(null,arguments)},x4=e=>e&&typeof e.match=="function";function wn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(fn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>$E(n)&&n.type===e,r}var YE=class Ef extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ef.prototype)}static get[Symbol.species](){return Ef}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ef(...t[0].concat(this)):new Ef(...t.concat(this))}};function qT(e){return no(e)?Vd(e,()=>{}):e}function KT(e,t,r){if(e.has(t)){let i=e.get(t);return r.update&&(i=r.update(i,t,e),e.set(t,i)),i}if(!r.insert)throw new Error(fn(10));const n=r.insert(t,e);return e.set(t,n),n}function S4(e){return typeof e=="boolean"}var b4=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new YE;return r&&(S4(r)?a.push(v4):a.push(g4(r.extraArgument))),a},Iu="RTK_autoBatch",ef=()=>e=>({payload:e,meta:{[Iu]:!0}}),qE=e=>t=>{setTimeout(t,e)},w4=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qE(10),_4=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?w4:e.type==="callback"?e.queueNotification:qE(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){const p=()=>i&&d(),h=n.subscribe(p);return s.add(d),()=>{h(),s.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[Iu]),o=!i,o&&(a||(a=!0,l(c))),n.dispatch(d)}finally{i=!0}}})},C4=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new YE(e);return n&&i.push(_4(typeof n=="object"?n:void 0)),i};function KE(e){const t=b4(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(Do(r))s=Pg(r);else throw new Error(fn(1));let l;typeof n=="function"?l=n(t):l=t();let c=Wv;i&&(c=y4({trace:!1,...typeof i=="object"&&i}));const d=qN(...l),p=C4(d);let h=typeof a=="function"?a(p):p();const v=c(...h);return NE(s,o,v)}function XE(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(fn(28));if(s in t)throw new Error(fn(29));return t[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function T4(e){return typeof e=="function"}function k4(e,t){let[r,n,i]=XE(t),o;if(T4(e))o=()=>qT(e());else{const s=qT(e);o=()=>s}function a(s=o(),l){let c=[r[l.type],...n.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,p)=>{if(p)if(ro(d)){const v=p(d,l);return v===void 0?d:v}else{if(no(d))return Vd(d,h=>p(h,l));{const h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(fn(9))}return h}}return d},s)}return a.getInitialState=o,a}var P4="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ZS=(e=21)=>{let t="",r=e;for(;r--;)t+=P4[Math.random()*64|0];return t},QE=(e,t)=>x4(e)?e.match(t):e(t);function ua(...e){return t=>e.some(r=>QE(r,t))}function Vf(...e){return t=>e.every(r=>QE(r,t))}function Mg(e,t){if(!e||!e.meta)return!1;const r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Ud(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function JS(...e){return e.length===0?t=>Mg(t,["pending"]):Ud(e)?ua(...e.map(t=>t.pending)):JS()(e[0])}function Ku(...e){return e.length===0?t=>Mg(t,["rejected"]):Ud(e)?ua(...e.map(t=>t.rejected)):Ku()(e[0])}function Eg(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Vf(Ku(...e),t):Ud(e)?Vf(Ku(...e),t):Eg()(e[0])}function ls(...e){return e.length===0?t=>Mg(t,["fulfilled"]):Ud(e)?ua(...e.map(t=>t.fulfilled)):ls()(e[0])}function fx(...e){return e.length===0?t=>Mg(t,["pending","fulfilled","rejected"]):Ud(e)?ua(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):fx()(e[0])}var R4=["name","message","stack","code"],w0=class{constructor(e,t){Os(this,"_type");this.payload=e,this.meta=t}},XT=class{constructor(e,t){Os(this,"_type");this.payload=e,this.meta=t}},M4=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of R4)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},QT=(()=>{function e(t,r,n){const i=wn(t+"/fulfilled",(l,c,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),o=wn(t+"/pending",(l,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:l,requestStatus:"pending"}})),a=wn(t+"/rejected",(l,c,d,p,h)=>({payload:p,error:(n&&n.serializeError||M4)(l||"Rejected"),meta:{...h||{},arg:d,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(c,d,p)=>{const h=n!=null&&n.idGenerator?n.idGenerator(l):ZS(),v=new AbortController;let g,x;function y(w){x=w,v.abort()}const S=async function(){var C,T;let w;try{let P=(C=n==null?void 0:n.condition)==null?void 0:C.call(n,l,{getState:d,extra:p});if(I4(P)&&(P=await P),P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const E=new Promise((A,O)=>{g=()=>{O({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",g)});c(o(h,l,(T=n==null?void 0:n.getPendingMeta)==null?void 0:T.call(n,{requestId:h,arg:l},{getState:d,extra:p}))),w=await Promise.race([E,Promise.resolve(r(l,{dispatch:c,getState:d,extra:p,requestId:h,signal:v.signal,abort:y,rejectWithValue:(A,O)=>new w0(A,O),fulfillWithValue:(A,O)=>new XT(A,O)})).then(A=>{if(A instanceof w0)throw A;return A instanceof XT?i(A.payload,h,l,A.meta):i(A,h,l)})])}catch(P){w=P instanceof w0?a(null,h,l,P.payload,P.meta):a(P,h,l)}finally{g&&v.signal.removeEventListener("abort",g)}return n&&!n.dispatchConditionRejection&&a.match(w)&&w.meta.condition||c(w),w}();return Object.assign(S,{abort:y,requestId:h,arg:l,unwrap(){return S.then(E4)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:ua(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function E4(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function I4(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var A4=Symbol.for("rtk-slice-createasyncthunk");function D4(e,t){return`${e}/${t}`}function L4({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[A4];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(fn(11));const s=(typeof i.reducers=="function"?i.reducers(N4()):i.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(b,C){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(fn(12));if(T in c.sliceCaseReducersByType)throw new Error(fn(13));return c.sliceCaseReducersByType[T]=C,d},addMatcher(b,C){return c.sliceMatchers.push({matcher:b,reducer:C}),d},exposeAction(b,C){return c.actionCreators[b]=C,d},exposeCaseReducer(b,C){return c.sliceCaseReducersByName[b]=C,d}};l.forEach(b=>{const C=s[b],T={reducerName:b,type:D4(o,b),createNotation:typeof i.reducers=="function"};B4(C)?z4(T,C,d,t):$4(T,C,d)});function p(){const[b={},C=[],T=void 0]=typeof i.extraReducers=="function"?XE(i.extraReducers):[i.extraReducers],P={...b,...c.sliceCaseReducersByType};return k4(i.initialState,E=>{for(let A in P)E.addCase(A,P[A]);for(let A of c.sliceMatchers)E.addMatcher(A.matcher,A.reducer);for(let A of C)E.addMatcher(A.matcher,A.reducer);T&&E.addDefaultCase(T)})}const h=b=>b,v=new Map;let g;function x(b,C){return g||(g=p()),g(b,C)}function y(){return g||(g=p()),g.getInitialState()}function S(b,C=!1){function T(E){let A=E[b];return typeof A>"u"&&C&&(A=y()),A}function P(E=h){const A=KT(v,C,{insert:()=>new WeakMap});return KT(A,E,{insert:()=>{const O={};for(const[R,L]of Object.entries(i.selectors??{}))O[R]=O4(L,E,y,C);return O}})}return{reducerPath:b,getSelectors:P,get selectors(){return P(T)},selectSlice:T}}const w={name:o,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...S(a),injectInto(b,{reducerPath:C,...T}={}){const P=C??a;return b.inject({reducerPath:P,reducer:x},T),{...w,...S(P,!0)}}};return w}}function O4(e,t,r,n){function i(o,...a){let s=t(o);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return i.unwrapped=e,i}var ki=L4();function N4(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function $4({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!F4(n))throw new Error(fn(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?wn(e,a):wn(e))}function B4(e){return e._reducerDefinitionType==="asyncThunk"}function F4(e){return e._reducerDefinitionType==="reducerWithPrepare"}function z4({type:e,reducerName:t},r,n,i){if(!i)throw new Error(fn(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:d}=r,p=i(e,o,d);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),s&&n.addCase(p.pending,s),l&&n.addCase(p.rejected,l),c&&n.addMatcher(p.settled,c),n.exposeCaseReducer(t,{fulfilled:a||mh,pending:s||mh,rejected:l||mh,settled:c||mh})}function mh(){}var j4=(e,t)=>{if(typeof e!="function")throw new Error(fn(32))},eb="listenerMiddleware",W4=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=wn(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(fn(21));return j4(o),{predicate:i,type:t,effect:o}},H4=Object.assign(e=>{const{type:t,predicate:r,effect:n}=W4(e);return{id:ZS(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(fn(22))}}},{withTypes:()=>H4}),V4=Object.assign(wn(`${eb}/add`),{withTypes:()=>V4});wn(`${eb}/removeAll`);var U4=Object.assign(wn(`${eb}/remove`),{withTypes:()=>U4});function fn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _0={exports:{}},C0={};/**
41
- * @license React
42
- * use-sync-external-store-with-selector.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var ZT;function G4(){if(ZT)return C0;ZT=1;var e=kg();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return C0.useSyncExternalStoreWithSelector=function(l,c,d,p,h){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function y(T){if(!S){if(S=!0,w=T,T=p(T),h!==void 0&&g.hasValue){var P=g.value;if(h(P,T))return b=P}return b=T}if(P=b,r(w,T))return P;var E=p(T);return h!==void 0&&h(P,E)?P:(w=T,b=E)}var S=!1,w,b,C=d===void 0?null:d;return[function(){return y(c())},C===null?void 0:function(){return y(C())}]},[c,d,p,h]);var x=n(l,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=x},[x]),s(x),x},C0}var JT;function Y4(){return JT||(JT=1,_0.exports=G4()),_0.exports}var q4=Y4(),kt="default"in cd?eo:cd,e2=Symbol.for("react-redux-context"),t2=typeof globalThis<"u"?globalThis:{};function K4(){if(!kt.createContext)return{};const e=t2[e2]??(t2[e2]=new Map);let t=e.get(kt.createContext);return t||(t=kt.createContext(null),e.set(kt.createContext,t)),t}var ca=K4(),ZE=()=>{throw new Error("uSES not initialized!")};function tb(e=ca){return function(){return kt.useContext(e)}}var JE=tb(),eI=ZE,X4=e=>{eI=e},Q4=(e,t)=>e===t;function Z4(e=ca){const t=e===ca?JE:tb(e),r=(n,i={})=>{const{equalityFn:o=Q4,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();kt.useRef(!0);const h=kt.useCallback({[n.name](g){return n(g)}}[n.name],[n,d,a.stabilityCheck]),v=eI(l.addNestedSub,s.getState,c||s.getState,h,o);return kt.useDebugValue(v),v};return Object.assign(r,{withTypes:()=>r}),r}var tI=Z4(),J4=Symbol.for("react.element"),e$=Symbol.for("react.portal"),t$=Symbol.for("react.fragment"),r$=Symbol.for("react.strict_mode"),n$=Symbol.for("react.profiler"),i$=Symbol.for("react.provider"),o$=Symbol.for("react.context"),a$=Symbol.for("react.server_context"),rI=Symbol.for("react.forward_ref"),s$=Symbol.for("react.suspense"),l$=Symbol.for("react.suspense_list"),rb=Symbol.for("react.memo"),u$=Symbol.for("react.lazy"),c$=rI,f$=rb;function d$(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case J4:{const r=e.type;switch(r){case t$:case n$:case r$:case s$:case l$:return r;default:{const n=r&&r.$$typeof;switch(n){case a$:case o$:case rI:case u$:case rb:case i$:return n;default:return t}}}}case e$:return t}}}function p$(e){return d$(e)===rb}function h$(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,d,p,h;function v(w,b){return l=w,c=b,d=e(l,c),p=t(n,c),h=r(d,p,c),s=!0,h}function g(){return d=e(l,c),t.dependsOnOwnProps&&(p=t(n,c)),h=r(d,p,c),h}function x(){return e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(p=t(n,c)),h=r(d,p,c),h}function y(){const w=e(l,c),b=!a(w,d);return d=w,b&&(h=r(d,p,c)),h}function S(w,b){const C=!o(b,c),T=!i(w,l,b,c);return l=w,c=b,C&&T?g():C?x():T?y():h}return function(b,C){return s?S(b,C):v(b,C)}}function v$(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const o=t(e,i),a=r(e,i),s=n(e,i);return h$(o,a,s,e,i)}function g$(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...o)=>t(i(...o)))}return r}function dx(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function r2(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function nI(e,t){return function(n,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=r2(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=r2(c),c=o(s,l)),c},o}}function nb(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function m$(e){return e&&typeof e=="object"?dx(t=>g$(e,t)):e?typeof e=="function"?nI(e):nb(e,"mapDispatchToProps"):dx(t=>({dispatch:t}))}function y$(e){return e?typeof e=="function"?nI(e):nb(e,"mapStateToProps"):dx(()=>({}))}function x$(e,t,r){return{...r,...e,...t}}function S$(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,d){const p=e(l,c,d);return o?i(p,a)||(a=p):(o=!0,a=p),a}}}function b$(e){return e?typeof e=="function"?S$(e):nb(e,"mergeProps"):()=>x$}function iI(e){e()}function w$(){let e=null,t=null;return{clear(){e=null,t=null},notify(){iI(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var n2={notify(){},get:()=>[]};function oI(e,t){let r,n=n2,i=0,o=!1;function a(x){d();const y=n.subscribe(x);let S=!1;return()=>{S||(S=!0,y(),p())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return o}function d(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=w$())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=n2)}function h(){o||(o=!0,d())}function v(){o&&(o=!1,p())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:v,getListeners:()=>n};return g}var _$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",C$=typeof navigator<"u"&&navigator.product==="ReactNative",Uv=_$||C$?kt.useLayoutEffect:kt.useEffect;function i2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function rs(e,t){if(i2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!i2(e[r[i]],t[r[i]]))return!1;return!0}var T$={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},k$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},P$={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R$={[c$]:P$,[f$]:aI};function o2(e){return p$(e)?aI:R$[e.$$typeof]||T$}var M$=Object.defineProperty,E$=Object.getOwnPropertyNames,a2=Object.getOwnPropertySymbols,I$=Object.getOwnPropertyDescriptor,A$=Object.getPrototypeOf,s2=Object.prototype;function px(e,t){if(typeof t!="string"){if(s2){const o=A$(t);o&&o!==s2&&px(e,o)}let r=E$(t);a2&&(r=r.concat(a2(t)));const n=o2(e),i=o2(t);for(let o=0;o<r.length;++o){const a=r[o];if(!k$[a]&&!(i&&i[a])&&!(n&&n[a])){const s=I$(t,a);try{M$(e,a,s)}catch{}}}}return e}var sI=ZE,D$=e=>{sI=e},L$=[null,null];function O$(e,t,r){Uv(()=>e(...t),r)}function N$(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function $$(e,t,r,n,i,o,a,s,l,c,d){if(!e)return()=>{};let p=!1,h=null;const v=()=>{if(p||!s.current)return;const x=t.getState();let y,S;try{y=n(x,i.current)}catch(w){S=w,h=w}S||(h=null),y===o.current?a.current||c():(o.current=y,l.current=y,a.current=!0,d())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function B$(e,t){return e===t}function F$(e,t,r,{pure:n,areStatesEqual:i=B$,areOwnPropsEqual:o=rs,areStatePropsEqual:a=rs,areMergedPropsEqual:s=rs,forwardRef:l=!1,context:c=ca}={}){const d=c,p=y$(e),h=m$(t),v=b$(r),g=!!e;return y=>{const S=y.displayName||y.name||"Component",w=`Connect(${S})`,b={shouldHandleStateChanges:g,displayName:w,wrappedComponentName:S,WrappedComponent:y,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function C(E){const[A,O,R]=kt.useMemo(()=>{const{reactReduxForwardedRef:pe,...Oe}=E;return[E.context,pe,Oe]},[E]),L=kt.useMemo(()=>{let pe=d;return A!=null&&A.Consumer,pe},[A,d]),N=kt.useContext(L),B=!!E.store&&!!E.store.getState&&!!E.store.dispatch,F=!!N&&!!N.store,z=B?E.store:N.store,j=F?N.getServerState:z.getState,X=kt.useMemo(()=>v$(z.dispatch,b),[z]),[V,H]=kt.useMemo(()=>{if(!g)return L$;const pe=oI(z,B?void 0:N.subscription),Oe=pe.notifyNestedSubs.bind(pe);return[pe,Oe]},[z,B,N]),G=kt.useMemo(()=>B?N:{...N,subscription:V},[B,N,V]),W=kt.useRef(void 0),Y=kt.useRef(R),te=kt.useRef(void 0),le=kt.useRef(!1),ne=kt.useRef(!1),Z=kt.useRef(void 0);Uv(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ce=kt.useMemo(()=>()=>te.current&&R===Y.current?te.current:X(z.getState(),R),[z,R]),me=kt.useMemo(()=>Oe=>V?$$(g,z,V,X,Y,W,le,ne,te,H,Oe):()=>{},[V]);O$(N$,[Y,W,le,R,te,H]);let de;try{de=sI(me,ce,j?()=>X(j(),R):ce)}catch(pe){throw Z.current&&(pe.message+=`
49
- The error may be correlated with this previous error:
50
- ${Z.current.stack}
51
-
52
- `),pe}Uv(()=>{Z.current=void 0,te.current=void 0,W.current=de});const fe=kt.useMemo(()=>kt.createElement(y,{...de,ref:O}),[O,y,de]);return kt.useMemo(()=>g?kt.createElement(L.Provider,{value:G},fe):fe,[L,fe,G])}const P=kt.memo(C);if(P.WrappedComponent=y,P.displayName=C.displayName=w,l){const A=kt.forwardRef(function(R,L){return kt.createElement(P,{...R,reactReduxForwardedRef:L})});return A.displayName=w,A.WrappedComponent=y,px(A,y)}return px(P,y)}}var ui=F$;function z$({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=kt.useMemo(()=>{const c=oI(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,n,i,o]),s=kt.useMemo(()=>e.getState(),[e]);Uv(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||ca;return kt.createElement(l.Provider,{value:a},r)}var l2=z$;function lI(e=ca){const t=e===ca?JE:tb(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var uI=lI();function j$(e=ca){const t=e===ca?uI:lI(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var cI=j$(),W$=iI;X4(q4.useSyncExternalStoreWithSelector);D$(D.useSyncExternalStore);function fI(e,t,r){return t&&(Array.isArray(t)?t.map(n=>fI(e,n,r)):typeof t=="object"?ib(t,r):t)}const ib=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:fI(e,i,t)}),{}),dI=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),H$=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),fl=e=>ib(e,dI),u2=e=>ib(e,H$),hx=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),V$=e=>Object.fromEntries(new URLSearchParams(e).entries()),U$=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(n))+" "+i[o]},c2=!!window.authArgs&&fl(window.authArgs),gd={black:"#000",white:"#fff"},Qa={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},cu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},al={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},fu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},sl={50:"#e8f5e9",300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},G$={900:"#ff6f00"},tf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},vx={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"};function fa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const To="$$material";function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gv.apply(null,arguments)}function Y$(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 q$(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 K$=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(q$(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Y$(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),sn="-ms-",Yv="-moz-",It="-webkit-",pI="comm",ob="rule",ab="decl",X$="@import",hI="@keyframes",Q$="@layer",Z$=Math.abs,Ig=String.fromCharCode,J$=Object.assign;function eB(e,t){return Yr(e,0)^45?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}function vI(e){return e.trim()}function tB(e,t){return(e=t.exec(e))?e[0]:e}function At(e,t,r){return e.replace(t,r)}function gx(e,t){return e.indexOf(t)}function Yr(e,t){return e.charCodeAt(t)|0}function md(e,t,r){return e.slice(t,r)}function yo(e){return e.length}function sb(e){return e.length}function yh(e,t){return t.push(e),e}function rB(e,t){return e.map(t).join("")}var Ag=1,Xu=1,gI=0,zn=0,Er=0,sc="";function Dg(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ag,column:Xu,length:a,return:""}}function rf(e,t){return J$(Dg("",null,null,"",null,null,0),e,{length:-e.length},t)}function nB(){return Er}function iB(){return Er=zn>0?Yr(sc,--zn):0,Xu--,Er===10&&(Xu=1,Ag--),Er}function ni(){return Er=zn<gI?Yr(sc,zn++):0,Xu++,Er===10&&(Xu=1,Ag++),Er}function ko(){return Yr(sc,zn)}function xv(){return zn}function Gd(e,t){return md(sc,e,t)}function yd(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 mI(e){return Ag=Xu=1,gI=yo(sc=e),zn=0,[]}function yI(e){return sc="",e}function Sv(e){return vI(Gd(zn-1,mx(e===91?e+2:e===40?e+1:e)))}function oB(e){for(;(Er=ko())&&Er<33;)ni();return yd(e)>2||yd(Er)>3?"":" "}function aB(e,t){for(;--t&&ni()&&!(Er<48||Er>102||Er>57&&Er<65||Er>70&&Er<97););return Gd(e,xv()+(t<6&&ko()==32&&ni()==32))}function mx(e){for(;ni();)switch(Er){case e:return zn;case 34:case 39:e!==34&&e!==39&&mx(Er);break;case 40:e===41&&mx(e);break;case 92:ni();break}return zn}function sB(e,t){for(;ni()&&e+Er!==57;)if(e+Er===84&&ko()===47)break;return"/*"+Gd(t,zn-1)+"*"+Ig(e===47?e:ni())}function lB(e){for(;!yd(ko());)ni();return Gd(e,zn)}function uB(e){return yI(bv("",null,null,null,[""],e=mI(e),0,[0],e))}function bv(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,p=a,h=0,v=0,g=0,x=1,y=1,S=1,w=0,b="",C=i,T=o,P=n,E=b;y;)switch(g=w,w=ni()){case 40:if(g!=108&&Yr(E,p-1)==58){gx(E+=At(Sv(w),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:E+=Sv(w);break;case 9:case 10:case 13:case 32:E+=oB(g);break;case 92:E+=aB(xv()-1,7);continue;case 47:switch(ko()){case 42:case 47:yh(cB(sB(ni(),xv()),t,r),l);break;default:E+="/"}break;case 123*x:s[c++]=yo(E)*S;case 125*x:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:S==-1&&(E=At(E,/\f/g,"")),v>0&&yo(E)-p&&yh(v>32?d2(E+";",n,r,p-1):d2(At(E," ","")+";",n,r,p-2),l);break;case 59:E+=";";default:if(yh(P=f2(E,t,r,c,d,i,s,b,C=[],T=[],p),o),w===123)if(d===0)bv(E,t,P,P,C,o,p,s,T);else switch(h===99&&Yr(E,3)===110?100:h){case 100:case 108:case 109:case 115:bv(e,P,P,n&&yh(f2(e,P,P,0,0,i,s,b,i,C=[],p),T),i,T,p,s,n?C:T);break;default:bv(E,P,P,P,[""],T,0,s,T)}}c=d=v=0,x=S=1,b=E="",p=a;break;case 58:p=1+yo(E),v=g;default:if(x<1){if(w==123)--x;else if(w==125&&x++==0&&iB()==125)continue}switch(E+=Ig(w),w*x){case 38:S=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(yo(E)-1)*S,S=1;break;case 64:ko()===45&&(E+=Sv(ni())),h=ko(),d=p=yo(b=E+=lB(xv())),w++;break;case 45:g===45&&yo(E)==2&&(x=0)}}return o}function f2(e,t,r,n,i,o,a,s,l,c,d){for(var p=i-1,h=i===0?o:[""],v=sb(h),g=0,x=0,y=0;g<n;++g)for(var S=0,w=md(e,p+1,p=Z$(x=a[g])),b=e;S<v;++S)(b=vI(x>0?h[S]+" "+w:At(w,/&\f/g,h[S])))&&(l[y++]=b);return Dg(e,t,r,i===0?ob:s,l,c,d)}function cB(e,t,r){return Dg(e,t,r,pI,Ig(nB()),md(e,2,-2),0)}function d2(e,t,r,n){return Dg(e,t,r,ab,md(e,0,n),md(e,n+1,-1),n)}function Bu(e,t){for(var r="",n=sb(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function fB(e,t,r,n){switch(e.type){case Q$:if(e.children.length)break;case X$:case ab:return e.return=e.return||e.value;case pI:return"";case hI:return e.return=e.value+"{"+Bu(e.children,n)+"}";case ob:e.value=e.props.join(",")}return yo(r=Bu(e.children,n))?e.return=e.value+"{"+r+"}":""}function dB(e){var t=sb(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function pB(e){return function(t){t.root||(t=t.return)&&e(t)}}function xI(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var hB=function(t,r,n){for(var i=0,o=0;i=o,o=ko(),i===38&&o===12&&(r[n]=1),!yd(o);)ni();return Gd(t,zn)},vB=function(t,r){var n=-1,i=44;do switch(yd(i)){case 0:i===38&&ko()===12&&(r[n]=1),t[n]+=hB(zn-1,r,n);break;case 2:t[n]+=Sv(i);break;case 4:if(i===44){t[++n]=ko()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ig(i)}while(i=ni());return t},gB=function(t,r){return yI(vB(mI(t),r))},p2=new WeakMap,mB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!p2.get(n))&&!i){p2.set(t,!0);for(var o=[],a=gB(r,o),s=n.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},yB=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function SI(e,t){switch(eB(e,t)){case 5103:return It+"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 It+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return It+e+Yv+e+sn+e+e;case 6828:case 4268:return It+e+sn+e+e;case 6165:return It+e+sn+"flex-"+e+e;case 5187:return It+e+At(e,/(\w+).+(:[^]+)/,It+"box-$1$2"+sn+"flex-$1$2")+e;case 5443:return It+e+sn+"flex-item-"+At(e,/flex-|-self/,"")+e;case 4675:return It+e+sn+"flex-line-pack"+At(e,/align-content|flex-|-self/,"")+e;case 5548:return It+e+sn+At(e,"shrink","negative")+e;case 5292:return It+e+sn+At(e,"basis","preferred-size")+e;case 6060:return It+"box-"+At(e,"-grow","")+It+e+sn+At(e,"grow","positive")+e;case 4554:return It+At(e,/([^-])(transform)/g,"$1"+It+"$2")+e;case 6187:return At(At(At(e,/(zoom-|grab)/,It+"$1"),/(image-set)/,It+"$1"),e,"")+e;case 5495:case 3959:return At(e,/(image-set\([^]*)/,It+"$1$`$1");case 4968:return At(At(e,/(.+:)(flex-)?(.*)/,It+"box-pack:$3"+sn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+It+e+e;case 4095:case 3583:case 4068:case 2532:return At(e,/(.+)-inline(.+)/,It+"$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(yo(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return At(e,/(.+:)(.+)-([^]+)/,"$1"+It+"$2-$3$1"+Yv+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gx(e,"stretch")?SI(At(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,yo(e)-3-(~gx(e,"!important")&&10))){case 107:return At(e,":",":"+It)+e;case 101:return At(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+It+(Yr(e,14)===45?"inline-":"")+"box$3$1"+It+"$2$3$1"+sn+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return It+e+sn+At(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return It+e+sn+At(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return It+e+sn+At(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return It+e+sn+e+e}return e}var xB=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ab:t.return=SI(t.value,t.length);break;case hI:return Bu([rf(t,{value:At(t.value,"@","@"+It)})],i);case ob:if(t.length)return rB(t.props,function(o){switch(tB(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bu([rf(t,{props:[At(o,/:(read-\w+)/,":"+Yv+"$1")]})],i);case"::placeholder":return Bu([rf(t,{props:[At(o,/:(plac\w+)/,":"+It+"input-$1")]}),rf(t,{props:[At(o,/:(plac\w+)/,":"+Yv+"$1")]}),rf(t,{props:[At(o,/:(plac\w+)/,sn+"input-$1")]})],i)}return""})}},SB=[xB],bB=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var y=x.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||SB,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)o[y[S]]=!0;s.push(x)});var l,c=[mB,yB];{var d,p=[fB,pB(function(x){d.insert(x)})],h=dB(c.concat(i,p)),v=function(y){return Bu(uB(y),h)};l=function(y,S,w,b){d=w,v(y?y+"{"+S.styles+"}":S.styles),b&&(g.inserted[S.name]=!0)}}var g={key:r,sheet:new K$({key:r,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},T0={exports:{}},Lt={};/** @license React v16.13.1
53
- * react-is.production.min.js
54
- *
55
- * Copyright (c) Facebook, Inc. and its affiliates.
56
- *
57
- * This source code is licensed under the MIT license found in the
58
- * LICENSE file in the root directory of this source tree.
59
- */var h2;function wB(){if(h2)return Lt;h2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=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,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var P=T.$$typeof;switch(P){case t:switch(T=T.type,T){case l:case c:case n:case o:case i:case p:return T;default:switch(T=T&&T.$$typeof,T){case s:case d:case g:case v:case a:return T;default:return P}}case r:return P}}}function C(T){return b(T)===c}return Lt.AsyncMode=l,Lt.ConcurrentMode=c,Lt.ContextConsumer=s,Lt.ContextProvider=a,Lt.Element=t,Lt.ForwardRef=d,Lt.Fragment=n,Lt.Lazy=g,Lt.Memo=v,Lt.Portal=r,Lt.Profiler=o,Lt.StrictMode=i,Lt.Suspense=p,Lt.isAsyncMode=function(T){return C(T)||b(T)===l},Lt.isConcurrentMode=C,Lt.isContextConsumer=function(T){return b(T)===s},Lt.isContextProvider=function(T){return b(T)===a},Lt.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Lt.isForwardRef=function(T){return b(T)===d},Lt.isFragment=function(T){return b(T)===n},Lt.isLazy=function(T){return b(T)===g},Lt.isMemo=function(T){return b(T)===v},Lt.isPortal=function(T){return b(T)===r},Lt.isProfiler=function(T){return b(T)===o},Lt.isStrictMode=function(T){return b(T)===i},Lt.isSuspense=function(T){return b(T)===p},Lt.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===c||T===o||T===i||T===p||T===h||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===v||T.$$typeof===a||T.$$typeof===s||T.$$typeof===d||T.$$typeof===y||T.$$typeof===S||T.$$typeof===w||T.$$typeof===x)},Lt.typeOf=b,Lt}var v2;function _B(){return v2||(v2=1,T0.exports=wB()),T0.exports}var k0,g2;function CB(){if(g2)return k0;g2=1;var e=_B(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$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]=n,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,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;function v(g,x,y){if(typeof x!="string"){if(h){var S=p(x);S&&S!==h&&v(g,S,y)}var w=l(x);c&&(w=w.concat(c(x)));for(var b=a(g),C=a(x),T=0;T<w.length;++T){var P=w[T];if(!r[P]&&!(y&&y[P])&&!(C&&C[P])&&!(b&&b[P])){var E=d(x,P);try{s(g,P,E)}catch{}}}}return g}return k0=v,k0}CB();var TB=!0;function bI(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var lb=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||TB===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},ub=function(t,r,n){lb(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function kB(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 PB={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},RB=/[A-Z]|^ms/g,MB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wI=function(t){return t.charCodeAt(1)===45},m2=function(t){return t!=null&&typeof t!="boolean"},P0=xI(function(e){return wI(e)?e:e.replace(RB,"-$&").toLowerCase()}),y2=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(MB,function(n,i,o){return xo={name:i,styles:o,next:xo},i})}return PB[t]!==1&&!wI(t)&&typeof r=="number"&&r!==0?r+"px":r};function xd(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return xo={name:i.name,styles:i.styles,next:xo},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)xo={name:a.name,styles:a.styles,next:xo},a=a.next;var s=o.styles+";";return s}return EB(e,t,r)}case"function":{if(e!==void 0){var l=xo,c=r(e);return xo=l,xd(e,t,c)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function EB(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=xd(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":m2(s)&&(n+=P0(o)+":"+y2(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++)m2(a[l])&&(n+=P0(o)+":"+y2(o,a[l])+";");else{var c=xd(e,t,a);switch(o){case"animation":case"animationName":{n+=P0(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var x2=/label:\s*([^\s;{]+)\s*(;|$)/g,xo;function Yd(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";xo=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=xd(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=xd(r,t,e[s]),n){var l=o;i+=l[s]}x2.lastIndex=0;for(var c="",d;(d=x2.exec(i))!==null;)c+="-"+d[1];var p=kB(i)+c;return{name:p,styles:i,next:xo}}var IB=function(t){return t()},_I=cd.useInsertionEffect?cd.useInsertionEffect:!1,CI=_I||IB,S2=_I||D.useLayoutEffect,TI=D.createContext(typeof HTMLElement<"u"?bB({key:"css"}):null);TI.Provider;var cb=function(t){return D.forwardRef(function(r,n){var i=D.useContext(TI);return t(r,i,n)})},qd=D.createContext({}),fb={}.hasOwnProperty,yx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",AB=function(t,r){var n={};for(var i in r)fb.call(r,i)&&(n[i]=r[i]);return n[yx]=t,n},DB=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return lb(r,n,i),CI(function(){return ub(r,n,i)}),null},LB=cb(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[yx],o=[n],a="";typeof e.className=="string"?a=bI(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Yd(o,void 0,D.useContext(qd));a+=t.key+"-"+s.name;var l={};for(var c in e)fb.call(e,c)&&c!=="css"&&c!==yx&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),D.createElement(D.Fragment,null,D.createElement(DB,{cache:t,serialized:s,isStringTag:typeof i=="string"}),D.createElement(i,l))}),OB=LB,b2=function(t,r){var n=arguments;if(r==null||!fb.call(r,"css"))return D.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=OB,o[1]=AB(t,r);for(var a=2;a<i;a++)o[a]=n[a];return D.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(b2||(b2={}));var NB=cb(function(e,t){var r=e.styles,n=Yd([r],void 0,D.useContext(qd)),i=D.useRef();return S2(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+" "+n.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]),S2(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&ub(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function db(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Yd(t)}function Kd(){var e=db.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 $B=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,BB=xI(function(e){return $B.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FB=BB,zB=function(t){return t!=="theme"},w2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FB:zB},_2=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},jB=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return lb(r,n,i),CI(function(){return ub(r,n,i)}),null},WB=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=_2(t,r,n),l=s||w2(i),c=!l("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var v=d.length,g=1;g<v;g++)p.push(d[g],h[g])}var x=cb(function(y,S,w){var b=c&&y.as||i,C="",T=[],P=y;if(y.theme==null){P={};for(var E in y)P[E]=y[E];P.theme=D.useContext(qd)}typeof y.className=="string"?C=bI(S.registered,T,y.className):y.className!=null&&(C=y.className+" ");var A=Yd(p.concat(T),S.registered,P);C+=S.key+"-"+A.name,a!==void 0&&(C+=" "+a);var O=c&&s===void 0?w2(b):l,R={};for(var L in y)c&&L==="as"||O(L)&&(R[L]=y[L]);return R.className=C,w&&(R.ref=w),D.createElement(D.Fragment,null,D.createElement(jB,{cache:S,serialized:A,isStringTag:typeof b=="string"}),D.createElement(b,R))});return x.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=p,x.__emotion_forwardProp=s,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(y,S){var w=e(y,Gv({},r,S,{shouldForwardProp:_2(x,S,!0)}));return w.apply(void 0,p)},x}},HB=["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"],xx=WB.bind(null);HB.forEach(function(e){xx[e]=xx(e)});function VB(e){return e==null||Object.keys(e).length===0}function kI(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(VB(i)?r:i):t;return M.jsx(NB,{styles:n})}function PI(e,t){return xx(e,t)}function UB(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const C2=[];function T2(e){return C2[0]=e,Yd(C2)}var R0={exports:{}},Vt={};/**
60
- * @license React
61
- * react-is.production.js
62
- *
63
- * Copyright (c) Meta Platforms, Inc. and affiliates.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */var k2;function GB(){if(k2)return Vt;k2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=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"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function g(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case e:switch(x=x.type,x){case r:case i:case n:case l:case c:case h:return x;default:switch(x=x&&x.$$typeof,x){case a:case s:case p:case d:return x;case o:return x;default:return y}}case t:return y}}}return Vt.ContextConsumer=o,Vt.ContextProvider=a,Vt.Element=e,Vt.ForwardRef=s,Vt.Fragment=r,Vt.Lazy=p,Vt.Memo=d,Vt.Portal=t,Vt.Profiler=i,Vt.StrictMode=n,Vt.Suspense=l,Vt.SuspenseList=c,Vt.isContextConsumer=function(x){return g(x)===o},Vt.isContextProvider=function(x){return g(x)===a},Vt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Vt.isForwardRef=function(x){return g(x)===s},Vt.isFragment=function(x){return g(x)===r},Vt.isLazy=function(x){return g(x)===p},Vt.isMemo=function(x){return g(x)===d},Vt.isPortal=function(x){return g(x)===t},Vt.isProfiler=function(x){return g(x)===i},Vt.isStrictMode=function(x){return g(x)===n},Vt.isSuspense=function(x){return g(x)===l},Vt.isSuspenseList=function(x){return g(x)===c},Vt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===l||x===c||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===d||x.$$typeof===a||x.$$typeof===o||x.$$typeof===s||x.$$typeof===v||x.getModuleId!==void 0)},Vt.typeOf=g,Vt}var P2;function YB(){return P2||(P2=1,R0.exports=GB()),R0.exports}var RI=YB();function So(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 MI(e){if(D.isValidElement(e)||RI.isValidElementType(e)||!So(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=MI(e[r])}),t}function jr(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return So(e)&&So(t)&&Object.keys(t).forEach(i=>{D.isValidElement(t[i])||RI.isValidElementType(t[i])?n[i]=t[i]:So(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&So(e[i])?n[i]=jr(e[i],t[i],r):r.clone?n[i]=So(t[i])?MI(t[i]):t[i]:n[i]=t[i]}),n}const qB=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function KB(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,o=qB(t),a=Object.keys(o);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,v){const g=a.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:v)-n/100}${r})`}function d(h){return a.indexOf(h)+1<a.length?c(h,a[a.indexOf(h)+1]):s(h)}function p(h){const v=a.indexOf(h);return v===0?s(a[1]):v===a.length-1?l(a[v]):c(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:s,down:l,between:c,only:d,not:p,unit:r,...i}}function XB(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var a,s;const o=/min-width:\s*([0-9.]+)/;return+(((a=n.match(o))==null?void 0:a[1])||0)-+(((s=i.match(o))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const o=t[i];return delete n[i],n[i]=o,n},{...t}):t}function QB(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ZB(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}function JB(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function r(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 n={},i=o=>(r(n,o),n);return r(i),{...e,containerQueries:i}}const eF={borderRadius:4};function Uf(e,t){return t?jr(e,t,{clone:!1}):e}const Lg={xs:0,sm:600,md:900,lg:1200,xl:1536},R2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lg[e]}px)`},tF={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Lg[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function io(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||R2;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||R2;return Object.keys(t).reduce((a,s)=>{if(QB(o.keys,s)){const l=ZB(n.containerQueries?n:tF,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(o.values||Lg).includes(s)){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function EI(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function II(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function rF(e,...t){const r=EI(e),n=[r,...t].reduce((i,o)=>jr(i,o),{});return II(Object.keys(r),n)}function nF(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,o)=>{o<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function M0({values:e,breakpoints:t,base:r}){const n=r||nF(e,t),i=Object.keys(n);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function ue(e){if(typeof e!="string")throw new Error(fa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ja(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function qv(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Ja(e,r)||n,t&&(i=t(i,n,e)),i}function Cr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ja(l,n)||{};return io(a,s,p=>{let h=qv(c,i,p);return p===h&&typeof p=="string"&&(h=qv(c,i,`${t}${p==="default"?"":ue(p)}`,p)),r===!1?h:{[r]:h}})};return o.propTypes={},o.filterProps=[t],o}function iF(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const oF={m:"margin",p:"padding"},aF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},M2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sF=iF(e=>{if(e.length>2)if(M2[e])e=M2[e];else return[e];const[t,r]=e.split(""),n=oF[t],i=aF[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),pb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pb,...hb];function Xd(e,t,r,n){const i=Ja(e,t,!0)??r;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 Og(e){return Xd(e,"spacing",8)}function El(e,t){return typeof t=="string"||t==null?t:e(t)}function lF(e,t){return r=>e.reduce((n,i)=>(n[i]=El(t,r),n),{})}function uF(e,t,r,n){if(!t.includes(r))return null;const i=sF(r),o=lF(i,n),a=e[r];return io(e,a,o)}function AI(e,t){const r=Og(e.theme);return Object.keys(e).map(n=>uF(e,t,n,r)).reduce(Uf,{})}function gr(e){return AI(e,pb)}gr.propTypes={};gr.filterProps=pb;function mr(e){return AI(e,hb)}mr.propTypes={};mr.filterProps=hb;function DI(e=8,t=Og({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Ng(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?Uf(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Pi(e){return typeof e!="number"?e:`${e}px solid`}function Ni(e,t){return Cr({prop:e,themeKey:"borders",transform:t})}const cF=Ni("border",Pi),fF=Ni("borderTop",Pi),dF=Ni("borderRight",Pi),pF=Ni("borderBottom",Pi),hF=Ni("borderLeft",Pi),vF=Ni("borderColor"),gF=Ni("borderTopColor"),mF=Ni("borderRightColor"),yF=Ni("borderBottomColor"),xF=Ni("borderLeftColor"),SF=Ni("outline",Pi),bF=Ni("outlineColor"),$g=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xd(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:El(t,n)});return io(e,e.borderRadius,r)}return null};$g.propTypes={};$g.filterProps=["borderRadius"];Ng(cF,fF,dF,pF,hF,vF,gF,mF,yF,xF,$g,SF,bF);const Bg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xd(e.theme,"spacing",8),r=n=>({gap:El(t,n)});return io(e,e.gap,r)}return null};Bg.propTypes={};Bg.filterProps=["gap"];const Fg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xd(e.theme,"spacing",8),r=n=>({columnGap:El(t,n)});return io(e,e.columnGap,r)}return null};Fg.propTypes={};Fg.filterProps=["columnGap"];const zg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xd(e.theme,"spacing",8),r=n=>({rowGap:El(t,n)});return io(e,e.rowGap,r)}return null};zg.propTypes={};zg.filterProps=["rowGap"];const wF=Cr({prop:"gridColumn"}),_F=Cr({prop:"gridRow"}),CF=Cr({prop:"gridAutoFlow"}),TF=Cr({prop:"gridAutoColumns"}),kF=Cr({prop:"gridAutoRows"}),PF=Cr({prop:"gridTemplateColumns"}),RF=Cr({prop:"gridTemplateRows"}),MF=Cr({prop:"gridTemplateAreas"}),EF=Cr({prop:"gridArea"});Ng(Bg,Fg,zg,wF,_F,CF,TF,kF,PF,RF,MF,EF);function Fu(e,t){return t==="grey"?t:e}const IF=Cr({prop:"color",themeKey:"palette",transform:Fu}),AF=Cr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fu}),DF=Cr({prop:"backgroundColor",themeKey:"palette",transform:Fu});Ng(IF,AF,DF);function ri(e){return e<=1&&e!==0?`${e*100}%`:e}const LF=Cr({prop:"width",transform:ri}),vb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,o,a,s,l;const n=((a=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[r])||Lg[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ri(r)}};return io(e,e.maxWidth,t)}return null};vb.filterProps=["maxWidth"];const OF=Cr({prop:"minWidth",transform:ri}),NF=Cr({prop:"height",transform:ri}),$F=Cr({prop:"maxHeight",transform:ri}),BF=Cr({prop:"minHeight",transform:ri});Cr({prop:"size",cssProperty:"width",transform:ri});Cr({prop:"size",cssProperty:"height",transform:ri});const FF=Cr({prop:"boxSizing"});Ng(LF,vb,OF,NF,$F,BF,FF);const Qd={border:{themeKey:"borders",transform:Pi},borderTop:{themeKey:"borders",transform:Pi},borderRight:{themeKey:"borders",transform:Pi},borderBottom:{themeKey:"borders",transform:Pi},borderLeft:{themeKey:"borders",transform:Pi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$g},color:{themeKey:"palette",transform:Fu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fu},backgroundColor:{themeKey:"palette",transform:Fu},p:{style:mr},pt:{style:mr},pr:{style:mr},pb:{style:mr},pl:{style:mr},px:{style:mr},py:{style:mr},padding:{style:mr},paddingTop:{style:mr},paddingRight:{style:mr},paddingBottom:{style:mr},paddingLeft:{style:mr},paddingX:{style:mr},paddingY:{style:mr},paddingInline:{style:mr},paddingInlineStart:{style:mr},paddingInlineEnd:{style:mr},paddingBlock:{style:mr},paddingBlockStart:{style:mr},paddingBlockEnd:{style:mr},m:{style:gr},mt:{style:gr},mr:{style:gr},mb:{style:gr},ml:{style:gr},mx:{style:gr},my:{style:gr},margin:{style:gr},marginTop:{style:gr},marginRight:{style:gr},marginBottom:{style:gr},marginLeft:{style:gr},marginX:{style:gr},marginY:{style:gr},marginInline:{style:gr},marginInlineStart:{style:gr},marginInlineEnd:{style:gr},marginBlock:{style:gr},marginBlockStart:{style:gr},marginBlockEnd:{style:gr},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:Bg},rowGap:{style:zg},columnGap:{style:Fg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ri},maxWidth:{style:vb},minWidth:{transform:ri},height:{transform:ri},maxHeight:{transform:ri},minHeight:{transform:ri},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 zF(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function jF(e,t){return typeof e=="function"?e(t):e}function WF(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=Ja(i,c)||{};return p?p(a):io(a,n,g=>{let x=qv(h,d,g);return g===x&&typeof g=="string"&&(x=qv(h,d,`${r}${g==="default"?"":ue(g)}`,g)),l===!1?x:{[l]:x}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const o=i.unstable_sxConfig??Qd;function a(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const c=EI(i.breakpoints),d=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const v=jF(l[h],i);if(v!=null)if(typeof v=="object")if(o[h])p=Uf(p,e(h,v,i,o));else{const g=io({theme:i},v,x=>({[h]:x}));zF(g,v)?p[h]=t({sx:v,theme:i}):p=Uf(p,g)}else p=Uf(p,e(h,v,i,o))}),XB(i,II(d,p))}return Array.isArray(n)?n.map(a):a(n)}return t}const us=WF();us.filterProps=["sx"];function HF(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Zd(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={},...a}=e,s=KB(r),l=DI(i);let c=jr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...eF,...o}},a);return c=JB(c),c.applyStyles=HF,c=t.reduce((d,p)=>jr(d,p),c),c.unstable_sxConfig={...Qd,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(p){return us({sx:p,theme:this})},c}function VF(e){return Object.keys(e).length===0}function LI(e=null){const t=D.useContext(qd);return!t||VF(t)?e:t}const UF=Zd();function jg(e=UF){return LI(e)}function GF({styles:e,themeId:t,defaultTheme:r={}}){const n=jg(r),i=typeof e=="function"?e(t&&n[t]||n):e;return M.jsx(kI,{styles:i})}const YF=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Qd;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function gb(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=YF(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return So(s)?{...n,...s}:n}:o={...n,...t},{...i,sx:o}}const E2=e=>e,qF=()=>{let e=E2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=E2}}},OI=qF();function NI(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=NI(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Se(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=NI(e))&&(n&&(n+=" "),n+=t);return n}function KF(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,o=PI("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(us);return D.forwardRef(function(l,c){const d=jg(r),{className:p,component:h="div",...v}=gb(l);return M.jsx(o,{as:h,ref:c,className:Se(p,i?i(n):n),theme:t&&d[t]||d,...v})})}const XF={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 Fe(e,t,r="Mui"){const n=XF[t];return n?`${r}-${n}`:`${OI.generate(e)}-${t}`}function ze(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Fe(e,i,r)}),n}function $I(e){const{variants:t,...r}=e,n={variants:t,style:T2(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=T2(i.style))}),n}const QF=Zd();function E0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ZF(e){return e?(t,r)=>r[e]:null}function JF(e,t,r){e.theme=tz(e.theme)?r:e.theme[t]||e.theme}function wv(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>wv(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:i,...o}=r;n=o}return BI(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function BI(e,t,r=[]){var i;let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==a.props[s])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function FI(e={}){const{themeId:t,defaultTheme:r=QF,rootShouldForwardProp:n=E0,slotShouldForwardProp:i=E0}=e;function o(s){JF(s,t,r)}return(s,l={})=>{UB(s,T=>T.filter(P=>P!==us));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:v=ZF(nz(d)),...g}=l,x=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let S=E0;d==="Root"||d==="root"?S=n:d?S=i:rz(s)&&(S=void 0);const w=PI(s,{shouldForwardProp:S,label:ez(),...g}),b=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(E){return wv(E,T)};if(So(T)){const P=$I(T);return P.variants?function(A){return wv(A,P)}:P.style}return T},C=(...T)=>{const P=[],E=T.map(b),A=[];if(P.push(o),c&&v&&A.push(function(N){var j,X;const F=(X=(j=N.theme.components)==null?void 0:j[c])==null?void 0:X.styleOverrides;if(!F)return null;const z={};for(const V in F)z[V]=wv(N,F[V]);return v(N,z)}),c&&!x&&A.push(function(N){var z,j;const B=N.theme,F=(j=(z=B==null?void 0:B.components)==null?void 0:z[c])==null?void 0:j.variants;return F?BI(N,F):null}),y||A.push(us),Array.isArray(E[0])){const L=E.shift(),N=new Array(P.length).fill(""),B=new Array(A.length).fill("");let F;F=[...N,...L,...B],F.raw=[...N,...L.raw,...B],P.unshift(F)}const O=[...P,...E,...A],R=w(...O);return s.muiName&&(R.muiName=s.muiName),R};return w.withConfig&&(C.withConfig=w.withConfig),C}}function ez(e,t){return void 0}function tz(e){for(const t in e)return!1;return!0}function rz(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nz(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const zI=FI();function Sd(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],a=t[i];if(!a)r[i]=o||{};else if(!o)r[i]=a;else{r[i]={...a};for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const l=s;r[i][l]=Sd(o[l],a[l])}}}else r[i]===void 0&&(r[i]=e[i])}return r}function iz(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Sd(t.components[r].defaultProps,n)}function jI({props:e,name:t,defaultTheme:r,themeId:n}){let i=jg(r);return n&&(i=i[n]||i),iz({theme:i,name:t,props:e})}const oo=typeof window<"u"?D.useLayoutEffect:D.useEffect;function oz(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function mb(e,t=0,r=1){return oz(e,t,r)}function az(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function cs(e){if(e.type)return e;if(e.charAt(0)==="#")return cs(az(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(fa(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(fa(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const sz=e=>{const t=cs(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},If=(e,t)=>{try{return sz(e)}catch{return e}};function Wg(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function WI(e){e=cs(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(c,d=(c+r/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,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])),Wg({type:s,values:l})}function Sx(e){e=cs(e);let t=e.type==="hsl"||e.type==="hsla"?cs(WI(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function lz(e,t){const r=Sx(e),n=Sx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function mt(e,t){return e=cs(e),t=mb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wg(e)}function xh(e,t,r){try{return mt(e,t)}catch{return e}}function Il(e,t){if(e=cs(e),t=mb(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Wg(e)}function Yt(e,t,r){try{return Il(e,t)}catch{return e}}function Al(e,t){if(e=cs(e),t=mb(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Wg(e)}function qt(e,t,r){try{return Al(e,t)}catch{return e}}function uz(e,t=.15){return Sx(e)>.5?Il(e,t):Al(e,t)}function Sh(e,t,r){try{return uz(e,t)}catch{return e}}const HI=D.createContext(null);function yb(){return D.useContext(HI)}const cz=typeof Symbol=="function"&&Symbol.for,fz=cz?Symbol.for("mui.nested"):"__THEME_NESTED__";function dz(e,t){return typeof t=="function"?t(e):{...e,...t}}function pz(e){const{children:t,theme:r}=e,n=yb(),i=D.useMemo(()=>{const o=n===null?{...r}:dz(n,r);return o!=null&&(o[fz]=n!==null),o},[r,n]);return M.jsx(HI.Provider,{value:i,children:t})}const VI=D.createContext();function hz({value:e,...t}){return M.jsx(VI.Provider,{value:e??!0,...t})}const lc=()=>D.useContext(VI)??!1,UI=D.createContext(void 0);function vz({value:e,children:t}){return M.jsx(UI.Provider,{value:e,children:t})}function gz(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Sd(i.defaultProps,n):!i.styleOverrides&&!i.variants?Sd(i,n):n}function mz({props:e,name:t}){const r=D.useContext(UI);return gz({props:e,name:t,theme:{components:r}})}const I2={};function A2(e,t,r,n=!1){return D.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?{...t,[e]:o}:o;return n?()=>a:a}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function GI(e){const{children:t,theme:r,themeId:n}=e,i=LI(I2),o=yb()||I2,a=A2(n,i,r),s=A2(n,o,r,!0),l=(n?a[n]:a).direction==="rtl";return M.jsx(pz,{theme:s,children:M.jsx(qd.Provider,{value:a,children:M.jsx(hz,{value:l,children:M.jsx(vz,{value:n?a[n].components:a.components,children:t})})})})}const D2={theme:void 0};function yz(e){let t,r;return function(i){let o=t;return(o===void 0||i.theme!==r)&&(D2.theme=i.theme,o=$I(e(D2)),t=o,r=i.theme),o}}const xb="mode",Sb="color-scheme",xz="data-color-scheme";function Sz(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:i=xb,colorSchemeStorageKey:o=Sb,attribute:a=xz,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",d=a;if(a==="class"&&(d=".%s"),a==="data"&&(d="[data-%s]"),d.startsWith(".")){const h=d.substring(1);c+=`${s}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
68
- ${s}.classList.add('${h}'.replace('%s', colorScheme));`}const p=d.match(/\[([^\]]+)\]/);if(p){const[h,v]=p[1].split("=");v||(c+=`${s}.removeAttribute('${h}'.replace('%s', light));
69
- ${s}.removeAttribute('${h}'.replace('%s', dark));`),c+=`
70
- ${s}.setAttribute('${h}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${d}', colorScheme);`;return M.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
71
- try {
72
- let colorScheme = '';
73
- const mode = localStorage.getItem('${i}') || '${t}';
74
- const dark = localStorage.getItem('${o}-dark') || '${n}';
75
- const light = localStorage.getItem('${o}-light') || '${r}';
76
- if (mode === 'system') {
77
- // handle system mode
78
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
79
- if (mql.matches) {
80
- colorScheme = dark
81
- } else {
82
- colorScheme = light
83
- }
84
- }
85
- if (mode === 'light') {
86
- colorScheme = light;
87
- }
88
- if (mode === 'dark') {
89
- colorScheme = dark;
90
- }
91
- if (colorScheme) {
92
- ${c}
93
- }
94
- } catch(e){}})();`}},"mui-color-scheme-init")}function bz(){}const wz=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return bz;const n=i=>{const o=i.newValue;i.key===e&&r(o)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function I0(){}function L2(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function YI(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function _z(e){return YI(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Cz(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:i=[],modeStorageKey:o=xb,colorSchemeStorageKey:a=Sb,storageWindow:s=typeof window>"u"?void 0:window,storageManager:l=wz,noSsr:c=!1}=e,d=i.join(","),p=i.length>1,h=D.useMemo(()=>l==null?void 0:l({key:o,storageWindow:s}),[l,o,s]),v=D.useMemo(()=>l==null?void 0:l({key:`${a}-light`,storageWindow:s}),[l,a,s]),g=D.useMemo(()=>l==null?void 0:l({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[x,y]=D.useState(()=>{const A=(h==null?void 0:h.get(t))||t,O=(v==null?void 0:v.get(r))||r,R=(g==null?void 0:g.get(n))||n;return{mode:A,systemMode:L2(A),lightColorScheme:O,darkColorScheme:R}}),[S,w]=D.useState(c||!p);D.useEffect(()=>{w(!0)},[]);const b=_z(x),C=D.useCallback(A=>{y(O=>{if(A===O.mode)return O;const R=A??t;return h==null||h.set(R),{...O,mode:R,systemMode:L2(R)}})},[h,t]),T=D.useCallback(A=>{A?typeof A=="string"?A&&!d.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):y(O=>{const R={...O};return YI(O,L=>{L==="light"&&(v==null||v.set(A),R.lightColorScheme=A),L==="dark"&&(g==null||g.set(A),R.darkColorScheme=A)}),R}):y(O=>{const R={...O},L=A.light===null?r:A.light,N=A.dark===null?n:A.dark;return L&&(d.includes(L)?(R.lightColorScheme=L,v==null||v.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),N&&(d.includes(N)?(R.darkColorScheme=N,g==null||g.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),R}):y(O=>(v==null||v.set(r),g==null||g.set(n),{...O,lightColorScheme:r,darkColorScheme:n}))},[d,v,g,r,n]),P=D.useCallback(A=>{x.mode==="system"&&y(O=>{const R=A!=null&&A.matches?"dark":"light";return O.systemMode===R?O:{...O,systemMode:R}})},[x.mode]),E=D.useRef(P);return E.current=P,D.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const A=(...R)=>E.current(...R),O=window.matchMedia("(prefers-color-scheme: dark)");return O.addListener(A),A(O),()=>{O.removeListener(A)}},[p]),D.useEffect(()=>{if(p){const A=(h==null?void 0:h.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&C(L||t)}))||I0,O=(v==null?void 0:v.subscribe(L=>{(!L||d.match(L))&&T({light:L})}))||I0,R=(g==null?void 0:g.subscribe(L=>{(!L||d.match(L))&&T({dark:L})}))||I0;return()=>{A(),O(),R()}}},[T,C,d,t,s,p,h,v,g]),{...x,mode:S?x.mode:void 0,systemMode:S?x.systemMode:void 0,colorScheme:S?b:void 0,setMode:C,setColorScheme:T}}const Tz="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function kz(e){const{themeId:t,theme:r={},modeStorageKey:n=xb,colorSchemeStorageKey:i=Sb,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=D.createContext(void 0),d=()=>D.useContext(c)||l,p={},h={};function v(S){var Qt,ir,Et,Jt;const{children:w,theme:b,modeStorageKey:C=n,colorSchemeStorageKey:T=i,disableTransitionOnChange:P=o,storageManager:E,storageWindow:A=typeof window>"u"?void 0:window,documentNode:O=typeof document>"u"?void 0:document,colorSchemeNode:R=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:N=!1,defaultMode:B="system",forceThemeRerender:F=!1,noSsr:z}=S,j=D.useRef(!1),X=yb(),V=D.useContext(c),H=!!V&&!L,G=D.useMemo(()=>b||(typeof r=="function"?r():r),[b]),W=G[t],Y=W||G,{colorSchemes:te=p,components:le=h,cssVarPrefix:ne}=Y,Z=Object.keys(te).filter(Ze=>!!te[Ze]).join(","),ce=D.useMemo(()=>Z.split(","),[Z]),me=typeof a=="string"?a:a.light,de=typeof a=="string"?a:a.dark,fe=te[me]&&te[de]?B:((ir=(Qt=te[Y.defaultColorScheme])==null?void 0:Qt.palette)==null?void 0:ir.mode)||((Et=Y.palette)==null?void 0:Et.mode),{mode:ge,setMode:pe,systemMode:Oe,lightColorScheme:ke,darkColorScheme:nt,colorScheme:tt,setColorScheme:ct}=Cz({supportedColorSchemes:ce,defaultLightColorScheme:me,defaultDarkColorScheme:de,modeStorageKey:C,colorSchemeStorageKey:T,defaultMode:fe,storageManager:E,storageWindow:A,noSsr:z});let we=ge,it=tt;H&&(we=V.mode,it=V.colorScheme);let Me=it||Y.defaultColorScheme;Y.vars&&!F&&(Me=Y.defaultColorScheme);const Ge=D.useMemo(()=>{var xt;const Ze=((xt=Y.generateThemeVars)==null?void 0:xt.call(Y))||Y.vars,xe={...Y,components:le,colorSchemes:te,cssVarPrefix:ne,vars:Ze};if(typeof xe.generateSpacing=="function"&&(xe.spacing=xe.generateSpacing()),Me){const Ct=te[Me];Ct&&typeof Ct=="object"&&Object.keys(Ct).forEach(st=>{Ct[st]&&typeof Ct[st]=="object"?xe[st]={...xe[st],...Ct[st]}:xe[st]=Ct[st]})}return s?s(xe):xe},[Y,Me,le,te,ne]),_e=Y.colorSchemeSelector;oo(()=>{if(it&&R&&_e&&_e!=="media"){const Ze=_e;let xe=_e;if(Ze==="class"&&(xe=".%s"),Ze==="data"&&(xe="[data-%s]"),Ze!=null&&Ze.startsWith("data-")&&!Ze.includes("%s")&&(xe=`[${Ze}="%s"]`),xe.startsWith("."))R.classList.remove(...ce.map(xt=>xe.substring(1).replace("%s",xt))),R.classList.add(xe.substring(1).replace("%s",it));else{const xt=xe.replace("%s",it).match(/\[([^\]]+)\]/);if(xt){const[Ct,st]=xt[1].split("=");st||ce.forEach(Ne=>{R.removeAttribute(Ct.replace(it,Ne))}),R.setAttribute(Ct,st?st.replace(/"|'/g,""):"")}else R.setAttribute(xe,it)}}},[it,_e,R,ce]),D.useEffect(()=>{let Ze;if(P&&j.current&&O){const xe=O.createElement("style");xe.appendChild(O.createTextNode(Tz)),O.head.appendChild(xe),window.getComputedStyle(O.body),Ze=setTimeout(()=>{O.head.removeChild(xe)},1)}return()=>{clearTimeout(Ze)}},[it,P,O]),D.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Gt=D.useMemo(()=>({allColorSchemes:ce,colorScheme:it,darkColorScheme:nt,lightColorScheme:ke,mode:we,setColorScheme:ct,setMode:pe,systemMode:Oe}),[ce,it,nt,ke,we,ct,pe,Oe,Ge.colorSchemeSelector]);let vt=!0;(N||Y.cssVariables===!1||H&&(X==null?void 0:X.cssVarPrefix)===ne)&&(vt=!1);const Bt=M.jsxs(D.Fragment,{children:[M.jsx(GI,{themeId:W?t:void 0,theme:Ge,children:w}),vt&&M.jsx(kI,{styles:((Jt=Ge.generateStyleSheets)==null?void 0:Jt.call(Ge))||[]})]});return H?Bt:M.jsx(c.Provider,{value:Gt,children:Bt})}const g=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:v,useColorScheme:d,getInitColorSchemeScript:S=>Sz({colorSchemeStorageKey:i,defaultLightColorScheme:g,defaultDarkColorScheme:x,modeStorageKey:n,...S})}}function Pz(e=""){function t(...n){if(!n.length)return"";const i=n[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(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const O2=(e,t,r,n=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=r:i&&typeof i=="object"&&(i[o]=r):i&&typeof i=="object"&&(i[o]||(i[o]=n.includes(o)?[]:{}),i=i[o])})},Rz=(e,t,r)=>{function n(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!r||r&&!r([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}n(e)},Mz=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function A0(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},o={},a={};return Rz(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const d=`--${r?`${r}-`:""}${s.join("-")}`,p=Mz(s,l);Object.assign(i,{[d]:p}),O2(o,s,`var(${d})`,c),O2(a,s,`var(${d}, ${p})`,c)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function Ez(e,t={}){const{getSelector:r=y,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:p}=A0(l,t);let h=p;const v={},{[s]:g,...x}=o;if(Object.entries(x||{}).forEach(([b,C])=>{const{vars:T,css:P,varsWithDefaults:E}=A0(C,t);h=jr(h,E),v[b]={css:P,vars:T}}),g){const{css:b,vars:C,varsWithDefaults:T}=A0(g,t);h=jr(h,T),v[s]={css:b,vars:C}}function y(b,C){var P,E;let T=i;if(i==="class"&&(T=".%s"),i==="data"&&(T="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(T=`[${i}="%s"]`),b){if(T==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((E=(P=o[b])==null?void 0:P.palette)==null?void 0:E.mode)||b})`]:{":root":C}};if(T)return e.defaultColorScheme===b?`:root, ${T.replace("%s",String(b))}`:T.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...c};return Object.entries(v).forEach(([,{vars:C}])=>{b=jr(b,C)}),b},generateStyleSheets:()=>{var A,O;const b=[],C=e.defaultColorScheme||"light";function T(R,L){Object.keys(L).length&&b.push(typeof R=="string"?{[R]:{...L}}:R)}T(r(void 0,{...d}),d);const{[C]:P,...E}=v;if(P){const{css:R}=P,L=(O=(A=o[C])==null?void 0:A.palette)==null?void 0:O.mode,N=!n&&L?{colorScheme:L,...R}:{...R};T(r(C,{...N}),N)}return Object.entries(E).forEach(([R,{css:L}])=>{var F,z;const N=(z=(F=o[R])==null?void 0:F.palette)==null?void 0:z.mode,B=!n&&N?{colorScheme:N,...L}:{...L};T(r(R,{...B}),B)}),b}}}function Iz(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function je(e,t,r=void 0){const n={};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,r&&r[c]&&(a+=" "+r[c]))}n[i]=a}return n}const Az=Zd(),Dz=zI("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Lz=e=>jI({props:e,name:"MuiContainer",defaultTheme:Az}),Oz=(e,t)=>{const r=l=>Fe(t,l),{classes:n,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ue(String(a))}`,i&&"fixed",o&&"disableGutters"]};return je(s,r,n)};function Nz(e={}){const{createStyledComponent:t=Dz,useThemeProps:r=Lz,componentName:n="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const d=c,p=a.breakpoints.values[d];return p!==0&&(l[a.breakpoints.up(d)]={maxWidth:`${p}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return D.forwardRef(function(s,l){const c=r(s),{className:d,component:p="div",disableGutters:h=!1,fixed:v=!1,maxWidth:g="lg",classes:x,...y}=c,S={...c,component:p,disableGutters:h,fixed:v,maxWidth:g},w=Oz(S,n);return M.jsx(i,{as:p,ownerState:S,className:Se(w.root,d),ref:l,...y})})}function _v(e,t){var r,n,i;return D.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:i.muiName))!==-1}const $z=Zd(),Bz=zI("div",{name:"MuiStack",slot:"Root"});function Fz(e){return jI({props:e,name:"MuiStack",defaultTheme:$z})}function zz(e,t){const r=D.Children.toArray(e).filter(Boolean);return r.reduce((n,i,o)=>(n.push(i),o<r.length-1&&n.push(D.cloneElement(t,{key:`separator-${o}`})),n),[])}const jz=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Wz=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...io({theme:t},M0({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=Og(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=M0({values:e.direction,base:i}),a=M0({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,d)=>{if(!o[l]){const h=c>0?o[d[c-1]]:"column";o[l]=h}}),r=jr(r,io({theme:t},a,(l,c)=>e.useFlexGap?{gap:El(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${jz(c?o[c]:e.direction)}`]:El(n,l)}}))}return r=rF(t.breakpoints,r),r};function Hz(e={}){const{createStyledComponent:t=Bz,useThemeProps:r=Fz,componentName:n="MuiStack"}=e,i=()=>je({root:["root"]},l=>Fe(n,l),{}),o=t(Wz);return D.forwardRef(function(l,c){const d=r(l),p=gb(d),{component:h="div",direction:v="column",spacing:g=0,divider:x,children:y,className:S,useFlexGap:w=!1,...b}=p,C={direction:v,spacing:g,useFlexGap:w},T=i();return M.jsx(o,{as:h,ownerState:C,ref:c,className:Se(T.root,S),...b,children:x?zz(y,x):y})})}function qI(){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:gd.white,default:gd.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 Vz=qI();function KI(){return{text:{primary:gd.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:gd.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 N2=KI();function $2(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Al(e.main,i):t==="dark"&&(e.dark=Il(e.main,o)))}function Uz(e="light"){return e==="dark"?{main:al[200],light:al[50],dark:al[400]}:{main:al[700],light:al[400],dark:al[800]}}function Gz(e="light"){return e==="dark"?{main:cu[200],light:cu[50],dark:cu[400]}:{main:cu[500],light:cu[300],dark:cu[700]}}function Yz(e="light"){return e==="dark"?{main:Qa[500],light:Qa[300],dark:Qa[700]}:{main:Qa[700],light:Qa[400],dark:Qa[800]}}function qz(e="light"){return e==="dark"?{main:fu[400],light:fu[300],dark:fu[700]}:{main:fu[700],light:fu[500],dark:fu[900]}}function Kz(e="light"){return e==="dark"?{main:sl[400],light:sl[300],dark:sl[700]}:{main:sl[800],light:sl[500],dark:sl[900]}}function Xz(e="light"){return e==="dark"?{main:tf[400],light:tf[300],dark:tf[700]}:{main:"#ed6c02",light:tf[500],dark:tf[900]}}function bb(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,o=e.primary||Uz(t),a=e.secondary||Gz(t),s=e.error||Yz(t),l=e.info||qz(t),c=e.success||Kz(t),d=e.warning||Xz(t);function p(x){return lz(x,N2.text.primary)>=r?N2.text.primary:Vz.text.primary}const h=({color:x,name:y,mainShade:S=500,lightShade:w=300,darkShade:b=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(fa(11,y?` (${y})`:"",S));if(typeof x.main!="string")throw new Error(fa(12,y?` (${y})`:"",JSON.stringify(x.main)));return $2(x,"light",w,n),$2(x,"dark",b,n),x.contrastText||(x.contrastText=p(x.main)),x};let v;return t==="light"?v=qI():t==="dark"&&(v=KI()),jr({common:{...gd},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:vx,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...v},i)}function Qz(e){const t={};return Object.entries(e).forEach(n=>{const[i,o]=n;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 Zz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Jz(e){return Math.round(e*1e5)/1e5}const B2={textTransform:"uppercase"},F2='"Roboto", "Helvetica", "Arial", sans-serif';function XI(e,t){const{fontFamily:r=F2,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...p}=typeof t=="function"?t(e):t,h=n/14,v=d||(y=>`${y/l*h}rem`),g=(y,S,w,b,C)=>({fontFamily:r,fontWeight:y,fontSize:v(S),lineHeight:w,...r===F2?{letterSpacing:`${Jz(b/S)}em`}:{},...C,...c}),x={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,B2),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,B2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jr({htmlFontSize:l,pxToRem:v,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...x},p,{clone:!1})}const e6=.2,t6=.14,r6=.12;function sr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${e6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${t6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${r6})`].join(",")}const n6=["none",sr(0,2,1,-1,0,1,1,0,0,1,3,0),sr(0,3,1,-2,0,2,2,0,0,1,5,0),sr(0,3,3,-2,0,3,4,0,0,1,8,0),sr(0,2,4,-1,0,4,5,0,0,1,10,0),sr(0,3,5,-1,0,5,8,0,0,1,14,0),sr(0,3,5,-1,0,6,10,0,0,1,18,0),sr(0,4,5,-2,0,7,10,1,0,2,16,1),sr(0,5,5,-3,0,8,10,1,0,3,14,2),sr(0,5,6,-3,0,9,12,1,0,3,16,2),sr(0,6,6,-3,0,10,14,1,0,4,18,3),sr(0,6,7,-4,0,11,15,1,0,4,20,3),sr(0,7,8,-4,0,12,17,2,0,5,22,4),sr(0,7,8,-4,0,13,19,2,0,5,24,4),sr(0,7,9,-4,0,14,21,2,0,5,26,4),sr(0,8,9,-5,0,15,22,2,0,6,28,5),sr(0,8,10,-5,0,16,24,2,0,6,30,5),sr(0,8,11,-5,0,17,26,2,0,6,32,5),sr(0,9,11,-5,0,18,28,2,0,7,34,6),sr(0,9,12,-6,0,19,29,2,0,7,36,6),sr(0,10,13,-6,0,20,31,3,0,8,38,7),sr(0,10,13,-6,0,21,33,3,0,8,40,7),sr(0,10,14,-6,0,22,35,3,0,8,42,7),sr(0,11,14,-7,0,23,36,3,0,9,44,8),sr(0,11,15,-7,0,24,38,3,0,9,46,8)],i6={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)"},QI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z2(e){return`${Math.round(e)}ms`}function o6(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function a6(e){const t={...i6,...e.easing},r={...QI,...e.duration};return{getAutoHeightDuration:o6,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof a=="string"?a:z2(a)} ${s} ${typeof l=="string"?l:z2(l)}`).join(",")},...e,easing:t,duration:r}}const s6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function l6(e){return So(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ZI(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let o=0;o<i.length;o++){const[a,s]=i[o];!l6(s)||a.startsWith("unstable_")?delete n[a]:So(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
95
-
96
- const theme = ${JSON.stringify(t,null,2)};
97
-
98
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
99
- theme.transitions = createTransitions(theme.transitions || {});
100
-
101
- export default theme;`}function bx(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(fa(20));const d=bb(o),p=Zd(e);let h=jr(p,{mixins:Zz(p.breakpoints,n),palette:d,shadows:n6.slice(),typography:XI(d,s),transitions:a6(a),zIndex:{...s6}});return h=jr(h,c),h=t.reduce((v,g)=>jr(v,g),h),h.unstable_sxConfig={...Qd,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return us({sx:g,theme:this})},h.toRuntimeSource=ZI,h}function _x(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 u6=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=_x(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function JI(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function eA(e){return e==="dark"?u6:[]}function c6(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,o=bb(t);return{palette:o,opacity:{...JI(o.mode),...r},overlays:n||eA(o.mode),...i}}function f6(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const d6=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],p6=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return d6(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:o?{[o.replace("%s",t)]:a,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function h6(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function Af(e){return typeof e!="string"||!e.startsWith("hsl")?e:WI(e)}function Zo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=If(Af(e[t])))}function v6(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const po=e=>{try{return e()}catch{}},g6=(e="mui")=>Pz(e);function D0(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=c6({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:o,...a}=bx({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:o,opacity:{...JI(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||eA(i)},a}function m6(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=f6,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],p=n||(r.light&&d!=="light"?"light":d),h=g6(o),{[p]:v,light:g,dark:x,...y}=r,S={...y};let w=v;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(fa(21,p));const b=D0(S,w,c,p);g&&!S.light&&D0(S,g,void 0,"light"),x&&!S.dark&&D0(S,x,void 0,"dark");let C={defaultColorScheme:p,...b,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:S,font:{...Qz(b.typography),...b.font},spacing:v6(c.spacing)};Object.keys(C.colorSchemes).forEach(O=>{const R=C.colorSchemes[O].palette,L=N=>{const B=N.split("-"),F=B[1],z=B[2];return h(N,R[F][z])};if(R.mode==="light"&&(oe(R.common,"background","#fff"),oe(R.common,"onBackground","#000")),R.mode==="dark"&&(oe(R.common,"background","#000"),oe(R.common,"onBackground","#fff")),h6(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){oe(R.Alert,"errorColor",Yt(R.error.light,.6)),oe(R.Alert,"infoColor",Yt(R.info.light,.6)),oe(R.Alert,"successColor",Yt(R.success.light,.6)),oe(R.Alert,"warningColor",Yt(R.warning.light,.6)),oe(R.Alert,"errorFilledBg",L("palette-error-main")),oe(R.Alert,"infoFilledBg",L("palette-info-main")),oe(R.Alert,"successFilledBg",L("palette-success-main")),oe(R.Alert,"warningFilledBg",L("palette-warning-main")),oe(R.Alert,"errorFilledColor",po(()=>R.getContrastText(R.error.main))),oe(R.Alert,"infoFilledColor",po(()=>R.getContrastText(R.info.main))),oe(R.Alert,"successFilledColor",po(()=>R.getContrastText(R.success.main))),oe(R.Alert,"warningFilledColor",po(()=>R.getContrastText(R.warning.main))),oe(R.Alert,"errorStandardBg",qt(R.error.light,.9)),oe(R.Alert,"infoStandardBg",qt(R.info.light,.9)),oe(R.Alert,"successStandardBg",qt(R.success.light,.9)),oe(R.Alert,"warningStandardBg",qt(R.warning.light,.9)),oe(R.Alert,"errorIconColor",L("palette-error-main")),oe(R.Alert,"infoIconColor",L("palette-info-main")),oe(R.Alert,"successIconColor",L("palette-success-main")),oe(R.Alert,"warningIconColor",L("palette-warning-main")),oe(R.AppBar,"defaultBg",L("palette-grey-100")),oe(R.Avatar,"defaultBg",L("palette-grey-400")),oe(R.Button,"inheritContainedBg",L("palette-grey-300")),oe(R.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(R.Chip,"defaultBorder",L("palette-grey-400")),oe(R.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(R.Chip,"defaultIconColor",L("palette-grey-700")),oe(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(R.LinearProgress,"primaryBg",qt(R.primary.main,.62)),oe(R.LinearProgress,"secondaryBg",qt(R.secondary.main,.62)),oe(R.LinearProgress,"errorBg",qt(R.error.main,.62)),oe(R.LinearProgress,"infoBg",qt(R.info.main,.62)),oe(R.LinearProgress,"successBg",qt(R.success.main,.62)),oe(R.LinearProgress,"warningBg",qt(R.warning.main,.62)),oe(R.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(R.Slider,"primaryTrack",qt(R.primary.main,.62)),oe(R.Slider,"secondaryTrack",qt(R.secondary.main,.62)),oe(R.Slider,"errorTrack",qt(R.error.main,.62)),oe(R.Slider,"infoTrack",qt(R.info.main,.62)),oe(R.Slider,"successTrack",qt(R.success.main,.62)),oe(R.Slider,"warningTrack",qt(R.warning.main,.62));const N=Sh(R.background.default,.8);oe(R.SnackbarContent,"bg",N),oe(R.SnackbarContent,"color",po(()=>R.getContrastText(N))),oe(R.SpeedDialAction,"fabHoverBg",Sh(R.background.paper,.15)),oe(R.StepConnector,"border",L("palette-grey-400")),oe(R.StepContent,"border",L("palette-grey-400")),oe(R.Switch,"defaultColor",L("palette-common-white")),oe(R.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(R.Switch,"primaryDisabledColor",qt(R.primary.main,.62)),oe(R.Switch,"secondaryDisabledColor",qt(R.secondary.main,.62)),oe(R.Switch,"errorDisabledColor",qt(R.error.main,.62)),oe(R.Switch,"infoDisabledColor",qt(R.info.main,.62)),oe(R.Switch,"successDisabledColor",qt(R.success.main,.62)),oe(R.Switch,"warningDisabledColor",qt(R.warning.main,.62)),oe(R.TableCell,"border",qt(xh(R.divider,1),.88)),oe(R.Tooltip,"bg",xh(R.grey[700],.92))}if(R.mode==="dark"){oe(R.Alert,"errorColor",qt(R.error.light,.6)),oe(R.Alert,"infoColor",qt(R.info.light,.6)),oe(R.Alert,"successColor",qt(R.success.light,.6)),oe(R.Alert,"warningColor",qt(R.warning.light,.6)),oe(R.Alert,"errorFilledBg",L("palette-error-dark")),oe(R.Alert,"infoFilledBg",L("palette-info-dark")),oe(R.Alert,"successFilledBg",L("palette-success-dark")),oe(R.Alert,"warningFilledBg",L("palette-warning-dark")),oe(R.Alert,"errorFilledColor",po(()=>R.getContrastText(R.error.dark))),oe(R.Alert,"infoFilledColor",po(()=>R.getContrastText(R.info.dark))),oe(R.Alert,"successFilledColor",po(()=>R.getContrastText(R.success.dark))),oe(R.Alert,"warningFilledColor",po(()=>R.getContrastText(R.warning.dark))),oe(R.Alert,"errorStandardBg",Yt(R.error.light,.9)),oe(R.Alert,"infoStandardBg",Yt(R.info.light,.9)),oe(R.Alert,"successStandardBg",Yt(R.success.light,.9)),oe(R.Alert,"warningStandardBg",Yt(R.warning.light,.9)),oe(R.Alert,"errorIconColor",L("palette-error-main")),oe(R.Alert,"infoIconColor",L("palette-info-main")),oe(R.Alert,"successIconColor",L("palette-success-main")),oe(R.Alert,"warningIconColor",L("palette-warning-main")),oe(R.AppBar,"defaultBg",L("palette-grey-900")),oe(R.AppBar,"darkBg",L("palette-background-paper")),oe(R.AppBar,"darkColor",L("palette-text-primary")),oe(R.Avatar,"defaultBg",L("palette-grey-600")),oe(R.Button,"inheritContainedBg",L("palette-grey-800")),oe(R.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(R.Chip,"defaultBorder",L("palette-grey-700")),oe(R.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(R.Chip,"defaultIconColor",L("palette-grey-300")),oe(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(R.LinearProgress,"primaryBg",Yt(R.primary.main,.5)),oe(R.LinearProgress,"secondaryBg",Yt(R.secondary.main,.5)),oe(R.LinearProgress,"errorBg",Yt(R.error.main,.5)),oe(R.LinearProgress,"infoBg",Yt(R.info.main,.5)),oe(R.LinearProgress,"successBg",Yt(R.success.main,.5)),oe(R.LinearProgress,"warningBg",Yt(R.warning.main,.5)),oe(R.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(R.Slider,"primaryTrack",Yt(R.primary.main,.5)),oe(R.Slider,"secondaryTrack",Yt(R.secondary.main,.5)),oe(R.Slider,"errorTrack",Yt(R.error.main,.5)),oe(R.Slider,"infoTrack",Yt(R.info.main,.5)),oe(R.Slider,"successTrack",Yt(R.success.main,.5)),oe(R.Slider,"warningTrack",Yt(R.warning.main,.5));const N=Sh(R.background.default,.98);oe(R.SnackbarContent,"bg",N),oe(R.SnackbarContent,"color",po(()=>R.getContrastText(N))),oe(R.SpeedDialAction,"fabHoverBg",Sh(R.background.paper,.15)),oe(R.StepConnector,"border",L("palette-grey-600")),oe(R.StepContent,"border",L("palette-grey-600")),oe(R.Switch,"defaultColor",L("palette-grey-300")),oe(R.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(R.Switch,"primaryDisabledColor",Yt(R.primary.main,.55)),oe(R.Switch,"secondaryDisabledColor",Yt(R.secondary.main,.55)),oe(R.Switch,"errorDisabledColor",Yt(R.error.main,.55)),oe(R.Switch,"infoDisabledColor",Yt(R.info.main,.55)),oe(R.Switch,"successDisabledColor",Yt(R.success.main,.55)),oe(R.Switch,"warningDisabledColor",Yt(R.warning.main,.55)),oe(R.TableCell,"border",Yt(xh(R.divider,1),.68)),oe(R.Tooltip,"bg",xh(R.grey[700],.92))}Zo(R.background,"default"),Zo(R.background,"paper"),Zo(R.common,"background"),Zo(R.common,"onBackground"),Zo(R,"divider"),Object.keys(R).forEach(N=>{const B=R[N];N!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&oe(R[N],"mainChannel",If(Af(B.main))),B.light&&oe(R[N],"lightChannel",If(Af(B.light))),B.dark&&oe(R[N],"darkChannel",If(Af(B.dark))),B.contrastText&&oe(R[N],"contrastTextChannel",If(Af(B.contrastText))),N==="text"&&(Zo(R[N],"primary"),Zo(R[N],"secondary")),N==="action"&&(B.active&&Zo(R[N],"active"),B.selected&&Zo(R[N],"selected")))})}),C=t.reduce((O,R)=>jr(O,R),C);const T={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:p6(C)},{vars:P,generateThemeVars:E,generateStyleSheets:A}=Ez(C,T);return C.vars=P,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([O,R])=>{C[O]=R}),C.generateThemeVars=E,C.generateStyleSheets=A,C.generateSpacing=function(){return DI(c.spacing,Og(this))},C.getColorSchemeSelector=Iz(s),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=a,C.unstable_sxConfig={...Qd,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(R){return us({sx:R,theme:this})},C.toRuntimeSource=ZI,C}function j2(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:bb({...r===!0?{}:r.palette,mode:t})})}function Hg(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...a}=e,s=o||"light",l=i==null?void 0:i[s],c={...i,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return bx(e,...t);let d=r;"palette"in e||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const p=bx({...e,palette:d},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},j2(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},j2(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),m6({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const wb=Hg();function No(){const e=jg(wb);return e[To]||e}function tA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Un=e=>tA(e)&&e!=="classes",se=FI({themeId:To,defaultTheme:wb,rootShouldForwardProp:Un});function y6({theme:e,...t}){const r=To in e?e[To]:void 0;return M.jsx(GI,{...t,themeId:r?To:void 0,theme:r||e})}const bh={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:x6}=kz({themeId:To,theme:()=>Hg({cssVariables:!0}),colorSchemeStorageKey:bh.colorSchemeStorageKey,modeStorageKey:bh.modeStorageKey,defaultColorScheme:{light:bh.defaultLightColorScheme,dark:bh.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:XI(e.palette,e.typography)};return t.unstable_sx=function(n){return us({sx:n,theme:this})},t}}),S6=x6;function rA({theme:e,...t}){const r=D.useMemo(()=>{if(typeof e=="function")return e;const n=To in e?e[To]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?M.jsx(y6,{theme:r,...t}):M.jsx(S6,{theme:e,...t})}function W2(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function b6(e){return M.jsx(GF,{...e,defaultTheme:wb,themeId:To})}function _b(e){return function(r){return M.jsx(b6,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function w6(){return gb}const Le=yz;function We(e){return mz(e)}function _6(e){return Fe("MuiSvgIcon",e)}ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const C6=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(r)}`]};return je(i,_6,n)},T6=se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ue(r.color)}`],t[`fontSize${ue(r.fontSize)}`]]}})(Le(({theme:e})=>{var t,r,n,i,o,a,s,l,c,d,p,h,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var y,S;return{props:{color:x},style:{color:(S=(y=(e.vars??e).palette)==null?void 0:y[x])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cx=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...v}=n,g=D.isValidElement(i)&&i.type==="svg",x={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const S=C6(x);return M.jsxs(T6,{as:s,className:Se(S.root,o),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...y,...v,...g&&i.props,ownerState:x,children:[g?i.props.children:i,p?M.jsx("title",{children:p}):null]})});Cx.muiName="SvgIcon";function Ht(e,t){function r(n,i){return M.jsx(Cx,{"data-testid":void 0,ref:i,...n,children:e})}return r.muiName=Cx.muiName,D.memo(D.forwardRef(r))}function Jd(e,t=166){let r;function n(...i){const o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function jn(e){return e&&e.ownerDocument||document}function ai(e){return jn(e).defaultView||window}function Tx(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let H2=0;function k6(e){const[t,r]=D.useState(e),n=e||t;return D.useEffect(()=>{t==null&&(H2+=1,r(`mui-${H2}`))},[t]),n}const P6={...cd},V2=P6.useId;function uc(e){if(V2!==void 0){const t=V2();return e??t}return k6(e)}function ns(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:o}=D.useRef(t!==void 0),[a,s]=D.useState(r),l=o?t:a,c=D.useCallback(d=>{o||s(d)},[]);return[l,c]}function cn(e){const t=D.useRef(e);return oo(()=>{t.current=e}),D.useRef((...r)=>(0,t.current)(...r)).current}function _r(...e){const t=D.useRef(void 0),r=D.useCallback(n=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return o.current=n,()=>{o.current=null}});return()=>{i.forEach(o=>o==null?void 0:o())}},e);return D.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function R6(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Cb(e,t){if(!e)return t;function r(a,s){const l={};return Object.keys(s).forEach(c=>{R6(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...d)=>{a[c](...d),s[c](...d)})}),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=Se(a==null?void 0:a.className,s==null?void 0:s.className,l==null?void 0:l.className),d=r(l,s);return{...s,...l,...d,...!!c&&{className:c},...(s==null?void 0:s.style)&&(l==null?void 0:l.style)&&{style:{...s.style,...l.style}},...(s==null?void 0:s.sx)&&(l==null?void 0:l.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const n=t,i=r(e,n),o=Se(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...i,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function nA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function kx(e,t){return kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},kx(e,t)}function iA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kx(e,t)}var oA=OE();const wh=YS(oA),U2={disabled:!1},Kv=eo.createContext(null);var M6=function(t){return t.scrollTop},Df="unmounted",ll="exited",ul="entering",Mu="entered",Px="exiting",$i=function(e){iA(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=ll,o.appearStatus=ul):l=Mu:n.unmountOnExit||n.mountOnEnter?l=Df:l=ll,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Df?{status:ll}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==ul&&a!==Mu&&(o=ul):(a===ul||a===Mu)&&(o=Px)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===ul){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:wh.findDOMNode(this);a&&M6(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ll&&this.setState({status:Df})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[wh.findDOMNode(this),s],c=l[0],d=l[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!i&&!a||U2.disabled){this.safeSetState({status:Mu},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:ul},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:Mu},function(){o.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:wh.findDOMNode(this);if(!o||U2.disabled){this.safeSetState({status:ll},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Px},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ll},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.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},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:wh.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],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Df)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=nA(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return eo.createElement(Kv.Provider,{value:null},typeof a=="function"?a(i,s):eo.cloneElement(eo.Children.only(a),s))},t}(eo.Component);$i.contextType=Kv;$i.propTypes={};function du(){}$i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:du,onEntering:du,onEntered:du,onExit:du,onExiting:du,onExited:du};$i.UNMOUNTED=Df;$i.EXITED=ll;$i.ENTERING=ul;$i.ENTERED=Mu;$i.EXITING=Px;function E6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tb(e,t){var r=function(o){return t&&D.isValidElement(o)?t(o):o},n=Object.create(null);return e&&D.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function I6(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var o in e)o in t?i.length&&(n[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<i.length;a++)s[i[a]]=r(i[a]);return s}function vl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function A6(e,t){return Tb(e.children,function(r){return D.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:vl(r,"appear",e),enter:vl(r,"enter",e),exit:vl(r,"exit",e)})})}function D6(e,t,r){var n=Tb(e.children),i=I6(t,n);return Object.keys(i).forEach(function(o){var a=i[o];if(D.isValidElement(a)){var s=o in t,l=o in n,c=t[o],d=D.isValidElement(c)&&!c.props.in;l&&(!s||d)?i[o]=D.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:vl(a,"exit",e),enter:vl(a,"enter",e)}):!l&&s&&!d?i[o]=D.cloneElement(a,{in:!1}):l&&s&&D.isValidElement(c)&&(i[o]=D.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:vl(a,"exit",e),enter:vl(a,"enter",e)}))}}),i}var L6=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},O6={component:"div",childFactory:function(t){return t}},kb=function(e){iA(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=o.handleExited.bind(E6(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?A6(i,s):D6(i,a,s),firstRender:!1}},r.handleExited=function(i,o){var a=Tb(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=Gv({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=nA(i,["component","childFactory"]),l=this.state.contextValue,c=L6(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?eo.createElement(Kv.Provider,{value:l},c):eo.createElement(Kv.Provider,{value:l},eo.createElement(o,s,c))},t}(eo.Component);kb.propTypes={};kb.defaultProps=O6;const G2={};function aA(e,t){const r=D.useRef(G2);return r.current===G2&&(r.current=e(t)),r}const N6=[];function $6(e){D.useEffect(e,N6)}class Vg{constructor(){Os(this,"currentId",null);Os(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Os(this,"disposeEffect",()=>this.clear)}static create(){return new Vg}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function gl(){const e=aA(Vg.create).current;return $6(e.disposeEffect),e}const Pb=e=>e.scrollTop;function fs(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function B6(e){return Fe("MuiCollapse",e)}ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const F6=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return je(n,B6,r)},z6=se("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(Le(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),j6=se("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),W6=se("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Rx=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:c,in:d,onEnter:p,onEntered:h,onEntering:v,onExit:g,onExited:x,onExiting:y,orientation:S="vertical",style:w,timeout:b=QI.standard,TransitionComponent:C=$i,...T}=n,P={...n,orientation:S,collapsedSize:s},E=F6(P),A=No(),O=gl(),R=D.useRef(null),L=D.useRef(),N=typeof s=="number"?`${s}px`:s,B=S==="horizontal",F=B?"width":"height",z=D.useRef(null),j=_r(r,z),X=Z=>ce=>{if(Z){const me=z.current;ce===void 0?Z(me):Z(me,ce)}},V=()=>R.current?R.current[B?"clientWidth":"clientHeight"]:0,H=X((Z,ce)=>{R.current&&B&&(R.current.style.position="absolute"),Z.style[F]=N,p&&p(Z,ce)}),G=X((Z,ce)=>{const me=V();R.current&&B&&(R.current.style.position="");const{duration:de,easing:fe}=fs({style:w,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const ge=A.transitions.getAutoHeightDuration(me);Z.style.transitionDuration=`${ge}ms`,L.current=ge}else Z.style.transitionDuration=typeof de=="string"?de:`${de}ms`;Z.style[F]=`${me}px`,Z.style.transitionTimingFunction=fe,v&&v(Z,ce)}),W=X((Z,ce)=>{Z.style[F]="auto",h&&h(Z,ce)}),Y=X(Z=>{Z.style[F]=`${V()}px`,g&&g(Z)}),te=X(x),le=X(Z=>{const ce=V(),{duration:me,easing:de}=fs({style:w,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const fe=A.transitions.getAutoHeightDuration(ce);Z.style.transitionDuration=`${fe}ms`,L.current=fe}else Z.style.transitionDuration=typeof me=="string"?me:`${me}ms`;Z.style[F]=N,Z.style.transitionTimingFunction=de,y&&y(Z)}),ne=Z=>{b==="auto"&&O.start(L.current||0,Z),i&&i(z.current,Z)};return M.jsx(C,{in:d,onEnter:H,onEntered:W,onEntering:G,onExit:Y,onExited:te,onExiting:le,addEndListener:ne,nodeRef:z,timeout:b==="auto"?null:b,...T,children:(Z,{ownerState:ce,...me})=>M.jsx(z6,{as:l,className:Se(E.root,a,{entered:E.entered,exited:!d&&N==="0px"&&E.hidden}[Z]),style:{[B?"minWidth":"minHeight"]:N,...w},ref:j,ownerState:{...P,state:Z},...me,children:M.jsx(j6,{ownerState:{...P,state:Z},className:E.wrapper,ref:R,children:M.jsx(W6,{ownerState:{...P,state:Z},className:E.wrapperInner,children:o})})})})});Rx&&(Rx.muiSupportAuto=!0);function H6(e){return Fe("MuiPaper",e)}ze("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 V6=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return je(o,H6,i)},U6=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Le(({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)"}}]}))),Bi=D.forwardRef(function(t,r){var v;const n=We({props:t,name:"MuiPaper"}),i=No(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...d}=n,p={...n,component:a,elevation:s,square:l,variant:c},h=V6(p);return M.jsx(U6,{as:a,ownerState:p,className:Se(h.root,o),ref:r,...d,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":(v=i.vars.overlays)==null?void 0:v[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${mt("#fff",_x(s))}, ${mt("#fff",_x(s))})`}},...d.style}})}),sA=D.createContext({});function G6(e){return typeof e=="string"}function lA(e,t,r){return e===void 0||G6(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function uA(e,t,r){return typeof e=="function"?e(t,r):e}function cA(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Y2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function fA(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const v=Se(r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),g={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},x={...r,...i,...n};return v.length>0&&(x.className=v),Object.keys(g).length>0&&(x.style=g),{props:x,internalRef:void 0}}const a=cA({...i,...n}),s=Y2(n),l=Y2(i),c=t(a),d=Se(c==null?void 0:c.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),p={...c==null?void 0:c.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...c,...r,...l,...s};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function Ve(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...h}=o,v=d[e]||n,g=uA(p[e],i),{props:{component:x,...y},internalRef:S}=fA({className:r,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),w=_r(S,g==null?void 0:g.ref,t.ref),b=e==="root"?x||c:x,C=lA(v,{...e==="root"&&!c&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...b&&!s&&{as:b},...b&&s&&{component:b},ref:w},i);return[v,C]}function Y6(e){return Fe("MuiAccordion",e)}const _h=ze("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),q6=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:o}=e;return je({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!o&&"gutters"],heading:["heading"],region:["region"]},Y6,t)},K6=se(Bi,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_h.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(Le(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${_h.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${_h.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Le(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${_h.expanded}`]:{margin:"16px 0"}}}]}))),X6=se("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Rb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:d,square:p=!1,slots:h={},slotProps:v={},TransitionComponent:g,TransitionProps:x,...y}=n,[S,w]=ns({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=D.useCallback(V=>{w(!S),d&&d(V,!S)},[S,d,w]),[C,...T]=D.Children.toArray(i),P=D.useMemo(()=>({expanded:S,disabled:s,disableGutters:l,toggle:b}),[S,s,l,b]),E={...n,square:p,disabled:s,disableGutters:l,expanded:S},A=q6(E),O={transition:g,...h},R={transition:x,...v},L={slots:O,slotProps:R},[N,B]=Ve("root",{elementType:K6,externalForwardedProps:{...L,...y},className:Se(A.root,o),shouldForwardComponentProp:!0,ownerState:E,ref:r,additionalProps:{square:p}}),[F,z]=Ve("heading",{elementType:X6,externalForwardedProps:L,className:A.heading,ownerState:E}),[j,X]=Ve("transition",{elementType:Rx,externalForwardedProps:L,ownerState:E});return M.jsxs(N,{...B,children:[M.jsx(F,{...z,children:M.jsx(sA.Provider,{value:P,children:C})}),M.jsx(j,{in:S,timeout:"auto",...X,children:M.jsx("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:A.region,children:T})})]})});function Q6(e){return Fe("MuiAccordionDetails",e)}ze("MuiAccordionDetails",["root"]);const Z6=e=>{const{classes:t}=e;return je({root:["root"]},Q6,t)},J6=se("div",{name:"MuiAccordionDetails",slot:"Root"})(Le(({theme:e})=>({padding:e.spacing(1,2,2)}))),Mb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiAccordionDetails"}),{className:i,...o}=n,a=n,s=Z6(a);return M.jsx(J6,{className:Se(s.root,i),ref:r,ownerState:a,...o})});function Qu(e){try{return e.matches(":focus-visible")}catch{}return!1}class Xv{constructor(){Os(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Xv}static use(){const t=aA(Xv.create).current,[r,n]=D.useState(!1);return t.shouldMount=r,t.setShouldMount=n,D.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=tj(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function ej(){return Xv.use()}function tj(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function rj(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,p]=D.useState(!1),h=Se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=Se(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&p(!0),D.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),M.jsx("span",{className:h,style:v,children:M.jsx("span",{className:g})})}const Ti=ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mx=550,nj=80,ij=Kd`
102
- 0% {
103
- transform: scale(0);
104
- opacity: 0.1;
105
- }
106
-
107
- 100% {
108
- transform: scale(1);
109
- opacity: 0.3;
110
- }
111
- `,oj=Kd`
112
- 0% {
113
- opacity: 1;
114
- }
115
-
116
- 100% {
117
- opacity: 0;
118
- }
119
- `,aj=Kd`
120
- 0% {
121
- transform: scale(1);
122
- }
123
-
124
- 50% {
125
- transform: scale(0.92);
126
- }
127
-
128
- 100% {
129
- transform: scale(1);
130
- }
131
- `,sj=se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lj=se(rj,{name:"MuiTouchRipple",slot:"Ripple"})`
132
- opacity: 0;
133
- position: absolute;
134
-
135
- &.${Ti.rippleVisible} {
136
- opacity: 0.3;
137
- transform: scale(1);
138
- animation-name: ${ij};
139
- animation-duration: ${Mx}ms;
140
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
141
- }
142
-
143
- &.${Ti.ripplePulsate} {
144
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
145
- }
146
-
147
- & .${Ti.child} {
148
- opacity: 1;
149
- display: block;
150
- width: 100%;
151
- height: 100%;
152
- border-radius: 50%;
153
- background-color: currentColor;
154
- }
155
-
156
- & .${Ti.childLeaving} {
157
- opacity: 0;
158
- animation-name: ${oj};
159
- animation-duration: ${Mx}ms;
160
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
161
- }
162
-
163
- & .${Ti.childPulsate} {
164
- position: absolute;
165
- /* @noflip */
166
- left: 0px;
167
- top: 0;
168
- animation-name: ${aj};
169
- animation-duration: 2500ms;
170
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
- animation-iteration-count: infinite;
172
- animation-delay: 200ms;
173
- }
174
- `,uj=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=n,[l,c]=D.useState([]),d=D.useRef(0),p=D.useRef(null);D.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=D.useRef(!1),v=gl(),g=D.useRef(null),x=D.useRef(null),y=D.useCallback(C=>{const{pulsate:T,rippleX:P,rippleY:E,rippleSize:A,cb:O}=C;c(R=>[...R,M.jsx(lj,{classes:{ripple:Se(o.ripple,Ti.ripple),rippleVisible:Se(o.rippleVisible,Ti.rippleVisible),ripplePulsate:Se(o.ripplePulsate,Ti.ripplePulsate),child:Se(o.child,Ti.child),childLeaving:Se(o.childLeaving,Ti.childLeaving),childPulsate:Se(o.childPulsate,Ti.childPulsate)},timeout:Mx,pulsate:T,rippleX:P,rippleY:E,rippleSize:A},d.current)]),d.current+=1,p.current=O},[o]),S=D.useCallback((C={},T={},P=()=>{})=>{const{pulsate:E=!1,center:A=i||T.pulsate,fakeElement:O=!1}=T;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const R=O?null:x.current,L=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,B,F;if(A||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)N=Math.round(L.width/2),B=Math.round(L.height/2);else{const{clientX:z,clientY:j}=C.touches&&C.touches.length>0?C.touches[0]:C;N=Math.round(z-L.left),B=Math.round(j-L.top)}if(A)F=Math.sqrt((2*L.width**2+L.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((R?R.clientWidth:0)-N),N)*2+2,j=Math.max(Math.abs((R?R.clientHeight:0)-B),B)*2+2;F=Math.sqrt(z**2+j**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:E,rippleX:N,rippleY:B,rippleSize:F,cb:P})},v.start(nj,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:E,rippleX:N,rippleY:B,rippleSize:F,cb:P})},[i,y,v]),w=D.useCallback(()=>{S({},{pulsate:!0})},[S]),b=D.useCallback((C,T)=>{if(v.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(C,T)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),p.current=T},[v]);return D.useImperativeHandle(r,()=>({pulsate:w,start:S,stop:b}),[w,S,b]),M.jsx(sj,{className:Se(Ti.root,o.root,a),ref:x,...s,children:M.jsx(kb,{component:null,exit:!0,children:l})})});function cj(e){return Fe("MuiButtonBase",e)}const fj=ze("MuiButtonBase",["root","disabled","focusVisible"]),dj=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a=je({root:["root",t&&"disabled",r&&"focusVisible"]},cj,i);return r&&n&&(a.root+=` ${n}`),a},pj=se("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"},[`&.${fj.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ds=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:v,LinkComponent:g="a",onBlur:x,onClick:y,onContextMenu:S,onDragLeave:w,onFocus:b,onFocusVisible:C,onKeyDown:T,onKeyUp:P,onMouseDown:E,onMouseLeave:A,onMouseUp:O,onTouchEnd:R,onTouchMove:L,onTouchStart:N,tabIndex:B=0,TouchRippleProps:F,touchRippleRef:z,type:j,...X}=n,V=D.useRef(null),H=ej(),G=_r(H.ref,z),[W,Y]=D.useState(!1);c&&W&&Y(!1),D.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),V.current.focus()}}),[]);const te=H.shouldMount&&!d&&!c;D.useEffect(()=>{W&&h&&!d&&H.pulsate()},[d,h,W,H]);const le=Jo(H,"start",E,p),ne=Jo(H,"stop",S,p),Z=Jo(H,"stop",w,p),ce=Jo(H,"stop",O,p),me=Jo(H,"stop",_e=>{W&&_e.preventDefault(),A&&A(_e)},p),de=Jo(H,"start",N,p),fe=Jo(H,"stop",R,p),ge=Jo(H,"stop",L,p),pe=Jo(H,"stop",_e=>{Qu(_e.target)||Y(!1),x&&x(_e)},!1),Oe=cn(_e=>{V.current||(V.current=_e.currentTarget),Qu(_e.target)&&(Y(!0),C&&C(_e)),b&&b(_e)}),ke=()=>{const _e=V.current;return l&&l!=="button"&&!(_e.tagName==="A"&&_e.href)},nt=cn(_e=>{h&&!_e.repeat&&W&&_e.key===" "&&H.stop(_e,()=>{H.start(_e)}),_e.target===_e.currentTarget&&ke()&&_e.key===" "&&_e.preventDefault(),T&&T(_e),_e.target===_e.currentTarget&&ke()&&_e.key==="Enter"&&!c&&(_e.preventDefault(),y&&y(_e))}),tt=cn(_e=>{h&&_e.key===" "&&W&&!_e.defaultPrevented&&H.stop(_e,()=>{H.pulsate(_e)}),P&&P(_e),y&&_e.target===_e.currentTarget&&ke()&&_e.key===" "&&!_e.defaultPrevented&&y(_e)});let ct=l;ct==="button"&&(X.href||X.to)&&(ct=g);const we={};ct==="button"?(we.type=j===void 0?"button":j,we.disabled=c):(!X.href&&!X.to&&(we.role="button"),c&&(we["aria-disabled"]=c));const it=_r(r,V),Me={...n,centerRipple:o,component:l,disabled:c,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:B,focusVisible:W},Ge=dj(Me);return M.jsxs(pj,{as:ct,className:Se(Ge.root,s),ownerState:Me,onBlur:pe,onClick:y,onContextMenu:ne,onFocus:Oe,onKeyDown:nt,onKeyUp:tt,onMouseDown:le,onMouseLeave:me,onMouseUp:ce,onDragLeave:Z,onTouchEnd:fe,onTouchMove:ge,onTouchStart:de,ref:it,tabIndex:c?-1:B,type:j,...we,...X,children:[a,te?M.jsx(uj,{ref:G,center:o,...F}):null]})});function Jo(e,t,r,n=!1){return cn(i=>(r&&r(i),n||e[t](i),!0))}function hj(e){return Fe("MuiAccordionSummary",e)}const Au=ze("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vj=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return je({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},hj,t)},gj=se(ds,{name:"MuiAccordionSummary",slot:"Root"})(Le(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Au.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Au.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Au.disabled})`]:{cursor:"pointer"},variants:[{props:r=>!r.disableGutters,style:{[`&.${Au.expanded}`]:{minHeight:64}}}]}})),mj=se("span",{name:"MuiAccordionSummary",slot:"Content"})(Le(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Au.expanded}`]:{margin:"20px 0"}}}]}))),yj=se("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(Le(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Au.expanded}`]:{transform:"rotate(180deg)"}}))),Eb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l,slots:c,slotProps:d,...p}=n,{disabled:h=!1,disableGutters:v,expanded:g,toggle:x}=D.useContext(sA),y=R=>{x&&x(R),l&&l(R)},S={...n,expanded:g,disabled:h,disableGutters:v},w=vj(S),b={slots:c,slotProps:d},[C,T]=Ve("root",{ref:r,shouldForwardComponentProp:!0,className:Se(w.root,o),elementType:gj,externalForwardedProps:{...b,...p},ownerState:S,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:h,"aria-expanded":g,focusVisibleClassName:Se(w.focusVisible,s)},getSlotProps:R=>({...R,onClick:L=>{var N;(N=R.onClick)==null||N.call(R,L),y(L)}})}),[P,E]=Ve("content",{className:w.content,elementType:mj,externalForwardedProps:b,ownerState:S}),[A,O]=Ve("expandIconWrapper",{className:w.expandIconWrapper,elementType:yj,externalForwardedProps:b,ownerState:S});return M.jsxs(C,{...T,children:[M.jsx(P,{...E,children:i}),a&&M.jsx(A,{...O,children:a})]})});function xj(e){return typeof e.main=="string"}function Sj(e,t=[]){if(!xj(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function wr(e=[]){return([,t])=>t&&Sj(t,e)}function bj(e){return Fe("MuiAlert",e)}const q2=ze("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function wj(e){return Fe("MuiCircularProgress",e)}ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ba=44,Ex=Kd`
175
- 0% {
176
- transform: rotate(0deg);
177
- }
178
-
179
- 100% {
180
- transform: rotate(360deg);
181
- }
182
- `,Ix=Kd`
183
- 0% {
184
- stroke-dasharray: 1px, 200px;
185
- stroke-dashoffset: 0;
186
- }
187
-
188
- 50% {
189
- stroke-dasharray: 100px, 200px;
190
- stroke-dashoffset: -15px;
191
- }
192
-
193
- 100% {
194
- stroke-dasharray: 1px, 200px;
195
- stroke-dashoffset: -126px;
196
- }
197
- `,_j=typeof Ex!="string"?db`
198
- animation: ${Ex} 1.4s linear infinite;
199
- `:null,Cj=typeof Ix!="string"?db`
200
- animation: ${Ix} 1.4s ease-in-out infinite;
201
- `:null,Tj=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${ue(n)}`],svg:["svg"],circle:["circle",`circle${ue(r)}`,i&&"circleDisableShrink"]};return je(o,wj,t)},kj=se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ue(r.color)}`]]}})(Le(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_j||{animation:`${Ex} 1.4s linear infinite`}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Pj=se("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Rj=se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Le(({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:Cj||{animation:`${Ix} 1.4s ease-in-out infinite`}}]}))),dA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:p="indeterminate",...h}=n,v={...n,color:o,disableShrink:a,size:s,thickness:c,value:d,variant:p},g=Tj(v),x={},y={},S={};if(p==="determinate"){const w=2*Math.PI*((Ba-c)/2);x.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(d),x.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,y.transform="rotate(-90deg)"}return M.jsx(kj,{className:Se(g.root,i),style:{width:s,height:s,...y,...l},ownerState:v,ref:r,role:"progressbar",...S,...h,children:M.jsx(Pj,{className:g.svg,ownerState:v,viewBox:`${Ba/2} ${Ba/2} ${Ba} ${Ba}`,children:M.jsx(Rj,{className:g.circle,style:x,ownerState:v,cx:Ba,cy:Ba,r:(Ba-c)/2,fill:"none",strokeWidth:c})})})});function Mj(e){return Fe("MuiIconButton",e)}const K2=ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ej=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o,loading:a}=e,s={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${ue(n)}`,i&&`edge${ue(i)}`,`size${ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return je(s,Mj,t)},Ij=se(ds,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ue(r.color)}`],r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})(Le(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,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}}]})),Le(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt((e.vars||e).palette[t].main,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)}}],[`&.${K2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${K2.loading}`]:{color:"transparent"}}))),Aj=se("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"}}]})),va=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:v,...g}=n,x=uc(p),y=v??M.jsx(dA,{"aria-labelledby":x,color:"inherit",size:16}),S={...n,edge:i,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:d},w=Ej(S);return M.jsxs(Ij,{id:h?x:p,className:Se(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:r,...g,ownerState:S,children:[typeof h=="boolean"&&M.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:M.jsx(Aj,{className:w.loadingIndicator,ownerState:S,children:h&&y})}),o]})}),Dj=Ht(M.jsx("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"})),Lj=Ht(M.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),Oj=Ht(M.jsx("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"})),Nj=Ht(M.jsx("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"})),pA=Ht(M.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"})),$j=e=>{const{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`color${ue(r||n)}`,`${t}${ue(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return je(o,bj,i)},Bj=se(Bi,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color||r.severity)}`]]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?Il:Al,r=e.palette.mode==="light"?Al:Il;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(wr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${q2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(wr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${q2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(wr(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),Fj=se("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),zj=se("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),jj=se("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),X2={success:M.jsx(Dj,{fontSize:"inherit"}),warning:M.jsx(Lj,{fontSize:"inherit"}),error:M.jsx(Oj,{fontSize:"inherit"}),info:M.jsx(Nj,{fontSize:"inherit"})},ia=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:s="Close",color:l,components:c={},componentsProps:d={},icon:p,iconMapping:h=X2,onClose:v,role:g="alert",severity:x="success",slotProps:y={},slots:S={},variant:w="standard",...b}=n,C={...n,color:l,severity:x,variant:w,colorSeverity:l||x},T=$j(C),P={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...d,...y}},[E,A]=Ve("root",{ref:r,shouldForwardComponentProp:!0,className:Se(T.root,a),elementType:Bj,externalForwardedProps:{...P,...b},ownerState:C,additionalProps:{role:g,elevation:0}}),[O,R]=Ve("icon",{className:T.icon,elementType:Fj,externalForwardedProps:P,ownerState:C}),[L,N]=Ve("message",{className:T.message,elementType:zj,externalForwardedProps:P,ownerState:C}),[B,F]=Ve("action",{className:T.action,elementType:jj,externalForwardedProps:P,ownerState:C}),[z,j]=Ve("closeButton",{elementType:va,externalForwardedProps:P,ownerState:C}),[X,V]=Ve("closeIcon",{elementType:pA,externalForwardedProps:P,ownerState:C});return M.jsxs(E,{...A,children:[p!==!1?M.jsx(O,{...R,children:p||h[x]||X2[x]}):null,M.jsx(L,{...N,children:o}),i!=null?M.jsx(B,{...F,children:i}):null,i==null&&v?M.jsx(B,{...F,children:M.jsx(z,{size:"small","aria-label":s,title:s,color:"inherit",onClick:v,...j,children:M.jsx(X,{fontSize:"small",...V})})}):null]})});function Wj(e){return Fe("MuiTypography",e)}const Q2=ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Hj={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Vj=w6(),Uj=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ue(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return je(s,Wj,a)},Gj=se("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Le(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(wr()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ue(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Z2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qe=D.forwardRef(function(t,r){const{color:n,...i}=We({props:t,name:"MuiTypography"}),o=!Hj[n],a=Vj({...i,...o&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:v="body1",variantMapping:g=Z2,...x}=a,y={...a,align:s,color:n,className:l,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:v,variantMapping:g},S=c||(h?"p":g[v]||Z2[v])||"span",w=Uj(y);return M.jsx(Gj,{as:S,ref:r,className:Se(w.root,l),...x,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function Yj(e){return Fe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qj=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${ue(t)}`,`position${ue(r)}`]};return je(i,Yj,n)},J2=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Kj=se(Bi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],t[`color${ue(r.color)}`]]}})(Le(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(wr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?J2(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?J2(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Xj=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=n,c={...n,color:o,position:s,enableColorOnDark:a},d=qj(c);return M.jsx(Kj,{square:!0,component:"header",ownerState:c,elevation:4,className:Se(d.root,i,s==="fixed"&&"mui-fixed"),ref:r,...l})}),Qj=e=>{const t=D.useRef({});return D.useEffect(()=>{t.current=e}),t.current};function ek(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Zj(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let d=a?l.trim():l;r&&(d=d.toLowerCase()),t&&(d=ek(d));const p=d?s.filter(h=>{let v=(o||c)(h);return r&&(v=v.toLowerCase()),t&&(v=ek(v)),i==="start"?v.startsWith(d):v.includes(d)}):s;return typeof n=="number"?p.slice(0,n):p}}const Jj=Zj(),e8=5,t8=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},r8=[];function tk(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function n8(e){const{unstable_isActiveElementInListbox:t=t8,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:d=e.multiple?r8:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:v,disabledItemsFocusable:g=!1,disableListWrap:x=!1,filterOptions:y=Jj,filterSelectedOptions:S=!1,freeSolo:w=!1,getOptionDisabled:b,getOptionKey:C,getOptionLabel:T=ae=>ae.label??ae,groupBy:P,handleHomeEndKeys:E=!e.freeSolo,id:A,includeInputInList:O=!1,inputValue:R,isOptionEqualToValue:L=(ae,ie)=>ae===ie,multiple:N=!1,onChange:B,onClose:F,onHighlightChange:z,onInputChange:j,onOpen:X,open:V,openOnFocus:H=!1,options:G,readOnly:W=!1,renderValue:Y,selectOnFocus:te=!e.freeSolo,value:le}=e,ne=uc(A);let Z=T;Z=ae=>{const ie=T(ae);return typeof ie!="string"?String(ie):ie};const ce=D.useRef(!1),me=D.useRef(!0),de=D.useRef(null),fe=D.useRef(null),[ge,pe]=D.useState(null),[Oe,ke]=D.useState(-1),nt=i?0:-1,tt=D.useRef(nt),ct=D.useRef(tk(d??le,N,Z)).current,[we,it]=ns({controlled:le,default:d,name:c}),[Me,Ge]=ns({controlled:R,default:ct,name:c,state:"inputValue"}),[_e,Gt]=D.useState(!1),vt=D.useCallback((ae,ie,Pe)=>{if(!(N?we.length<ie.length:ie!==null)&&!s)return;const Ye=tk(ie,N,Z,Y);Me!==Ye&&(Ge(Ye),j&&j(ae,Ye,Pe))},[Z,Me,N,j,Ge,s,we,Y]),[Bt,Qt]=ns({controlled:V,default:!1,name:c,state:"open"}),[ir,Et]=D.useState(!0),Jt=!N&&we!=null&&Me===Z(we),Ze=Bt&&!W,xe=Ze?y(G.filter(ae=>!(S&&(N?we:[we]).some(ie=>ie!==null&&L(ae,ie)))),{inputValue:Jt&&ir?"":Me,getOptionLabel:Z}):[],xt=Qj({filteredOptions:xe,value:we,inputValue:Me});D.useEffect(()=>{const ae=we!==xt.value;_e&&!ae||w&&!ae||vt(null,we,"reset")},[we,vt,_e,xt.value,w]);const Ct=Bt&&xe.length>0&&!W,st=cn(ae=>{if(ae===-1)de.current.focus();else{const ie=Y?"data-item-index":"data-tag-index";ge.querySelector(`[${ie}="${ae}"]`).focus()}});D.useEffect(()=>{N&&Oe>we.length-1&&(ke(-1),st(-1))},[we,N,Oe,st]);function Ne(ae,ie){if(!fe.current||ae<0||ae>=xe.length)return-1;let Pe=ae;for(;;){const pt=fe.current.querySelector(`[data-option-index="${Pe}"]`),Ye=g?!1:!pt||pt.disabled||pt.getAttribute("aria-disabled")==="true";if(pt&&pt.hasAttribute("tabindex")&&!Ye)return Pe;if(ie==="next"?Pe=(Pe+1)%xe.length:Pe=(Pe-1+xe.length)%xe.length,Pe===ae)return-1}}const ot=cn(({event:ae,index:ie,reason:Pe})=>{if(tt.current=ie,ie===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ne}-option-${ie}`),z&&["mouse","keyboard","touch"].includes(Pe)&&z(ae,ie===-1?null:xe[ie],Pe),!fe.current)return;const pt=fe.current.querySelector(`[role="option"].${r}-focused`);pt&&(pt.classList.remove(`${r}-focused`),pt.classList.remove(`${r}-focusVisible`));let Ye=fe.current;if(fe.current.getAttribute("role")!=="listbox"&&(Ye=fe.current.parentElement.querySelector('[role="listbox"]')),!Ye)return;if(ie===-1){Ye.scrollTop=0;return}const or=fe.current.querySelector(`[data-option-index="${ie}"]`);if(or&&(or.classList.add(`${r}-focused`),Pe==="keyboard"&&or.classList.add(`${r}-focusVisible`),Ye.scrollHeight>Ye.clientHeight&&Pe!=="mouse"&&Pe!=="touch")){const hr=or,Tt=Ye.clientHeight+Ye.scrollTop,mc=hr.offsetTop+hr.offsetHeight;mc>Tt?Ye.scrollTop=mc-Ye.clientHeight:hr.offsetTop-hr.offsetHeight*(P?1.3:0)<Ye.scrollTop&&(Ye.scrollTop=hr.offsetTop-hr.offsetHeight*(P?1.3:0))}}),St=cn(({event:ae,diff:ie,direction:Pe="next",reason:pt})=>{if(!Ze)return;const or=Ne((()=>{const hr=xe.length-1;if(ie==="reset")return nt;if(ie==="start")return 0;if(ie==="end")return hr;const Tt=tt.current+ie;return Tt<0?Tt===-1&&O?-1:x&&tt.current!==-1||Math.abs(ie)>1?0:hr:Tt>hr?Tt===hr+1&&O?-1:x||Math.abs(ie)>1?hr:0:Tt})(),Pe);if(ot({index:or,reason:pt,event:ae}),n&&ie!=="reset")if(or===-1)de.current.value=Me;else{const hr=Z(xe[or]);de.current.value=hr,hr.toLowerCase().indexOf(Me.toLowerCase())===0&&Me.length>0&&de.current.setSelectionRange(Me.length,hr.length)}}),pr=()=>{const ae=(ie,Pe)=>{const pt=ie?Z(ie):"",Ye=Pe?Z(Pe):"";return pt===Ye};if(tt.current!==-1&&xt.filteredOptions&&xt.filteredOptions.length!==xe.length&&xt.inputValue===Me&&(N?we.length===xt.value.length&&xt.value.every((ie,Pe)=>Z(we[Pe])===Z(ie)):ae(xt.value,we))){const ie=xt.filteredOptions[tt.current];if(ie)return xe.findIndex(Pe=>Z(Pe)===Z(ie))}return-1},Ar=D.useCallback(()=>{if(!Ze)return;const ae=pr();if(ae!==-1){tt.current=ae;return}const ie=N?we[0]:we;if(xe.length===0||ie==null){St({diff:"reset"});return}if(fe.current){if(ie!=null){const Pe=xe[tt.current];if(N&&Pe&&we.findIndex(Ye=>L(Pe,Ye))!==-1)return;const pt=xe.findIndex(Ye=>L(Ye,ie));pt===-1?St({diff:"reset"}):ot({index:pt});return}if(tt.current>=xe.length-1){ot({index:xe.length-1});return}ot({index:tt.current})}},[xe.length,N?!1:we,S,St,ot,Ze,Me,N]),zi=cn(ae=>{Tx(fe,ae),ae&&Ar()});D.useEffect(()=>{Ar()},[Ar]);const er=ae=>{Bt||(Qt(!0),Et(!0),X&&X(ae))},Tr=(ae,ie)=>{Bt&&(Qt(!1),F&&F(ae,ie))},Qr=(ae,ie,Pe,pt)=>{if(N){if(we.length===ie.length&&we.every((Ye,or)=>Ye===ie[or]))return}else if(we===ie)return;B&&B(ae,ie,Pe,pt),it(ie)},Gn=D.useRef(!1),Hr=(ae,ie,Pe="selectOption",pt="options")=>{let Ye=Pe,or=ie;if(N){or=Array.isArray(we)?we.slice():[];const hr=or.findIndex(Tt=>L(ie,Tt));hr===-1?or.push(ie):pt!=="freeSolo"&&(or.splice(hr,1),Ye="removeOption")}vt(ae,or,Ye),Qr(ae,or,Ye,{option:ie}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Tr(ae,Ye),(a===!0||a==="touch"&&Gn.current||a==="mouse"&&!Gn.current)&&de.current.blur()};function ji(ae,ie){if(ae===-1)return-1;let Pe=ae;for(;;){if(ie==="next"&&Pe===we.length||ie==="previous"&&Pe===-1)return-1;const pt=Y?"data-item-index":"data-tag-index",Ye=ge.querySelector(`[${pt}="${Pe}"]`);if(!Ye||!Ye.hasAttribute("tabindex")||Ye.disabled||Ye.getAttribute("aria-disabled")==="true")Pe+=ie==="next"?1:-1;else return Pe}}const Je=(ae,ie)=>{if(!N)return;Me===""&&Tr(ae,"toggleInput");let Pe=Oe;Oe===-1?Me===""&&ie==="previous"&&(Pe=we.length-1):(Pe+=ie==="next"?1:-1,Pe<0&&(Pe=0),Pe===we.length&&(Pe=-1)),Pe=ji(Pe,ie),ke(Pe),st(Pe)},tr=ae=>{ce.current=!0,Ge(""),j&&j(ae,"","clear"),Qr(ae,N?[]:null,"clear")},Te=ae=>ie=>{if(ae.onKeyDown&&ae.onKeyDown(ie),!ie.defaultMuiPrevented&&(Oe!==-1&&!["ArrowLeft","ArrowRight"].includes(ie.key)&&(ke(-1),st(-1)),ie.which!==229))switch(ie.key){case"Home":Ze&&E&&(ie.preventDefault(),St({diff:"start",direction:"next",reason:"keyboard",event:ie}));break;case"End":Ze&&E&&(ie.preventDefault(),St({diff:"end",direction:"previous",reason:"keyboard",event:ie}));break;case"PageUp":ie.preventDefault(),St({diff:-5,direction:"previous",reason:"keyboard",event:ie}),er(ie);break;case"PageDown":ie.preventDefault(),St({diff:e8,direction:"next",reason:"keyboard",event:ie}),er(ie);break;case"ArrowDown":ie.preventDefault(),St({diff:1,direction:"next",reason:"keyboard",event:ie}),er(ie);break;case"ArrowUp":ie.preventDefault(),St({diff:-1,direction:"previous",reason:"keyboard",event:ie}),er(ie);break;case"ArrowLeft":!N&&Y?st(0):Je(ie,"previous");break;case"ArrowRight":!N&&Y?st(-1):Je(ie,"next");break;case"Enter":if(tt.current!==-1&&Ze){const Pe=xe[tt.current],pt=b?b(Pe):!1;if(ie.preventDefault(),pt)return;Hr(ie,Pe,"selectOption"),n&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else w&&Me!==""&&Jt===!1&&(N&&ie.preventDefault(),Hr(ie,Me,"createOption","freeSolo"));break;case"Escape":Ze?(ie.preventDefault(),ie.stopPropagation(),Tr(ie,"escape")):l&&(Me!==""||N&&we.length>0||Y)&&(ie.preventDefault(),ie.stopPropagation(),tr(ie));break;case"Backspace":if(N&&!W&&Me===""&&we.length>0){const Pe=Oe===-1?we.length-1:Oe,pt=we.slice();pt.splice(Pe,1),Qr(ie,pt,"removeOption",{option:we[Pe]})}!N&&Y&&!W&&(it(null),st(-1));break;case"Delete":if(N&&!W&&Me===""&&we.length>0&&Oe!==-1){const Pe=Oe,pt=we.slice();pt.splice(Pe,1),Qr(ie,pt,"removeOption",{option:we[Pe]})}!N&&Y&&!W&&(it(null),st(-1));break}},Ee=ae=>{Gt(!0),H&&!ce.current&&er(ae)},lt=ae=>{if(t(fe)){de.current.focus();return}Gt(!1),me.current=!0,ce.current=!1,o&&tt.current!==-1&&Ze?Hr(ae,xe[tt.current],"blur"):o&&w&&Me!==""?Hr(ae,Me,"blur","freeSolo"):s&&vt(ae,we,"blur"),Tr(ae,"blur")},ft=ae=>{const ie=ae.target.value;Me!==ie&&(Ge(ie),Et(!1),j&&j(ae,ie,"input")),ie===""?!p&&!N&&Qr(ae,null,"clear"):er(ae)},Dt=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));tt.current!==ie&&ot({event:ae,index:ie,reason:"mouse"})},kr=ae=>{ot({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Gn.current=!0},Zr=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));Hr(ae,xe[ie],"selectOption"),Gn.current=!1},hn=ae=>ie=>{const Pe=we.slice();Pe.splice(ae,1),Qr(ie,Pe,"removeOption",{option:we[ae]})},Wo=ae=>{Qr(ae,null,"removeOption",{option:we})},ci=ae=>{Bt?Tr(ae,"toggleInput"):er(ae)},Pr=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==ne&&ae.preventDefault()},Rr=ae=>{ae.currentTarget.contains(ae.target)&&(de.current.focus(),te&&me.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),me.current=!1)},Jr=ae=>{!v&&(Me===""||!Bt)&&ci(ae)};let ya=w&&Me.length>0;ya=ya||(N?we.length>0:we!==null);let bs=xe;return P&&(bs=xe.reduce((ae,ie,Pe)=>{const pt=P(ie);return ae.length>0&&ae[ae.length-1].group===pt?ae[ae.length-1].options.push(ie):ae.push({key:Pe,index:Pe,group:pt,options:[ie]}),ae},[])),v&&_e&&lt(),{getRootProps:(ae={})=>({...ae,onKeyDown:Te(ae),onMouseDown:Pr,onClick:Rr}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Me,onBlur:lt,onFocus:Ee,onChange:ft,onMouseDown:Jr,"aria-activedescendant":Ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ct?`${ne}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:tr}),getItemProps:({index:ae=0}={})=>({...N&&{key:ae},...Y?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!W&&{onDelete:N?hn(ae):Wo}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ci}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!W&&{onDelete:hn(ae)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:zi,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ie})=>{const Pe=(N?we:[we]).some(Ye=>Ye!=null&&L(ie,Ye)),pt=b?b(ie):!1;return{key:(C==null?void 0:C(ie))??Z(ie),tabIndex:-1,role:"option",id:`${ne}-option-${ae}`,onMouseMove:Dt,onClick:Zr,onTouchStart:kr,"data-option-index":ae,"aria-disabled":pt,"aria-selected":Pe}},id:ne,inputValue:Me,value:we,dirty:ya,expanded:Ze&&ge,popupOpen:Ze,focused:_e||Oe!==-1,anchorEl:ge,setAnchorEl:pe,focusedItem:Oe,focusedTag:Oe,groupedOptions:bs}}var Nn="top",Li="bottom",Oi="right",$n="left",Ib="auto",ep=[Nn,Li,Oi,$n],Zu="start",bd="end",i8="clippingParents",hA="viewport",nf="popper",o8="reference",rk=ep.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+bd])},[]),vA=[].concat(ep,[Ib]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+bd])},[]),a8="beforeRead",s8="read",l8="afterRead",u8="beforeMain",c8="main",f8="afterMain",d8="beforeWrite",p8="write",h8="afterWrite",v8=[a8,s8,l8,u8,c8,f8,d8,p8,h8];function Lo(e){return e?(e.nodeName||"").toLowerCase():null}function si(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dl(e){var t=si(e).Element;return e instanceof t||e instanceof Element}function Ai(e){var t=si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ab(e){if(typeof ShadowRoot>"u")return!1;var t=si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g8(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Ai(o)||!Lo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function m8(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ai(i)||!Lo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const y8={name:"applyStyles",enabled:!0,phase:"write",fn:g8,effect:m8,requires:["computeStyles"]};function Po(e){return e.split("-")[0]}var bl=Math.max,Qv=Math.min,Ju=Math.round;function Ax(){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 gA(){return!/^((?!chrome|android).)*safari/i.test(Ax())}function ec(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Ai(e)&&(i=e.offsetWidth>0&&Ju(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ju(n.height)/e.offsetHeight||1);var a=Dl(e)?si(e):window,s=a.visualViewport,l=!gA()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/i,d=(n.top+(l&&s?s.offsetTop:0))/o,p=n.width/i,h=n.height/o;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function Db(e){var t=ec(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function mA(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ab(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function da(e){return si(e).getComputedStyle(e)}function x8(e){return["table","td","th"].indexOf(Lo(e))>=0}function ys(e){return((Dl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ug(e){return Lo(e)==="html"?e:e.assignedSlot||e.parentNode||(Ab(e)?e.host:null)||ys(e)}function nk(e){return!Ai(e)||da(e).position==="fixed"?null:e.offsetParent}function S8(e){var t=/firefox/i.test(Ax()),r=/Trident/i.test(Ax());if(r&&Ai(e)){var n=da(e);if(n.position==="fixed")return null}var i=Ug(e);for(Ab(i)&&(i=i.host);Ai(i)&&["html","body"].indexOf(Lo(i))<0;){var o=da(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 tp(e){for(var t=si(e),r=nk(e);r&&x8(r)&&da(r).position==="static";)r=nk(r);return r&&(Lo(r)==="html"||Lo(r)==="body"&&da(r).position==="static")?t:r||S8(e)||t}function Lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gf(e,t,r){return bl(e,Qv(t,r))}function b8(e,t,r){var n=Gf(e,t,r);return n>r?r:n}function yA(){return{top:0,right:0,bottom:0,left:0}}function xA(e){return Object.assign({},yA(),e)}function SA(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var w8=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xA(typeof t!="number"?t:SA(t,ep))};function _8(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Po(r.placement),l=Lb(s),c=[$n,Oi].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var p=w8(i.padding,r),h=Db(o),v=l==="y"?Nn:$n,g=l==="y"?Li:Oi,x=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],y=a[l]-r.rects.reference[l],S=tp(o),w=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,b=x/2-y/2,C=p[v],T=w-h[d]-p[g],P=w/2-h[d]/2+b,E=Gf(C,P,T),A=l;r.modifiersData[n]=(t={},t[A]=E,t.centerOffset=E-P,t)}}function C8(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||mA(t.elements.popper,i)&&(t.elements.arrow=i))}const T8={name:"arrow",enabled:!0,phase:"main",fn:_8,effect:C8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tc(e){return e.split("-")[1]}var k8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function P8(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Ju(r*i)/i||0,y:Ju(n*i)/i||0}}function ik(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=a.x,v=h===void 0?0:h,g=a.y,x=g===void 0?0:g,y=typeof d=="function"?d({x:v,y:x}):{x:v,y:x};v=y.x,x=y.y;var S=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),b=$n,C=Nn,T=window;if(c){var P=tp(r),E="clientHeight",A="clientWidth";if(P===si(r)&&(P=ys(r),da(P).position!=="static"&&s==="absolute"&&(E="scrollHeight",A="scrollWidth")),P=P,i===Nn||(i===$n||i===Oi)&&o===bd){C=Li;var O=p&&P===T&&T.visualViewport?T.visualViewport.height:P[E];x-=O-n.height,x*=l?1:-1}if(i===$n||(i===Nn||i===Li)&&o===bd){b=Oi;var R=p&&P===T&&T.visualViewport?T.visualViewport.width:P[A];v-=R-n.width,v*=l?1:-1}}var L=Object.assign({position:s},c&&k8),N=d===!0?P8({x:v,y:x},si(r)):{x:v,y:x};if(v=N.x,x=N.y,l){var B;return Object.assign({},L,(B={},B[C]=w?"0":"",B[b]=S?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",B))}return Object.assign({},L,(t={},t[C]=w?x+"px":"",t[b]=S?v+"px":"",t.transform="",t))}function R8(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Po(t.placement),variation:tc(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,ik(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,ik(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 M8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R8,data:{}};var Ch={passive:!0};function E8(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",r.update,Ch)}),s&&l.addEventListener("resize",r.update,Ch),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Ch)}),s&&l.removeEventListener("resize",r.update,Ch)}}const I8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:E8,data:{}};var A8={left:"right",right:"left",bottom:"top",top:"bottom"};function Cv(e){return e.replace(/left|right|bottom|top/g,function(t){return A8[t]})}var D8={start:"end",end:"start"};function ok(e){return e.replace(/start|end/g,function(t){return D8[t]})}function Ob(e){var t=si(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Nb(e){return ec(ys(e)).left+Ob(e).scrollLeft}function L8(e,t){var r=si(e),n=ys(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=gA();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Nb(e),y:l}}function O8(e){var t,r=ys(e),n=Ob(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=bl(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=bl(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Nb(e),l=-n.scrollTop;return da(i||r).direction==="rtl"&&(s+=bl(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function $b(e){var t=da(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function bA(e){return["html","body","#document"].indexOf(Lo(e))>=0?e.ownerDocument.body:Ai(e)&&$b(e)?e:bA(Ug(e))}function Yf(e,t){var r;t===void 0&&(t=[]);var n=bA(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=si(n),a=i?[o].concat(o.visualViewport||[],$b(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Yf(Ug(a)))}function Dx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N8(e,t){var r=ec(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ak(e,t,r){return t===hA?Dx(L8(e,r)):Dl(t)?N8(t,r):Dx(O8(ys(e)))}function $8(e){var t=Yf(Ug(e)),r=["absolute","fixed"].indexOf(da(e).position)>=0,n=r&&Ai(e)?tp(e):e;return Dl(n)?t.filter(function(i){return Dl(i)&&mA(i,n)&&Lo(i)!=="body"}):[]}function B8(e,t,r,n){var i=t==="clippingParents"?$8(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,c){var d=ak(e,c,n);return l.top=bl(d.top,l.top),l.right=Qv(d.right,l.right),l.bottom=Qv(d.bottom,l.bottom),l.left=bl(d.left,l.left),l},ak(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wA(e){var t=e.reference,r=e.element,n=e.placement,i=n?Po(n):null,o=n?tc(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Nn:l={x:a,y:t.y-r.height};break;case Li:l={x:a,y:t.y+t.height};break;case Oi:l={x:t.x+t.width,y:s};break;case $n:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?Lb(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Zu:l[c]=l[c]-(t[d]/2-r[d]/2);break;case bd:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function wd(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?i8:s,c=r.rootBoundary,d=c===void 0?hA:c,p=r.elementContext,h=p===void 0?nf:p,v=r.altBoundary,g=v===void 0?!1:v,x=r.padding,y=x===void 0?0:x,S=xA(typeof y!="number"?y:SA(y,ep)),w=h===nf?o8:nf,b=e.rects.popper,C=e.elements[g?w:h],T=B8(Dl(C)?C:C.contextElement||ys(e.elements.popper),l,d,a),P=ec(e.elements.reference),E=wA({reference:P,element:b,placement:i}),A=Dx(Object.assign({},b,E)),O=h===nf?A:P,R={top:T.top-O.top+S.top,bottom:O.bottom-T.bottom+S.bottom,left:T.left-O.left+S.left,right:O.right-T.right+S.right},L=e.modifiersData.offset;if(h===nf&&L){var N=L[i];Object.keys(R).forEach(function(B){var F=[Oi,Li].indexOf(B)>=0?1:-1,z=[Nn,Li].indexOf(B)>=0?"y":"x";R[B]+=N[z]*F})}return R}function F8(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?vA:l,d=tc(n),p=d?s?rk:rk.filter(function(g){return tc(g)===d}):ep,h=p.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=p);var v=h.reduce(function(g,x){return g[x]=wd(e,{placement:x,boundary:i,rootBoundary:o,padding:a})[Po(x)],g},{});return Object.keys(v).sort(function(g,x){return v[g]-v[x]})}function z8(e){if(Po(e)===Ib)return[];var t=Cv(e);return[ok(e),t,ok(t)]}function j8(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,x=r.allowedAutoPlacements,y=t.options.placement,S=Po(y),w=S===y,b=l||(w||!g?[Cv(y)]:z8(y)),C=[y].concat(b).reduce(function(le,ne){return le.concat(Po(ne)===Ib?F8(t,{placement:ne,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:x}):ne)},[]),T=t.rects.reference,P=t.rects.popper,E=new Map,A=!0,O=C[0],R=0;R<C.length;R++){var L=C[R],N=Po(L),B=tc(L)===Zu,F=[Nn,Li].indexOf(N)>=0,z=F?"width":"height",j=wd(t,{placement:L,boundary:d,rootBoundary:p,altBoundary:h,padding:c}),X=F?B?Oi:$n:B?Li:Nn;T[z]>P[z]&&(X=Cv(X));var V=Cv(X),H=[];if(o&&H.push(j[N]<=0),s&&H.push(j[X]<=0,j[V]<=0),H.every(function(le){return le})){O=L,A=!1;break}E.set(L,H)}if(A)for(var G=g?3:1,W=function(ne){var Z=C.find(function(ce){var me=E.get(ce);if(me)return me.slice(0,ne).every(function(de){return de})});if(Z)return O=Z,"break"},Y=G;Y>0;Y--){var te=W(Y);if(te==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const W8={name:"flip",enabled:!0,phase:"main",fn:j8,requiresIfExists:["offset"],data:{_skip:!1}};function sk(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function lk(e){return[Nn,Oi,Li,$n].some(function(t){return e[t]>=0})}function H8(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=wd(t,{elementContext:"reference"}),s=wd(t,{altBoundary:!0}),l=sk(a,n),c=sk(s,i,o),d=lk(l),p=lk(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const V8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H8};function U8(e,t,r){var n=Po(e),i=[$n,Nn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[$n,Oi].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function G8(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=vA.reduce(function(d,p){return d[p]=U8(p,t.rects,o),d},{}),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[n]=a}const Y8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G8};function q8(e){var t=e.state,r=e.name;t.modifiersData[r]=wA({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const K8={name:"popperOffsets",enabled:!0,phase:"read",fn:q8,data:{}};function X8(e){return e==="x"?"y":"x"}function Q8(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,v=h===void 0?!0:h,g=r.tetherOffset,x=g===void 0?0:g,y=wd(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),S=Po(t.placement),w=tc(t.placement),b=!w,C=Lb(S),T=X8(C),P=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,O=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,R=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(o){var B,F=C==="y"?Nn:$n,z=C==="y"?Li:Oi,j=C==="y"?"height":"width",X=P[C],V=X+y[F],H=X-y[z],G=v?-A[j]/2:0,W=w===Zu?E[j]:A[j],Y=w===Zu?-A[j]:-E[j],te=t.elements.arrow,le=v&&te?Db(te):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yA(),Z=ne[F],ce=ne[z],me=Gf(0,E[j],le[j]),de=b?E[j]/2-G-me-Z-R.mainAxis:W-me-Z-R.mainAxis,fe=b?-E[j]/2+G+me+ce+R.mainAxis:Y+me+ce+R.mainAxis,ge=t.elements.arrow&&tp(t.elements.arrow),pe=ge?C==="y"?ge.clientTop||0:ge.clientLeft||0:0,Oe=(B=L==null?void 0:L[C])!=null?B:0,ke=X+de-Oe-pe,nt=X+fe-Oe,tt=Gf(v?Qv(V,ke):V,X,v?bl(H,nt):H);P[C]=tt,N[C]=tt-X}if(s){var ct,we=C==="x"?Nn:$n,it=C==="x"?Li:Oi,Me=P[T],Ge=T==="y"?"height":"width",_e=Me+y[we],Gt=Me-y[it],vt=[Nn,$n].indexOf(S)!==-1,Bt=(ct=L==null?void 0:L[T])!=null?ct:0,Qt=vt?_e:Me-E[Ge]-A[Ge]-Bt+R.altAxis,ir=vt?Me+E[Ge]+A[Ge]-Bt-R.altAxis:Gt,Et=v&&vt?b8(Qt,Me,ir):Gf(v?Qt:_e,Me,v?ir:Gt);P[T]=Et,N[T]=Et-Me}t.modifiersData[n]=N}}const Z8={name:"preventOverflow",enabled:!0,phase:"main",fn:Q8,requiresIfExists:["offset"]};function J8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function e9(e){return e===si(e)||!Ai(e)?Ob(e):J8(e)}function t9(e){var t=e.getBoundingClientRect(),r=Ju(t.width)/e.offsetWidth||1,n=Ju(t.height)/e.offsetHeight||1;return r!==1||n!==1}function r9(e,t,r){r===void 0&&(r=!1);var n=Ai(t),i=Ai(t)&&t9(t),o=ys(t),a=ec(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Lo(t)!=="body"||$b(o))&&(s=e9(t)),Ai(t)?(l=ec(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Nb(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function n9(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function i9(e){var t=n9(e);return v8.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function o9(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function a9(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var uk={placement:"bottom",modifiers:[],strategy:"absolute"};function ck(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function s9(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?uk:i;return function(s,l,c){c===void 0&&(c=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uk,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},p=[],h=!1,v={state:d,setOptions:function(S){var w=typeof S=="function"?S(d.options):S;x(),d.options=Object.assign({},o,d.options,w),d.scrollParents={reference:Dl(s)?Yf(s):s.contextElement?Yf(s.contextElement):[],popper:Yf(l)};var b=i9(a9([].concat(n,d.options.modifiers)));return d.orderedModifiers=b.filter(function(C){return C.enabled}),g(),v.update()},forceUpdate:function(){if(!h){var S=d.elements,w=S.reference,b=S.popper;if(ck(w,b)){d.rects={reference:r9(w,tp(b),d.options.strategy==="fixed"),popper:Db(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(R){return d.modifiersData[R.name]=Object.assign({},R.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],P=T.fn,E=T.options,A=E===void 0?{}:E,O=T.name;typeof P=="function"&&(d=P({state:d,options:A,name:O,instance:v})||d)}}}},update:o9(function(){return new Promise(function(y){v.forceUpdate(),y(d)})}),destroy:function(){x(),h=!0}};if(!ck(s,l))return v;v.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var S=y.name,w=y.options,b=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var T=C({state:d,name:S,instance:v,options:b}),P=function(){};p.push(T||P)}})}function x(){p.forEach(function(y){return y()}),p=[]}return v}}var l9=[I8,K8,M8,y8,Y8,W8,Z8,T8,V8],u9=s9({defaultModifiers:l9});function rc(e){var p;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:uA(r,n),{props:s,internalRef:l}=fA({...o,externalSlotProps:a}),c=_r(l,a==null?void 0:a.ref,(p=e.additionalProps)==null?void 0:p.ref);return lA(t,{...s,ref:c},n)}function Fl(e){var t;return parseInt(D.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function c9(e){return typeof e=="function"?e():e}const _A=D.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,s]=D.useState(null),l=_r(D.isValidElement(n)?Fl(n):null,r);if(oo(()=>{o||s(c9(i)||document.body)},[i,o]),oo(()=>{if(a&&!o)return Tx(r,a),()=>{Tx(r,null)}},[r,a,o]),o){if(D.isValidElement(n)){const c={ref:l};return D.cloneElement(n,c)}return n}return a&&oA.createPortal(n,a)});function f9(e){return Fe("MuiPopper",e)}ze("MuiPopper",["root"]);function d9(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 Lx(e){return typeof e=="function"?e():e}function p9(e){return e.nodeType!==void 0}const h9=e=>{const{classes:t}=e;return je({root:["root"]},f9,t)},v9={},g9=D.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:v={},TransitionProps:g,ownerState:x,...y}=t,S=D.useRef(null),w=_r(S,r),b=D.useRef(null),C=_r(b,p),T=D.useRef(C);oo(()=>{T.current=C},[C]),D.useImperativeHandle(p,()=>b.current,[]);const P=d9(c,o),[E,A]=D.useState(P),[O,R]=D.useState(Lx(n));D.useEffect(()=>{b.current&&b.current.forceUpdate()}),D.useEffect(()=>{n&&R(Lx(n))},[n]),oo(()=>{if(!O||!l)return;const z=V=>{A(V.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{z(V)}}];s!=null&&(j=j.concat(s)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const X=u9(O,S.current,{placement:P,...d,modifiers:j});return T.current(X),()=>{X.destroy(),T.current(null)}},[O,a,s,l,d,P]);const L={placement:E};g!==null&&(L.TransitionProps=g);const N=h9(t),B=v.root??"div",F=rc({elementType:B,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:N.root});return M.jsx(B,{...F,children:typeof i=="function"?i(L):i})}),m9=D.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:p="bottom",popperOptions:h=v9,popperRef:v,style:g,transition:x=!1,slotProps:y={},slots:S={},...w}=t,[b,C]=D.useState(!0),T=()=>{C(!1)},P=()=>{C(!0)};if(!l&&!d&&(!x||b))return null;let E;if(o)E=o;else if(n){const R=Lx(n);E=R&&p9(R)?jn(R).body:jn(null).body}const A=!d&&l&&(!x||b)?"none":void 0,O=x?{in:d,onEnter:T,onExited:P}:void 0;return M.jsx(_A,{disablePortal:s,container:E,children:M.jsx(g9,{anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:x?!b:d,placement:p,popperOptions:h,popperRef:v,slotProps:y,slots:S,...w,style:{position:"fixed",top:0,left:0,display:A,...g},TransitionProps:O,children:i})})}),y9=se(m9,{name:"MuiPopper",slot:"Root"})({}),Gg=D.forwardRef(function(t,r){const n=lc(),i=We({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:x,popperRef:y,transition:S,slots:w,slotProps:b,...C}=i,T=(w==null?void 0:w.root)??(s==null?void 0:s.Root),P={anchorEl:o,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:x,popperRef:y,transition:S,...C};return M.jsx(y9,{as:a,direction:n?"rtl":"ltr",slots:{root:T},slotProps:b??l,...P,ref:r})});function x9(e){return Fe("MuiListSubheader",e)}ze("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const S9=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root",r!=="default"&&`color${ue(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return je(a,x9,t)},b9=se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ue(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Le(({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}}]}))),Ox=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...d}=n,p={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},h=S9(p);return M.jsx(b9,{as:a,className:Se(h.root,i),ref:r,ownerState:p,...d})});Ox&&(Ox.muiSkipListHighlight=!0);const w9=Ht(M.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 _9(e){return Fe("MuiChip",e)}const bt=ze("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"]),C9=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${ue(n)}`,`color${ue(i)}`,s&&"clickable",s&&`clickableColor${ue(i)}`,a&&"deletable",a&&`deletableColor${ue(i)}`,`${l}${ue(i)}`],label:["label",`label${ue(n)}`],avatar:["avatar",`avatar${ue(n)}`,`avatarColor${ue(i)}`],icon:["icon",`icon${ue(n)}`,`iconColor${ue(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(n)}`,`deleteIconColor${ue(i)}`,`deleteIcon${ue(l)}Color${ue(i)}`]};return je(c,_9,t)},T9=se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{[`& .${bt.avatar}`]:t.avatar},{[`& .${bt.avatar}`]:t[`avatar${ue(s)}`]},{[`& .${bt.avatar}`]:t[`avatarColor${ue(n)}`]},{[`& .${bt.icon}`]:t.icon},{[`& .${bt.icon}`]:t[`icon${ue(s)}`]},{[`& .${bt.icon}`]:t[`iconColor${ue(i)}`]},{[`& .${bt.deleteIcon}`]:t.deleteIcon},{[`& .${bt.deleteIcon}`]:t[`deleteIcon${ue(s)}`]},{[`& .${bt.deleteIcon}`]:t[`deleteIconColor${ue(n)}`]},{[`& .${bt.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(n)}`]},t.root,t[`size${ue(s)}`],t[`color${ue(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ue(n)})`],a&&t.deletable,a&&n!=="default"&&t[`deletableColor${ue(n)}`],t[l],t[`${l}${ue(n)}`]]}})(Le(({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,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",[`&.${bt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${bt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${bt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${bt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${bt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${bt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${bt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${bt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${bt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(wr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${bt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:mt(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${bt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${bt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${bt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(wr(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${bt.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${bt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(wr(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${bt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].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]}`,[`&.${bt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${bt.avatar}`]:{marginLeft:4},[`& .${bt.avatarSmall}`]:{marginLeft:2},[`& .${bt.icon}`]:{marginLeft:4},[`& .${bt.iconSmall}`]:{marginLeft:2},[`& .${bt.deleteIcon}`]:{marginRight:5},[`& .${bt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(wr()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:mt(e.palette[r].main,.7)}`,[`&.${bt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${bt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${bt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:mt(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),k9=se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ue(n)}`]]}})({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 fk(e){return e.key==="Backspace"||e.key==="Delete"}const P9=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:d=!1,icon:p,label:h,onClick:v,onDelete:g,onKeyDown:x,onKeyUp:y,size:S="medium",variant:w="filled",tabIndex:b,skipFocusWhenDisabled:C=!1,slots:T={},slotProps:P={},...E}=n,A=D.useRef(null),O=_r(A,r),R=Z=>{Z.stopPropagation(),g&&g(Z)},L=Z=>{Z.currentTarget===Z.target&&fk(Z)&&Z.preventDefault(),x&&x(Z)},N=Z=>{Z.currentTarget===Z.target&&g&&fk(Z)&&g(Z),y&&y(Z)},B=a!==!1&&v?!0:a,F=B||g?ds:l||"div",z={...n,component:F,disabled:d,size:S,color:s,iconColor:D.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:B,variant:w},j=C9(z),X=F===ds?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let V=null;g&&(V=c&&D.isValidElement(c)?D.cloneElement(c,{className:Se(c.props.className,j.deleteIcon),onClick:R}):M.jsx(w9,{className:j.deleteIcon,onClick:R}));let H=null;i&&D.isValidElement(i)&&(H=D.cloneElement(i,{className:Se(j.avatar,i.props.className)}));let G=null;p&&D.isValidElement(p)&&(G=D.cloneElement(p,{className:Se(j.icon,p.props.className)}));const W={slots:T,slotProps:P},[Y,te]=Ve("root",{elementType:T9,externalForwardedProps:{...W,...E},ownerState:z,shouldForwardComponentProp:!0,ref:O,className:Se(j.root,o),additionalProps:{disabled:B&&d?!0:void 0,tabIndex:C&&d?-1:b,...X},getSlotProps:Z=>({...Z,onClick:ce=>{var me;(me=Z.onClick)==null||me.call(Z,ce),v(ce)},onKeyDown:ce=>{var me;(me=Z.onKeyDown)==null||me.call(Z,ce),L(ce)},onKeyUp:ce=>{var me;(me=Z.onKeyUp)==null||me.call(Z,ce),N(ce)}})}),[le,ne]=Ve("label",{elementType:k9,externalForwardedProps:W,ownerState:z,className:j.label});return M.jsxs(Y,{as:F,...te,children:[H||G,M.jsx(le,{...ne,children:h}),V]})});function Th(e){return parseInt(e,10)||0}const R9={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M9(e){for(const t in e)return!1;return!0}function dk(e){return M9(e)||e.outerHeightStyle===0&&!e.overflowing}const E9=D.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s,...l}=t,{current:c}=D.useRef(s!=null),d=D.useRef(null),p=_r(r,d),h=D.useRef(null),v=D.useRef(null),g=D.useCallback(()=>{const b=d.current,C=v.current;if(!b||!C)return;const P=ai(b).getComputedStyle(b);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=P.width,C.value=b.value||t.placeholder||"x",C.value.slice(-1)===`
202
- `&&(C.value+=" ");const E=P.boxSizing,A=Th(P.paddingBottom)+Th(P.paddingTop),O=Th(P.borderBottomWidth)+Th(P.borderTopWidth),R=C.scrollHeight;C.value="x";const L=C.scrollHeight;let N=R;o&&(N=Math.max(Number(o)*L,N)),i&&(N=Math.min(Number(i)*L,N)),N=Math.max(N,L);const B=N+(E==="border-box"?A+O:0),F=Math.abs(N-R)<=1;return{outerHeightStyle:B,overflowing:F}},[i,o,t.placeholder]),x=cn(()=>{const b=d.current,C=g();if(!b||!C||dk(C))return!1;const T=C.outerHeightStyle;return h.current!=null&&h.current!==T}),y=D.useCallback(()=>{const b=d.current,C=g();if(!b||!C||dk(C))return;const T=C.outerHeightStyle;h.current!==T&&(h.current=T,b.style.height=`${T}px`),b.style.overflow=C.overflowing?"hidden":""},[g]),S=D.useRef(-1);oo(()=>{const b=Jd(y),C=d==null?void 0:d.current;if(!C)return;const T=ai(C);T.addEventListener("resize",b);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{x()&&(P.unobserve(C),cancelAnimationFrame(S.current),y(),S.current=requestAnimationFrame(()=>{P.observe(C)}))}),P.observe(C)),()=>{b.clear(),cancelAnimationFrame(S.current),T.removeEventListener("resize",b),P&&P.disconnect()}},[g,y,x]),oo(()=>{y()});const w=b=>{c||y();const C=b.target,T=C.value.length,P=C.value.endsWith(`
203
- `),E=C.selectionStart===T;P&&E&&C.setSelectionRange(T,T),n&&n(b)};return M.jsxs(D.Fragment,{children:[M.jsx("textarea",{value:s,onChange:w,ref:p,rows:o,style:a,...l}),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...R9.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function _d(e){return typeof e=="string"}function xs({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Yg=D.createContext(void 0);function $o(){return D.useContext(Yg)}function pk(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zv(e,t=!1){return e&&(pk(e.value)&&e.value!==""||t&&pk(e.defaultValue)&&e.defaultValue!=="")}function I9(e){return e.startAdornment}function A9(e){return Fe("MuiInputBase",e)}const Jn=ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hk;const qg=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Kg=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},D9=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:p,size:h,startAdornment:v,type:g}=e,x={root:["root",`color${ue(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${ue(h)}`,d&&"multiline",v&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return je(x,A9,t)},Xg=se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qg})(Le(({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",[`&.${Jn.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:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Qg=se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Kg})(Le(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Jn.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Jn.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"}}]}})),vk=_b({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Bb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:v,endAdornment:g,error:x,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:C,margin:T,maxRows:P,minRows:E,multiline:A=!1,name:O,onBlur:R,onChange:L,onClick:N,onFocus:B,onKeyDown:F,onKeyUp:z,placeholder:j,readOnly:X,renderSuffix:V,rows:H,size:G,slotProps:W={},slots:Y={},startAdornment:te,type:le="text",value:ne,...Z}=n,ce=b.value!=null?b.value:ne,{current:me}=D.useRef(ce!=null),de=D.useRef(),fe=D.useCallback(xe=>{},[]),ge=_r(de,C,b.ref,fe),[pe,Oe]=D.useState(!1),ke=$o(),nt=xs({props:n,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});nt.focused=ke?ke.focused:pe,D.useEffect(()=>{!ke&&h&&pe&&(Oe(!1),R&&R())},[ke,h,pe,R]);const tt=ke&&ke.onFilled,ct=ke&&ke.onEmpty,we=D.useCallback(xe=>{Zv(xe)?tt&&tt():ct&&ct()},[tt,ct]);oo(()=>{me&&we({value:ce})},[ce,we,me]);const it=xe=>{B&&B(xe),b.onFocus&&b.onFocus(xe),ke&&ke.onFocus?ke.onFocus(xe):Oe(!0)},Me=xe=>{R&&R(xe),b.onBlur&&b.onBlur(xe),ke&&ke.onBlur?ke.onBlur(xe):Oe(!1)},Ge=(xe,...xt)=>{if(!me){const Ct=xe.target||de.current;if(Ct==null)throw new Error(fa(1));we({value:Ct.value})}b.onChange&&b.onChange(xe,...xt),L&&L(xe,...xt)};D.useEffect(()=>{we(de.current)},[]);const _e=xe=>{de.current&&xe.currentTarget===xe.target&&de.current.focus(),N&&N(xe)};let Gt=w,vt=b;A&&Gt==="input"&&(H?vt={type:void 0,minRows:H,maxRows:H,...vt}:vt={type:void 0,maxRows:P,minRows:E,...vt},Gt=E9);const Bt=xe=>{we(xe.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};D.useEffect(()=>{ke&&ke.setAdornedStart(!!te)},[ke,te]);const Qt={...n,color:nt.color||"primary",disabled:nt.disabled,endAdornment:g,error:nt.error,focused:nt.focused,formControl:ke,fullWidth:y,hiddenLabel:nt.hiddenLabel,multiline:A,size:nt.size,startAdornment:te,type:le},ir=D9(Qt),Et=Y.root||c.Root||Xg,Jt=W.root||d.root||{},Ze=Y.input||c.Input||Qg;return vt={...vt,...W.input??d.input},M.jsxs(D.Fragment,{children:[!v&&typeof vk=="function"&&(hk||(hk=M.jsx(vk,{}))),M.jsxs(Et,{...Jt,ref:r,onClick:_e,...Z,...!_d(Et)&&{ownerState:{...Qt,...Jt.ownerState}},className:Se(ir.root,Jt.className,s,X&&"MuiInputBase-readOnly"),children:[te,M.jsx(Yg.Provider,{value:null,children:M.jsx(Ze,{"aria-invalid":nt.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:p,disabled:nt.disabled,id:S,onAnimationStart:Bt,name:O,placeholder:j,readOnly:X,required:nt.required,rows:H,value:ce,onKeyDown:F,onKeyUp:z,type:le,...vt,...!_d(Ze)&&{as:Gt,ownerState:{...Qt,...vt.ownerState}},ref:ge,className:Se(ir.input,vt.className,X&&"MuiInputBase-readOnly"),onBlur:Me,onChange:Ge,onFocus:it})}),g,V?V({...nt,startAdornment:te}):null]})]})});function L9(e){return Fe("MuiInput",e)}const Za={...Jn,...ze("MuiInput",["root","underline","input"])};function O9(e){return Fe("MuiOutlinedInput",e)}const bi={...Jn,...ze("MuiOutlinedInput",["root","notchedOutline","input"])};function N9(e){return Fe("MuiFilledInput",e)}const ei={...Jn,...ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},CA=Ht(M.jsx("path",{d:"M7 10l5 5 5-5z"}));function $9(e){return Fe("MuiAutocomplete",e)}const ht=ze("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 gk,mk;const B9=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:d}=e,p={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return je(p,$9,t)},F9=se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${ht.tag}`]:t.tag},{[`& .${ht.tag}`]:t[`tagSize${ue(s)}`]},{[`& .${ht.inputRoot}`]:t.inputRoot},{[`& .${ht.input}`]:t.input},{[`& .${ht.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${ht.focused} .${ht.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ht.clearIndicator}`]:{visibility:"visible"}},[`& .${ht.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ht.inputRoot}`]:{[`.${ht.hasPopupIcon}&, .${ht.hasClearIcon}&`]:{paddingRight:30},[`.${ht.hasPopupIcon}.${ht.hasClearIcon}&`]:{paddingRight:56},[`& .${ht.input}`]:{width:0,minWidth:30}},[`& .${Za.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Za.root}.${Jn.sizeSmall}`]:{[`& .${Za.input}`]:{padding:"2px 4px 3px 0"}},[`& .${bi.root}`]:{padding:9,[`.${ht.hasPopupIcon}&, .${ht.hasClearIcon}&`]:{paddingRight:39},[`.${ht.hasPopupIcon}.${ht.hasClearIcon}&`]:{paddingRight:65},[`& .${ht.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ht.endAdornment}`]:{right:9}},[`& .${bi.root}.${Jn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ht.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ei.root}`]:{paddingTop:19,paddingLeft:8,[`.${ht.hasPopupIcon}&, .${ht.hasClearIcon}&`]:{paddingRight:39},[`.${ht.hasPopupIcon}.${ht.hasClearIcon}&`]:{paddingRight:65},[`& .${ei.input}`]:{padding:"7px 4px"},[`& .${ht.endAdornment}`]:{right:9}},[`& .${ei.root}.${Jn.sizeSmall}`]:{paddingBottom:1,[`& .${ei.input}`]:{padding:"2.5px 4px"}},[`& .${Jn.hiddenLabel}`]:{paddingTop:8},[`& .${ei.root}.${Jn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ht.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ei.root}.${Jn.hiddenLabel}.${Jn.sizeSmall}`]:{[`& .${ht.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ht.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ht.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ht.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ht.inputRoot}`]:{flexWrap:"wrap"}}}]}),z9=se("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),j9=se(va,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),W9=se(va,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),H9=se(Gg,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ht.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Le(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),V9=se(Bi,{name:"MuiAutocomplete",slot:"Paper"})(Le(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),U9=se("div",{name:"MuiAutocomplete",slot:"Loading"})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),G9=se("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Y9=se("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Le(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ht.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"},[`&.${ht.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"},[`&.${ht.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ht.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ht.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),q9=se(Ox,{name:"MuiAutocomplete",slot:"GroupLabel"})(Le(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),K9=se("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${ht.option}`]:{paddingLeft:24}}),X9=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:d=gk||(gk=M.jsx(pA,{fontSize:"small"})),clearOnBlur:p=!n.freeSolo,clearOnEscape:h=!1,clearText:v="Clear",closeText:g="Close",componentsProps:x,defaultValue:y=n.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:w=!1,disabled:b=!1,disabledItemsFocusable:C=!1,disableListWrap:T=!1,disablePortal:P=!1,filterOptions:E,filterSelectedOptions:A=!1,forcePopupIcon:O="auto",freeSolo:R=!1,fullWidth:L=!1,getLimitTagsText:N=_t=>`+${_t}`,getOptionDisabled:B,getOptionKey:F,getOptionLabel:z,isOptionEqualToValue:j,groupBy:X,handleHomeEndKeys:V=!n.freeSolo,id:H,includeInputInList:G=!1,inputValue:W,limitTags:Y=-1,ListboxComponent:te,ListboxProps:le,loading:ne=!1,loadingText:Z="Loading…",multiple:ce=!1,noOptionsText:me="No options",onChange:de,onClose:fe,onHighlightChange:ge,onInputChange:pe,onOpen:Oe,open:ke,openOnFocus:nt=!1,openText:tt="Open",options:ct,PaperComponent:we,PopperComponent:it,popupIcon:Me=mk||(mk=M.jsx(CA,{})),readOnly:Ge=!1,renderGroup:_e,renderInput:Gt,renderOption:vt,renderTags:Bt,renderValue:Qt,selectOnFocus:ir=!n.freeSolo,size:Et="medium",slots:Jt={},slotProps:Ze={},value:xe,...xt}=n,{getRootProps:Ct,getInputProps:st,getInputLabelProps:Ne,getPopupIndicatorProps:ot,getClearProps:St,getItemProps:pr,getListboxProps:Ar,getOptionProps:zi,value:er,dirty:Tr,expanded:Qr,id:Gn,popupOpen:Hr,focused:ji,focusedItem:Je,anchorEl:tr,setAnchorEl:Te,inputValue:Ee,groupedOptions:lt}=n8({...n,componentName:"Autocomplete"}),ft=!S&&!b&&Tr&&!Ge,Dt=(!R||O===!0)&&O!==!1,{onMouseDown:kr}=st(),{ref:Zr,...hn}=Ar(),ci=z||(_t=>_t.label??_t),Pr={...n,disablePortal:P,expanded:Qr,focused:ji,fullWidth:L,getOptionLabel:ci,hasClearIcon:ft,hasPopupIcon:Dt,inputFocused:Je===-1,popupOpen:Hr,size:Et},Rr=B9(Pr),Jr={slots:{paper:we,popper:it,...Jt},slotProps:{chip:l,listbox:le,...x,...Ze}},[ya,bs]=Ve("listbox",{elementType:Y9,externalForwardedProps:Jr,ownerState:Pr,className:Rr.listbox,additionalProps:hn,ref:Zr}),[ae,ie]=Ve("paper",{elementType:Bi,externalForwardedProps:Jr,ownerState:Pr,className:Rr.paper}),[Pe,pt]=Ve("popper",{elementType:Gg,externalForwardedProps:Jr,ownerState:Pr,className:Rr.popper,additionalProps:{disablePortal:P,style:{width:tr?tr.clientWidth:null},role:"presentation",anchorEl:tr,open:Hr}});let Ye;const or=_t=>({className:Rr.tag,disabled:b,...pr(_t)});if(ce?er.length>0&&(Bt?Ye=Bt(er,or,Pr):Qt?Ye=Qt(er,or,Pr):Ye=er.map((_t,Yn)=>{const{key:Dr,...ws}=or({index:Yn});return M.jsx(P9,{label:ci(_t),size:Et,...ws,...Jr.slotProps.chip},Dr)})):Qt&&er!=null&&(Ye=Qt(er,or,Pr)),Y>-1&&Array.isArray(Ye)){const _t=Ye.length-Y;!ji&&_t>0&&(Ye=Ye.splice(0,Y),Ye.push(M.jsx("span",{className:Rr.tag,children:N(_t)},Ye.length)))}const Tt=_e||(_t=>M.jsxs("li",{children:[M.jsx(q9,{className:Rr.groupLabel,ownerState:Pr,component:"div",children:_t.group}),M.jsx(K9,{className:Rr.groupUl,ownerState:Pr,children:_t.children})]},_t.key)),yc=vt||((_t,Yn)=>{const{key:Dr,...ws}=_t;return M.jsx("li",{...ws,children:ci(Yn)},Dr)}),xc=(_t,Yn)=>{const Dr=zi({option:_t,index:Yn});return yc({...Dr,className:Rr.option},_t,{selected:Dr["aria-selected"],index:Yn,inputValue:Ee},Pr)},Ho=Jr.slotProps.clearIndicator,jl=Jr.slotProps.popupIndicator;return M.jsxs(D.Fragment,{children:[M.jsx(F9,{ref:r,className:Se(Rr.root,c),ownerState:Pr,...Ct(xt),children:Gt({id:Gn,disabled:b,fullWidth:!0,size:Et==="small"?"small":void 0,InputLabelProps:Ne(),InputProps:{ref:Te,className:Rr.inputRoot,startAdornment:Ye,onMouseDown:_t=>{_t.target===_t.currentTarget&&kr(_t)},...(ft||Dt)&&{endAdornment:M.jsxs(z9,{className:Rr.endAdornment,ownerState:Pr,children:[ft?M.jsx(j9,{...St(),"aria-label":v,title:v,ownerState:Pr,...Ho,className:Se(Rr.clearIndicator,Ho==null?void 0:Ho.className),children:d}):null,Dt?M.jsx(W9,{...ot(),disabled:b,"aria-label":Hr?g:tt,title:Hr?g:tt,ownerState:Pr,...jl,className:Se(Rr.popupIndicator,jl==null?void 0:jl.className),children:Me}):null]})}},inputProps:{className:Rr.input,disabled:b,readOnly:Ge,...st()}})}),tr?M.jsx(H9,{as:Pe,...pt,children:M.jsxs(V9,{as:ae,...ie,children:[ne&&lt.length===0?M.jsx(U9,{className:Rr.loading,ownerState:Pr,children:Z}):null,lt.length===0&&!R&&!ne?M.jsx(G9,{className:Rr.noOptions,ownerState:Pr,role:"presentation",onMouseDown:_t=>{_t.preventDefault()},children:me}):null,lt.length>0?M.jsx(ya,{as:te,...bs,children:lt.map((_t,Yn)=>X?Tt({key:_t.key,group:_t.group,children:_t.options.map((Dr,ws)=>xc(Dr,_t.index+ws))}):xc(_t,Yn))}):null]})}):null]})}),Q9={entering:{opacity:1},entered:{opacity:1}},Z9=D.forwardRef(function(t,r){const n=No(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:v,onExited:g,onExiting:x,style:y,timeout:S=i,TransitionComponent:w=$i,...b}=t,C=D.useRef(null),T=_r(C,Fl(s),r),P=F=>z=>{if(F){const j=C.current;z===void 0?F(j):F(j,z)}},E=P(h),A=P((F,z)=>{Pb(F);const j=fs({style:y,timeout:S,easing:l},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",j),F.style.transition=n.transitions.create("opacity",j),d&&d(F,z)}),O=P(p),R=P(x),L=P(F=>{const z=fs({style:y,timeout:S,easing:l},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),N=P(g),B=F=>{o&&o(C.current,F)};return M.jsx(w,{appear:a,in:c,nodeRef:C,onEnter:A,onEntered:O,onEntering:E,onExit:L,onExited:N,onExiting:R,addEndListener:B,timeout:S,...b,children:(F,{ownerState:z,...j})=>D.cloneElement(s,{style:{opacity:0,visibility:F==="exited"&&!c?"hidden":void 0,...Q9[F],...y,...s.props.style},ref:T,...j})})});function J9(e){return Fe("MuiBackdrop",e)}ze("MuiBackdrop",["root","invisible"]);const eW=e=>{const{classes:t,invisible:r}=e;return je({root:["root",r&&"invisible"]},J9,t)},tW=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),rW=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:v,transitionDuration:g,...x}=n,y={...n,component:a,invisible:s},S=eW(y),w={transition:v,root:c.Root,...h},b={...d,...p},C={slots:w,slotProps:b},[T,P]=Ve("root",{elementType:tW,externalForwardedProps:C,className:Se(S.root,o),ownerState:y}),[E,A]=Ve("transition",{elementType:Z9,externalForwardedProps:C,ownerState:y});return M.jsx(E,{in:l,timeout:g,...x,...A,children:M.jsx(T,{"aria-hidden":!0,...P,classes:S,ref:r,children:i})})}),nW=ze("MuiBox",["root"]),iW=Hg(),et=KF({themeId:To,defaultTheme:iW,defaultClassName:nW.root,generateClassName:OI.generate});function oW(e){return Fe("MuiButton",e)}const Ns=ze("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"]),aW=D.createContext({}),sW=D.createContext(void 0),lW=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",o,`${o}${ue(t)}`,`size${ue(i)}`,`${o}Size${ue(i)}`,`color${ue(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${ue(s)}`],startIcon:["icon","startIcon",`iconSize${ue(i)}`],endIcon:["icon","endIcon",`iconSize${ue(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=je(c,oW,l);return{...l,...d}},TA=[{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}}}],uW=se(ds,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color)}`],t[`size${ue(r.size)}`],t[`${r.variant}Size${ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${Ns.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]},[`&.${Ns.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ns.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)",[`&.${Ns.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(wr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:mt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[n].main,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:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,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"},[`&.${Ns.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ns.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}),[`&.${Ns.loading}`]:{color:"transparent"}}}]}})),cW=se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${ue(r.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}},...TA]})),fW=se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${ue(r.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}},...TA]})),dW=se("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}}]})),yk=se("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),li=D.forwardRef(function(t,r){const n=D.useContext(aW),i=D.useContext(sW),o=Sd(n,t),a=We({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:x,fullWidth:y=!1,id:S,loading:w=null,loadingIndicator:b,loadingPosition:C="center",size:T="medium",startIcon:P,type:E,variant:A="text",...O}=a,R=uc(S),L=b??M.jsx(dA,{"aria-labelledby":R,color:"inherit",size:16}),N={...a,color:l,component:c,disabled:p,disableElevation:h,disableFocusRipple:v,fullWidth:y,loading:w,loadingIndicator:L,loadingPosition:C,size:T,type:E,variant:A},B=lW(N),F=(P||w&&C==="start")&&M.jsx(cW,{className:B.startIcon,ownerState:N,children:P||M.jsx(yk,{className:B.loadingIconPlaceholder,ownerState:N})}),z=(g||w&&C==="end")&&M.jsx(fW,{className:B.endIcon,ownerState:N,children:g||M.jsx(yk,{className:B.loadingIconPlaceholder,ownerState:N})}),j=i||"",X=typeof w=="boolean"?M.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:w&&M.jsx(dW,{className:B.loadingIndicator,ownerState:N,children:L})}):null;return M.jsxs(uW,{ownerState:N,className:Se(n.className,B.root,d,j),component:c,disabled:p||w,focusRipple:!v,focusVisibleClassName:Se(B.focusVisible,x),ref:r,type:E,id:w?R:S,...O,classes:B,children:[F,C!=="end"&&X,s,C==="end"&&X,z]})});function pW(e){return Fe("MuiCard",e)}ze("MuiCard",["root"]);const hW=e=>{const{classes:t}=e;return je({root:["root"]},pW,t)},vW=se(Bi,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),gW=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...a}=n,s={...n,raised:o},l=hW(s);return M.jsx(vW,{className:Se(l.root,i),elevation:o?8:void 0,ref:r,ownerState:s,...a})});function mW(e){return Fe("MuiCardContent",e)}ze("MuiCardContent",["root"]);const yW=e=>{const{classes:t}=e;return je({root:["root"]},mW,t)},xW=se("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),SW=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=yW(s);return M.jsx(xW,{as:o,className:Se(l.root,i),ownerState:s,ref:r,...a})});function bW(e){return Fe("PrivateSwitchBase",e)}ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wW=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${ue(i)}`],input:["input"]};return je(o,bW,t)},_W=se(ds)({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}}]}),CW=se("input",{shouldForwardProp:Un})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kA=D.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:v,name:g,onBlur:x,onChange:y,onFocus:S,readOnly:w,required:b=!1,tabIndex:C,type:T,value:P,slots:E={},slotProps:A={},...O}=t,[R,L]=ns({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),N=$o(),B=ne=>{S&&S(ne),N&&N.onFocus&&N.onFocus(ne)},F=ne=>{x&&x(ne),N&&N.onBlur&&N.onBlur(ne)},z=ne=>{if(ne.nativeEvent.defaultPrevented)return;const Z=ne.target.checked;L(Z),y&&y(ne,Z)};let j=s;N&&typeof j>"u"&&(j=N.disabled);const X=T==="checkbox"||T==="radio",V={...t,checked:R,disabled:j,disableFocusRipple:l,edge:c},H=wW(V),G={slots:E,slotProps:{input:h,...A}},[W,Y]=Ve("root",{ref:r,elementType:_W,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...G,component:"span",...O},getSlotProps:ne=>({...ne,onFocus:Z=>{var ce;(ce=ne.onFocus)==null||ce.call(ne,Z),B(Z)},onBlur:Z=>{var ce;(ce=ne.onBlur)==null||ce.call(ne,Z),F(Z)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:j,role:void 0,tabIndex:null}}),[te,le]=Ve("input",{ref:v,elementType:CW,className:H.input,externalForwardedProps:G,getSlotProps:ne=>({...ne,onChange:Z=>{var ce;(ce=ne.onChange)==null||ce.call(ne,Z),z(Z)}}),ownerState:V,additionalProps:{autoFocus:n,checked:i,defaultChecked:a,disabled:j,id:X?p:void 0,name:g,readOnly:w,required:b,tabIndex:C,type:T,...T==="checkbox"&&P===void 0?{}:{value:P}}});return M.jsxs(W,{...Y,children:[M.jsx(te,{...le}),R?o:d]})}),TW=Ht(M.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"})),kW=Ht(M.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"})),PW=Ht(M.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 RW(e){return Fe("MuiCheckbox",e)}const L0=ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),MW=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${ue(n)}`,`size${ue(i)}`]},a=je(o,RW,t);return{...t,...a}},EW=se(kA,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ue(r.size)}`],r.color!=="default"&&t[`color${ue(r.color)}`]]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{[`&.${L0.checked}, &.${L0.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${L0.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),IW=M.jsx(kW,{}),AW=M.jsx(TW,{}),DW=M.jsx(PW,{}),Nx=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiCheckbox"}),{checkedIcon:i=IW,color:o="primary",icon:a=AW,indeterminate:s=!1,indeterminateIcon:l=DW,inputProps:c,size:d="medium",disableRipple:p=!1,className:h,slots:v={},slotProps:g={},...x}=n,y=s?l:a,S=s?l:i,w={...n,disableRipple:p,color:o,indeterminate:s,size:d},b=MW(w),C=g.input??c,[T,P]=Ve("root",{ref:r,elementType:EW,className:Se(b.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:g,...x},ownerState:w,additionalProps:{type:"checkbox",icon:D.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:D.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:v,slotProps:{input:Cb(typeof C=="function"?C(w):C,{"data-indeterminate":s})}}});return M.jsx(T,{...P,classes:b})}),rp=Nz({createStyledComponent:se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>We({props:e,name:"MuiContainer"})}),$x=typeof _b({})=="function",LW=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),OW=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),PA=(e,t=!1)=>{var o,a;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var d,p;const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:(p=l.palette)==null?void 0:p.mode}});let n={html:LW(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...OW(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const i=(a=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:a.styleOverrides;return i&&(n=[n,i]),n},Tv="mui-ecs",NW=e=>{const t=PA(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${Tv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,i])=>{var a,s;const o=e.getColorSchemeSelector(n);o.startsWith("@")?r[o]={[`:root:not(:has(.${Tv}))`]:{colorScheme:(a=i.palette)==null?void 0:a.mode}}:r[o.replace(/\s*&/,"")]={[`&:not(:has(.${Tv}))`]:{colorScheme:(s=i.palette)==null?void 0:s.mode}}}),t},$W=_b($x?({theme:e,enableColorScheme:t})=>PA(e,t):({theme:e})=>NW(e));function RA(e){const t=We({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return M.jsxs(D.Fragment,{children:[$x&&M.jsx($W,{enableColorScheme:n}),!$x&&!n&&M.jsx("span",{className:Tv,style:{display:"none"}}),r]})}function MA(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function BW(e){const t=jn(e);return t.body===e?ai(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xk(e){return parseInt(ai(e).getComputedStyle(e).paddingRight,10)||0}function FW(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Sk(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!FW(a);s&&l&&qf(a,i)})}function O0(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function zW(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(BW(n)){const a=MA(ai(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${xk(n)+a}px`;const s=jn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${xk(l)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=jn(n).body;else{const a=n.parentElement,s=ai(n);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.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()=>{r.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function jW(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class WW{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&qf(t.modalRef,!1);const i=jW(r);Sk(r,t.mount,t.modalRef,i,!0);const o=O0(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=O0(this.containers,o=>o.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=zW(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=O0(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&qf(t.modalRef,r),Sk(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&&qf(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const HW=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VW(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 UW(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function GW(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||UW(e))}function YW(e){const t=[],r=[];return Array.from(e.querySelectorAll(HW)).forEach((n,i)=>{const o=VW(n);o===-1||!GW(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function qW(){return!0}function KW(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=YW,isEnabled:a=qW,open:s}=e,l=D.useRef(!1),c=D.useRef(null),d=D.useRef(null),p=D.useRef(null),h=D.useRef(null),v=D.useRef(!1),g=D.useRef(null),x=_r(Fl(t),g),y=D.useRef(null);D.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),D.useEffect(()=>{if(!s||!g.current)return;const b=jn(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),D.useEffect(()=>{if(!s||!g.current)return;const b=jn(g.current),C=E=>{y.current=E,!(n||!a()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(l.current=!0,d.current&&d.current.focus())},T=()=>{var O,R;const E=g.current;if(E===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==c.current&&b.activeElement!==d.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let A=[];if((b.activeElement===c.current||b.activeElement===d.current)&&(A=o(g.current)),A.length>0){const L=!!((O=y.current)!=null&&O.shiftKey&&((R=y.current)==null?void 0:R.key)==="Tab"),N=A[0],B=A[A.length-1];typeof N!="string"&&typeof B!="string"&&(L?B.focus():N.focus())}else E.focus()};b.addEventListener("focusin",T),b.addEventListener("keydown",C,!0);const P=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),b.removeEventListener("focusin",T),b.removeEventListener("keydown",C,!0)}},[r,n,i,a,s,o]);const S=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0,h.current=b.target;const C=t.props.onFocus;C&&C(b)},w=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0};return M.jsxs(D.Fragment,{children:[M.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),D.cloneElement(t,{ref:x,onFocus:S}),M.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function XW(e){return typeof e=="function"?e():e}function QW(e){return e?e.props.hasOwnProperty("in"):!1}const bk=()=>{},kh=new WW;function ZW(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:d}=e,p=D.useRef({}),h=D.useRef(null),v=D.useRef(null),g=_r(v,d),[x,y]=D.useState(!c),S=QW(s);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const b=()=>jn(h.current),C=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),T=()=>{kh.mount(C(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},P=cn(()=>{const z=XW(t)||b().body;kh.add(C(),z),v.current&&T()}),E=()=>kh.isTopModal(C()),A=cn(z=>{h.current=z,z&&(c&&E()?T():v.current&&qf(v.current,w))}),O=D.useCallback(()=>{kh.remove(C(),w)},[w]);D.useEffect(()=>()=>{O()},[O]),D.useEffect(()=>{c?P():(!S||!i)&&O()},[c,O,S,i,P]);const R=z=>j=>{var X;(X=z.onKeyDown)==null||X.call(z,j),!(j.key!=="Escape"||j.which===229||!E())&&(r||(j.stopPropagation(),l&&l(j,"escapeKeyDown")))},L=z=>j=>{var X;(X=z.onClick)==null||X.call(z,j),j.target===j.currentTarget&&l&&l(j,"backdropClick")};return{getRootProps:(z={})=>{const j=cA(e);delete j.onTransitionEnter,delete j.onTransitionExited;const X={...j,...z};return{role:"presentation",...X,onKeyDown:R(X),ref:g}},getBackdropProps:(z={})=>{const j=z;return{"aria-hidden":!0,...j,onClick:L(j),open:c}},getTransitionProps:()=>{const z=()=>{y(!1),o&&o()},j=()=>{y(!0),a&&a(),i&&O()};return{onEnter:W2(z,(s==null?void 0:s.props.onEnter)??bk),onExited:W2(j,(s==null?void 0:s.props.onExited)??bk)}},rootRef:g,portalRef:A,isTopModal:E,exited:x,hasTransition:S}}function JW(e){return Fe("MuiModal",e)}ze("MuiModal",["root","hidden","backdrop"]);const e7=e=>{const{open:t,exited:r,classes:n}=e;return je({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},JW,n)},t7=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Le(({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"}}]}))),r7=se(rW,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Fb=D.forwardRef(function(t,r){const n=We({name:"MuiModal",props:t}),{BackdropComponent:i=r7,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:d,component:p,components:h={},componentsProps:v={},disableAutoFocus:g=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:C=!1,keepMounted:T=!1,onClose:P,onTransitionEnter:E,onTransitionExited:A,open:O,slotProps:R={},slots:L={},theme:N,...B}=n,F={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:x,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:C,keepMounted:T},{getRootProps:z,getBackdropProps:j,getTransitionProps:X,portalRef:V,isTopModal:H,exited:G,hasTransition:W}=ZW({...F,rootRef:r}),Y={...F,exited:G},te=e7(Y),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),W){const{onEnter:fe,onExited:ge}=X();le.onEnter=fe,le.onExited=ge}const ne={slots:{root:h.Root,backdrop:h.Backdrop,...L},slotProps:{...v,...R}},[Z,ce]=Ve("root",{ref:r,elementType:t7,externalForwardedProps:{...ne,...B,component:p},getSlotProps:z,ownerState:Y,className:Se(s,te==null?void 0:te.root,!Y.open&&Y.exited&&(te==null?void 0:te.hidden))}),[me,de]=Ve("backdrop",{ref:o==null?void 0:o.ref,elementType:i,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:fe=>j({...fe,onClick:ge=>{fe!=null&&fe.onClick&&fe.onClick(ge)}}),className:Se(o==null?void 0:o.className,te==null?void 0:te.backdrop),ownerState:Y});return!T&&!O&&(!W||G)?null:M.jsx(_A,{ref:V,container:d,disablePortal:S,children:M.jsxs(Z,{...ce,children:[!C&&i?M.jsx(me,{...de}):null,M.jsx(KW,{disableEnforceFocus:x,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:H,open:O,children:D.cloneElement(c,le)})]})})});function n7(e){return Fe("MuiDivider",e)}ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const i7=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return je({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},n7,n)},o7=se("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Le(({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.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(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%"}}}]}))),a7=se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Le(({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)`}}]}))),dl=D.forwardRef(function(t,r){const n=We({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:d=!1,role:p=l!=="hr"?"separator":void 0,textAlign:h="center",variant:v="fullWidth",...g}=n,x={...n,absolute:i,component:l,flexItem:c,light:d,orientation:s,role:p,textAlign:h,variant:v},y=i7(x);return M.jsx(o7,{as:l,className:Se(y.root,a),role:p,ref:r,ownerState:x,"aria-orientation":p==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:o?M.jsx(a7,{className:y.wrapper,ownerState:x,children:o}):null})});dl&&(dl.muiSkipListHighlight=!0);function s7(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=ai(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function l7(e){return typeof e=="function"?e():e}function Ph(e,t,r){const n=l7(r),i=s7(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const u7=D.forwardRef(function(t,r){const n=No(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:d="down",easing:p=i,in:h,onEnter:v,onEntered:g,onEntering:x,onExit:y,onExited:S,onExiting:w,style:b,timeout:C=o,TransitionComponent:T=$i,...P}=t,E=D.useRef(null),A=_r(Fl(l),E,r),O=V=>H=>{V&&(H===void 0?V(E.current):V(E.current,H))},R=O((V,H)=>{Ph(d,V,c),Pb(V),v&&v(V,H)}),L=O((V,H)=>{const G=fs({timeout:C,style:b,easing:p},{mode:"enter"});V.style.webkitTransition=n.transitions.create("-webkit-transform",{...G}),V.style.transition=n.transitions.create("transform",{...G}),V.style.webkitTransform="none",V.style.transform="none",x&&x(V,H)}),N=O(g),B=O(w),F=O(V=>{const H=fs({timeout:C,style:b,easing:p},{mode:"exit"});V.style.webkitTransition=n.transitions.create("-webkit-transform",H),V.style.transition=n.transitions.create("transform",H),Ph(d,V,c),y&&y(V)}),z=O(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),j=V=>{a&&a(E.current,V)},X=D.useCallback(()=>{E.current&&Ph(d,E.current,c)},[d,c]);return D.useEffect(()=>{if(h||d==="down"||d==="right")return;const V=Jd(()=>{E.current&&Ph(d,E.current,c)}),H=ai(E.current);return H.addEventListener("resize",V),()=>{V.clear(),H.removeEventListener("resize",V)}},[d,h,c]),D.useEffect(()=>{h||X()},[h,X]),M.jsx(T,{nodeRef:E,onEnter:R,onEntered:N,onEntering:L,onExit:F,onExited:z,onExiting:B,addEndListener:j,appear:s,in:h,timeout:C,...P,children:(V,{ownerState:H,...G})=>D.cloneElement(l,{ref:A,style:{visibility:V==="exited"&&!h?"hidden":void 0,...b,...l.props.style},...G})})});function c7(e){return Fe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const EA=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},f7=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root",`anchor${ue(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(r)}`,n!=="temporary"&&`paperAnchorDocked${ue(r)}`]};return je(i,c7,t)},d7=se(Fb,{name:"MuiDrawer",slot:"Root",overridesResolver:EA})(Le(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),p7=se("div",{shouldForwardProp:Un,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:EA})({flex:"0 0 auto"}),h7=se(Bi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ue(r.anchor)}`]]}})(Le(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),IA={left:"right",right:"left",top:"down",bottom:"up"};function v7(e){return["left","right"].includes(e)}function g7({direction:e},t){return e==="rtl"&&v7(t)?IA[t]:t}const m7=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiDrawer"}),i=No(),o=lc(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:v,...g}={},onClose:x,open:y=!1,PaperProps:S={},SlideProps:w,TransitionComponent:b,transitionDuration:C=a,variant:T="temporary",slots:P={},slotProps:E={},...A}=n,O=D.useRef(!1);D.useEffect(()=>{O.current=!0},[]);const R=g7({direction:o?"rtl":"ltr"},s),N={...n,anchor:s,elevation:p,open:y,variant:T,...A},B=f7(N),F={slots:{transition:b,...P},slotProps:{paper:S,transition:w,...E,backdrop:Cb(E.backdrop||{...l,...v},{transitionDuration:C})}},[z,j]=Ve("root",{ref:r,elementType:d7,className:Se(B.root,B.modal,d),shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{...F,...A,...g},additionalProps:{open:y,onClose:x,hideBackdrop:h,slots:{backdrop:F.slots.backdrop},slotProps:{backdrop:F.slotProps.backdrop}}}),[X,V]=Ve("paper",{elementType:h7,shouldForwardComponentProp:!0,className:Se(B.paper,S.className),ownerState:N,externalForwardedProps:F,additionalProps:{elevation:T==="temporary"?p:0,square:!0}}),[H,G]=Ve("docked",{elementType:p7,ref:r,className:Se(B.root,B.docked,d),ownerState:N,externalForwardedProps:F,additionalProps:A}),[W,Y]=Ve("transition",{elementType:u7,ownerState:N,externalForwardedProps:F,additionalProps:{in:y,direction:IA[R],timeout:C,appear:O.current}}),te=M.jsx(X,{...V,children:c});if(T==="permanent")return M.jsx(H,{...G,children:te});const le=M.jsx(W,{...Y,children:te});return T==="persistent"?M.jsx(H,{...G,children:le}):M.jsx(z,{...j,children:le})}),y7=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${ue(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=je(l,N9,t);return{...t,...c}},x7=se(Xg,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qg(e,t),!r.disableUnderline&&t.underline]}})(Le(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=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:n,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:n}},[`&.${ei.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ei.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"},[`&.${ei.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ei.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})`:r}`,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(.${ei.disabled}, .${ei.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ei.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(wr()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.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}}]}})),S7=se(Qg,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kg})(Le(({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}}]}))),zb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:h={},type:v="text",...g}=n,x={...n,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:d,type:v},y=y7(n),S={root:{ownerState:x},input:{ownerState:x}},w=p??a?jr(S,p??a):S,b=h.root??o.Root??x7,C=h.input??o.Input??S7;return M.jsx(Bb,{slots:{root:b,input:C},slotProps:w,fullWidth:s,inputComponent:c,multiline:d,ref:r,type:v,...g,classes:y})});zb.muiName="Input";function b7(e){return Fe("MuiFormControl",e)}ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const w7=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${ue(r)}`,n&&"fullWidth"]};return je(i,b7,t)},_7=se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${ue(r.margin)}`],r.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%"}}]}),jb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:v="none",required:g=!1,size:x="medium",variant:y="outlined",...S}=n,w={...n,color:a,component:s,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:v,required:g,size:x,variant:y},b=w7(w),[C,T]=D.useState(()=>{let z=!1;return i&&D.Children.forEach(i,j=>{if(!_v(j,["Input","Select"]))return;const X=_v(j,["Select"])?j.props.input:j;X&&I9(X.props)&&(z=!0)}),z}),[P,E]=D.useState(()=>{let z=!1;return i&&D.Children.forEach(i,j=>{_v(j,["Input","Select"])&&(Zv(j.props,!0)||Zv(j.props.inputProps,!0))&&(z=!0)}),z}),[A,O]=D.useState(!1);l&&A&&O(!1);const R=d!==void 0&&!l?d:A;let L;D.useRef(!1);const N=D.useCallback(()=>{E(!0)},[]),B=D.useCallback(()=>{E(!1)},[]),F=D.useMemo(()=>({adornedStart:C,setAdornedStart:T,color:a,disabled:l,error:c,filled:P,focused:R,fullWidth:p,hiddenLabel:h,size:x,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:B,onFilled:N,registerEffect:L,required:g,variant:y}),[C,a,l,c,P,R,p,h,L,B,N,g,x,y]);return M.jsx(Yg.Provider,{value:F,children:M.jsx(_7,{as:s,ownerState:w,className:Se(b.root,o),ref:r,...S,children:i})})});function C7(e){return Fe("MuiFormControlLabel",e)}const Lf=ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),T7=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${ue(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return je(a,C7,t)},k7=se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lf.label}`]:t.label},t.root,t[`labelPlacement${ue(r.labelPlacement)}`]]}})(Le(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Lf.disabled}`]:{cursor:"default"},[`& .${Lf.label}`]:{[`&.${Lf.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}}]}))),P7=se("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Le(({theme:e})=>({[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}}))),AA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:d,label:p,labelPlacement:h="end",name:v,onChange:g,required:x,slots:y={},slotProps:S={},value:w,...b}=n,C=$o(),T=l??s.props.disabled??(C==null?void 0:C.disabled),P=x??s.props.required,E={disabled:T,required:P};["checked","name","onChange","value","inputRef"].forEach(z=>{typeof s.props[z]>"u"&&typeof n[z]<"u"&&(E[z]=n[z])});const A=xs({props:n,muiFormControl:C,states:["error"]}),O={...n,disabled:T,labelPlacement:h,required:P,error:A.error},R=T7(O),L={slots:y,slotProps:{...a,...S}},[N,B]=Ve("typography",{elementType:qe,externalForwardedProps:L,ownerState:O});let F=p;return F!=null&&F.type!==qe&&!c&&(F=M.jsx(N,{component:"span",...B,className:Se(R.label,B==null?void 0:B.className),children:F})),M.jsxs(k7,{className:Se(R.root,o),ownerState:O,ref:r,...b,children:[D.cloneElement(s,E),P?M.jsxs("div",{children:[F,M.jsxs(P7,{ownerState:O,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):F]})});function R7(e){return Fe("MuiFormGroup",e)}ze("MuiFormGroup",["root","row","error"]);const M7=e=>{const{classes:t,row:r,error:n}=e;return je({root:["root",r&&"row",n&&"error"]},R7,t)},E7=se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),DA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1,...a}=n,s=$o(),l=xs({props:n,muiFormControl:s,states:["error"]}),c={...n,row:o,error:l.error},d=M7(c);return M.jsx(E7,{className:Se(d.root,i),ownerState:c,ref:r,...a})});function I7(e){return Fe("MuiFormHelperText",e)}const wk=ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _k;const A7=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",n&&`size${ue(n)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return je(c,I7,t)},D7=se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wk.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wk.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}}]}))),L7=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:d,margin:p,required:h,variant:v,...g}=n,x=$o(),y=xs({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),S={...n,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete S.ownerState;const w=A7(S);return M.jsx(D7,{as:a,className:Se(w.root,o),ref:r,...g,ownerState:S,children:i===" "?_k||(_k=M.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});function O7(e){return Fe("MuiFormLabel",e)}const Kf=ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),N7=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ue(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return je(l,O7,t)},$7=se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Le(({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(wr()).map(([t])=>({props:{color:t},style:{[`&.${Kf.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Kf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Kf.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),B7=se("span",{name:"MuiFormLabel",slot:"Asterisk"})(Le(({theme:e})=>({[`&.${Kf.error}`]:{color:(e.vars||e).palette.error.main}}))),F7=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:d,focused:p,required:h,...v}=n,g=$o(),x=xs({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...n,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},S=N7(y);return M.jsxs($7,{as:s,ownerState:y,className:Se(S.root,o),ref:r,...v,children:[i,x.required&&M.jsxs(B7,{ownerState:y,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function Bx(e){return`scale(${e}, ${e**2})`}const z7={entering:{opacity:1,transform:Bx(1)},entered:{opacity:1,transform:"none"}},N0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jv=D.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:v,style:g,timeout:x="auto",TransitionComponent:y=$i,...S}=t,w=gl(),b=D.useRef(),C=No(),T=D.useRef(null),P=_r(T,Fl(o),r),E=z=>j=>{if(z){const X=T.current;j===void 0?z(X):z(X,j)}},A=E(d),O=E((z,j)=>{Pb(z);const{duration:X,delay:V,easing:H}=fs({style:g,timeout:x,easing:a},{mode:"enter"});let G;x==="auto"?(G=C.transitions.getAutoHeightDuration(z.clientHeight),b.current=G):G=X,z.style.transition=[C.transitions.create("opacity",{duration:G,delay:V}),C.transitions.create("transform",{duration:N0?G:G*.666,delay:V,easing:H})].join(","),l&&l(z,j)}),R=E(c),L=E(v),N=E(z=>{const{duration:j,delay:X,easing:V}=fs({style:g,timeout:x,easing:a},{mode:"exit"});let H;x==="auto"?(H=C.transitions.getAutoHeightDuration(z.clientHeight),b.current=H):H=j,z.style.transition=[C.transitions.create("opacity",{duration:H,delay:X}),C.transitions.create("transform",{duration:N0?H:H*.666,delay:N0?X:X||H*.333,easing:V})].join(","),z.style.opacity=0,z.style.transform=Bx(.75),p&&p(z)}),B=E(h),F=z=>{x==="auto"&&w.start(b.current||0,z),n&&n(T.current,z)};return M.jsx(y,{appear:i,in:s,nodeRef:T,onEnter:O,onEntered:R,onEntering:A,onExit:N,onExited:B,onExiting:L,addEndListener:F,timeout:x==="auto"?null:x,...S,children:(z,{ownerState:j,...X})=>D.cloneElement(o,{style:{opacity:0,transform:Bx(.75),visibility:z==="exited"&&!s?"hidden":void 0,...z7[z],...g,...o.props.style},ref:P,...X})})});Jv&&(Jv.muiSupportAuto=!0);const j7=e=>{const{classes:t,disableUnderline:r}=e,i=je({root:["root",!r&&"underline"],input:["input"]},L9,t);return{...t,...i}},W7=se(Xg,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qg(e,t),!r.disableUnderline&&t.underline]}})(Le(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.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"},[`&.${Za.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Za.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Za.disabled}, .${Za.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Za.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(wr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),H7=se(Qg,{name:"MuiInput",slot:"Input",overridesResolver:Kg})({}),Wb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:h="text",...v}=n,g=j7(n),y={root:{ownerState:{disableUnderline:i}}},S=d??a?jr(d??a,y):y,w=p.root??o.Root??W7,b=p.input??o.Input??H7;return M.jsx(Bb,{slots:{root:w,input:b},slotProps:S,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:h,...v,classes:g})});Wb.muiName="Input";function V7(e){return Fe("MuiInputAdornment",e)}const Ck=ze("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Tk;const U7=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},G7=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${ue(i)}`,a,n&&"hiddenLabel",o&&`size${ue(o)}`]};return je(s,V7,t)},Y7=se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:U7})(Le(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ck.positionStart}&:not(.${Ck.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),q7=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:d,...p}=n,h=$o()||{};let v=d;d&&h.variant,h&&!v&&(v=h.variant);const g={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:v},x=G7(g);return M.jsx(Yg.Provider,{value:null,children:M.jsx(Y7,{as:a,ownerState:g,className:Se(x.root,o),ref:r,...p,children:typeof i=="string"&&!l?M.jsx(qe,{color:"textSecondary",children:i}):M.jsxs(D.Fragment,{children:[c==="start"?Tk||(Tk=M.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})});function K7(e){return Fe("MuiInputLabel",e)}ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const X7=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="medium"&&`size${ue(n)}`,a],asterisk:[s&&"asterisk"]},c=je(l,K7,t);return{...t,...c}},Q7=se(F7,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Kf.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Le(({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:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="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:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Zg=D.forwardRef(function(t,r){const n=We({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=n,d=$o();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=xs({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),v={...n,disableAnimation:i,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=X7(v);return M.jsx(Q7,{"data-shrink":p,ref:r,className:Se(g.root,l),...c,ownerState:v,classes:g})});function Z7(e){return Fe("MuiLink",e)}const J7=ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),eH=({theme:e,ownerState:t})=>{const r=t.color,n=Ja(e,`palette.${r}.main`,!1)||Ja(e,`palette.${r}`,!1)||t.color,i=Ja(e,`palette.${r}.mainChannel`)||Ja(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:mt(n,.4)},kk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},tH=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root",`underline${ue(i)}`,r==="button"&&"button",n&&"focusVisible"]};return je(o,Z7,t)},rH=se(qe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ue(r.underline)}`],r.component==="button"&&t.button]}})(Le(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:mt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:mt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${J7.focusVisible}`]:{outline:"auto"}}}]}))),ln=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiLink"}),i=No(),{className:o,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:v,...g}=n,[x,y]=D.useState(!1),S=T=>{Qu(T.target)||y(!1),l&&l(T)},w=T=>{Qu(T.target)&&y(!0),c&&c(T)},b={...n,color:a,component:s,focusVisible:x,underline:p,variant:h},C=tH(b);return M.jsx(rH,{color:a,className:Se(C.root,o),classes:d,component:s,onBlur:S,onFocus:w,ref:r,ownerState:b,variant:h,...g,sx:[...kk[a]===void 0?[{color:a}]:[],...Array.isArray(v)?v:[v]],style:{...g.style,...p==="always"&&a!=="inherit"&&!kk[a]&&{"--Link-underlineColor":eH({theme:i,ownerState:b})}}})}),wl=D.createContext({});function nH(e){return Fe("MuiList",e)}ze("MuiList",["root","padding","dense","subheader"]);const iH=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return je({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},nH,t)},oH=se("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),Hb=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...d}=n,p=D.useMemo(()=>({dense:s}),[s]),h={...n,component:a,dense:s,disablePadding:l},v=iH(h);return M.jsx(wl.Provider,{value:p,children:M.jsxs(oH,{as:a,className:Se(v.root,o),ref:r,ownerState:h,...d,children:[c,i]})})});function aH(e){return Fe("MuiListItem",e)}ze("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const sH=ze("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function lH(e){return Fe("MuiListItemSecondaryAction",e)}ze("MuiListItemSecondaryAction",["root","disableGutters"]);const uH=e=>{const{disableGutters:t,classes:r}=e;return je({root:["root",t&&"disableGutters"]},lH,r)},cH=se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),LA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=n,a=D.useContext(wl),s={...n,disableGutters:a.disableGutters},l=uH(s);return M.jsx(cH,{className:Se(l.root,i),ownerState:s,ref:r,...o})});LA.muiName="ListItemSecondaryAction";const fH=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},dH=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return je({root:["root",n&&"dense",!i&&"gutters",!o&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},aH,r)},pH=se("div",{name:"MuiListItem",slot:"Root",overridesResolver:fH})(Le(({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:{[`& > .${sH.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}}]}))),hH=se("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),cl=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p,...h}={},dense:v=!1,disableGutters:g=!1,disablePadding:x=!1,divider:y=!1,secondaryAction:S,slotProps:w={},slots:b={},...C}=n,T=D.useContext(wl),P=D.useMemo(()=>({dense:v||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,v,g]),E=D.useRef(null),A=D.Children.toArray(o),O=A.length&&_v(A[A.length-1],["ListItemSecondaryAction"]),R={...n,alignItems:i,dense:P.dense,disableGutters:g,disablePadding:x,divider:y,hasSecondaryAction:O},L=dH(R),N=_r(E,r),B=b.root||l.Root||pH,F=w.root||c.root||{},z={className:Se(L.root,F.className,a),...C};let j=s||"li";return O?(j=!z.component&&!s?"div":j,d==="li"&&(j==="li"?j="div":z.component==="li"&&(z.component="div")),M.jsx(wl.Provider,{value:P,children:M.jsxs(hH,{as:d,className:Se(L.container,p),ref:N,ownerState:R,...h,children:[M.jsx(B,{...F,...!_d(B)&&{as:j,ownerState:{...R,...F.ownerState}},...z,children:A}),A.pop()]})})):M.jsx(wl.Provider,{value:P,children:M.jsxs(B,{...F,as:j,ref:N,...!_d(B)&&{ownerState:{...R,...F.ownerState}},...z,children:[A,S&&M.jsx(LA,{children:S})]})})});function vH(e){return Fe("MuiListItemIcon",e)}ze("MuiListItemIcon",["root","alignItemsFlexStart"]);const gH=e=>{const{alignItems:t,classes:r}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},vH,r)},mH=se("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Le(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),yH=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiListItemIcon"}),{className:i,...o}=n,a=D.useContext(wl),s={...n,alignItems:a.alignItems},l=gH(s);return M.jsx(mH,{className:Se(l.root,i),ownerState:s,ref:r,...o})});function xH(e){return Fe("MuiListItemText",e)}const Rh=ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),SH=e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return je({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},xH,t)},bH=se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Rh.primary}`]:t.primary},{[`& .${Rh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Q2.root}:where(& .${Rh.primary})`]:{display:"block"},[`.${Q2.root}:where(& .${Rh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),wH=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:p,slots:h={},slotProps:v={},...g}=n,{dense:x}=D.useContext(wl);let y=l??i,S=d;const w={...n,disableTypography:a,inset:s,primary:!!y,secondary:!!S,dense:x},b=SH(w),C={slots:h,slotProps:{primary:c,secondary:p,...v}},[T,P]=Ve("root",{className:Se(b.root,o),elementType:bH,externalForwardedProps:{...C,...g},ownerState:w,ref:r}),[E,A]=Ve("primary",{className:b.primary,elementType:qe,externalForwardedProps:C,ownerState:w}),[O,R]=Ve("secondary",{className:b.secondary,elementType:qe,externalForwardedProps:C,ownerState:w});return y!=null&&y.type!==qe&&!a&&(y=M.jsx(E,{variant:x?"body2":"body1",component:A!=null&&A.variant?void 0:"span",...A,children:y})),S!=null&&S.type!==qe&&!a&&(S=M.jsx(O,{variant:"body2",color:"textSecondary",...R,children:S})),M.jsxs(T,{...P,children:[y,S]})});function $0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Pk(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function OA(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function of(e,t,r,n,i,o){let a=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!OA(s,o)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const _H=D.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:p="selectedMenu",...h}=t,v=D.useRef(null),g=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});oo(()=>{i&&v.current.focus()},[i]),D.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:C})=>{const T=!v.current.style.width;if(b.clientHeight<v.current.clientHeight&&T){const P=`${MA(ai(b))}px`;v.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=P,v.current.style.width=`calc(100% + ${P})`}return v.current}}),[]);const x=b=>{const C=v.current,T=b.key;if(b.ctrlKey||b.metaKey||b.altKey){d&&d(b);return}const E=jn(C).activeElement;if(T==="ArrowDown")b.preventDefault(),of(C,E,c,l,$0);else if(T==="ArrowUp")b.preventDefault(),of(C,E,c,l,Pk);else if(T==="Home")b.preventDefault(),of(C,null,c,l,$0);else if(T==="End")b.preventDefault(),of(C,null,c,l,Pk);else if(T.length===1){const A=g.current,O=T.toLowerCase(),R=performance.now();A.keys.length>0&&(R-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&O!==A.keys[0]&&(A.repeating=!1)),A.lastTime=R,A.keys.push(O);const L=E&&!A.repeating&&OA(E,A);A.previousKeyMatched&&(L||of(C,E,!1,l,$0,A))?b.preventDefault():A.previousKeyMatched=!1}d&&d(b)},y=_r(v,r);let S=-1;D.Children.forEach(a,(b,C)=>{if(!D.isValidElement(b)){S===C&&(S+=1,S>=a.length&&(S=-1));return}b.props.disabled||(p==="selectedMenu"&&b.props.selected||S===-1)&&(S=C),S===C&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(S+=1,S>=a.length&&(S=-1))});const w=D.Children.map(a,(b,C)=>{if(C===S){const T={};return o&&(T.autoFocus=!0),b.props.tabIndex===void 0&&p==="selectedMenu"&&(T.tabIndex=0),D.cloneElement(b,T)}return b});return M.jsx(Hb,{role:"menu",ref:y,className:s,onKeyDown:x,tabIndex:i?0:-1,...h,children:w})});function CH(e){return Fe("MuiPopover",e)}ze("MuiPopover",["root","paper"]);function Rk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Mk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Ek(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mh(e){return typeof e=="function"?e():e}const TH=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},CH,t)},kH=se(Fb,{name:"MuiPopover",slot:"Root"})({}),NA=se(Bi,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$A=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:p,elevation:h=8,marginThreshold:v=16,open:g,PaperProps:x={},slots:y={},slotProps:S={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:C="auto",TransitionProps:T={},disableScrollLock:P=!1,...E}=n,A=D.useRef(),O={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:v,transformOrigin:w,TransitionComponent:b,transitionDuration:C,TransitionProps:T},R=TH(O),L=D.useCallback(()=>{if(l==="anchorPosition")return s;const fe=Mh(o),pe=(fe&&fe.nodeType===1?fe:jn(A.current).body).getBoundingClientRect();return{top:pe.top+Rk(pe,a.vertical),left:pe.left+Mk(pe,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),N=D.useCallback(fe=>({vertical:Rk(fe,w.vertical),horizontal:Mk(fe,w.horizontal)}),[w.horizontal,w.vertical]),B=D.useCallback(fe=>{const ge={width:fe.offsetWidth,height:fe.offsetHeight},pe=N(ge);if(l==="none")return{top:null,left:null,transformOrigin:Ek(pe)};const Oe=L();let ke=Oe.top-pe.vertical,nt=Oe.left-pe.horizontal;const tt=ke+ge.height,ct=nt+ge.width,we=ai(Mh(o)),it=we.innerHeight-v,Me=we.innerWidth-v;if(v!==null&&ke<v){const Ge=ke-v;ke-=Ge,pe.vertical+=Ge}else if(v!==null&&tt>it){const Ge=tt-it;ke-=Ge,pe.vertical+=Ge}if(v!==null&&nt<v){const Ge=nt-v;nt-=Ge,pe.horizontal+=Ge}else if(ct>Me){const Ge=ct-Me;nt-=Ge,pe.horizontal+=Ge}return{top:`${Math.round(ke)}px`,left:`${Math.round(nt)}px`,transformOrigin:Ek(pe)}},[o,l,L,N,v]),[F,z]=D.useState(g),j=D.useCallback(()=>{const fe=A.current;if(!fe)return;const ge=B(fe);ge.top!==null&&fe.style.setProperty("top",ge.top),ge.left!==null&&(fe.style.left=ge.left),fe.style.transformOrigin=ge.transformOrigin,z(!0)},[B]);D.useEffect(()=>(P&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[o,P,j]);const X=()=>{j()},V=()=>{z(!1)};D.useEffect(()=>{g&&j()}),D.useImperativeHandle(i,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),D.useEffect(()=>{if(!g)return;const fe=Jd(()=>{j()}),ge=ai(Mh(o));return ge.addEventListener("resize",fe),()=>{fe.clear(),ge.removeEventListener("resize",fe)}},[o,g,j]);let H=C;const G={slots:{transition:b,...y},slotProps:{transition:T,paper:x,...S}},[W,Y]=Ve("transition",{elementType:Jv,externalForwardedProps:G,ownerState:O,getSlotProps:fe=>({...fe,onEntering:(ge,pe)=>{var Oe;(Oe=fe.onEntering)==null||Oe.call(fe,ge,pe),X()},onExited:ge=>{var pe;(pe=fe.onExited)==null||pe.call(fe,ge),V()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!W.muiSupportAuto&&(H=void 0);const te=p||(o?jn(Mh(o)).body:void 0),[le,{slots:ne,slotProps:Z,...ce}]=Ve("root",{ref:r,elementType:kH,externalForwardedProps:{...G,...E},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:Cb(typeof S.backdrop=="function"?S.backdrop(O):S.backdrop,{invisible:!0})},container:te,open:g},ownerState:O,className:Se(R.root,d)}),[me,de]=Ve("paper",{ref:A,className:R.paper,elementType:NA,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:F?void 0:{opacity:0}},ownerState:O});return M.jsx(le,{...ce,...!_d(le)&&{slots:ne,slotProps:Z,disableScrollLock:P},children:M.jsx(W,{...Y,timeout:H,children:M.jsx(me,{...de,children:c})})})});function PH(e){return Fe("MuiMenu",e)}ze("MuiMenu",["root","paper","list"]);const RH={vertical:"top",horizontal:"right"},MH={vertical:"top",horizontal:"left"},EH=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},PH,t)},IH=se($A,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),AH=se(NA,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),DH=se(_H,{name:"MuiMenu",slot:"List"})({outline:0}),LH=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:v="auto",TransitionProps:{onEntering:g,...x}={},variant:y="selectedMenu",slots:S={},slotProps:w={},...b}=n,C=lc(),T={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:v,TransitionProps:x,variant:y},P=EH(T),E=i&&!s&&d,A=D.useRef(null),O=(H,G)=>{A.current&&A.current.adjustStyleForScrollbar(H,{direction:C?"rtl":"ltr"}),g&&g(H,G)},R=H=>{H.key==="Tab"&&(H.preventDefault(),c&&c(H,"tabKeyDown"))};let L=-1;D.Children.map(o,(H,G)=>{D.isValidElement(H)&&(H.props.disabled||(y==="selectedMenu"&&H.props.selected||L===-1)&&(L=G))});const N={slots:S,slotProps:{list:l,transition:x,paper:p,...w}},B=rc({elementType:S.root,externalSlotProps:w.root,ownerState:T,className:[P.root,a]}),[F,z]=Ve("paper",{className:P.paper,elementType:AH,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:T}),[j,X]=Ve("list",{className:Se(P.list,l.className),elementType:DH,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:H=>({...H,onKeyDown:G=>{var W;R(G),(W=H.onKeyDown)==null||W.call(H,G)}}),ownerState:T}),V=typeof N.slotProps.transition=="function"?N.slotProps.transition(T):N.slotProps.transition;return M.jsx(IH,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?RH:MH,slots:{root:S.root,paper:F,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:B,paper:z,backdrop:typeof w.backdrop=="function"?w.backdrop(T):w.backdrop,transition:{...V,onEntering:(...H)=>{var G;O(...H),(G=V==null?void 0:V.onEntering)==null||G.call(V,...H)}}},open:d,ref:r,transitionDuration:v,ownerState:T,...b,classes:h,children:M.jsx(j,{actions:A,autoFocus:i&&(L===-1||s),autoFocusItem:E,variant:y,...X,children:o})})});function OH(e){return Fe("MuiNativeSelect",e)}const Vb=ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),NH=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"]};return je(s,OH,t)},BA=se("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Vb.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}}}]})),$H=se(BA,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Un,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Vb.multiple}`]:t.multiple}]}})({}),FA=se("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Vb.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}}]})),BH=se(FA,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})({}),FH=D.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,d={...t,disabled:i,variant:l,error:o},p=NH(d);return M.jsxs(D.Fragment,{children:[M.jsx($H,{ownerState:d,className:Se(p.select,n),disabled:i,ref:s||r,...c}),t.multiple?null:M.jsx(BH,{as:a,ownerState:d,className:p.icon})]})});var Ik;const zH=se("fieldset",{shouldForwardProp:Un})({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%"}),jH=se("legend",{shouldForwardProp:Un})(Le(({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 WH(e){const{children:t,classes:r,className:n,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return M.jsx(zH,{"aria-hidden":!0,className:n,ownerState:l,...a,children:M.jsx(jH,{ownerState:l,children:s?M.jsx("span",{children:i}):Ik||(Ik=M.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const HH=e=>{const{classes:t}=e,n=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},O9,t);return{...t,...n}},VH=se(Xg,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qg})(Le(({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 .${bi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bi.focused} .${bi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(wr()).map(([r])=>({props:{color:r},style:{[`&.${bi.focused} .${bi.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${bi.error} .${bi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bi.disabled} .${bi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),UH=se(WH,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Le(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),GH=se(Qg,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kg})(Le(({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}}]}))),Jg=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:d={},slotProps:p={},type:h="text",...v}=n,g=HH(n),x=$o(),y=xs({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:x,fullWidth:o,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},w=d.root??i.Root??VH,b=d.input??i.Input??GH,[C,T]=Ve("notchedOutline",{elementType:UH,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&y.required?M.jsxs(D.Fragment,{children:[s," ","*"]}):s}});return M.jsx(Bb,{slots:{root:w,input:b},slotProps:p,renderSuffix:P=>M.jsx(C,{...T,notched:typeof c<"u"?c:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:r,type:h,...v,classes:{...g,notchedOutline:null}})});Jg.muiName="Input";function zA(e){return Fe("MuiSelect",e)}const af=ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ak;const YH=se(BA,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${af.select}`]:t.select},{[`&.${af.select}`]:t[r.variant]},{[`&.${af.error}`]:t.error},{[`&.${af.multiple}`]:t.multiple}]}})({[`&.${af.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qH=se(FA,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})({}),KH=se("input",{shouldForwardProp:e=>tA(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Dk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function XH(e){return e==null||typeof e=="string"&&!e.trim()}const QH=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return je(s,zA,t)},ZH=D.forwardRef(function(t,r){var st;const{"aria-describedby":n,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:v=!1,IconComponent:g,inputRef:x,labelId:y,MenuProps:S={},multiple:w,name:b,onBlur:C,onChange:T,onClose:P,onFocus:E,onOpen:A,open:O,readOnly:R,renderValue:L,required:N,SelectDisplayProps:B={},tabIndex:F,type:z,value:j,variant:X="standard",...V}=t,[H,G]=ns({controlled:j,default:d,name:"Select"}),[W,Y]=ns({controlled:O,default:c,name:"Select"}),te=D.useRef(null),le=D.useRef(null),[ne,Z]=D.useState(null),{current:ce}=D.useRef(O!=null),[me,de]=D.useState(),fe=_r(r,x),ge=D.useCallback(Ne=>{le.current=Ne,Ne&&Z(Ne)},[]),pe=ne==null?void 0:ne.parentNode;D.useImperativeHandle(fe,()=>({focus:()=>{le.current.focus()},node:te.current,value:H}),[H]),D.useEffect(()=>{c&&W&&ne&&!ce&&(de(a?null:pe.clientWidth),le.current.focus())},[ne,a]),D.useEffect(()=>{o&&le.current.focus()},[o]),D.useEffect(()=>{if(!y)return;const Ne=jn(le.current).getElementById(y);if(Ne){const ot=()=>{getSelection().isCollapsed&&le.current.focus()};return Ne.addEventListener("click",ot),()=>{Ne.removeEventListener("click",ot)}}},[y]);const Oe=(Ne,ot)=>{Ne?A&&A(ot):P&&P(ot),ce||(de(a?null:pe.clientWidth),Y(Ne))},ke=Ne=>{Ne.button===0&&(Ne.preventDefault(),le.current.focus(),Oe(!0,Ne))},nt=Ne=>{Oe(!1,Ne)},tt=D.Children.toArray(s),ct=Ne=>{const ot=tt.find(St=>St.props.value===Ne.target.value);ot!==void 0&&(G(ot.props.value),T&&T(Ne,ot))},we=Ne=>ot=>{let St;if(ot.currentTarget.hasAttribute("tabindex")){if(w){St=Array.isArray(H)?H.slice():[];const pr=H.indexOf(Ne.props.value);pr===-1?St.push(Ne.props.value):St.splice(pr,1)}else St=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(ot),H!==St&&(G(St),T)){const pr=ot.nativeEvent||ot,Ar=new pr.constructor(pr.type,pr);Object.defineProperty(Ar,"target",{writable:!0,value:{value:St,name:b}}),T(Ar,Ne)}w||Oe(!1,ot)}},it=Ne=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Ne.key)&&(Ne.preventDefault(),Oe(!0,Ne))},Me=ne!==null&&W,Ge=Ne=>{!Me&&C&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:H,name:b}}),C(Ne))};delete V["aria-invalid"];let _e,Gt;const vt=[];let Bt=!1;(Zv({value:H})||h)&&(L?_e=L(H):Bt=!0);const Qt=tt.map(Ne=>{if(!D.isValidElement(Ne))return null;let ot;if(w){if(!Array.isArray(H))throw new Error(fa(2));ot=H.some(St=>Dk(St,Ne.props.value)),ot&&Bt&&vt.push(Ne.props.children)}else ot=Dk(H,Ne.props.value),ot&&Bt&&(Gt=Ne.props.children);return D.cloneElement(Ne,{"aria-selected":ot?"true":"false",onClick:we(Ne),onKeyUp:St=>{St.key===" "&&St.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(St)},role:"option",selected:ot,value:void 0,"data-value":Ne.props.value})});Bt&&(w?vt.length===0?_e=null:_e=vt.reduce((Ne,ot,St)=>(Ne.push(ot),St<vt.length-1&&Ne.push(", "),Ne),[]):_e=Gt);let ir=me;!a&&ce&&ne&&(ir=pe.clientWidth);let Et;typeof F<"u"?Et=F:Et=p?null:0;const Jt=B.id||(b?`mui-component-select-${b}`:void 0),Ze={...t,variant:X,value:H,open:Me,error:v},xe=QH(Ze),xt={...S.PaperProps,...(st=S.slotProps)==null?void 0:st.paper},Ct=uc();return M.jsxs(D.Fragment,{children:[M.jsx(YH,{as:"div",ref:ge,tabIndex:Et,role:"combobox","aria-controls":Me?Ct:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,Jt].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:it,onMouseDown:p||R?null:ke,onBlur:Ge,onFocus:E,...B,ownerState:Ze,className:Se(B.className,xe.select,l),id:Jt,children:XH(_e)?Ak||(Ak=M.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):_e}),M.jsx(KH,{"aria-invalid":v,value:Array.isArray(H)?H.join(","):H,name:b,ref:te,"aria-hidden":!0,onChange:ct,tabIndex:-1,disabled:p,className:xe.nativeInput,autoFocus:o,required:N,...V,ownerState:Ze}),M.jsx(qH,{as:g,className:xe.icon,ownerState:Ze}),M.jsx(LH,{id:`menu-${b||""}`,anchorEl:pe,open:Me,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Ct,...S.MenuListProps},paper:{...xt,style:{minWidth:ir,...xt!=null?xt.style:null}}},children:Qt})]})}),JH=e=>{const{classes:t}=e,n=je({root:["root"]},zA,t);return{...t,...n}},Ub={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Un(e)&&e!=="variant"},eV=se(Wb,Ub)(""),tV=se(Jg,Ub)(""),rV=se(zb,Ub)(""),Gb=D.forwardRef(function(t,r){const n=We({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=CA,id:p,input:h,inputProps:v,label:g,labelId:x,MenuProps:y,multiple:S=!1,native:w=!1,onClose:b,onOpen:C,open:T,renderValue:P,SelectDisplayProps:E,variant:A="outlined",...O}=n,R=w?FH:ZH,L=$o(),N=xs({props:n,muiFormControl:L,states:["variant","error"]}),B=N.variant||A,F={...n,variant:B,classes:a},z=JH(F),{root:j,...X}=z,V=h||{standard:M.jsx(eV,{ownerState:F}),outlined:M.jsx(tV,{label:g,ownerState:F}),filled:M.jsx(rV,{ownerState:F})}[B],H=_r(r,Fl(V));return M.jsx(D.Fragment,{children:D.cloneElement(V,{inputComponent:R,inputProps:{children:o,error:N.error,IconComponent:d,variant:B,type:void 0,multiple:S,...w?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:y,onClose:b,onOpen:C,open:T,renderValue:P,SelectDisplayProps:{id:p,...E}},...v,classes:v?jr(X,v.classes):X,...h?h.props.inputProps:{}},...(S&&w||c)&&B==="outlined"?{notched:!0}:{},ref:H,className:Se(V.props.className,s,z.root),...!h&&{variant:B},...O})})});Gb.muiName="Select";function nV(e){return Fe("MuiTooltip",e)}const yr=ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function iV(e){return Math.round(e*1e5)/1e5}const oV=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${ue(o.split("-")[0])}`],arrow:["arrow"]};return je(a,nV,t)},aV=se(Gg,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Le(({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"] .${yr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${yr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${yr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${yr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${yr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${yr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${yr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${yr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),sV=se("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ue(r.placement.split("-")[0])}`]]}})(Le(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(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,[`.${yr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${yr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${yr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${yr.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:`${iV(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${yr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${yr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${yr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${yr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${yr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${yr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${yr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${yr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${yr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${yr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),lV=se("span",{name:"MuiTooltip",slot:"Arrow"})(Le(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Eh=!1;const Lk=new Vg;let sf={x:0,y:0};function Ih(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const jA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:h=!1,disableTouchListener:v=!1,enterDelay:g=100,enterNextDelay:x=0,enterTouchDelay:y=700,followCursor:S=!1,id:w,leaveDelay:b=0,leaveTouchDelay:C=1500,onClose:T,onOpen:P,open:E,placement:A="bottom",PopperComponent:O,PopperProps:R={},slotProps:L={},slots:N={},title:B,TransitionComponent:F,TransitionProps:z,...j}=n,X=D.isValidElement(o)?o:M.jsx("span",{children:o}),V=No(),H=lc(),[G,W]=D.useState(),[Y,te]=D.useState(null),le=D.useRef(!1),ne=h||S,Z=gl(),ce=gl(),me=gl(),de=gl(),[fe,ge]=ns({controlled:E,default:!1,name:"Tooltip",state:"open"});let pe=fe;const Oe=uc(w),ke=D.useRef(),nt=cn(()=>{ke.current!==void 0&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),de.clear()});D.useEffect(()=>nt,[nt]);const tt=Je=>{Lk.clear(),Eh=!0,ge(!0),P&&!pe&&P(Je)},ct=cn(Je=>{Lk.start(800+b,()=>{Eh=!1}),ge(!1),T&&pe&&T(Je),Z.start(V.transitions.duration.shortest,()=>{le.current=!1})}),we=Je=>{le.current&&Je.type!=="touchstart"||(G&&G.removeAttribute("title"),ce.clear(),me.clear(),g||Eh&&x?ce.start(Eh?x:g,()=>{tt(Je)}):tt(Je))},it=Je=>{ce.clear(),me.start(b,()=>{ct(Je)})},[,Me]=D.useState(!1),Ge=Je=>{Qu(Je.target)||(Me(!1),it(Je))},_e=Je=>{G||W(Je.currentTarget),Qu(Je.target)&&(Me(!0),we(Je))},Gt=Je=>{le.current=!0;const tr=X.props;tr.onTouchStart&&tr.onTouchStart(Je)},vt=Je=>{Gt(Je),me.clear(),Z.clear(),nt(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.start(y,()=>{document.body.style.WebkitUserSelect=ke.current,we(Je)})},Bt=Je=>{X.props.onTouchEnd&&X.props.onTouchEnd(Je),nt(),me.start(C,()=>{ct(Je)})};D.useEffect(()=>{if(!pe)return;function Je(tr){tr.key==="Escape"&&ct(tr)}return document.addEventListener("keydown",Je),()=>{document.removeEventListener("keydown",Je)}},[ct,pe]);const Qt=_r(Fl(X),W,r);!B&&B!==0&&(pe=!1);const ir=D.useRef(),Et=Je=>{const tr=X.props;tr.onMouseMove&&tr.onMouseMove(Je),sf={x:Je.clientX,y:Je.clientY},ir.current&&ir.current.update()},Jt={},Ze=typeof B=="string";c?(Jt.title=!pe&&Ze&&!p?B:null,Jt["aria-describedby"]=pe?Oe:null):(Jt["aria-label"]=Ze?B:null,Jt["aria-labelledby"]=pe&&!Ze?Oe:null);const xe={...Jt,...j,...X.props,className:Se(j.className,X.props.className),onTouchStart:Gt,ref:Qt,...S?{onMouseMove:Et}:{}},xt={};v||(xe.onTouchStart=vt,xe.onTouchEnd=Bt),p||(xe.onMouseOver=Ih(we,xe.onMouseOver),xe.onMouseLeave=Ih(it,xe.onMouseLeave),ne||(xt.onMouseOver=we,xt.onMouseLeave=it)),d||(xe.onFocus=Ih(_e,xe.onFocus),xe.onBlur=Ih(Ge,xe.onBlur),ne||(xt.onFocus=_e,xt.onBlur=Ge));const Ct={...n,isRtl:H,arrow:i,disableInteractive:ne,placement:A,PopperComponentProp:O,touch:le.current},st=typeof L.popper=="function"?L.popper(Ct):L.popper,Ne=D.useMemo(()=>{var tr,Te;let Je=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(tr=R.popperOptions)!=null&&tr.modifiers&&(Je=Je.concat(R.popperOptions.modifiers)),(Te=st==null?void 0:st.popperOptions)!=null&&Te.modifiers&&(Je=Je.concat(st.popperOptions.modifiers)),{...R.popperOptions,...st==null?void 0:st.popperOptions,modifiers:Je}},[Y,R.popperOptions,st==null?void 0:st.popperOptions]),ot=oV(Ct),St=typeof L.transition=="function"?L.transition(Ct):L.transition,pr={slots:{popper:s.Popper,transition:s.Transition??F,tooltip:s.Tooltip,arrow:s.Arrow,...N},slotProps:{arrow:L.arrow??l.arrow,popper:{...R,...st??l.popper},tooltip:L.tooltip??l.tooltip,transition:{...z,...St??l.transition}}},[Ar,zi]=Ve("popper",{elementType:aV,externalForwardedProps:pr,ownerState:Ct,className:Se(ot.popper,R==null?void 0:R.className)}),[er,Tr]=Ve("transition",{elementType:Jv,externalForwardedProps:pr,ownerState:Ct}),[Qr,Gn]=Ve("tooltip",{elementType:sV,className:ot.tooltip,externalForwardedProps:pr,ownerState:Ct}),[Hr,ji]=Ve("arrow",{elementType:lV,className:ot.arrow,externalForwardedProps:pr,ownerState:Ct,ref:te});return M.jsxs(D.Fragment,{children:[D.cloneElement(X,xe),M.jsx(Ar,{as:O??Gg,placement:A,anchorEl:S?{getBoundingClientRect:()=>({top:sf.y,left:sf.x,right:sf.x,bottom:sf.y,width:0,height:0})}:G,popperRef:ir,open:G?pe:!1,id:Oe,transition:!0,...xt,...zi,popperOptions:Ne,children:({TransitionProps:Je})=>M.jsx(er,{timeout:V.transitions.duration.shorter,...Je,...Tr,children:M.jsxs(Qr,{...Gn,children:[B,i?M.jsx(Hr,{...ji}):null]})})})]})}),uV=Hz({createStyledComponent:se("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>We({props:e,name:"MuiStack"})});function cV(e){return Fe("MuiSwitch",e)}const yn=ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),fV=e=>{const{classes:t,edge:r,size:n,color:i,checked:o,disabled:a}=e,s={root:["root",r&&`edge${ue(r)}`,`size${ue(n)}`],switchBase:["switchBase",`color${ue(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=je(s,cV,t);return{...t,...l}},dV=se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${yn.thumb}`]:{width:16,height:16},[`& .${yn.switchBase}`]:{padding:4,[`&.${yn.checked}`]:{transform:"translateX(16px)"}}}}]}),pV=se(kA,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${yn.input}`]:t.input},r.color!=="default"&&t[`color${ue(r.color)}`]]}})(Le(({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}),[`&.${yn.checked}`]:{transform:"translateX(20px)"},[`&.${yn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${yn.checked} + .${yn.track}`]:{opacity:.5},[`&.${yn.disabled} + .${yn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${yn.input}`]:{left:"-100%",width:"300%"}})),Le(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(wr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${yn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Al(e.palette[t].main,.62):Il(e.palette[t].main,.55)}`}},[`&.${yn.checked} + .${yn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),hV=se("span",{name:"MuiSwitch",slot:"Track"})(Le(({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}`}))),vV=se("span",{name:"MuiSwitch",slot:"Thumb"})(Le(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),gV=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:d={},...p}=n,h={...n,color:o,edge:a,size:s},v=fV(h),g={slots:c,slotProps:d},[x,y]=Ve("root",{className:Se(v.root,i),elementType:dV,externalForwardedProps:g,ownerState:h,additionalProps:{sx:l}}),[S,w]=Ve("thumb",{className:v.thumb,elementType:vV,externalForwardedProps:g,ownerState:h}),b=M.jsx(S,{...w}),[C,T]=Ve("track",{className:v.track,elementType:hV,externalForwardedProps:g,ownerState:h});return M.jsxs(x,{...y,children:[M.jsx(pV,{type:"checkbox",icon:b,checkedIcon:b,ref:r,ownerState:h,...p,classes:{...v,root:v.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(h):d.switchBase},...d.input&&{input:typeof d.input=="function"?d.input(h):d.input}}}),M.jsx(C,{...T})]})});function mV(e){return Fe("MuiTab",e)}const mi=ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),yV=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${ue(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return je(c,mV,t)},xV=se(ds,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${mi.iconWrapper}`]:t.iconWrapper},{[`& .${mi.icon}`]:t.icon}]}})(Le(({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:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${mi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${mi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${mi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${mi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${mi.selected}`]:{opacity:1},[`&.${mi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${mi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${mi.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)}}]}))),SV=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:d,label:p,onChange:h,onClick:v,onFocus:g,selected:x,selectionFollowsFocus:y,textColor:S="inherit",value:w,wrapped:b=!1,...C}=n,T={...n,disabled:o,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!p,fullWidth:s,textColor:S,wrapped:b},P=yV(T),E=l&&p&&D.isValidElement(l)?D.cloneElement(l,{className:Se(P.icon,l.props.className)}):l,A=R=>{!x&&h&&h(R,w),v&&v(R)},O=R=>{y&&!x&&h&&h(R,w),g&&g(R)};return M.jsxs(xV,{focusRipple:!a,className:Se(P.root,i),ref:r,role:"tab","aria-selected":x,disabled:o,onClick:A,onFocus:O,ownerState:T,tabIndex:x?0:-1,...C,children:[c==="top"||c==="start"?M.jsxs(D.Fragment,{children:[E,p]}):M.jsxs(D.Fragment,{children:[p,E]}),d]})}),WA=D.createContext();function bV(e){return Fe("MuiTable",e)}ze("MuiTable",["root","stickyHeader"]);const wV=e=>{const{classes:t,stickyHeader:r}=e;return je({root:["root",r&&"stickyHeader"]},bV,t)},_V=se("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Le(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Ok="table",HA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTable"}),{className:i,component:o=Ok,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,d={...n,component:o,padding:a,size:s,stickyHeader:l},p=wV(d),h=D.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return M.jsx(WA.Provider,{value:h,children:M.jsx(_V,{as:o,role:o===Ok?null:"table",ref:r,className:Se(p.root,i),ownerState:d,...c})})}),em=D.createContext();function CV(e){return Fe("MuiTableBody",e)}ze("MuiTableBody",["root"]);const TV=e=>{const{classes:t}=e;return je({root:["root"]},CV,t)},kV=se("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),PV={variant:"body"},Nk="tbody",VA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTableBody"}),{className:i,component:o=Nk,...a}=n,s={...n,component:o},l=TV(s);return M.jsx(em.Provider,{value:PV,children:M.jsx(kV,{className:Se(l.root,i),as:o,ref:r,role:o===Nk?null:"rowgroup",ownerState:s,...a})})});function RV(e){return Fe("MuiTableCell",e)}const MV=ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),EV=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,s={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${ue(n)}`,i!=="normal"&&`padding${ue(i)}`,`size${ue(o)}`]};return je(s,RV,t)},IV=se("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ue(r.size)}`],r.padding!=="normal"&&t[`padding${ue(r.padding)}`],r.align!=="inherit"&&t[`align${ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Le(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
204
- ${e.palette.mode==="light"?Al(mt(e.palette.divider,1),.88):Il(mt(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",[`&.${MV.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}}]}))),pl=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:d,variant:p,...h}=n,v=D.useContext(WA),g=D.useContext(em),x=g&&g.variant==="head";let y;a?y=a:y=x?"th":"td";let S=l;y==="td"?S=void 0:!S&&x&&(S="col");const w=p||g&&g.variant,b={...n,align:i,component:y,padding:s||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w},C=EV(b);let T=null;return d&&(T=d==="asc"?"ascending":"descending"),M.jsx(IV,{as:y,ref:r,className:Se(C.root,o),"aria-sort":T,scope:S,ownerState:b,...h})});function AV(e){return Fe("MuiTableContainer",e)}ze("MuiTableContainer",["root"]);const DV=e=>{const{classes:t}=e;return je({root:["root"]},AV,t)},LV=se("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),UA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTableContainer"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=DV(s);return M.jsx(LV,{ref:r,as:o,className:Se(l.root,i),ownerState:s,...a})});function OV(e){return Fe("MuiTableHead",e)}ze("MuiTableHead",["root"]);const NV=e=>{const{classes:t}=e;return je({root:["root"]},OV,t)},$V=se("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),BV={variant:"head"},$k="thead",GA=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTableHead"}),{className:i,component:o=$k,...a}=n,s={...n,component:o},l=NV(s);return M.jsx(em.Provider,{value:BV,children:M.jsx($V,{as:o,className:Se(l.root,i),ref:r,role:o===$k?null:"rowgroup",ownerState:s,...a})})});function FV(e){return Fe("MuiToolbar",e)}ze("MuiToolbar",["root","gutters","regular","dense"]);const zV=e=>{const{classes:t,disableGutters:r,variant:n}=e;return je({root:["root",!r&&"gutters",n]},FV,t)},jV=se("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Le(({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}]}))),WV=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular",...l}=n,c={...n,component:o,disableGutters:a,variant:s},d=zV(c);return M.jsx(jV,{as:o,className:Se(d.root,i),ref:r,ownerState:c,...l})}),HV=Ht(M.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),VV=Ht(M.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function UV(e){return Fe("MuiTableRow",e)}const Bk=ze("MuiTableRow",["root","selected","hover","head","footer"]),GV=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return je({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},UV,t)},YV=se("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Le(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Bk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Bk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Fk="tr",eg=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTableRow"}),{className:i,component:o=Fk,hover:a=!1,selected:s=!1,...l}=n,c=D.useContext(em),d={...n,component:o,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},p=GV(d);return M.jsx(YV,{as:o,ref:r,className:Se(p.root,i),role:o===Fk?null:"row",ownerState:d,...l})});function qV(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function KV(e,t,r,n={},i=()=>{}){const{ease:o=qV,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},p=h=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=h);const v=Math.min(1,(h-s)/a);if(t[e]=o(v)*(r-l)+l,v>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const XV={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function QV(e){const{onChange:t,...r}=e,n=D.useRef(),i=D.useRef(null),o=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return oo(()=>{const a=Jd(()=>{const l=n.current;o(),l!==n.current&&t(n.current)}),s=ai(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),D.useEffect(()=>{o(),t(n.current)},[t]),M.jsx("div",{style:XV,...r,ref:i})}function ZV(e){return Fe("MuiTabScrollButton",e)}const JV=ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),eU=e=>{const{classes:t,orientation:r,disabled:n}=e;return je({root:["root",r,n&&"disabled"]},ZV,t)},tU=se(ds,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${JV.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),rU=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:a={},direction:s,orientation:l,disabled:c,...d}=n,p=lc(),h={isRtl:p,...n},v=eU(h),g=o.StartScrollButtonIcon??HV,x=o.EndScrollButtonIcon??VV,y=rc({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=rc({elementType:x,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return M.jsx(tU,{component:"div",className:Se(v.root,i),ref:r,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:s==="left"?M.jsx(g,{...y}):M.jsx(x,{...S})})});function nU(e){return Fe("MuiTabs",e)}const B0=ze("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zk=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,jk=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ah=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=r(e,i);else{i.focus();return}}},iU=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return je({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},nU,l)},oU=se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${B0.scrollButtons}`]:t.scrollButtons},{[`& .${B0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Le(({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:{[`& .${B0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),aU=se("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.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"}}]}),sU=se("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),lU=se("span",{name:"MuiTabs",slot:"Indicator"})(Le(({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}}]}))),uU=se(QV)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wk={},cU=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTabs"}),i=No(),o=lc(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:x,orientation:y="horizontal",ScrollButtonComponent:S,scrollButtons:w="auto",selectionFollowsFocus:b,slots:C={},slotProps:T={},TabIndicatorProps:P={},TabScrollButtonProps:E={},textColor:A="primary",value:O,variant:R="standard",visibleScrollbar:L=!1,...N}=n,B=R==="scrollable",F=y==="vertical",z=F?"scrollTop":"scrollLeft",j=F?"top":"left",X=F?"bottom":"right",V=F?"clientHeight":"clientWidth",H=F?"height":"width",G={...n,component:h,allowScrollButtonsMobile:v,indicatorColor:g,orientation:y,vertical:F,scrollButtons:w,textColor:A,variant:R,visibleScrollbar:L,fixed:!B,hideScrollbar:B&&!L,scrollableX:B&&!F,scrollableY:B&&F,centered:c&&!B,scrollButtonsHideMobile:!v},W=iU(G),Y=rc({elementType:C.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:G}),te=rc({elementType:C.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:G}),[le,ne]=D.useState(!1),[Z,ce]=D.useState(Wk),[me,de]=D.useState(!1),[fe,ge]=D.useState(!1),[pe,Oe]=D.useState(!1),[ke,nt]=D.useState({overflow:"hidden",scrollbarWidth:0}),tt=new Map,ct=D.useRef(null),we=D.useRef(null),it={slots:C,slotProps:{indicator:P,scrollButton:E,...T}},Me=()=>{const Te=ct.current;let Ee;if(Te){const ft=Te.getBoundingClientRect();Ee={clientWidth:Te.clientWidth,scrollLeft:Te.scrollLeft,scrollTop:Te.scrollTop,scrollWidth:Te.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let lt;if(Te&&O!==!1){const ft=we.current.children;if(ft.length>0){const Dt=ft[tt.get(O)];lt=Dt?Dt.getBoundingClientRect():null}}return{tabsMeta:Ee,tabMeta:lt}},Ge=cn(()=>{const{tabsMeta:Te,tabMeta:Ee}=Me();let lt=0,ft;F?(ft="top",Ee&&Te&&(lt=Ee.top-Te.top+Te.scrollTop)):(ft=o?"right":"left",Ee&&Te&&(lt=(o?-1:1)*(Ee[ft]-Te[ft]+Te.scrollLeft)));const Dt={[ft]:lt,[H]:Ee?Ee[H]:0};if(typeof Z[ft]!="number"||typeof Z[H]!="number")ce(Dt);else{const kr=Math.abs(Z[ft]-Dt[ft]),Zr=Math.abs(Z[H]-Dt[H]);(kr>=1||Zr>=1)&&ce(Dt)}}),_e=(Te,{animation:Ee=!0}={})=>{Ee?KV(z,ct.current,Te,{duration:i.transitions.duration.standard}):ct.current[z]=Te},Gt=Te=>{let Ee=ct.current[z];F?Ee+=Te:Ee+=Te*(o?-1:1),_e(Ee)},vt=()=>{const Te=ct.current[V];let Ee=0;const lt=Array.from(we.current.children);for(let ft=0;ft<lt.length;ft+=1){const Dt=lt[ft];if(Ee+Dt[V]>Te){ft===0&&(Ee=Te);break}Ee+=Dt[V]}return Ee},Bt=()=>{Gt(-1*vt())},Qt=()=>{Gt(vt())},[ir,{onChange:Et,...Jt}]=Ve("scrollbar",{className:Se(W.scrollableX,W.hideScrollbar),elementType:uU,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:G}),Ze=D.useCallback(Te=>{Et==null||Et(Te),nt({overflow:null,scrollbarWidth:Te})},[Et]),[xe,xt]=Ve("scrollButtons",{className:Se(W.scrollButtons,E.className),elementType:rU,externalForwardedProps:it,ownerState:G,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:Y,endScrollButtonIcon:te}}}),Ct=()=>{const Te={};Te.scrollbarSizeListener=B?M.jsx(ir,{...Jt,onChange:Ze}):null;const lt=B&&(w==="auto"&&(me||fe)||w===!0);return Te.scrollButtonStart=lt?M.jsx(xe,{direction:o?"right":"left",onClick:Bt,disabled:!me,...xt}):null,Te.scrollButtonEnd=lt?M.jsx(xe,{direction:o?"left":"right",onClick:Qt,disabled:!fe,...xt}):null,Te},st=cn(Te=>{const{tabsMeta:Ee,tabMeta:lt}=Me();if(!(!lt||!Ee)){if(lt[j]<Ee[j]){const ft=Ee[z]+(lt[j]-Ee[j]);_e(ft,{animation:Te})}else if(lt[X]>Ee[X]){const ft=Ee[z]+(lt[X]-Ee[X]);_e(ft,{animation:Te})}}}),Ne=cn(()=>{B&&w!==!1&&Oe(!pe)});D.useEffect(()=>{const Te=Jd(()=>{ct.current&&Ge()});let Ee;const lt=kr=>{kr.forEach(Zr=>{Zr.removedNodes.forEach(hn=>{Ee==null||Ee.unobserve(hn)}),Zr.addedNodes.forEach(hn=>{Ee==null||Ee.observe(hn)})}),Te(),Ne()},ft=ai(ct.current);ft.addEventListener("resize",Te);let Dt;return typeof ResizeObserver<"u"&&(Ee=new ResizeObserver(Te),Array.from(we.current.children).forEach(kr=>{Ee.observe(kr)})),typeof MutationObserver<"u"&&(Dt=new MutationObserver(lt),Dt.observe(we.current,{childList:!0})),()=>{Te.clear(),ft.removeEventListener("resize",Te),Dt==null||Dt.disconnect(),Ee==null||Ee.disconnect()}},[Ge,Ne]),D.useEffect(()=>{const Te=Array.from(we.current.children),Ee=Te.length;if(typeof IntersectionObserver<"u"&&Ee>0&&B&&w!==!1){const lt=Te[0],ft=Te[Ee-1],Dt={root:ct.current,threshold:.99},kr=ci=>{de(!ci[0].isIntersecting)},Zr=new IntersectionObserver(kr,Dt);Zr.observe(lt);const hn=ci=>{ge(!ci[0].isIntersecting)},Wo=new IntersectionObserver(hn,Dt);return Wo.observe(ft),()=>{Zr.disconnect(),Wo.disconnect()}}},[B,w,pe,d==null?void 0:d.length]),D.useEffect(()=>{ne(!0)},[]),D.useEffect(()=>{Ge()}),D.useEffect(()=>{st(Wk!==Z)},[st,Z]),D.useImperativeHandle(l,()=>({updateIndicator:Ge,updateScrollButtons:Ne}),[Ge,Ne]);const[ot,St]=Ve("indicator",{className:Se(W.indicator,P.className),elementType:lU,externalForwardedProps:it,ownerState:G,additionalProps:{style:Z}}),pr=M.jsx(ot,{...St});let Ar=0;const zi=D.Children.map(d,Te=>{if(!D.isValidElement(Te))return null;const Ee=Te.props.value===void 0?Ar:Te.props.value;tt.set(Ee,Ar);const lt=Ee===O;return Ar+=1,D.cloneElement(Te,{fullWidth:R==="fullWidth",indicator:lt&&!le&&pr,selected:lt,selectionFollowsFocus:b,onChange:x,textColor:A,value:Ee,...Ar===1&&O===!1&&!Te.props.tabIndex?{tabIndex:0}:{}})}),er=Te=>{if(Te.altKey||Te.shiftKey||Te.ctrlKey||Te.metaKey)return;const Ee=we.current,lt=jn(Ee).activeElement;if(lt.getAttribute("role")!=="tab")return;let Dt=y==="horizontal"?"ArrowLeft":"ArrowUp",kr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&o&&(Dt="ArrowRight",kr="ArrowLeft"),Te.key){case Dt:Te.preventDefault(),Ah(Ee,lt,jk);break;case kr:Te.preventDefault(),Ah(Ee,lt,zk);break;case"Home":Te.preventDefault(),Ah(Ee,null,zk);break;case"End":Te.preventDefault(),Ah(Ee,null,jk);break}},Tr=Ct(),[Qr,Gn]=Ve("root",{ref:r,className:Se(W.root,p),elementType:oU,externalForwardedProps:{...it,...N,component:h},ownerState:G}),[Hr,ji]=Ve("scroller",{ref:ct,className:W.scroller,elementType:aU,externalForwardedProps:it,ownerState:G,additionalProps:{style:{overflow:ke.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:L?void 0:-ke.scrollbarWidth}}}),[Je,tr]=Ve("list",{ref:we,className:Se(W.list,W.flexContainer),elementType:sU,externalForwardedProps:it,ownerState:G,getSlotProps:Te=>({...Te,onKeyDown:Ee=>{var lt;er(Ee),(lt=Te.onKeyDown)==null||lt.call(Te,Ee)}})});return M.jsxs(Qr,{...Gn,children:[Tr.scrollButtonStart,Tr.scrollbarSizeListener,M.jsxs(Hr,{...ji,children:[M.jsx(Je,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...tr,children:zi}),le&&pr]}),Tr.scrollButtonEnd]})});function fU(e){return Fe("MuiTextField",e)}ze("MuiTextField",["root"]);const dU={standard:Wb,filled:zb,outlined:Jg},pU=e=>{const{classes:t}=e;return je({root:["root"]},fU,t)},hU=se(jb,{name:"MuiTextField",slot:"Root"})({}),_l=D.forwardRef(function(t,r){const n=We({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:v=!1,helperText:g,id:x,InputLabelProps:y,inputProps:S,InputProps:w,inputRef:b,label:C,maxRows:T,minRows:P,multiline:E=!1,name:A,onBlur:O,onChange:R,onFocus:L,placeholder:N,required:B=!1,rows:F,select:z=!1,SelectProps:j,slots:X={},slotProps:V={},type:H,value:G,variant:W="outlined",...Y}=n,te={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:v,multiline:E,required:B,select:z,variant:W},le=pU(te),ne=uc(x),Z=g&&ne?`${ne}-helper-text`:void 0,ce=C&&ne?`${ne}-label`:void 0,me=dU[W],de={slots:X,slotProps:{input:w,inputLabel:y,htmlInput:S,formHelperText:h,select:j,...V}},fe={},ge=de.slotProps.inputLabel;W==="outlined"&&(ge&&typeof ge.shrink<"u"&&(fe.notched=ge.shrink),fe.label=C),z&&((!j||!j.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const[pe,Oe]=Ve("root",{elementType:hU,shouldForwardComponentProp:!0,externalForwardedProps:{...de,...Y},ownerState:te,className:Se(le.root,s),ref:r,additionalProps:{disabled:d,error:p,fullWidth:v,required:B,color:l,variant:W}}),[ke,nt]=Ve("input",{elementType:me,externalForwardedProps:de,additionalProps:fe,ownerState:te}),[tt,ct]=Ve("inputLabel",{elementType:Zg,externalForwardedProps:de,ownerState:te}),[we,it]=Ve("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:te}),[Me,Ge]=Ve("formHelperText",{elementType:L7,externalForwardedProps:de,ownerState:te}),[_e,Gt]=Ve("select",{elementType:Gb,externalForwardedProps:de,ownerState:te}),vt=M.jsx(ke,{"aria-describedby":Z,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:v,multiline:E,name:A,rows:F,maxRows:T,minRows:P,type:H,value:G,id:ne,inputRef:b,onBlur:O,onChange:R,onFocus:L,placeholder:N,inputProps:it,slots:{input:X.htmlInput?we:void 0},...nt});return M.jsxs(pe,{...Oe,children:[C!=null&&C!==""&&M.jsx(tt,{htmlFor:ne,id:ce,...ct,children:C}),z?M.jsx(_e,{"aria-describedby":Z,id:ne,labelId:ce,value:G,input:vt,...Gt,children:a}):vt,g&&M.jsx(Me,{id:Z,...Ge,children:g})]})});function YA(){return M.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[M.jsx("title",{children:"Locust"}),M.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),M.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),M.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),M.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),M.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),M.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}const Yb=Ht([M.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),vU=Ht(M.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),gU=Ht(M.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"})),mU=Ht(M.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"})),yU=Ht(M.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"})),xU=Ht(M.jsx("path",{d:"M21.9 21.9 2.1 2.1.69 3.51l1.55 1.55c-.15.28-.23.6-.23.94L2 18c0 1.11.89 2 2 2h13.17l3.31 3.31zM4 12V8h1.17l4 4zm2.83-8H20c1.11 0 2 .89 2 2v12c0 .34-.08.66-.23.94L14.83 12H20V8h-9.17z"})),qb=Ht(M.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qA=Ht(M.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"})),SU=Ht(M.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Kb=Ht(M.jsx("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 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),KA=Ht([M.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),M.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),bU=Ht(M.jsx("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-.61zM12 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.6"})),Xb=Ht(M.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),XA=Ht(M.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m7.46 7.12-2.78 1.15c-.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78c2.1.8 3.77 2.47 4.58 4.57M12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3M9.13 4.54l1.17 2.78c-1.38.5-2.47 1.59-2.98 2.97L4.54 9.13c.81-2.11 2.48-3.78 4.59-4.59M4.54 14.87l2.78-1.15c.51 1.38 1.59 2.46 2.97 2.96l-1.17 2.78c-2.1-.81-3.77-2.48-4.58-4.59m10.34 4.59-1.15-2.78c1.37-.51 2.45-1.59 2.95-2.97l2.78 1.17c-.81 2.1-2.48 3.77-4.58 4.58"})),wU=Ht(M.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),_U=Ht(M.jsx("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.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),CU=Ht(M.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 7M2 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 3zM7.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.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));function QA({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,o]=D.useState(!1),a=()=>o(!i);return M.jsxs(jb,{variant:"outlined",children:[M.jsx(Zg,{htmlFor:`${t}-${e}-field`,children:t}),M.jsx(Jg,{defaultValue:r,endAdornment:M.jsx(q7,{position:"end",children:M.jsx(va,{edge:"end",onClick:a,children:i?M.jsx(CU,{}):M.jsx(_U,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function Qb({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:o="medium",sx:a,...s}){return M.jsxs(jb,{size:o,sx:a,children:[M.jsx(Zg,{htmlFor:t,shrink:!0,children:e}),M.jsx(Gb,{...s,defaultValue:s.value?void 0:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,c)=>M.jsx("option",{value:l,children:l},`option-${l}-${c}`))})]})}function Zb({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:o,isRequired:a}){return i?M.jsx(Qb,{defaultValue:n,label:t,name:e,options:i,required:a,sx:{width:"100%"}}):typeof n=="boolean"?M.jsx(AA,{control:M.jsx(Nx,{defaultChecked:n,required:a}),label:t,name:e}):o?M.jsx(QA,{defaultValue:n,isRequired:a,label:t,name:e}):M.jsx(_l,{defaultValue:n,label:t,name:e,required:a,sx:{width:"100%"},type:r})}const Ro={DARK:"dark",LIGHT:"light"},TU=localStorage.theme===Ro.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ro.DARK:Ro.LIGHT,Cn=tI,kU=cI;function wo(e,t){const r=kU();return D.useCallback(n=>{r(e(n))},[e,r])}const PU={isDarkMode:!1},ZA=ki({name:"theme",initialState:PU,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),RU=ZA.actions,JA=ZA.reducer;function Fx(){const e=Cn(({theme:{isDarkMode:n}})=>n),t=wo(RU.setIsDarkMode);D.useEffect(()=>{t(TU===Ro.DARK)},[]);const r=()=>{localStorage.theme=e?Ro.LIGHT:Ro.DARK,t(!e)};return M.jsx(va,{color:"inherit",onClick:r,children:e?M.jsx(mU,{}):M.jsx(gU,{})})}const MU=e=>Hg({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function eD(){const e=Cn(({theme:{isDarkMode:r}})=>r);return D.useMemo(()=>MU(e?Ro.DARK:Ro.LIGHT),[e])}function EU({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const o=eD();return M.jsxs(rA,{theme:o,children:[M.jsx(RA,{}),M.jsx(et,{sx:{position:"absolute",top:4,right:4},children:M.jsx(Fx,{})}),M.jsxs(et,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,width:400,border:"3px solid black",p:4},children:[M.jsx(et,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:M.jsx(YA,{})}),i&&!t&&M.jsx("form",{action:i,method:"POST",children:M.jsxs(et,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[M.jsx(_l,{label:"Username",name:"username"}),M.jsx(QA,{}),n&&M.jsx(ia,{severity:"info",children:n}),r&&M.jsx(ia,{severity:"error",children:r}),M.jsx(li,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&M.jsx("form",{action:t.callbackUrl,method:"POST",children:M.jsxs(et,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((a,s)=>M.jsx(Zb,{...a},`custom-form-input-${s}`)),n&&M.jsx(ia,{severity:"info",children:n}),r&&M.jsx(ia,{severity:"error",children:r}),M.jsx(li,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&M.jsx(ia,{severity:"info",children:n}),r&&!t&&!i&&M.jsx(ia,{severity:"error",children:r}),e&&M.jsx(et,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:s,iconUrl:l},c)=>M.jsxs(va,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[M.jsx("img",{height:"32",src:l}),M.jsx(qe,{height:"32",variant:"button",children:a})]},`auth-provider-${c}`))})]})]})}function tm({open:e,onClose:t,children:r}){return M.jsx(Fb,{onClose:t,open:e,children:M.jsxs(rp,{maxWidth:"md",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[M.jsx(va,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:M.jsx(yU,{})}),r]})})}function IU(){const[e,t]=D.useState(!1),r=Cn(({swarm:n})=>n.version);return M.jsxs(M.Fragment,{children:[M.jsx(et,{sx:{display:"flex",justifyContent:"flex-end"},children:M.jsx(li,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),M.jsxs(tm,{onClose:()=>t(!1),open:e,children:[M.jsxs("div",{children:[M.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"About"}),M.jsxs(qe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",M.jsx(ln,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),M.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",M.jsx(ln,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",M.jsx(ln,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),M.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",M.jsx(ln,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),M.jsxs("div",{children:[M.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),M.jsx(ln,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),M.jsxs("div",{children:[M.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Version"}),M.jsx(ln,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),M.jsxs("div",{children:[M.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Links"}),M.jsx(qe,{component:"p",variant:"subtitle1",children:M.jsx(ln,{href:"https://github.com/locustio/locust",children:"GitHub"})}),M.jsx(qe,{component:"p",variant:"subtitle1",children:M.jsx(ln,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),M.jsx(qe,{component:"p",variant:"subtitle1",children:M.jsx(ln,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function AU(){return M.jsx(rp,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:M.jsx(IU,{})})}const tD=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function DU(e,t){return{...e,...t}}const LU=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},rm=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Xr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},Mo=window.templateArgs?fl(window.templateArgs):{};Mo.isReport&&{...Mo,charts:(Mo.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>rm(e,{...t,...r}),{})};function OU({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:o,workerCount:a}){return M.jsxs(et,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[M.jsxs(et,{sx:{display:"flex",flexDirection:"column"},children:[M.jsx(qe,{sx:{fontWeight:"bold"},children:"Host"}),M.jsx(jA,{title:r,children:M.jsx(qe,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),M.jsx(dl,{flexItem:!0,orientation:"vertical"}),M.jsxs(et,{sx:{display:"flex",flexDirection:"column"},children:[M.jsx(qe,{sx:{fontWeight:"bold"},children:"Status"}),M.jsx(qe,{variant:"button",children:t})]}),(t===Xr.RUNNING||t===Xr.SPAWNING)&&M.jsxs(M.Fragment,{children:[M.jsx(dl,{flexItem:!0,orientation:"vertical"}),M.jsxs(et,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(qe,{sx:{fontWeight:"bold"},children:"Users"}),M.jsx(qe,{noWrap:!0,variant:"button",children:o})]})]}),e&&M.jsxs(M.Fragment,{children:[M.jsx(dl,{flexItem:!0,orientation:"vertical"}),M.jsxs(et,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(qe,{sx:{fontWeight:"bold"},children:"Workers"}),M.jsx(qe,{noWrap:!0,variant:"button",children:a})]})]}),M.jsx(dl,{flexItem:!0,orientation:"vertical"}),M.jsxs(et,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(qe,{sx:{fontWeight:"bold"},children:"RPS"}),M.jsx(qe,{noWrap:!0,variant:"button",children:n})]}),M.jsx(dl,{flexItem:!0,orientation:"vertical"}),M.jsxs(et,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(qe,{sx:{fontWeight:"bold"},children:"Failures"}),M.jsx(qe,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const NU=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:o,userCount:a}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:o,userCount:a,workerCount:n}),Hk=ui(NU)(OU),$U="input, select, textarea",BU=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function rD({children:e,onSubmit:t,onChange:r}){const n=D.useCallback(async i=>{i.preventDefault();const a=[...i.target.querySelectorAll($U)].reduce((s,l)=>l.name?{...s,[l.name]:BU(l)}:s,{});t(a)},[t]);return M.jsx("form",{onChange:r,onSubmit:n,children:e})}function Vk({defaultValue:e,...t}){const[r,n]=D.useState(e||""),i=o=>{t.onChange&&t.onChange(o),!((o.target.value.match(/\./g)||[]).length>1)&&n(o.target.value.replace(/[^0-9.]/g,""))};return D.useEffect(()=>{e&&n(e)},[e]),M.jsx(_l,{...t,onChange:i,value:r})}function FU({extraOptions:e}){return M.jsxs(Rb,{children:[M.jsx(Eb,{expandIcon:M.jsx(qb,{}),children:M.jsx(qe,{children:"Custom parameters"})}),M.jsx(Mb,{children:M.jsx(et,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>D.createElement(Zb,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${hx(t)} (${r.helpText})`:hx(t),name:t}))})})]})}var nD=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(nD||{});function zU(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function jU(e){return new RegExp("(^|:)//").test(e)}var WU=e=>e.replace(/\/$/,""),HU=e=>e.replace(/^\//,"");function VU(e,t){if(!e)return t;if(!t)return e;if(jU(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=WU(e),t=HU(t),`${e}${r}${t}`}var Uk=e=>[].concat(...e);function UU(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function GU(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var Gk=Do;function iD(e,t){if(e===t||!(Gk(e)&&Gk(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const o=Array.isArray(t)?[]:{};for(const a of r)o[a]=iD(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}var Yk=(...e)=>fetch(...e),YU=e=>e.status>=200&&e.status<=299,qU=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function qk(e){if(!Do(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function KU({baseUrl:e,prepareHeaders:t=p=>p,fetchFn:r=Yk,paramsSerializer:n,isJsonContentType:i=qU,jsonContentType:o="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:c,...d}={}){return typeof fetch>"u"&&r===Yk&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,v)=>{const{signal:g,getState:x,extra:y,endpoint:S,forced:w,type:b}=v;let C,{url:T,headers:P=new Headers(d.headers),params:E=void 0,responseHandler:A=l??"json",validateStatus:O=c??YU,timeout:R=s,...L}=typeof h=="string"?{url:h}:h,N={...d,signal:g,...L};P=new Headers(qk(P)),N.headers=await t(P,{getState:x,extra:y,endpoint:S,forced:w,type:b})||P;const B=Y=>typeof Y=="object"&&(Do(Y)||Array.isArray(Y)||typeof Y.toJSON=="function");if(!N.headers.has("content-type")&&B(N.body)&&N.headers.set("content-type",o),B(N.body)&&i(N.headers)&&(N.body=JSON.stringify(N.body,a)),E){const Y=~T.indexOf("?")?"&":"?",te=n?n(E):new URLSearchParams(qk(E));T+=Y+te}T=VU(e,T);const F=new Request(T,N);C={request:new Request(T,N)};let j,X=!1,V=R&&setTimeout(()=>{X=!0,v.abort()},R);try{j=await r(F)}catch(Y){return{error:{status:X?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Y)},meta:C}}finally{V&&clearTimeout(V)}const H=j.clone();C.response=H;let G,W="";try{let Y;if(await Promise.all([p(j,A).then(te=>G=te,te=>Y=te),H.text().then(te=>W=te,()=>{})]),Y)throw Y}catch(Y){return{error:{status:"PARSING_ERROR",originalStatus:j.status,data:W,error:String(Y)},meta:C}}return O(j,G)?{data:G,meta:C}:{error:{status:j.status,data:G},meta:C}};async function p(h,v){if(typeof v=="function")return v(h);if(v==="content-type"&&(v=i(h.headers)?"json":"text"),v==="json"){const g=await h.text();return g.length?JSON.parse(g):null}return h.text()}}var Kk=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Jb=wn("__rtkq/focused"),oD=wn("__rtkq/unfocused"),ew=wn("__rtkq/online"),aD=wn("__rtkq/offline");function sD(e){return e.type==="query"}function XU(e){return e.type==="mutation"}function tw(e,t,r,n,i,o){return QU(e)?e(t,r,n,i).map(zx).map(o):Array.isArray(e)?e.map(zx).map(o):[]}function QU(e){return typeof e=="function"}function zx(e){return typeof e=="string"?{type:e}:e}function Xk(e){return e!=null}function zu(e){let t=0;for(const r in e)t++;return t}function ZU(e,t){return e.catch(t)}var Cd=Symbol("forceQueryFn"),jx=e=>typeof e[Cd]=="function";function JU({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:x,getRunningQueryThunk:d,getRunningMutationThunk:p,getRunningQueriesThunk:h,getRunningMutationsThunk:v};function d(y,S){return w=>{var T;const b=i.endpointDefinitions[y],C=e({queryArgs:S,endpointDefinition:b,endpointName:y});return(T=o.get(w))==null?void 0:T[C]}}function p(y,S){return w=>{var b;return(b=a.get(w))==null?void 0:b[S]}}function h(){return y=>Object.values(o.get(y)||{}).filter(Xk)}function v(){return y=>Object.values(a.get(y)||{}).filter(Xk)}function g(y,S){const w=(b,{subscribe:C=!0,forceRefetch:T,subscriptionOptions:P,[Cd]:E,...A}={})=>(O,R)=>{var Y;const L=e({queryArgs:b,endpointDefinition:S,endpointName:y}),N=t({...A,type:"query",subscribe:C,forceRefetch:T,subscriptionOptions:P,endpointName:y,originalArgs:b,queryCacheKey:L,[Cd]:E}),B=n.endpoints[y].select(b),F=O(N),z=B(R()),{requestId:j,abort:X}=F,V=z.requestId!==j,H=(Y=o.get(O))==null?void 0:Y[L],G=()=>B(R()),W=Object.assign(E?F.then(G):V&&!H?Promise.resolve(z):Promise.all([H,F]).then(G),{arg:b,requestId:j,subscriptionOptions:P,queryCacheKey:L,abort:X,async unwrap(){const te=await W;if(te.isError)throw te.error;return te.data},refetch:()=>O(w(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){C&&O(s({queryCacheKey:L,requestId:j}))},updateSubscriptionOptions(te){W.subscriptionOptions=te,O(c({endpointName:y,requestId:j,queryCacheKey:L,options:te}))}});if(!H&&!V&&!E){const te=o.get(O)||{};te[L]=W,o.set(O,te),W.then(()=>{delete te[L],zu(te)||o.delete(O)})}return W};return w}function x(y){return(S,{track:w=!0,fixedCacheKey:b}={})=>(C,T)=>{const P=r({type:"mutation",endpointName:y,originalArgs:S,track:w,fixedCacheKey:b}),E=C(P),{requestId:A,abort:O,unwrap:R}=E,L=ZU(E.unwrap().then(z=>({data:z})),z=>({error:z})),N=()=>{C(l({requestId:A,fixedCacheKey:b}))},B=Object.assign(L,{arg:E.arg,requestId:A,abort:O,unwrap:R,reset:N}),F=a.get(C)||{};return a.set(C,F),F[A]=B,B.then(()=>{delete F[A],zu(F)||a.delete(C)}),b&&(F[b]=B,B.then(()=>{F[b]===B&&(delete F[b],zu(F)||a.delete(C))})),B}}}function Qk(e){return e}function eG({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:o}){const a=(w,b,C,T)=>(P,E)=>{const A=r[w],O=n({queryArgs:b,endpointDefinition:A,endpointName:w});if(P(i.internalActions.queryResultPatched({queryCacheKey:O,patches:C})),!T)return;const R=i.endpoints[w].select(b)(E()),L=tw(A.providesTags,R.data,void 0,b,{},o);P(i.internalActions.updateProvidedBy({queryCacheKey:O,providedTags:L}))},s=(w,b,C,T=!0)=>(P,E)=>{const O=i.endpoints[w].select(b)(E());let R={patches:[],inversePatches:[],undo:()=>P(i.util.patchQueryData(w,b,R.inversePatches,T))};if(O.status==="uninitialized")return R;let L;if("data"in O)if(no(O.data)){const[N,B,F]=VE(O.data,C);R.patches.push(...B),R.inversePatches.push(...F),L=N}else L=C(O.data),R.patches.push({op:"replace",path:[],value:L}),R.inversePatches.push({op:"replace",path:[],value:O.data});return R.patches.length===0||P(i.util.patchQueryData(w,b,R.patches,T)),R},l=(w,b,C)=>T=>T(i.endpoints[w].initiate(b,{subscribe:!1,forceRefetch:!0,[Cd]:()=>({data:C})})),c=async(w,{signal:b,abort:C,rejectWithValue:T,fulfillWithValue:P,dispatch:E,getState:A,extra:O})=>{const R=r[w.endpointName];try{let L=Qk,N;const B={signal:b,abort:C,dispatch:E,getState:A,extra:O,endpoint:w.endpointName,type:w.type,forced:w.type==="query"?d(w,A()):void 0},F=w.type==="query"?w[Cd]:void 0;if(F?N=F():R.query?(N=await t(R.query(w.originalArgs),B,R.extraOptions),R.transformResponse&&(L=R.transformResponse)):N=await R.queryFn(w.originalArgs,B,R.extraOptions,z=>t(z,B,R.extraOptions)),typeof process<"u",N.error)throw new Kk(N.error,N.meta);return P(await L(N.data,N.meta,w.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:N.meta,[Iu]:!0})}catch(L){let N=L;if(N instanceof Kk){let B=Qk;R.query&&R.transformErrorResponse&&(B=R.transformErrorResponse);try{return T(await B(N.value,N.meta,w.originalArgs),{baseQueryMeta:N.meta,[Iu]:!0})}catch(F){N=F}}throw console.error(N),N}};function d(w,b){var A,O,R;const C=(O=(A=b[e])==null?void 0:A.queries)==null?void 0:O[w.queryCacheKey],T=(R=b[e])==null?void 0:R.config.refetchOnMountOrArgChange,P=C==null?void 0:C.fulfilledTimeStamp,E=w.forceRefetch??(w.subscribe&&T);return E?E===!0||(Number(new Date)-Number(P))/1e3>=E:!1}const p=QT(`${e}/executeQuery`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Iu]:!0}},condition(w,{getState:b}){var R,L,N;const C=b(),T=(L=(R=C[e])==null?void 0:R.queries)==null?void 0:L[w.queryCacheKey],P=T==null?void 0:T.fulfilledTimeStamp,E=w.originalArgs,A=T==null?void 0:T.originalArgs,O=r[w.endpointName];return jx(w)?!0:(T==null?void 0:T.status)==="pending"?!1:d(w,C)||sD(O)&&((N=O==null?void 0:O.forceRefetch)!=null&&N.call(O,{currentArg:E,previousArg:A,endpointState:T,state:C}))?!0:!P},dispatchConditionRejection:!0}),h=QT(`${e}/executeMutation`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Iu]:!0}}}),v=w=>"force"in w,g=w=>"ifOlderThan"in w,x=(w,b,C)=>(T,P)=>{const E=v(C)&&C.force,A=g(C)&&C.ifOlderThan,O=(L=!0)=>{const N={forceRefetch:L,isPrefetch:!0};return i.endpoints[w].initiate(b,N)},R=i.endpoints[w].select(b)(P());if(E)T(O());else if(A){const L=R==null?void 0:R.fulfilledTimeStamp;if(!L){T(O());return}(Number(new Date)-Number(new Date(L)))/1e3>=A&&T(O())}else T(O(!1))};function y(w){return b=>{var C,T;return((T=(C=b==null?void 0:b.meta)==null?void 0:C.arg)==null?void 0:T.endpointName)===w}}function S(w,b){return{matchPending:Vf(JS(w),y(b)),matchFulfilled:Vf(ls(w),y(b)),matchRejected:Vf(Ku(w),y(b))}}return{queryThunk:p,mutationThunk:h,prefetch:x,updateQueryData:s,upsertQueryData:l,patchQueryData:a,buildMatchThunkActions:S}}function lD(e,t,r,n){return tw(r[e.meta.arg.endpointName][t],ls(e)?e.payload:void 0,Eg(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Dh(e,t,r){const n=e[t];n&&r(n)}function Td(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Zk(e,t,r){const n=e[Td(t)];n&&r(n)}var lf={};function tG({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:a},assertTagType:s,config:l}){const c=wn(`${e}/resetApiState`),d=ki({name:`${e}/queries`,initialState:lf,reducers:{removeQueryResult:{reducer(b,{payload:{queryCacheKey:C}}){delete b[C]},prepare:ef()},queryResultPatched:{reducer(b,{payload:{queryCacheKey:C,patches:T}}){Dh(b,C,P=>{P.data=UT(P.data,T.concat())})},prepare:ef()}},extraReducers(b){b.addCase(t.pending,(C,{meta:T,meta:{arg:P}})=>{var A;const E=jx(P);C[A=P.queryCacheKey]??(C[A]={status:"uninitialized",endpointName:P.endpointName}),Dh(C,P.queryCacheKey,O=>{O.status="pending",O.requestId=E&&O.requestId?O.requestId:T.requestId,P.originalArgs!==void 0&&(O.originalArgs=P.originalArgs),O.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(C,{meta:T,payload:P})=>{Dh(C,T.arg.queryCacheKey,E=>{if(E.requestId!==T.requestId&&!jx(T.arg))return;const{merge:A}=n[T.arg.endpointName];if(E.status="fulfilled",A)if(E.data!==void 0){const{fulfilledTimeStamp:O,arg:R,baseQueryMeta:L,requestId:N}=T;let B=Vd(E.data,F=>A(F,P,{arg:R.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:O,requestId:N}));E.data=B}else E.data=P;else E.data=n[T.arg.endpointName].structuralSharing??!0?iD(ro(E.data)?XN(E.data):E.data,P):P;delete E.error,E.fulfilledTimeStamp=T.fulfilledTimeStamp})}).addCase(t.rejected,(C,{meta:{condition:T,arg:P,requestId:E},error:A,payload:O})=>{Dh(C,P.queryCacheKey,R=>{if(!T){if(R.requestId!==E)return;R.status="rejected",R.error=O??A}})}).addMatcher(a,(C,T)=>{const{queries:P}=o(T);for(const[E,A]of Object.entries(P))((A==null?void 0:A.status)==="fulfilled"||(A==null?void 0:A.status)==="rejected")&&(C[E]=A)})}}),p=ki({name:`${e}/mutations`,initialState:lf,reducers:{removeMutationResult:{reducer(b,{payload:C}){const T=Td(C);T in b&&delete b[T]},prepare:ef()}},extraReducers(b){b.addCase(r.pending,(C,{meta:T,meta:{requestId:P,arg:E,startedTimeStamp:A}})=>{E.track&&(C[Td(T)]={requestId:P,status:"pending",endpointName:E.endpointName,startedTimeStamp:A})}).addCase(r.fulfilled,(C,{payload:T,meta:P})=>{P.arg.track&&Zk(C,P,E=>{E.requestId===P.requestId&&(E.status="fulfilled",E.data=T,E.fulfilledTimeStamp=P.fulfilledTimeStamp)})}).addCase(r.rejected,(C,{payload:T,error:P,meta:E})=>{E.arg.track&&Zk(C,E,A=>{A.requestId===E.requestId&&(A.status="rejected",A.error=T??P)})}).addMatcher(a,(C,T)=>{const{mutations:P}=o(T);for(const[E,A]of Object.entries(P))((A==null?void 0:A.status)==="fulfilled"||(A==null?void 0:A.status)==="rejected")&&E!==(A==null?void 0:A.requestId)&&(C[E]=A)})}}),h=ki({name:`${e}/invalidation`,initialState:lf,reducers:{updateProvidedBy:{reducer(b,C){var E,A;const{queryCacheKey:T,providedTags:P}=C.payload;for(const O of Object.values(b))for(const R of Object.values(O)){const L=R.indexOf(T);L!==-1&&R.splice(L,1)}for(const{type:O,id:R}of P){const L=(E=b[O]??(b[O]={}))[A=R||"__internal_without_id"]??(E[A]=[]);L.includes(T)||L.push(T)}},prepare:ef()}},extraReducers(b){b.addCase(d.actions.removeQueryResult,(C,{payload:{queryCacheKey:T}})=>{for(const P of Object.values(C))for(const E of Object.values(P)){const A=E.indexOf(T);A!==-1&&E.splice(A,1)}}).addMatcher(a,(C,T)=>{var E,A;const{provided:P}=o(T);for(const[O,R]of Object.entries(P))for(const[L,N]of Object.entries(R)){const B=(E=C[O]??(C[O]={}))[A=L||"__internal_without_id"]??(E[A]=[]);for(const F of N)B.includes(F)||B.push(F)}}).addMatcher(ua(ls(t),Eg(t)),(C,T)=>{const P=lD(T,"providesTags",n,s),{queryCacheKey:E}=T.meta.arg;h.caseReducers.updateProvidedBy(C,h.actions.updateProvidedBy({queryCacheKey:E,providedTags:P}))})}}),v=ki({name:`${e}/subscriptions`,initialState:lf,reducers:{updateSubscriptionOptions(b,C){},unsubscribeQueryResult(b,C){},internal_getRTKQSubscriptions(){}}}),g=ki({name:`${e}/internalSubscriptions`,initialState:lf,reducers:{subscriptionsUpdated:{reducer(b,C){return UT(b,C.payload)},prepare:ef()}}}),x=ki({name:`${e}/config`,initialState:{online:UU(),focused:GU(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(b,{payload:C}){b.middlewareRegistered=b.middlewareRegistered==="conflict"||i!==C?"conflict":!0}},extraReducers:b=>{b.addCase(ew,C=>{C.online=!0}).addCase(aD,C=>{C.online=!1}).addCase(Jb,C=>{C.focused=!0}).addCase(oD,C=>{C.focused=!1}).addMatcher(a,C=>({...C}))}}),y=Pg({queries:d.reducer,mutations:p.reducer,provided:h.reducer,subscriptions:g.reducer,config:x.reducer}),S=(b,C)=>y(c.match(C)?void 0:b,C),w={...x.actions,...d.actions,...v.actions,...g.actions,...p.actions,...h.actions,resetApiState:c};return{reducer:S,actions:w}}var ml=Symbol.for("RTKQ/skipToken"),uD={status:"uninitialized"},Jk=Vd(uD,()=>{}),eP=Vd(uD,()=>{});function rG({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=p=>Jk,i=p=>eP;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:c,selectCachedArgsForQuery:d};function o(p){return{...p,...zU(p.status)}}function a(p){return p[t]}function s(p,h){return v=>{const g=e({queryArgs:v,endpointDefinition:h,endpointName:p});return r(v===ml?n:S=>{var w,b;return((b=(w=a(S))==null?void 0:w.queries)==null?void 0:b[g])??Jk},o)}}function l(){return p=>{let h;return typeof p=="object"?h=Td(p)??ml:h=p,r(h===ml?i:x=>{var y,S;return((S=(y=a(x))==null?void 0:y.mutations)==null?void 0:S[h])??eP},o)}}function c(p,h){const v=p[t],g=new Set;for(const x of h.map(zx)){const y=v.provided[x.type];if(!y)continue;let S=(x.id!==void 0?y[x.id]:Uk(Object.values(y)))??[];for(const w of S)g.add(w)}return Uk(Array.from(g.values()).map(x=>{const y=v.queries[x];return y?[{queryCacheKey:x,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function d(p,h){return Object.values(p[t].queries).filter(v=>(v==null?void 0:v.endpointName)===h&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var pu=WeakMap?new WeakMap:void 0,tP=({endpointName:e,queryArgs:t})=>{let r="";const n=pu==null?void 0:pu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=Do(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));Do(t)&&(pu==null||pu.set(t,i)),r=i}return`${e}(${r})`};function cD(...e){return function(r){const n=vd(c=>{var d;return(d=r.extractRehydrationInfo)==null?void 0:d.call(r,c,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(c){let d=tP;if("serializeQueryArgs"in c.endpointDefinition){const p=c.endpointDefinition.serializeQueryArgs;d=h=>{const v=p(h);return typeof v=="string"?v:tP({...h,queryArgs:v})}}else r.serializeQueryArgs&&(d=r.serializeQueryArgs);return d(c)},tagTypes:[...r.tagTypes||[]]},o={endpointDefinitions:{},batch(c){c()},apiUid:ZS(),extractRehydrationInfo:n,hasRehydrationInfo:vd(c=>n(c)!=null)},a={injectEndpoints:l,enhanceEndpoints({addTagTypes:c,endpoints:d}){if(c)for(const p of c)i.tagTypes.includes(p)||i.tagTypes.push(p);if(d)for(const[p,h]of Object.entries(d))typeof h=="function"?h(o.endpointDefinitions[p]):Object.assign(o.endpointDefinitions[p]||{},h);return a}},s=e.map(c=>c.init(a,i,o));function l(c){const d=c.endpoints({query:p=>({...p,type:"query"}),mutation:p=>({...p,type:"mutation"})});for(const[p,h]of Object.entries(d)){if(c.overrideExisting!==!0&&p in o.endpointDefinitions){if(c.overrideExisting==="throw")throw new Error(fn(39));continue}o.endpointDefinitions[p]=h;for(const v of s)v.injectEndpoint(p,h)}return a}return a.injectEndpoints({endpoints:r.endpoints})}}function nG(e){for(let t in e)return!1;return!0}var iG=2147483647/1e3-1,oG=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:o,unsubscribeQueryResult:a}=t.internalActions,s=ua(a.match,r.fulfilled,r.rejected);function l(h){const v=i.currentSubscriptions[h];return!!v&&!nG(v)}const c={},d=(h,v,g)=>{var x;if(s(h)){const y=v.getState()[e],{queryCacheKey:S}=a.match(h)?h.payload:h.meta.arg;p(S,(x=y.queries[S])==null?void 0:x.endpointName,v,y.config)}if(t.util.resetApiState.match(h))for(const[y,S]of Object.entries(c))S&&clearTimeout(S),delete c[y];if(n.hasRehydrationInfo(h)){const y=v.getState()[e],{queries:S}=n.extractRehydrationInfo(h);for(const[w,b]of Object.entries(S))p(w,b==null?void 0:b.endpointName,v,y.config)}};function p(h,v,g,x){const y=n.endpointDefinitions[v],S=(y==null?void 0:y.keepUnusedDataFor)??x.keepUnusedDataFor;if(S===1/0)return;const w=Math.max(0,Math.min(S,iG));if(!l(h)){const b=c[h];b&&clearTimeout(b),c[h]=setTimeout(()=>{l(h)||g.dispatch(o({queryCacheKey:h})),delete c[h]},w*1e3)}}return d},aG=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:o,assertTagType:a,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,d=ua(ls(n),Eg(n)),p=ua(ls(n,i),Ku(n,i));let h=[];const v=(y,S)=>{d(y)?x(lD(y,"invalidatesTags",r,a),S):p(y)?x([],S):o.util.invalidateTags.match(y)&&x(tw(y.payload,void 0,void 0,void 0,void 0,a),S)};function g(y){var S,w;for(const b in y.queries)if(((S=y.queries[b])==null?void 0:S.status)==="pending")return!0;for(const b in y.mutations)if(((w=y.mutations[b])==null?void 0:w.status)==="pending")return!0;return!1}function x(y,S){const w=S.getState(),b=w[e];if(h.push(...y),b.config.invalidationBehavior==="delayed"&&g(b))return;const C=h;if(h=[],C.length===0)return;const T=o.util.selectInvalidatedBy(w,C);t.batch(()=>{const P=Array.from(T.values());for(const{queryCacheKey:E}of P){const A=b.queries[E],O=l.currentSubscriptions[E]??{};A&&(zu(O)===0?S.dispatch(c({queryCacheKey:E})):A.status!=="uninitialized"&&S.dispatch(s(A,E)))}})}return v},sG=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const o={},a=(h,v)=>{(r.internalActions.updateSubscriptionOptions.match(h)||r.internalActions.unsubscribeQueryResult.match(h))&&l(h.payload,v),(t.pending.match(h)||t.rejected.match(h)&&h.meta.condition)&&l(h.meta.arg,v),(t.fulfilled.match(h)||t.rejected.match(h)&&!h.meta.condition)&&s(h.meta.arg,v),r.util.resetApiState.match(h)&&d()};function s({queryCacheKey:h},v){const g=v.getState()[e],x=g.queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S,skipPollingIfUnfocused:w}=p(y);if(!Number.isFinite(S))return;const b=o[h];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const C=Date.now()+S;o[h]={nextPollTimestamp:C,pollingInterval:S,timeout:setTimeout(()=>{(g.config.focused||!w)&&v.dispatch(n(x,h)),s({queryCacheKey:h},v)},S)}}function l({queryCacheKey:h},v){const x=v.getState()[e].queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S}=p(y);if(!Number.isFinite(S)){c(h);return}const w=o[h],b=Date.now()+S;(!w||b<w.nextPollTimestamp)&&s({queryCacheKey:h},v)}function c(h){const v=o[h];v!=null&&v.timeout&&clearTimeout(v.timeout),delete o[h]}function d(){for(const h of Object.keys(o))c(h)}function p(h={}){let v=!1,g=Number.POSITIVE_INFINITY;for(let x in h)h[x].pollingInterval&&(g=Math.min(h[x].pollingInterval,g),v=h[x].skipPollingIfUnfocused||v);return{lowestPollingInterval:g,skipPollingIfUnfocused:v}}return a},lG=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:o}=r.internalActions,a=(l,c)=>{Jb.match(l)&&s(c,"refetchOnFocus"),ew.match(l)&&s(c,"refetchOnReconnect")};function s(l,c){const d=l.getState()[e],p=d.queries,h=i.currentSubscriptions;t.batch(()=>{for(const v of Object.keys(h)){const g=p[v],x=h[v];if(!x||!g)continue;(Object.values(x).some(S=>S[c]===!0)||Object.values(x).every(S=>S[c]===void 0)&&d.config[c])&&(zu(x)===0?l.dispatch(o({queryCacheKey:v})):g.status!=="uninitialized"&&l.dispatch(n(g,v)))}})}return a},rP=new Error("Promise never resolved before cacheEntryRemoved."),uG=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:o})=>{const a=fx(n),s=fx(i),l=ls(n,i),c={},d=(v,g,x)=>{const y=p(v);if(n.pending.match(v)){const S=x[t].queries[y],w=g.getState()[t].queries[y];!S&&w&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId)}else if(i.pending.match(v))g.getState()[t].mutations[y]&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId);else if(l(v)){const S=c[y];S!=null&&S.valueResolved&&(S.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete S.valueResolved)}else if(e.internalActions.removeQueryResult.match(v)||e.internalActions.removeMutationResult.match(v)){const S=c[y];S&&(delete c[y],S.cacheEntryRemoved())}else if(e.util.resetApiState.match(v))for(const[S,w]of Object.entries(c))delete c[S],w.cacheEntryRemoved()};function p(v){return a(v)?v.meta.arg.queryCacheKey:s(v)?v.meta.arg.fixedCacheKey??v.meta.requestId:e.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:e.internalActions.removeMutationResult.match(v)?Td(v.payload):""}function h(v,g,x,y,S){const w=r.endpointDefinitions[v],b=w==null?void 0:w.onCacheEntryAdded;if(!b)return;let C={};const T=new Promise(L=>{C.cacheEntryRemoved=L}),P=Promise.race([new Promise(L=>{C.valueResolved=L}),T.then(()=>{throw rP})]);P.catch(()=>{}),c[x]=C;const E=e.endpoints[v].select(w.type==="query"?g:x),A=y.dispatch((L,N,B)=>B),O={...y,getCacheEntry:()=>E(y.getState()),requestId:S,extra:A,updateCachedData:w.type==="query"?L=>y.dispatch(e.util.updateQueryData(v,g,L)):void 0,cacheDataLoaded:P,cacheEntryRemoved:T},R=b(g,O);Promise.resolve(R).catch(L=>{if(L!==rP)throw L})}return d},cG=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=JS(r,n),o=Ku(r,n),a=ls(r,n),s={};return(c,d)=>{var p,h;if(i(c)){const{requestId:v,arg:{endpointName:g,originalArgs:x}}=c.meta,y=t.endpointDefinitions[g],S=y==null?void 0:y.onQueryStarted;if(S){const w={},b=new Promise((E,A)=>{w.resolve=E,w.reject=A});b.catch(()=>{}),s[v]=w;const C=e.endpoints[g].select(y.type==="query"?x:v),T=d.dispatch((E,A,O)=>O),P={...d,getCacheEntry:()=>C(d.getState()),requestId:v,extra:T,updateCachedData:y.type==="query"?E=>d.dispatch(e.util.updateQueryData(g,x,E)):void 0,queryFulfilled:b};S(x,P)}}else if(a(c)){const{requestId:v,baseQueryMeta:g}=c.meta;(p=s[v])==null||p.resolve({data:c.payload,meta:g}),delete s[v]}else if(o(c)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:x}=c.meta;(h=s[v])==null||h.reject({error:c.payload??c.error,isUnhandledError:!g,meta:x}),delete s[v]}}},fG=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},dG=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,l=(v,g)=>{var y,S,w;if(a.match(g)){const{queryCacheKey:b,requestId:C,options:T}=g.payload;return(y=v==null?void 0:v[b])!=null&&y[C]&&(v[b][C]=T),!0}if(s.match(g)){const{queryCacheKey:b,requestId:C}=g.payload;return v[b]&&delete v[b][C],!0}if(e.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:b,requestId:C}}=g,T=v[S=b.queryCacheKey]??(v[S]={});return T[`${C}_running`]={},b.subscribe&&(T[C]=b.subscriptionOptions??T[C]??{}),!0}let x=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const b=v[g.meta.arg.queryCacheKey]||{},C=`${g.meta.requestId}_running`;x||(x=!!b[C]),delete b[C]}if(t.rejected.match(g)){const{meta:{condition:b,arg:C,requestId:T}}=g;if(b&&C.subscribe){const P=v[w=C.queryCacheKey]??(v[w]={});P[T]=C.subscriptionOptions??P[T]??{},x=!0}}return x},c=()=>r.currentSubscriptions,h={getSubscriptions:c,getSubscriptionCount:v=>{const x=c()[v]??{};return zu(x)},isRequestSubscribed:(v,g)=>{var y;const x=c();return!!((y=x==null?void 0:x[v])!=null&&y[g])}};return(v,g)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(v))return i=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,h];const x=l(r.currentSubscriptions,v);let y=!0;if(x){o||(o=setTimeout(()=>{const b=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,C]=VE(i,()=>b);g.next(e.internalActions.subscriptionsUpdated(C)),i=b,o=null},500));const S=typeof v.type=="string"&&!!v.type.startsWith(n),w=t.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;y=!S&&!w}return[y,!1]}};function pG(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:o}=i,a={invalidateTags:wn(`${t}/invalidateTags`)},s=p=>p.type.startsWith(`${t}/`),l=[fG,oG,aG,sG,uG,cG];return{middleware:p=>{let h=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:s},x=l.map(w=>w(g)),y=dG(g),S=lG(g);return w=>b=>{if(!$E(b))return w(b);h||(h=!0,p.dispatch(n.internalActions.middlewareRegistered(o)));const C={...p,next:w},T=p.getState(),[P,E]=y(b,C,T);let A;if(P?A=w(b):A=E,p.getState()[t]&&(S(b,C,T),s(b)||i.hasRehydrationInfo(b)))for(let O of x)O(b,C,T);return A}},actions:a};function d(p,h,v={}){return r({type:"query",endpointName:p.endpointName,originalArgs:p.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:h,...v})}}function Fa(e,...t){return Object.assign(e,...t)}var nP=Symbol(),fD=({createSelector:e=QS}={})=>({name:nP,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:d},p){o4();const h=V=>V;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:ew,onOffline:aD,onFocus:Jb,onFocusLost:oD},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,buildMatchThunkActions:b}=eG({baseQuery:r,reducerPath:i,context:p,api:t,serializeQueryArgs:o,assertTagType:h}),{reducer:C,actions:T}=tG({context:p,queryThunk:v,mutationThunk:g,reducerPath:i,assertTagType:h,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:i,invalidationBehavior:d}});Fa(t.util,{patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,resetApiState:T.resetApiState}),Fa(t.internalActions,T);const{middleware:P,actions:E}=pG({reducerPath:i,context:p,queryThunk:v,mutationThunk:g,api:t,assertTagType:h});Fa(t.util,E),Fa(t,{reducer:C,middleware:P});const{buildQuerySelector:A,buildMutationSelector:O,selectInvalidatedBy:R,selectCachedArgsForQuery:L}=rG({serializeQueryArgs:o,reducerPath:i,createSelector:e});Fa(t.util,{selectInvalidatedBy:R,selectCachedArgsForQuery:L});const{buildInitiateQuery:N,buildInitiateMutation:B,getRunningMutationThunk:F,getRunningMutationsThunk:z,getRunningQueriesThunk:j,getRunningQueryThunk:X}=JU({queryThunk:v,mutationThunk:g,api:t,serializeQueryArgs:o,context:p});return Fa(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:z,getRunningQueryThunk:X,getRunningQueriesThunk:j}),{name:nP,injectEndpoint(V,H){var W;const G=t;(W=G.endpoints)[V]??(W[V]={}),sD(H)?Fa(G.endpoints[V],{name:V,select:A(V,H),initiate:N(V,H)},b(v,V)):XU(H)&&Fa(G.endpoints[V],{name:V,select:O(),initiate:B(V)},b(g,V))}}}});fD();function hG(e){return e.type==="query"}function vG(e){return e.type==="mutation"}function Lh(e,...t){return Object.assign(e,...t)}function F0(e){return e.replace(e[0],e[0].toUpperCase())}var hu=WeakMap?new WeakMap:void 0,gG=({endpointName:e,queryArgs:t})=>{let r="";const n=hu==null?void 0:hu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=Do(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));Do(t)&&(hu==null||hu.set(t,i)),r=i}return`${e}(${r})`},z0=Symbol();function iP(e,t,r,n){const i=D.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),o=D.useRef(i);return D.useEffect(()=>{o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function j0(e){const t=D.useRef(e);return D.useEffect(()=>{rs(t.current,e)||(t.current=e)},[e]),rs(t.current,e)?t.current:e}var mG=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yG=mG(),xG=()=>typeof navigator<"u"&&navigator.product==="ReactNative",SG=xG(),bG=()=>yG||SG?D.useLayoutEffect:D.useEffect,wG=bG(),_G=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:nD.pending}:e;function CG({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:s,context:l}){const c=o?g=>g():D.useEffect;return{buildQueryHooks:h,buildMutationHook:v,usePrefetch:p};function d(g,x,y){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:P}=x,E=l.endpointDefinitions[P];s({queryArgs:x.originalArgs,endpointDefinition:E,endpointName:P})===s({queryArgs:y,endpointDefinition:E,endpointName:P})&&(x=void 0)}let S=g.isSuccess?g.data:x==null?void 0:x.data;S===void 0&&(S=g.data);const w=S!==void 0,b=g.isLoading,C=(!x||x.isLoading||x.isUninitialized)&&!w&&b,T=g.isSuccess||b&&w;return{...g,data:S,currentData:g.data,isFetching:b,isLoading:C,isSuccess:T}}function p(g,x){const y=r(),S=j0(x);return D.useCallback((w,b)=>y(e.util.prefetch(g,w,{...S,...b})),[g,y,S])}function h(g){const x=(w,{refetchOnReconnect:b,refetchOnFocus:C,refetchOnMountOrArgChange:T,skip:P=!1,pollingInterval:E=0,skipPollingIfUnfocused:A=!1}={})=>{const{initiate:O}=e.endpoints[g],R=r(),L=D.useRef(void 0);if(!L.current){const G=R(e.internalActions.internal_getRTKQSubscriptions());L.current=G}const N=iP(P?ml:w,gG,l.endpointDefinitions[g],g),B=j0({refetchOnReconnect:b,refetchOnFocus:C,pollingInterval:E,skipPollingIfUnfocused:A}),F=D.useRef(!1),z=D.useRef(void 0);let{queryCacheKey:j,requestId:X}=z.current||{},V=!1;j&&X&&(V=L.current.isRequestSubscribed(j,X));const H=!V&&F.current;return c(()=>{F.current=V}),c(()=>{H&&(z.current=void 0)},[H]),c(()=>{var Y;const G=z.current;if(N===ml){G==null||G.unsubscribe(),z.current=void 0;return}const W=(Y=z.current)==null?void 0:Y.subscriptionOptions;if(!G||G.arg!==N){G==null||G.unsubscribe();const te=R(O(N,{subscriptionOptions:B,forceRefetch:T}));z.current=te}else B!==W&&G.updateSubscriptionOptions(B)},[R,O,T,N,B,H]),D.useEffect(()=>()=>{var G;(G=z.current)==null||G.unsubscribe(),z.current=void 0},[]),D.useMemo(()=>({refetch:()=>{var G;if(!z.current)throw new Error(fn(38));return(G=z.current)==null?void 0:G.refetch()}}),[])},y=({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:P}=e.endpoints[g],E=r(),[A,O]=D.useState(z0),R=D.useRef(void 0),L=j0({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C,skipPollingIfUnfocused:T});c(()=>{var z,j;const F=(z=R.current)==null?void 0:z.subscriptionOptions;L!==F&&((j=R.current)==null||j.updateSubscriptionOptions(L))},[L]);const N=D.useRef(L);c(()=>{N.current=L},[L]);const B=D.useCallback(function(F,z=!1){let j;return t(()=>{var X;(X=R.current)==null||X.unsubscribe(),R.current=j=E(P(F,{subscriptionOptions:N.current,forceRefetch:!z})),O(F)}),j},[E,P]);return D.useEffect(()=>()=>{var F;(F=R==null?void 0:R.current)==null||F.unsubscribe()},[]),D.useEffect(()=>{A!==z0&&!R.current&&B(A,!0)},[A,B]),D.useMemo(()=>[B,A],[B,A])},S=(w,{skip:b=!1,selectFromResult:C}={})=>{const{select:T}=e.endpoints[g],P=iP(b?ml:w,s,l.endpointDefinitions[g],g),E=D.useRef(void 0),A=D.useMemo(()=>a([T(P),(B,F)=>F,B=>P],d,{memoizeOptions:{resultEqualityCheck:rs}}),[T,P]),O=D.useMemo(()=>C?a([A],C,{devModeChecks:{identityFunctionCheck:"never"}}):A,[A,C]),R=n(B=>O(B,E.current),rs),L=i(),N=A(L.getState(),E.current);return wG(()=>{E.current=N},[N]),R};return{useQueryState:S,useQuerySubscription:x,useLazyQuerySubscription:y,useLazyQuery(w){const[b,C]=y(w),T=S(C,{...w,skip:C===z0}),P=D.useMemo(()=>({lastArg:C}),[C]);return D.useMemo(()=>[b,T,P],[b,T,P])},useQuery(w,b){const C=x(w,b),T=S(w,{selectFromResult:w===ml||b!=null&&b.skip?void 0:_G,...b}),{data:P,status:E,isLoading:A,isSuccess:O,isError:R,error:L}=T;return D.useDebugValue({data:P,status:E,isLoading:A,isSuccess:O,isError:R,error:L}),D.useMemo(()=>({...T,...C}),[T,C])}}}function v(g){return({selectFromResult:x,fixedCacheKey:y}={})=>{const{select:S,initiate:w}=e.endpoints[g],b=r(),[C,T]=D.useState();D.useEffect(()=>()=>{C!=null&&C.arg.fixedCacheKey||C==null||C.reset()},[C]);const P=D.useCallback(function(W){const Y=b(w(W,{fixedCacheKey:y}));return T(Y),Y},[b,w,y]),{requestId:E}=C||{},A=D.useMemo(()=>S({fixedCacheKey:y,requestId:C==null?void 0:C.requestId}),[y,C,S]),O=D.useMemo(()=>x?a([A],x):A,[x,A]),R=n(O,rs),L=y==null?C==null?void 0:C.arg.originalArgs:void 0,N=D.useCallback(()=>{t(()=>{C&&T(void 0),y&&b(e.internalActions.removeMutationResult({requestId:E,fixedCacheKey:y}))})},[b,y,C,E]),{endpointName:B,data:F,status:z,isLoading:j,isSuccess:X,isError:V,error:H}=R;D.useDebugValue({endpointName:B,data:F,status:z,isLoading:j,isSuccess:X,isError:V,error:H});const G=D.useMemo(()=>({...R,originalArgs:L,reset:N}),[R,L,N]);return D.useMemo(()=>[P,G],[P,G])}}}var TG=Symbol(),kG=({batch:e=W$,hooks:t={useDispatch:cI,useSelector:tI,useStore:uI},createSelector:r=QS,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:TG,init(o,{serializeQueryArgs:a},s){const l=o,{buildQueryHooks:c,buildMutationHook:d,usePrefetch:p}=CG({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:a,context:s});return Lh(l,{usePrefetch:p}),Lh(s,{batch:e}),{injectEndpoint(h,v){if(hG(v)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}=c(h);Lh(l.endpoints[h],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}),o[`use${F0(h)}Query`]=g,o[`useLazy${F0(h)}Query`]=x}else if(vG(v)){const g=d(h);Lh(l.endpoints[h],{useMutation:g}),o[`use${F0(h)}Mutation`]=g}}}}}),PG=cD(fD(),kG());const RG=(e,t,r)=>KU(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),tg=PG({baseQuery:RG,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:fl}),getTasks:e.query({query:()=>"tasks",transformResponse:fl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:fl}),getLogs:e.query({query:()=>"logs",transformResponse:fl}),getWorkerCount:e.query({query:()=>"worker-count",transformResponse:fl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:LU(u2(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:u2(t)})}),resetStats:e.mutation({query:()=>({url:"stats/reset",method:"GET"})}),stopSwarm:e.mutation({query:()=>({url:"stop",method:"GET"})})})}),{useGetStatsQuery:MG,useGetTasksQuery:EG,useGetExceptionsQuery:IG,useGetLogsQuery:AG,useGetWorkerCountQuery:DG,useStartSwarmMutation:LG,useUpdateUserSettingsMutation:OG,useStopSwarmMutation:NG,useResetStatsMutation:$G}=tg;function np(e,{payload:t}){return DU(e,t)}const BG=Mo,dD=ki({name:"swarm",initialState:BG,reducers:{setSwarm:np}}),nm=dD.actions,FG=dD.reducer;function zG({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return M.jsx(rD,{onSubmit:r,children:M.jsxs(et,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[M.jsx(qe,{children:`${t.userClassName} Settings`}),M.jsx(Qb,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([o,a])=>M.jsx(_l,{defaultValue:a,inputProps:{"data-type":typeof a=="number"?"number":"text"},label:hx(o),name:o},`user-to-edit-${o}`)),M.jsx(li,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function jG({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:o}){const[a,s]=D.useState(!1),[l,c]=D.useState(),[d]=OG(),p=y=>{l&&(i({users:{...o,[l.userClassName]:y}}),d({...y,userClassName:l.userClassName}),s(!1))},h=y=>()=>r.includes(y)?n(r.filter(S=>S!==y)):n(r.concat(y)),v=r.length,g=e.length,x=y=>y.target.checked?n(e):n([]);return M.jsxs(M.Fragment,{children:[M.jsx(et,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:M.jsxs(et,{sx:{maxHeight:"30vh",overflow:"auto"},children:[M.jsx(Zg,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),M.jsx(DA,{children:M.jsx(UA,{component:Bi,children:M.jsxs(HA,{children:[M.jsx(GA,{children:M.jsx(eg,{children:M.jsx(pl,{colSpan:4,padding:"checkbox",children:M.jsx(Nx,{checked:g>0&&v===g,indeterminate:v>0&&v<g,onChange:x})})})}),M.jsx(VA,{children:Object.entries(o).map(([y,S])=>M.jsxs(eg,{hover:!0,children:[M.jsx(pl,{onClick:h(y),padding:"checkbox",children:M.jsx(Nx,{checked:r.includes(y)})}),M.jsx(pl,{children:y}),M.jsx(pl,{children:M.jsx(qe,{variant:"subtitle2",children:S.host})}),M.jsx(pl,{align:"right",children:M.jsx(va,{onClick:()=>{s(!a),c({userClass:S,userClassName:y})},children:M.jsx(bU,{})})})]},`user-class-${y}`))})]})})})]})}),M.jsx(tm,{onClose:()=>s(!1),open:a,children:l&&M.jsx(zG,{availableTasks:t[l.userClassName],handleEditUser:p,userToEdit:l})})]})}const WG={setSwarm:nm.setSwarm},HG=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),VG=ui(HG,WG)(jG);function UG(){const[e,t]=D.useState({}),[r,n]=D.useState(!0),i=(a,s,l,{onlyDelete:c}={onlyDelete:!1})=>{const d={...e};let p;const h=l.match&&Array.isArray(l.match)&&l.match.find(({pattern:v})=>!new RegExp(v).test(s));l.minLength&&s.length<l.minLength?p=`Please enter at least ${l.minLength} characters`:h?p=h.message||"Invalid format":l.match&&!Array.isArray(l.match)&&!new RegExp(l.match.pattern).test(s)?p=l.match.message||"Invalid format":delete d[a],p&&!c&&(d[a]=p),t(d),n(Object.keys(d).length===0)};return{register:(a,s,l="onChange")=>({...e[a]&&s.level?{color:s.level,focused:!0,FormHelperTextProps:{sx:{color:d=>d.palette.warning.main}}}:{},name:a,onChange:({target:{value:d}})=>i(a,d,s,{onlyDelete:!0}),[l]:({target:{value:d}})=>i(a,d,s),error:!!e[a]&&!s.level,helperText:e[a]||""}),isValid:r}}const GG=/^(?:[a-zA-Z][a-zA-Z\d+\-.]*):\/\/[^\s/$.?#].[^\s]*$/,YG=({isDisabled:e,isDistributed:t,workerCount:r})=>e?{isFormDisabled:!0}:t&&!r?{isFormDisabled:!0,reason:"You can't start a distributed test before at least one worker processes has connected"}:{};function qG({allProfiles:e,availableShapeClasses:t,availableUserClasses:r,host:n,extraOptions:i,hideCommonOptions:o,shapeUseCommonOptions:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,profile:p,runTime:h,setSwarm:v,showUserclassPicker:g,spawnRate:x,alert:y,isDisabled:S=!1,isEditSwarm:w=!1,isHostRequired:b,onFormChange:C,onFormSubmit:T,advancedOptions:P}){const[E]=LG(),[A,O]=D.useState(""),[R,L]=D.useState(r),N=Cn(({swarm:H})=>H),{register:B}=UG(),{reason:F,isFormDisabled:z}=D.useMemo(()=>YG({isDisabled:S,...N}),[S,N]),j=async H=>{const{data:G}=await E({...H,...g&&R?{userClasses:R}:{}});G&&G.success?v({state:Xr.RUNNING,host:H.host||n,runTime:H.runTime,spawnRate:H.spawnRate,userCount:H.userCount,profile:H.profile}):O(G?G.message:"An unknown error occured."),T&&T(H)},X=H=>{A&&O(""),C&&C(H)},V=H=>{if(!a){const G=H.target.value!==t[0];v({hideCommonOptions:G})}};return M.jsxs(rp,{maxWidth:"md",sx:{my:2},children:[M.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:w?"Edit running load test":"Start new load test"}),!w&&g&&M.jsx(et,{marginBottom:2,marginTop:2,children:M.jsx(VG,{availableUserClasses:r,selectedUserClasses:R,setSelectedUserClasses:L})}),M.jsx(rD,{onChange:X,onSubmit:j,children:M.jsxs(et,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!w&&g&&M.jsx(Qb,{label:"Shape Class",name:"shapeClass",onChange:V,options:t}),M.jsx(Vk,{defaultValue:o&&"0"||l||s||1,disabled:!!o,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),M.jsx(Vk,{defaultValue:o&&"0"||x||1,disabled:!!o,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),!w&&M.jsxs(M.Fragment,{children:[M.jsx(_l,{...B("host",{match:{pattern:GG,message:"Please use a valid url format e.g. https://google.com"},level:"warning"},"onBlur"),defaultValue:n,label:`Host ${c?"(setting this will override the host for the User classes)":""}`,name:"host",required:b}),M.jsxs(Rb,{children:[M.jsx(Eb,{expandIcon:M.jsx(qb,{}),children:M.jsx(qe,{children:"Advanced options"})}),M.jsx(Mb,{children:M.jsxs(et,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[M.jsx(_l,{defaultValue:h,disabled:!!o,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:o?"Disabled for tests using LoadTestShape class":""}),M.jsx(X9,{defaultValue:p,disablePortal:!0,freeSolo:!0,options:e&&Array.isArray(e)?e:[],renderInput:H=>M.jsx(_l,{...H,defaultValue:p,label:"Profile",name:"profile"})}),P&&P.map(({component:H,...G},W)=>H?M.jsx(H,{...G}):D.createElement(Zb,{...G,key:`advanced-parameter-${W}`}))]})})]})]}),!!i&&!tD(i)&&M.jsx(FU,{extraOptions:i}),y&&!A&&M.jsx(ia,{severity:y.level||"info",children:y.message}),(A||F)&&M.jsx(ia,{severity:"error",children:A||F}),!b&&d&&M.jsx(ia,{severity:"info",children:"One or more User class in your locustfile has no host attribute set. Please provide one in the field above."}),M.jsx(li,{disabled:z,size:"large",type:"submit",variant:"contained",children:w?"Update":"Start"})]})})]})}const KG=({swarm:{allProfiles:e,availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,runTime:v,spawnRate:g,showUserclassPicker:x}},y)=>({allProfiles:e||(y==null?void 0:y.allProfiles),availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,showUserclassPicker:x,numUsers:s,userCount:l,runTime:v,spawnRate:g}),XG={setSwarm:nm.setSwarm},rw=ui(KG,XG)(qG);function QG(e){const[t,r]=D.useState(!1),{hideCommonOptions:n}=Cn(({swarm:i})=>i);return M.jsxs(M.Fragment,{children:[M.jsx(jA,{title:n?"Disabled for tests using LoadTestShape class":"",children:M.jsx(et,{children:M.jsx(li,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),M.jsx(tm,{onClose:()=>r(!1),open:t,children:M.jsx(rw,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function ZG(e){const[t,r]=D.useState(!1);return M.jsxs(M.Fragment,{children:[M.jsx(li,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),M.jsx(tm,{onClose:()=>r(!1),open:t,children:M.jsx(rw,{...e})})]})}function JG(){const[e]=$G(),t=()=>{e()};return M.jsx(li,{color:"warning",onClick:t,type:"button",variant:"contained",children:"Reset"})}function eY(){const[e,t]=D.useState(!1),[r]=NG();D.useEffect(()=>{t(!1)},[]);const n=()=>{r(),t(!0)};return M.jsx(li,{color:"error",disabled:e,onClick:n,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function oP(){const e=Cn(({swarm:t})=>t.state);return e===Xr.READY?null:M.jsxs(et,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Xr.STOPPED?M.jsx(ZG,{}):M.jsxs(M.Fragment,{children:[M.jsx(QG,{}),M.jsx(eY,{})]}),M.jsx(JG,{})]})}function tY(){const e=No(),[t,r]=D.useState(!1);D.useEffect(()=>{const i=()=>{window.innerWidth>=e.breakpoints.values.md&&r(!1)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]);const n=i=>()=>{r(i)};return M.jsxs(M.Fragment,{children:[M.jsx(Xj,{position:"static",children:M.jsx(rp,{maxWidth:"xl",children:M.jsxs(WV,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[M.jsx(ln,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:M.jsx(YA,{})}),M.jsx(va,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:M.jsx(SU,{})}),M.jsxs(et,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[M.jsx(Hk,{}),M.jsx(oP,{}),M.jsx(Fx,{})]})]})})}),M.jsx(m7,{anchor:"right",onClose:n(!1),open:t,children:M.jsxs(et,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[M.jsx(et,{sx:{display:"flex",justifyContent:"flex-end"},children:M.jsx(Fx,{})}),M.jsx(oP,{}),M.jsx(Hk,{})]})})]})}function rY({children:e}){return M.jsxs(M.Fragment,{children:[M.jsxs(et,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[M.jsx(tY,{}),M.jsx("main",{children:e})]}),M.jsx(AU,{})]})}const pD=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),hD="logViewer";function ip(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=D.useRef(e);D.useEffect(()=>{i.current=e},[e]),D.useEffect(()=>{if(!r)return;n&&i.current();const o=setInterval(()=>i.current(),t);return()=>{clearInterval(o)}},[t,r])}const nY={},vD=ki({name:"notification",initialState:nY,reducers:{setNotification:np}}),gD=vD.actions,iY=vD.reducer;function oY(e,{key:t,shouldNotify:r}){const n=wo(gD.setNotification),i=Cn(({url:{query:a}})=>a&&a.tab),o=`${t}Notification`;D.useEffect(()=>{e.length>0&&e.length<localStorage[o]&&(localStorage[o]=e.length),e.length>(localStorage[o]||0)&&(!i||i!==t)&&(!r||r&&r(o))&&(n({[t]:!0}),localStorage[o]=e.length)},[e])}const aY={master:[],workers:{}},mD=ki({name:"logViewer",initialState:aY,reducers:{setLogs:np}}),sY=mD.actions,lY=mD.reducer,yD=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?yD(r):r),[]),uY={master:[],workers:{}};function cY(){const e=Cn(({swarm:l})=>l),t=wo(sY.setLogs),{data:r,refetch:n}=AG(),i=r||uY,o=D.useMemo(()=>yD(Object.values(i.workers)),[i.workers]),a=D.useMemo(()=>[...i.master].concat(o),[i.master,i.workers]),s=D.useCallback(l=>a.slice(localStorage[l]).some(pD),[a]);return ip(n,5e3,{shouldRunInterval:e.state===Xr.SPAWNING||e.state==Xr.RUNNING}),oY(a,{key:hD,shouldNotify:s}),D.useEffect(()=>{t(i)},[i]),i}function fY(e,t){const r=t?-1:1;return function(n,i){const o=n[e],a=i[e];return o<a?r*-1:o>a?r*1:0}}function dY(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=D.useState(e),[o,a]=D.useState(!1),s=D.useRef(),l=d=>{const h=(t?e.slice(0,-1):[...e]).sort(fY(d,d===s.current&&!o));i(t?[...h,...e.slice(-1)]:h)},c=D.useCallback(d=>{s.current||(s.current=r);const p=d.target.getAttribute("data-sortkey");if(p===s.current)if(o){a(!1),s.current=void 0,l(r);return}else a(!0);else o&&a(!1);l(p),s.current=p},[s,e,o]);return D.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:c,sortedRows:n,currentSortField:s.current}}const Of=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function pY({content:e,formatter:t,round:r}){return t?t(e):r?Of(e,r):e}function op({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=dY(e,{hasTotalRow:r,defaultSortKey:n});return M.jsx(UA,{component:Bi,children:M.jsxs(HA,{children:[M.jsx(GA,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:M.jsx(eg,{children:t.map(({title:s,key:l})=>M.jsx(pl,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:a===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),M.jsx(VA,{children:o.map((s,l)=>M.jsx(eg,{children:t.map(({key:c,...d},p)=>M.jsx(pl,{children:M.jsx(pY,{content:s[c],...d})},`table-row=${p}`))},`${s.name}-${l}`))})]})})}function hY({rows:e,tableStructure:t}){return t?M.jsx(op,{rows:e,structure:t}):null}const vY=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:o})=>o===r.tab),i=r&&r.tab&&t&&t.find(({key:o})=>o===r.tab);return{tableStructure:n?n.structure.map(({key:o,...a})=>({key:dI(o),...a})):null,rows:i?i.data:[]}},gY=ui(vY)(hY),mY=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function yY({exceptions:e}){return M.jsx(op,{rows:e,structure:mY})}const xY=({ui:{exceptions:e}})=>({exceptions:e}),SY=ui(xY)(yY),bY={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(Mo.history||[]).reduce(rm,{}),ratios:{},userCount:0};var LE;const wY=(LE=Mo.percentilesToChart)==null?void 0:LE.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),_Y=e=>rm(e,{...wY,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),xD=ki({name:"ui",initialState:bY,reducers:{setUi:np,updateCharts:(e,{payload:t})=>({...e,charts:rm(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{..._Y(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),Xf=xD.actions,CY=xD.reducer;function TY(){const{data:e,refetch:t}=IG(),r=wo(Xf.setUi),n=Cn(({swarm:o})=>o.state),i=n===Xr.SPAWNING||n==Xr.RUNNING;D.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),ip(t,5e3,{shouldRunInterval:i,immediate:!0})}function kY(){return TY(),M.jsx(SY,{})}const PY=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function RY({errors:e}){return M.jsx(op,{rows:e,structure:PY})}const MY=({ui:{errors:e}})=>({errors:e}),EY=ui(MY)(RY),aP=.5,IY=()=>{const[e,t]=D.useState(!1),r=D.useRef(null);return D.useEffect(()=>{const n=new IntersectionObserver(([i])=>{i.isIntersecting&&t(!0)},{threshold:aP});return r.current&&n.observe(r.current),()=>{r.current&&n.unobserve(r.current)}},[aP]),{isVisible:e,elementRef:r}};function uf({children:e,sx:t}){const{isVisible:r,elementRef:n}=IY();return M.jsx(et,{ref:n,sx:{...t,opacity:r?1:0,transition:"opacity 1s ease-out"},children:e})}function W0({tierName:e,price:t,features:r,recommended:n,ctaText:i,href:o}){return M.jsxs(gW,{sx:{flex:1,border:n?2:void 0,borderColor:n?"primary.main":void 0,position:"relative",overflow:"visible"},children:[n&&M.jsx(et,{sx:{position:"absolute",top:-12,left:24,bgcolor:"primary.main",color:"white",px:2,py:.5,borderRadius:1,fontSize:"0.875rem",fontWeight:"bold"},children:"Recommended"}),M.jsxs(SW,{sx:{p:4,pt:5},children:[M.jsxs(et,{sx:{height:{md:"120px"}},children:[M.jsx(qe,{component:"h2",sx:{fontWeight:"bold",mb:2},variant:"h5",children:e}),t&&M.jsxs(et,{sx:{display:"flex",alignItems:"baseline",gap:.5,mb:2},children:[M.jsx(qe,{sx:{fontWeight:"bold"},variant:"h4",children:t}),M.jsx(qe,{color:"text.secondary",variant:"body1",children:"/month"})]})]}),M.jsx(Hb,{sx:{mb:4},children:r.map(({title:a,description:s,icon:l},c)=>M.jsxs(cl,{sx:{height:74},children:[M.jsx(yH,{sx:{minWidth:40},children:l}),M.jsx(wH,{primary:M.jsx(qe,{sx:{fontWeight:"medium"},variant:"body1",children:a}),secondary:s})]},`pricing-${a}-${c}`))}),n?M.jsx(li,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",backgroundImage:"linear-gradient(to right, #15803d, oklch(62.7% 0.194 149.214))"},variant:"contained",children:i}):M.jsx(li,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",color:a=>a.palette.text.primary,border:a=>`1px solid ${a.palette.text.primary}`},variant:"outlined",children:i})]})]})}const AY=[{icon:M.jsx(Yb,{}),title:"200 VUh per month",description:""},{icon:M.jsx(Kb,{}),title:"Up to 100 Virtual Users",description:""},{icon:M.jsx(Xb,{}),title:"Distributed Tests",description:"Get access to up to 2 workers"},{icon:M.jsx(xU,{}),title:"No Credit Card Required, no Trial Clock",description:"Free load testing, no strings attached!"},{}],DY=[{icon:M.jsx(Yb,{}),title:"5,000 VUh per month",description:"Enough capacity to run bigger tests, or smaller tests several times per month"},{icon:M.jsx(Kb,{}),title:"Up to 1,000 Virtual Users",description:"Simulate real world load with more virtual users"},{icon:M.jsx(Xb,{}),title:"Distributed Tests",description:"Get access to up to 4 workers"},{icon:M.jsx(qA,{}),title:"Teams",description:"Up to 5 users"},{icon:M.jsx(XA,{}),title:"Priority Support",description:"Get help faster with dedicated support channels"}],LY=[{icon:M.jsx(Yb,{}),title:"Up to 5 million VUh per month",description:"Any capacity you need, we can provide"},{icon:M.jsx(Kb,{}),title:"Up to 1 million Virtual Users",description:"Prepare your system to handle load of any size"},{icon:M.jsx(Xb,{}),title:"Distributed Tests",description:"No limits on the number of workers"},{icon:M.jsx(qA,{}),title:"Teams",description:"Unlimited users"},{icon:M.jsx(XA,{}),title:"Priority Support",description:"Get help faster and receive consultation hours for building your locust test scripts"}];function OY(){return M.jsxs(et,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:4,m:6},children:[M.jsx(W0,{ctaText:"Join for Free",features:AY,href:"https://auth.locust.cloud/signup",price:"$0",tierName:"Free"}),M.jsx(W0,{ctaText:"Get Started",features:DY,href:"https://auth.locust.cloud/signup?plan=premium",price:"$399",recommended:!0,tierName:"Premium"}),M.jsx(W0,{ctaText:"Request a consultation",features:LY,href:"https://www.locust.cloud/get-started?plan=unlimited",tierName:"Unlimited"})]})}function NY(){const e=Cn(({theme:{isDarkMode:t}})=>t);return M.jsxs(et,{sx:{mt:6},children:[M.jsxs(uf,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:2},children:[M.jsxs(et,{sx:{display:"flex",alignItems:"center",justifyContent:"center",columnGap:1,rowGap:4},children:[M.jsx(qe,{component:"h2",sx:{textAlign:"center",fontWeight:"bold"},variant:"h4",children:"Power Up Your"}),M.jsx(qe,{component:"h2",sx:{fontWeight:"bold",color:"rgb(22, 163, 74)"},variant:"h4",children:"Locust"})]}),M.jsx(qe,{sx:{color:e?"#fff":vx[700],textAlign:"center"},variant:"h6",children:"Load testing is hard. Let us take care of the heavy lifting. With Locust Cloud you'll be ready to run distributed load tests in minutes."}),M.jsx(et,{sx:{display:"flex",columnGap:1},children:M.jsx(li,{endIcon:M.jsx(vU,{}),href:"https://auth.locust.cloud/signup",sx:{textTransform:"none",px:12,py:1,borderRadius:2,backgroundColor:"rgb(22, 163, 74)"},variant:"contained",children:"Start Free Trial"})})]}),M.jsxs(uf,{sx:{display:"flex",flexDirection:"column",my:6,p:{sm:4,md:12},backgroundColor:e?vx[900]:sl[50]},children:[M.jsxs(et,{sx:{textAlign:"center",mb:4},children:[M.jsx(qe,{sx:{fontWeight:"bold"},variant:"h4",children:"Your Locustfile. Our Cloud."}),M.jsx(qe,{variant:"subtitle1",children:"Running locust cloud couldn't be easier. Simply upload your locustfile and you're off to the races."})]}),M.jsx(et,{children:M.jsx("img",{src:"/assets/terminal.gif",width:"100%"})})]}),M.jsxs(uf,{sx:{display:"grid",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[M.jsxs(et,{sx:{px:8},children:[M.jsx(qe,{variant:"h4",children:"Dive Deeper"}),M.jsx(qe,{variant:"subtitle1",children:"With locust cloud you can get more out of each testrun. Get a detailed view into individual requests and identify bottlenecks with ease."})]}),M.jsx(et,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:M.jsx(et,{children:e?M.jsx("img",{src:"/assets/graphs-dark.png",width:"100%"}):M.jsx("img",{src:"/assets/graphs-light.png",width:"100%"})})})]}),M.jsxs(uf,{sx:{display:{xs:"flex",md:"grid"},flexDirection:"column-reverse",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[M.jsx(et,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:M.jsx(et,{children:e?M.jsx("img",{src:"/assets/testruns-dark.png",width:"100%"}):M.jsx("img",{src:"/assets/testruns-light.png",width:"100%"})})}),M.jsxs(et,{sx:{px:8},children:[M.jsx(qe,{variant:"h4",children:"See Everything"}),M.jsx(qe,{variant:"subtitle1",children:"Every locust testrun is saved. Keep track of how your system has performed historically and get notified immediately when performace degrades"})]})]}),M.jsxs(uf,{children:[M.jsx(qe,{sx:{textAlign:"center",mb:6},variant:"h4",children:"Pricing Plans to Fit your Needs"}),M.jsx(OY,{})]})]})}const $Y=e=>e.includes("CRITICAL")?Qa[900]:e.includes("ERROR")?Qa[700]:e.includes("WARNING")?G$[900]:e.includes("DEBUG")?al[700]:"text.primary";function SD({log:e}){return M.jsx(qe,{color:$Y(e),fontFamily:"monospace",variant:"body2",children:e})}function BY({workerId:e,logs:t}){const[r,n]=D.useState(!1);D.useEffect(()=>{t.slice(localStorage[e]).some(pD)&&n(!0)},[t]);const i=D.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return M.jsxs(Rb,{children:[M.jsxs(Eb,{expandIcon:M.jsx(qb,{}),onClick:i,children:[r&&M.jsx(KA,{color:"secondary","data-testid":"worker-notification"}),e]}),M.jsx(Mb,{children:M.jsx(Bi,{elevation:3,sx:{p:2},children:t.map((o,a)=>M.jsx(SD,{log:o},`worker-${e}-log-${a}`))})})]})}function FY(){const{master:e,workers:t}=Cn(({logViewer:r})=>r);return M.jsxs(et,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[M.jsxs(et,{children:[M.jsx(qe,{sx:{mb:2},variant:"h5",children:"Master Logs"}),M.jsx(Bi,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>M.jsx(SD,{log:r},`master-log-${n}`))})]}),!tD(t)&&M.jsxs(et,{children:[M.jsx(qe,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>M.jsx(BY,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function zY({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Cn(({theme:{isDarkMode:n}})=>n);return M.jsxs(Hb,{sx:{display:"flex",flexDirection:"column"},children:[M.jsx(cl,{children:M.jsx(ln,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&M.jsx(cl,{children:M.jsx(ln,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),M.jsx(cl,{children:M.jsx(ln,{href:"./stats/failures/csv",children:"Download failures CSV"})}),M.jsx(cl,{children:M.jsx(ln,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),M.jsx(cl,{children:M.jsx(ln,{href:`./stats/report?theme=${r?Ro.DARK:Ro.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},o)=>M.jsx(cl,{children:M.jsx(ln,{href:n,children:i})},`extended-csv-${o}`))]})}const jY=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),WY=ui(jY)(zY);function HY({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,o]=D.useState(null);return M.jsxs(uV,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[M.jsx(li,{onClick:a=>o(a.currentTarget),variant:"outlined",children:M.jsx(wU,{})}),M.jsx($A,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:!!i,children:M.jsx(DA,{sx:{p:2},children:e.map(({key:a,title:s})=>M.jsx(AA,{control:M.jsx(gV,{checked:t.includes(a),onChange:()=>{t.includes(a)?n(a):r(a)}}),label:s},a))})})]})}function VY(e){const[t,r]=D.useState(e.map(a=>a.key));return{selectedColumns:t,addColumn:a=>{r([...t,a])},removeColumn:a=>{r(t.filter(s=>s!==a))},filteredStructure:(a=>a.filter(s=>t.includes(s.key)))(e)}}const UY=Mo.percentilesToStatistics?Mo.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],GY=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...UY,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function YY({stats:e,tableStructure:t=GY}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:o}=VY(t);return M.jsxs(et,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[M.jsx(HY,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),M.jsx(op,{hasTotalRow:!0,rows:e,structure:o})]})}const qY=({ui:{stats:e}})=>({stats:e}),KY=ui(qY)(YY);/*! *****************************************************************************
205
- Copyright (c) Microsoft Corporation.
206
-
207
- Permission to use, copy, modify, and/or distribute this software for any
208
- purpose with or without fee is hereby granted.
209
-
210
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
211
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
212
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
213
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
214
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
215
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
216
- PERFORMANCE OF THIS SOFTWARE.
217
- ***************************************************************************** */var Wx=function(e,t){return Wx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Wx(e,t)};function Ae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wx(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nw=12,XY="sans-serif",Ll=nw+"px "+XY,QY=20,ZY=100,JY="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function eq(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-QY)/ZY;t[n]=i}return t}var tq=eq(JY),cc={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=cc.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Ll),e.measureText(r);r=r||"",n=n||Ll;var o=/((?:\d+)?\.?\d*)px/.exec(n),a=o&&+o[1]||nw,s=0;if(n.indexOf("mono")>=0)s=a*r.length;else for(var l=0;l<r.length;l++){var c=tq[r[l]];s+=c==null?a:c*a}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},bD=fc(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),wD=fc(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ap=Object.prototype.toString,im=Array.prototype,rq=im.forEach,nq=im.filter,iw=im.slice,iq=im.map,sP=(function(){}).constructor,Oh=sP?sP.prototype:null,ow="__proto__",oq=2311;function _D(){return oq++}function aw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Pt(e){if(e==null||typeof e!="object")return e;var t=e,r=ap.call(e);if(r==="[object Array]"){if(!Qf(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Pt(e[n])}}else if(wD[r]){if(!Qf(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!bD[r]&&!Qf(e)&&!kd(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==ow&&(t[a]=Pt(e[a]))}return t}function Nt(e,t,r){if(!Qe(t)||!Qe(e))return r?Pt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==ow){var i=e[n],o=t[n];Qe(o)&&Qe(i)&&!$e(o)&&!$e(i)&&!kd(o)&&!kd(i)&&!lP(o)&&!lP(i)&&!Qf(o)&&!Qf(i)?Nt(i,o,r):(r||!(n in e))&&(e[n]=Pt(t[n]))}return e}function Ce(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==ow&&(e[r]=t[r]);return e}function Wt(e,t,r){for(var n=lr(t),i=0;i<n.length;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function Ut(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function aq(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Bo(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var o=n[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else Wt(e,t)}function Wn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function K(e,t,r){if(e&&t)if(e.forEach&&e.forEach===rq)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e)}function at(e,t,r){if(!e)return[];if(!t)return sw(e);if(e.map&&e.map===iq)return e.map(t,r);for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.call(r,e[i],i,e));return n}function fc(e,t,r,n){if(e&&t){for(var i=0,o=e.length;i<o;i++)r=t.call(n,r,e[i],i,e);return r}}function Sn(e,t,r){if(!e)return[];if(!t)return sw(e);if(e.filter&&e.filter===nq)return e.filter(t,r);for(var n=[],i=0,o=e.length;i<o;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function lr(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function sq(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(iw.call(arguments)))}}var dr=Oh&&dt(Oh.bind)?Oh.call.bind(Oh.bind):sq;function zr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(iw.call(arguments)))}}function $e(e){return Array.isArray?Array.isArray(e):ap.call(e)==="[object Array]"}function dt(e){return typeof e=="function"}function Ue(e){return typeof e=="string"}function Hx(e){return ap.call(e)==="[object String]"}function ur(e){return typeof e=="number"}function Qe(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function lP(e){return!!bD[ap.call(e)]}function Hn(e){return!!wD[ap.call(e)]}function kd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function om(e){return e.colorStops!=null}function lq(e){return e.image!=null}function rg(e){return e!==e}function Pd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function wt(e,t){return e??t}function kv(e,t,r){return e??t??r}function sw(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return iw.apply(e,t)}function CD(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 pa(e,t){if(!e)throw new Error(t)}function _o(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var TD="__ec_primitive__";function Vx(e){e[TD]=!0}function Qf(e){return e[TD]}var uq=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return lr(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),kD=typeof Map=="function";function cq(){return kD?new Map:new uq}var fq=function(){function e(t){var r=$e(t);this.data=cq();var n=this;t instanceof e?t.each(i):t&&K(t,i);function i(o,a){r?n.set(o,a):n.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,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return kD?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function yt(e){return new fq(e)}function dq(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function am(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Ce(r,t),r}function PD(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function nc(e,t){return e.hasOwnProperty(t)}function Bn(){}var pq=180/Math.PI,hq=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),vq=function(){function e(){this.browser=new hq,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}(),ut=new vq;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ut.wxa=!0,ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ut.node=!0,ut.svgSupported=!0):gq(navigator.userAgent,ut);function gq(e,t){var r=t.browser,n=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);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),a&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var mq=".",$s="___EC__COMPONENT__CONTAINER___",RD="___EC__EXTENDED_CLASS___";function Co(e){var t={main:"",sub:""};if(e){var r=e.split(mq);t.main=r[0]||"",t.sub=r[1]||""}return t}function yq(e){pa(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function xq(e){return!!(e&&e[RD])}function lw(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Sq(n)?i=function(o){Ae(a,o);function a(){return o.apply(this,arguments)||this}return a}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},aq(i,this)),Ce(i.prototype,r),i[RD]=!0,i.extend=this.extend,i.superCall=_q,i.superApply=Cq,i.superClass=n,i}}function Sq(e){return dt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function MD(e,t){e.extend=t.extend}var bq=Math.round(Math.random()*10);function wq(e){var t=["__\0is_clz",bq++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function _q(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Cq(e,t,r){return this.superClass.prototype[t].apply(e,r)}function sm(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){yq(i),n.prototype.type=i;var o=Co(i);if(!o.sub)t[o.main]=n;else if(o.sub!==$s){var a=r(o);a[o.sub]=n}}return n},e.getClass=function(n,i,o){var a=t[n];if(a&&a[$s]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return a},e.getClassesByMainType=function(n){var i=Co(n),o=[],a=t[i.main];return a&&a[$s]?K(a,function(s,l){l!==$s&&o.push(s)}):o.push(a),o},e.hasClass=function(n){var i=Co(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return K(t,function(i,o){n.push(o)}),n},e.hasSubTypes=function(n){var i=Co(n),o=t[i.main];return o&&o[$s]};function r(n){var i=t[n.main];return(!i||!i[$s])&&(i=t[n.main]={},i[$s]=!0),i}}function Rd(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&Ut(i,l)>=0||o&&Ut(o,l)<0)){var c=n.getShallow(l,t);c!=null&&(a[e[s][0]]=c)}}return a}}var Tq=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],kq=Rd(Tq),Pq=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return kq(this,t,r)},e}(),ED=function(){function e(t){this.value=t}return e}(),Rq=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new ED(t);return this.insertEntry(r),r},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 r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,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}(),sp=function(){function e(t){this._list=new Rq,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,o=null;if(i[t]==null){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new ED(r),s.key=t,n.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Ux=new sp(50);function Mq(e){if(typeof e=="string"){var t=Ux.get(e);return t&&t.image}else return e}function ID(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=Ux.get(e),a={hostEl:r,cb:n,cbPayload:i};return o?(t=o.image,!lm(t)&&o.pending.push(a)):(t=cc.loadImage(e,uP,uP),t.__zrImageSrc=e,Ux.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function uP(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function lm(e){return e&&e.width&&e.height}function ju(){return[1,0,0,1,0,0]}function uw(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Eq(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 Wu(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],o=t[0]*r[2]+t[2]*r[3],a=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Gx(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function cw(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],d=Math.sin(r),p=Math.cos(r);return e[0]=i*p+s*d,e[1]=-i*d+s*p,e[2]=o*p+l*d,e[3]=-o*d+p*l,e[4]=p*(a-n[0])+d*(c-n[1])+n[0],e[5]=p*(c-n[1])-d*(a-n[0])+n[1],e}function Iq(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function fw(e,t){var r=t[0],n=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=r*a-o*n;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-a*i)*l,e[5]=(o*i-r*s)*l,e):null}var Kt=function(){function e(t,r){this.x=t||0,this.y=r||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,r){return this.x=t,this.y=r,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,r){this.x+=t.x*r,this.y+=t.y*r},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 r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+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,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.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,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var o=1-i;t.x=o*r.x+i*n.x,t.y=o*r.y+i*n.y},e}(),Nh=Math.min,$h=Math.max,Bs=new Kt,Fs=new Kt,zs=new Kt,js=new Kt,cf=new Kt,ff=new Kt,$t=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Nh(t.x,this.x),n=Nh(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$h(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=$h(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,o=ju();return Gx(o,o,[-r.x,-r.y]),Iq(o,o,[n,i]),Gx(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=t.x,c=t.x+t.width,d=t.y,p=t.y+t.height,h=!(o<l||c<i||s<d||p<a);if(r){var v=1/0,g=0,x=Math.abs(o-l),y=Math.abs(c-i),S=Math.abs(s-d),w=Math.abs(p-a),b=Math.min(x,y),C=Math.min(S,w);o<l||c<i?b>g&&(g=b,x<y?Kt.set(ff,-x,0):Kt.set(ff,y,0)):b<v&&(v=b,x<y?Kt.set(cf,x,0):Kt.set(cf,-y,0)),s<d||p<a?C>g&&(g=C,S<w?Kt.set(ff,0,-S):Kt.set(ff,0,w)):b<v&&(v=b,S<w?Kt.set(cf,0,S):Kt.set(cf,0,-w))}return r&&Kt.copy(r,h?cf:ff),h},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.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,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],o=n[3],a=n[4],s=n[5];t.x=r.x*i+a,t.y=r.y*o+s,t.width=r.width*i,t.height=r.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}Bs.x=zs.x=r.x,Bs.y=js.y=r.y,Fs.x=js.x=r.x+r.width,Fs.y=zs.y=r.y+r.height,Bs.transform(n),js.transform(n),Fs.transform(n),zs.transform(n),t.x=Nh(Bs.x,Fs.x,zs.x,js.x),t.y=Nh(Bs.y,Fs.y,zs.y,js.y);var l=$h(Bs.x,Fs.x,zs.x,js.x),c=$h(Bs.y,Fs.y,zs.y,js.y);t.width=l-t.x,t.height=c-t.y},e}(),cP={};function ii(e,t){t=t||Ll;var r=cP[t];r||(r=cP[t]=new sp(500));var n=r.get(e);return n==null&&(n=cc.measureText(e,t).width,r.put(e,n)),n}function fP(e,t,r,n){var i=ii(e,t),o=pw(t),a=Nf(0,i,r),s=Eu(0,o,n),l=new $t(a,s,i,o);return l}function dw(e,t,r,n){var i=((e||"")+"").split(`
218
- `),o=i.length;if(o===1)return fP(i[0],t,r,n);for(var a=new $t(0,0,0,0),s=0;s<i.length;s++){var l=fP(i[s],t,r,n);s===0?a.copy(l):a.union(l)}return a}function Nf(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Eu(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function pw(e){return ii("国",e)}function Ol(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function AD(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,o=r.height,a=r.width,s=o/2,l=r.x,c=r.y,d="left",p="top";if(n instanceof Array)l+=Ol(n[0],r.width),c+=Ol(n[1],r.height),d=null,p=null;else switch(n){case"left":l-=i,c+=s,d="right",p="middle";break;case"right":l+=i+a,c+=s,p="middle";break;case"top":l+=a/2,c-=i,d="center",p="bottom";break;case"bottom":l+=a/2,c+=o+i,d="center";break;case"inside":l+=a/2,c+=s,d="center",p="middle";break;case"insideLeft":l+=i,c+=s,p="middle";break;case"insideRight":l+=a-i,c+=s,d="right",p="middle";break;case"insideTop":l+=a/2,c+=i,d="center";break;case"insideBottom":l+=a/2,c+=o-i,d="center",p="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,d="right";break;case"insideBottomLeft":l+=i,c+=o-i,p="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,d="right",p="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=d,e.verticalAlign=p,e}var H0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Aq(e,t,r,n,i){if(!t)return"";var o=(e+"").split(`
219
- `);i=DD(t,r,n,i);for(var a=0,s=o.length;a<s;a++)o[a]=LD(o[a],i);return o.join(`
220
- `)}function DD(e,t,r,n){n=n||{};var i=Ce({},n);i.font=t,r=wt(r,"..."),i.maxIterations=wt(n.maxIterations,2);var o=i.minChar=wt(n.minChar,0);i.cnCharWidth=ii("国",t);var a=i.ascCharWidth=ii("a",t);i.placeholder=wt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var c=ii(r,t);return c>s&&(r="",c=0),s=e-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function LD(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var o=ii(e,n);if(o<=r)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?Dq(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=ii(e,n)}return e===""&&(e=t.placeholder),e}function Dq(e,t,r,n){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?r:n}return o}function Lq(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,o=r==="truncate",a=pw(i),s=wt(t.lineHeight,a),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",d=t.width,p;d!=null&&(r==="break"||r==="breakAll")?p=e?OD(e,t.font,d,r==="breakAll",0).lines:[]:p=e?e.split(`
221
- `):[];var h=p.length*s,v=wt(t.height,h);if(h>v&&c){var g=Math.floor(v/s);p=p.slice(0,g)}if(e&&o&&d!=null)for(var x=DD(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y<p.length;y++)p[y]=LD(p[y],x);for(var S=v,w=0,y=0;y<p.length;y++)w=Math.max(ii(p[y],i),w);d==null&&(d=w);var b=w;return n&&(S+=n[0]+n[2],b+=n[1]+n[3],d+=n[1]+n[3]),l&&(b=d),{lines:p,height:v,outerWidth:b,outerHeight:S,lineHeight:s,calculatedLineHeight:a,contentWidth:w,contentHeight:h,width:d}}var Oq=function(){function e(){}return e}(),dP=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Nq=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function $q(e,t){var r=new Nq;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:o==="breakAll"}:null,s=H0.lastIndex=0,l;(l=H0.exec(e))!=null;){var c=l.index;c>s&&V0(r,e.substring(s,c),t,a),V0(r,l[2],t,a,l[1]),s=H0.lastIndex}s<e.length&&V0(r,e.substring(s,e.length),t,a);var d=[],p=0,h=0,v=t.padding,g=o==="truncate",x=t.lineOverflow==="truncate";function y(V,H,G){V.width=H,V.lineHeight=G,p+=G,h=Math.max(h,H)}e:for(var S=0;S<r.lines.length;S++){for(var w=r.lines[S],b=0,C=0,T=0;T<w.tokens.length;T++){var P=w.tokens[T],E=P.styleName&&t.rich[P.styleName]||{},A=P.textPadding=E.padding,O=A?A[1]+A[3]:0,R=P.font=E.font||t.font;P.contentHeight=pw(R);var L=wt(E.height,P.contentHeight);if(P.innerHeight=L,A&&(L+=A[0]+A[2]),P.height=L,P.lineHeight=kv(E.lineHeight,t.lineHeight,L),P.align=E&&E.align||t.align,P.verticalAlign=E&&E.verticalAlign||"middle",x&&i!=null&&p+P.lineHeight>i){T>0?(w.tokens=w.tokens.slice(0,T),y(w,C,b),r.lines=r.lines.slice(0,S+1)):r.lines=r.lines.slice(0,S);break e}var N=E.width,B=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")P.percentWidth=N,d.push(P),P.contentWidth=ii(P.text,R);else{if(B){var F=E.backgroundColor,z=F&&F.image;z&&(z=Mq(z),lm(z)&&(P.width=Math.max(P.width,z.width*L/z.height)))}var j=g&&n!=null?n-C:null;j!=null&&j<P.width?!B||j<O?(P.text="",P.width=P.contentWidth=0):(P.text=Aq(P.text,j-O,R,t.ellipsis,{minChar:t.truncateMinChar}),P.width=P.contentWidth=ii(P.text,R)):P.contentWidth=ii(P.text,R)}P.width+=O,C+=P.width,E&&(b=Math.max(b,P.lineHeight))}y(w,C,b)}r.outerWidth=r.width=wt(n,h),r.outerHeight=r.height=wt(i,p),r.contentHeight=p,r.contentWidth=h,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var S=0;S<d.length;S++){var P=d[S],X=P.percentWidth;P.width=parseInt(X,10)/100*r.width}return r}function V0(e,t,r,n,i){var o=t==="",a=i&&r.rich[i]||{},s=e.lines,l=a.font||r.font,c=!1,d,p;if(n){var h=a.padding,v=h?h[1]+h[3]:0;if(a.width!=null&&a.width!=="auto"){var g=Ol(a.width,n.width)+v;s.length>0&&g+n.accumWidth>n.width&&(d=t.split(`
222
- `),c=!0),n.accumWidth=g}else{var x=OD(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=x.accumWidth+v,p=x.linesWidths,d=x.lines}}else d=t.split(`
223
- `);for(var y=0;y<d.length;y++){var S=d[y],w=new Oq;if(w.styleName=i,w.text=S,w.isLineHolder=!S&&!o,typeof a.width=="number"?w.width=a.width:w.width=p?p[y]:ii(S,l),!y&&!c){var b=(s[s.length-1]||(s[0]=new dP)).tokens,C=b.length;C===1&&b[0].isLineHolder?b[0]=w:(S||!C||o)&&b.push(w)}else s.push(new dP([w]))}}function Bq(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Fq=fc(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function zq(e){return Bq(e)?!!Fq[e]:!0}function OD(e,t,r,n,i){for(var o=[],a=[],s="",l="",c=0,d=0,p=0;p<e.length;p++){var h=e.charAt(p);if(h===`
224
- `){l&&(s+=l,d+=c),o.push(s),a.push(d),s="",l="",c=0,d=0;continue}var v=ii(h,t),g=n?!1:!zq(h);if(o.length?d+v>r:i+d+v>r){d?(s||l)&&(g?(s||(s=l,l="",c=0,d=c),o.push(s),a.push(d-c),l+=h,c+=v,s="",d=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(d),s=h,d=v)):g?(o.push(l),a.push(c),l=h,c=v):(o.push(h),a.push(v));continue}d+=v,g?(l+=h,c+=v):(l&&(s+=l,l="",c=0),s+=h)}return!o.length&&!s&&(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(d)),o.length===1&&(d+=i),{accumWidth:d,lines:o,linesWidths:a}}function dc(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function jq(e){return[e[0],e[1]]}function pP(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Wq(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Hq(e){return Math.sqrt(Vq(e))}function Vq(e){return e[0]*e[0]+e[1]*e[1]}function U0(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Uq(e,t){var r=Hq(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Yx(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Gq=Yx;function Yq(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Hu=Yq;function Di(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Du(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Lu(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var hP=uw,qq=5e-5;function Ws(e){return e>qq||e<-5e-5}var Hs=[],vu=[],G0=ju(),Y0=Math.abs,hw=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 Ws(this.rotation)||Ws(this.x)||Ws(this.y)||Ws(this.scaleX-1)||Ws(this.scaleY-1)||Ws(this.skewX)||Ws(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(hP(n),this.invTransform=null);return}n=n||ju(),r?this.getLocalTransform(n):hP(n),t&&(r?Wu(n,t,n):Eq(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Hs);var n=Hs[0]<0?-1:1,i=Hs[1]<0?-1:1,o=((Hs[0]-n)*r+n)/Hs[0]||0,a=((Hs[1]-i)*r+i)/Hs[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||ju(),fw(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=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]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ju(),Wu(vu,t.invTransform,r),r=vu);var n=this.originX,i=this.originY;(n||i)&&(G0[4]=n,G0[5]=i,Wu(vu,r,G0),vu[4]-=n,vu[5]-=i,r=vu),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Di(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Di(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Y0(t[0]-1)>1e-10&&Y0(t[3]-1)>1e-10?Math.sqrt(Y0(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Kq(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,d=t.x,p=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var g=n+s,x=i+l;r[4]=-g*o-h*x*a,r[5]=-x*a-v*g*o}else r[4]=r[5]=0;return r[0]=o,r[3]=a,r[1]=v*o,r[2]=h*a,c&&cw(r,r,c),r[4]+=n+d,r[5]+=i+p,r},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}(),Md=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Kq(e,t){for(var r=0;r<Md.length;r++){var n=Md[r];e[n]=t[n]}}var Zf={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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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-Zf.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?Zf.bounceIn(e*2)*.5:Zf.bounceOut(e*2-1)*.5+.5}},Bh=Math.pow,is=Math.sqrt,ND=1e-8,$D=1e-4,vP=is(3),Fh=1/3,bo=dc(),Ri=dc(),Vu=dc();function es(e){return e>-1e-8&&e<ND}function BD(e){return e>ND||e<-1e-8}function qr(e,t,r,n,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*n+3*o*r)}function gP(e,t,r,n,i){var o=1-i;return 3*(((t-e)*o+2*(r-t)*i)*o+(n-r)*i*i)}function ng(e,t,r,n,i,o){var a=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),c=e-i,d=s*s-3*a*l,p=s*l-9*a*c,h=l*l-3*s*c,v=0;if(es(d)&&es(p))if(es(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[v++]=g)}else{var x=p*p-4*d*h;if(es(x)){var y=p/d,g=-s/a+y,S=-y/2;g>=0&&g<=1&&(o[v++]=g),S>=0&&S<=1&&(o[v++]=S)}else if(x>0){var w=is(x),b=d*s+1.5*a*(-p+w),C=d*s+1.5*a*(-p-w);b<0?b=-Bh(-b,Fh):b=Bh(b,Fh),C<0?C=-Bh(-C,Fh):C=Bh(C,Fh);var g=(-s-(b+C))/(3*a);g>=0&&g<=1&&(o[v++]=g)}else{var T=(2*d*s-3*a*p)/(2*is(d*d*d)),P=Math.acos(T)/3,E=is(d),A=Math.cos(P),g=(-s-2*E*A)/(3*a),S=(-s+E*(A+vP*Math.sin(P)))/(3*a),O=(-s+E*(A-vP*Math.sin(P)))/(3*a);g>=0&&g<=1&&(o[v++]=g),S>=0&&S<=1&&(o[v++]=S),O>=0&&O<=1&&(o[v++]=O)}}return v}function FD(e,t,r,n,i){var o=6*r-12*t+6*e,a=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(es(a)){if(BD(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var d=o*o-4*a*s;if(es(d))i[0]=-o/(2*a);else if(d>0){var p=is(d),c=(-o+p)/(2*a),h=(-o-p)/(2*a);c>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function ig(e,t,r,n,i,o){var a=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,c=(s-a)*i+a,d=(l-s)*i+s,p=(d-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=p,o[4]=p,o[5]=d,o[6]=l,o[7]=n}function Xq(e,t,r,n,i,o,a,s,l,c,d){var p,h=.005,v=1/0,g,x,y,S;bo[0]=l,bo[1]=c;for(var w=0;w<1;w+=.05)Ri[0]=qr(e,r,i,a,w),Ri[1]=qr(t,n,o,s,w),y=Hu(bo,Ri),y<v&&(p=w,v=y);v=1/0;for(var b=0;b<32&&!(h<$D);b++)g=p-h,x=p+h,Ri[0]=qr(e,r,i,a,g),Ri[1]=qr(t,n,o,s,g),y=Hu(Ri,bo),g>=0&&y<v?(p=g,v=y):(Vu[0]=qr(e,r,i,a,x),Vu[1]=qr(t,n,o,s,x),S=Hu(Vu,bo),x<=1&&S<v?(p=x,v=S):h*=.5);return is(v)}function Qq(e,t,r,n,i,o,a,s,l){for(var c=e,d=t,p=0,h=1/l,v=1;v<=l;v++){var g=v*h,x=qr(e,r,i,a,g),y=qr(t,n,o,s,g),S=x-c,w=y-d;p+=Math.sqrt(S*S+w*w),c=x,d=y}return p}function Dn(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function mP(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Zq(e,t,r,n,i){var o=e-2*t+r,a=2*(t-e),s=e-n,l=0;if(es(o)){if(BD(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var d=a*a-4*o*s;if(es(d)){var c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(d>0){var p=is(d),c=(-a+p)/(2*o),h=(-a-p)/(2*o);c>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function zD(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function og(e,t,r,n,i){var o=(t-e)*n+e,a=(r-t)*n+t,s=(a-o)*n+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=r}function Jq(e,t,r,n,i,o,a,s,l){var c,d=.005,p=1/0;bo[0]=a,bo[1]=s;for(var h=0;h<1;h+=.05){Ri[0]=Dn(e,r,i,h),Ri[1]=Dn(t,n,o,h);var v=Hu(bo,Ri);v<p&&(c=h,p=v)}p=1/0;for(var g=0;g<32&&!(d<$D);g++){var x=c-d,y=c+d;Ri[0]=Dn(e,r,i,x),Ri[1]=Dn(t,n,o,x);var v=Hu(Ri,bo);if(x>=0&&v<p)c=x,p=v;else{Vu[0]=Dn(e,r,i,y),Vu[1]=Dn(t,n,o,y);var S=Hu(Vu,bo);y<=1&&S<p?(c=y,p=S):d*=.5}}return is(p)}function eK(e,t,r,n,i,o,a){for(var s=e,l=t,c=0,d=1/a,p=1;p<=a;p++){var h=p*d,v=Dn(e,r,i,h),g=Dn(t,n,o,h),x=v-s,y=g-l;c+=Math.sqrt(x*x+y*y),s=v,l=g}return c}var tK=/cubic-bezier\(([0-9,\.e ]+)\)/;function jD(e){var t=e&&tK.exec(e);if(t){var r=t[1].split(","),n=+_o(r[0]),i=+_o(r[1]),o=+_o(r[2]),a=+_o(r[3]);if(isNaN(n+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:ng(0,n,o,1,l,s)&&qr(0,i,a,1,s[0])}}}var rK=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||Bn,this.ondestroy=t.ondestroy||Bn,this.onrestart=t.onrestart||Bn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n;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%n;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=dt(t)?t:Zf[t]||jD(t)},e}(),yP={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 os(e){return e=Math.round(e),e<0?0:e>255?255:e}function qx(e){return e<0?0:e>1?1:e}function q0(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?os(parseFloat(t)/100*255):os(parseInt(t,10))}function Jf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qx(parseFloat(t)/100):qx(parseFloat(t))}function K0(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function zh(e,t,r){return e+(t-e)*r}function Si(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Kx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var WD=new sp(20),jh=null;function gu(e,t){jh&&Kx(jh,t),jh=WD.put(e,jh||t.slice())}function sa(e,t){if(e){t=t||[];var r=WD.get(e);if(r)return Kx(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in yP)return Kx(t,yP[n]),gu(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){Si(t,0,0,0,1);return}return Si(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),gu(e,t),t}else if(i===7||i===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){Si(t,0,0,0,1);return}return Si(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(n.slice(7),16)/255:1),gu(e,t),t}return}var a=n.indexOf("("),s=n.indexOf(")");if(a!==-1&&s+1===i){var l=n.substr(0,a),c=n.substr(a+1,s-(a+1)).split(","),d=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Si(t,+c[0],+c[1],+c[2],1):Si(t,0,0,0,1);d=Jf(c.pop());case"rgb":if(c.length>=3)return Si(t,q0(c[0]),q0(c[1]),q0(c[2]),c.length===3?d:Jf(c[3])),gu(e,t),t;Si(t,0,0,0,1);return;case"hsla":if(c.length!==4){Si(t,0,0,0,1);return}return c[3]=Jf(c[3]),xP(c,t),gu(e,t),t;case"hsl":if(c.length!==3){Si(t,0,0,0,1);return}return xP(c,t),gu(e,t),t;default:return}}Si(t,0,0,0,1)}}function xP(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Jf(e[1]),i=Jf(e[2]),o=i<=.5?i*(n+1):i+n-i*n,a=i*2-o;return t=t||[],Si(t,os(K0(a,o,r+1/3)*255),os(K0(a,o,r)*255),os(K0(a,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function SP(e,t){var r=sa(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return um(r,r.length===4?"rgba":"rgb")}}function nK(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),o=Math.ceil(n),a=sa(t[i]),s=sa(t[o]),l=n-i,c=um([os(zh(a[0],s[0],l)),os(zh(a[1],s[1],l)),os(zh(a[2],s[2],l)),qx(zh(a[3],s[3],l))],"rgba");return r?{color:c,leftIndex:i,rightIndex:o,value:n}:c}}function um(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ag(e,t){var r=sa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var bP=new sp(100);function wP(e){if(Ue(e)){var t=bP.get(e);return t||(t=SP(e,-.1),bP.put(e,t)),t}else if(om(e)){var r=Ce({},e);return r.colorStops=at(e.colorStops,function(n){return{offset:n.offset,color:SP(n.color,-.1)}}),r}return e}function iK(e){return e.type==="linear"}function oK(e){return e.type==="radial"}(function(){return ut.hasGlobalWindow&&dt(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}})();var Xx=Array.prototype.slice;function na(e,t,r){return(t-e)*r+e}function X0(e,t,r,n){for(var i=t.length,o=0;o<i;o++)e[o]=na(t[o],r[o],n);return e}function aK(e,t,r,n){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]=na(t[a][s],r[a][s],n)}return e}function Wh(e,t,r,n){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+r[o]*n;return e}function _P(e,t,r,n){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]+r[a][s]*n}return e}function sK(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,o=Math.min(r,n),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,n);s++)i.push({offset:a.offset,color:a.color.slice()})}function lK(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var o=n.length,a=i.length;if(o!==a){var s=o>a;if(s)n.length=a;else for(var l=o;l<a;l++)n.push(r===1?i[l]:Xx.call(i[l]))}for(var c=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var d=0;d<c;d++)isNaN(n[l][d])&&(n[l][d]=i[l][d])}}function Pv(e){if(Wn(e)){var t=e.length;if(Wn(e[0])){for(var r=[],n=0;n<t;n++)r.push(Xx.call(e[n]));return r}return Xx.call(e)}return e}function Rv(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 uK(e){return Wn(e&&e[0])?2:1}var Hh=0,Mv=1,HD=2,$f=3,Qx=4,Zx=5,CP=6;function TP(e){return e===Qx||e===Zx}function Vh(e){return e===Mv||e===HD}var df=[0,0,0,0],cK=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,r,n){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=CP,l=r;if(Wn(r)){var c=uK(r);s=c,(c===1&&!ur(r[0])||c===2&&!ur(r[0][0]))&&(a=!0)}else if(ur(r)&&!rg(r))s=Hh;else if(Ue(r))if(!isNaN(+r))s=Hh;else{var d=sa(r);d&&(l=d,s=$f)}else if(om(r)){var p=Ce({},l);p.colorStops=at(r.colorStops,function(v){return{offset:v.offset,color:sa(v.color)}}),iK(r)?s=Qx:oK(r)&&(s=Zx),l=p}o===0?this.valType=s:(s!==this.valType||s===CP)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=dt(n)?n:Zf[n]||jD(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(x,y){return x.time-y.time});for(var i=this.valType,o=n.length,a=n[o-1],s=this.discrete,l=Vh(i),c=TP(i),d=0;d<o;d++){var p=n[d],h=p.value,v=a.value;p.percent=p.time/t,s||(l&&d!==o-1?lK(h,v,i):c&&sK(h.colorStops,v.colorStops))}if(!s&&i!==Zx&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var g=n[0].value,d=0;d<o;d++)i===Hh?n[d].additiveValue=n[d].value-g:i===$f?n[d].additiveValue=Wh([],n[d].value,g,-1):Vh(i)&&(n[d].additiveValue=i===Mv?Wh([],n[d].value,g,-1):_P([],n[d].value,g,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===$f,d,p=this._lastFr,h=Math.min,v,g;if(s===1)v=g=a[0];else{if(r<0)d=0;else if(r<this._lastFrP){var x=h(p+1,s-1);for(d=x;d>=0&&!(a[d].percent<=r);d--);d=h(d,s-2)}else{for(d=p;d<s&&!(a[d].percent>r);d++);d=h(d-1,s-2)}g=a[d+1],v=a[d]}if(v&&g){this._lastFr=d,this._lastFrP=r;var y=g.percent-v.percent,S=y===0?1:h((r-v.percent)/y,1);g.easingFunc&&(S=g.easingFunc(S));var w=n?this._additiveValue:c?df:t[l];if((Vh(o)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=S<1?v.rawValue:g.rawValue;else if(Vh(o))o===Mv?X0(w,v[i],g[i],S):aK(w,v[i],g[i],S);else if(TP(o)){var b=v[i],C=g[i],T=o===Qx;t[l]={type:T?"linear":"radial",x:na(b.x,C.x,S),y:na(b.y,C.y,S),colorStops:at(b.colorStops,function(E,A){var O=C.colorStops[A];return{offset:na(E.offset,O.offset,S),color:Rv(X0([],E.color,O.color,S))}}),global:C.global},T?(t[l].x2=na(b.x2,C.x2,S),t[l].y2=na(b.y2,C.y2,S)):t[l].r=na(b.r,C.r,S)}else if(c)X0(w,v[i],g[i],S),n||(t[l]=Rv(w));else{var P=na(v[i],g[i],S);n?this._additiveValue=P:t[l]=P}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Hh?t[n]=t[n]+i:r===$f?(sa(t[n],df),Wh(df,df,i,1),t[n]=Rv(df)):r===Mv?Wh(t[n],t[n],i,1):r===HD&&_P(t[n],t[n],i,1)},e}(),vw=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){aw("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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,r,n){return this.whenWithKeys(t,r,lr(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var o=this._tracks,a=0;a<n.length;a++){var s=n[a],l=o[s];if(!l){l=o[s]=new cK(s);var c=void 0,d=this._getAdditiveTrack(s);if(d){var p=d.keyframes,h=p[p.length-1];c=h&&h.value,d.valType===$f&&c&&(c=Rv(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,Pv(c),i),this._trackKeys.push(s)}l.addKeyframe(t,Pv(r[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 r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(r=o)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],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,d=c.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=c[d-1];p&&(r._target[s.propName]=p.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new rK({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var g=r._additiveAnimators;if(g){for(var x=!1,y=0;y<g.length;y++)if(g[y]._clip){x=!0;break}x||(r._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(r._target,v);var S=r._onframeCbs;if(S)for(var y=0;y<S.length;y++)S[y](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.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 at(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=n[t[o]];a&&!a.isFinished()&&(r?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(!n[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var o=r[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[n?0:s.length-1];l&&(t[o]=Pv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||lr(t);for(var n=0;n<r.length;n++){var i=r[n],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}(),Fo=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var a=this._$eventProcessor;r!=null&&a&&a.normalizeQuery&&(r=a.normalizeQuery(r)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},c=o[t].length-1,d=o[t][c];return d&&d.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],o=0,a=n[t].length;o<a;o++)n[t][o].h!==r&&i.push(n[t][o]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=r.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,r[0]);break;case 2:c.h.call(c.ctx,r[0],r[1]);break;default:c.h.apply(c.ctx,r);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=r.length,s=r[a-1],l=i.length,c=0;c<l;c++){var d=i[c];if(!(o&&o.filter&&d.query!=null&&!o.filter(t,d.query)))switch(a){case 0:d.h.call(s);break;case 1:d.h.call(s,r[0]);break;case 2:d.h.call(s,r[0],r[1]);break;default:d.h.apply(s,r.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),VD=1;ut.hasGlobalWindow&&(VD=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var sg=VD,Jx=.4,eS="#333",tS="#ccc",fK="#eee",Eo=1,Ev=2,Bf=4,Q0="__zr_normal__",Z0=Md.concat(["ignore"]),dK=fc(Md,function(e,t){return e[t]=!0,e},{ignore:!1}),mu={},pK=new $t(0,0,0,0),cm=function(){function e(t){this.id=_D(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=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]+=r,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 r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,o=r.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var c=!1;if(o.copyTransform(r),n.position!=null){var d=pK;n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),i||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(mu,n,d):AD(mu,n,d),o.x=mu.x,o.y=mu.y,a=mu.align,s=mu.verticalAlign;var p=n.origin;if(p&&n.rotation!=null){var h=void 0,v=void 0;p==="center"?(h=d.width*.5,v=d.height*.5):(h=Ol(p[0],d.width),v=Ol(p[1],d.height)),c=!0,o.originX=-o.x+h+(i?0:d.x),o.originY=-o.y+v+(i?0:d.y)}}n.rotation!=null&&(o.rotation=n.rotation);var g=n.offset;g&&(o.x+=g[0],o.y+=g[1],c||(o.originX=-g[0],o.originY=-g[1]));var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),S=void 0,w=void 0,b=void 0;x&&this.canBeInsideText()?(S=n.insideFill,w=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),b=!0)):(S=n.outsideFill,w=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||w!==y.stroke||b!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=w,y.autoStroke=b,y.align=a,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Eo,l&&r.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()?tS:eS},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&sa(r);n||(n=[255,255,255,1]);for(var i=n[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+(o?0:255)*(1-i);return n[3]=1,um(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Ce(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Qe(t))for(var n=t,i=lr(n),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 r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==Q0)){var a=i.targetName,s=a?r[a]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Z0)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var o=n[i];t[o]!=null&&!(o in r)&&(r[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 r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Q0,!1,t)},e.prototype.useState=function(t,r,n,i){var o=t===Q0,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(Ut(s,t)>=0&&(r||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){aw("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||i);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,h=this._textGuide;return p&&p.useState(t,r,n,d),h&&h.useState(t,r,n,d),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),c}}},e.prototype.useStates=function(t,r,n){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],d=void 0;this.stateProxy&&(d=this.stateProxy(c,t)),d||(d=this.states[c]),d&&i.push(d)}var p=i[a-1],h=!!(p&&p.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&g&&g.duration>0,g);var x=this._textContent,y=this._textGuide;x&&x.useStates(t,r,h),y&&y.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Ut(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),o=Ut(i,t),a=Ut(i,r)>=0;o>=0?a?i.splice(o,1):i[o]=r:n&&!a&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var o=t[i];Ce(r,o),o.textConfig&&(n=n||{},Ce(n,o.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,o,a){var s=!(r&&i);r&&r.textConfig?(this.textConfig=Ce({},i?this.textConfig:n.textConfig),Ce(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},c=!1,d=0;d<Z0.length;d++){var p=Z0[d],h=o&&dK[p];r&&r[p]!=null?h?(c=!0,l[p]=r[p]):this[p]=r[p]:s&&n[p]!=null&&(h?(c=!0,l[p]=n[p]):this[p]=n[p])}if(!o)for(var d=0;d<this.animators.length;d++){var v=this.animators[d],g=v.targetName;v.getLoop()||v.__changeFinalValue(g?(r||n)[g]:r||n)}c&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,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 r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new hw,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ce(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|=Eo;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 r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);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 r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,o=new vw(i,r,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var o=i.animators,a=Ut(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,o=[],a=0;a<i;a++){var s=n[a];!t||t===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,r,n){J0(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){J0(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var o=J0(this,r,n,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=Eo;function r(n,i,o,a){Object.defineProperty(t,n,{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(d){l[o]=d}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(d){l[a]=d}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Bo(cm,Fo);Bo(cm,hw);function J0(e,t,r,n,i){r=r||{};var o=[];UD(e,"",e,t,r,n,o,i);var a=o.length,s=!1,l=r.done,c=r.aborted,d=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},p=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&r.during&&o[0].during(function(g,x){r.during(x)});for(var h=0;h<o.length;h++){var v=o[h];d&&v.done(d),p&&v.aborted(p),r.force&&v.duration(r.duration),v.start(r.easing)}return o}function e1(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function hK(e){return Wn(e[0])}function vK(e,t,r){if(Wn(t[r]))if(Wn(e[r])||(e[r]=[]),Hn(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),e1(e[r],t[r],n))}else{var i=t[r],o=e[r],a=i.length;if(hK(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?e1(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else e1(o,i,a);o.length=i.length}else e[r]=t[r]}function gK(e,t){return e===t||Wn(e)&&Wn(t)&&mK(e,t)}function mK(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function UD(e,t,r,n,i,o,a,s){for(var l=lr(n),c=i.duration,d=i.delay,p=i.additive,h=i.setToFinal,v=!Qe(o),g=e.animators,x=[],y=0;y<l.length;y++){var S=l[y],w=n[S];if(w!=null&&r[S]!=null&&(v||o[S]))if(Qe(w)&&!Wn(w)&&!om(w)){if(t){s||(r[S]=w,e.updateDuringAnimation(t));continue}UD(e,S,r[S],w,i,o&&o[S],a,s)}else x.push(S);else s||(r[S]=w,e.updateDuringAnimation(t),x.push(S))}var b=x.length;if(!p&&b)for(var C=0;C<g.length;C++){var T=g[C];if(T.targetName===t){var P=T.stopTracks(x);if(P){var E=Ut(g,T);g.splice(E,1)}}}if(i.force||(x=Sn(x,function(L){return!gK(n[L],r[L])}),b=x.length),b>0||i.force&&!a.length){var A=void 0,O=void 0,R=void 0;if(s){O={},h&&(A={});for(var C=0;C<b;C++){var S=x[C];O[S]=r[S],h?A[S]=n[S]:r[S]=n[S]}}else if(h){R={};for(var C=0;C<b;C++){var S=x[C];R[S]=Pv(r[S]),vK(r,n,S)}}var T=new vw(r,!1,!1,p?Sn(g,function(N){return N.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),h&&A&&T.whenWithKeys(0,A,x),R&&T.whenWithKeys(0,R,x),T.whenWithKeys(c??500,s?O:n,x).delay(d||0),e.addAnimator(T,t),a.push(T)}}var rS="__zr_style_"+Math.round(Math.random()*10),Cl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cl[rS]=!0;var kP=["z","z2","invisible"],yK=["invisible"],lp=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=lr(r),i=0;i<n.length;i++){var o=n[i];o==="style"?this.useStyle(r[o]):e.prototype.attrKV.call(this,o,r[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(r,n,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&xK(this,r,n)||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(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new $t(0,0,0,0)),n?$t.applyTransform(r,i,n):r.copy(i),(a||s||l)&&(r.width+=a*2+Math.abs(s),r.height+=a*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-a),r.y=Math.min(r.y,r.y+l-a));var c=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-c),r.y=Math.floor(r.y-c),r.width=Math.ceil(r.width+1+c*2),r.height=Math.ceil(r.height+1+c*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new $t(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Ce(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ev,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ev)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(r){return am(Cl,r)},t.prototype.useStyle=function(r){r[rS]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[rS]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,kP)},t.prototype._applyStateObj=function(r,n,i,o,a,s){e.prototype._applyStateObj.call(this,r,n,i,o,a,s);var l=!(n&&o),c;if(n&&n.style?a?o?c=n.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(c,n.style)):l&&(c=i.style),c)if(a){var d=this.style;if(this.style=this.createStyle(l?{}:d),l)for(var p=lr(d),h=0;h<p.length;h++){var v=p[h];v in c&&(c[v]=c[v],this.style[v]=d[v])}for(var g=lr(c),h=0;h<g.length;h++){var v=g[h];this.style[v]=this.style[v]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var x=this.__inHover?yK:kP,h=0;h<x.length;h++){var v=x[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,o=0;o<r.length;o++){var a=r[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return Ce(r,n),r},t.prototype.getAnimationStyleProps=function(){return fm},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Eo|Ev}(),t}(cm),t1=new $t(0,0,0,0),r1=new $t(0,0,0,0);function xK(e,t,r){return t1.copy(e.getBoundingRect()),e.transform&&t1.applyTransform(e.transform),r1.width=t,r1.height=r,!t1.intersect(r1)}var Mi=Math.min,Ei=Math.max,n1=Math.sin,i1=Math.cos,Vs=Math.PI*2,Uh=dc(),Gh=dc(),Yh=dc();function PP(e,t,r,n,i,o){i[0]=Mi(e,r),i[1]=Mi(t,n),o[0]=Ei(e,r),o[1]=Ei(t,n)}var RP=[],MP=[];function SK(e,t,r,n,i,o,a,s,l,c){var d=FD,p=qr,h=d(e,r,i,a,RP);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var v=0;v<h;v++){var g=p(e,r,i,a,RP[v]);l[0]=Mi(g,l[0]),c[0]=Ei(g,c[0])}h=d(t,n,o,s,MP);for(var v=0;v<h;v++){var x=p(t,n,o,s,MP[v]);l[1]=Mi(x,l[1]),c[1]=Ei(x,c[1])}l[0]=Mi(e,l[0]),c[0]=Ei(e,c[0]),l[0]=Mi(a,l[0]),c[0]=Ei(a,c[0]),l[1]=Mi(t,l[1]),c[1]=Ei(t,c[1]),l[1]=Mi(s,l[1]),c[1]=Ei(s,c[1])}function bK(e,t,r,n,i,o,a,s){var l=zD,c=Dn,d=Ei(Mi(l(e,r,i),1),0),p=Ei(Mi(l(t,n,o),1),0),h=c(e,r,i,d),v=c(t,n,o,p);a[0]=Mi(e,i,h),a[1]=Mi(t,o,v),s[0]=Ei(e,i,h),s[1]=Ei(t,o,v)}function wK(e,t,r,n,i,o,a,s,l){var c=Du,d=Lu,p=Math.abs(i-o);if(p%Vs<1e-4&&p>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Uh[0]=i1(i)*r+e,Uh[1]=n1(i)*n+t,Gh[0]=i1(o)*r+e,Gh[1]=n1(o)*n+t,c(s,Uh,Gh),d(l,Uh,Gh),i=i%Vs,i<0&&(i=i+Vs),o=o%Vs,o<0&&(o=o+Vs),i>o&&!a?o+=Vs:i<o&&a&&(i+=Vs),a){var h=o;o=i,i=h}for(var v=0;v<o;v+=Math.PI/2)v>i&&(Yh[0]=i1(v)*r+e,Yh[1]=n1(v)*n+t,c(s,Yh,s),d(l,Yh,l))}var Ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Us=[],Gs=[],ho=[],za=[],vo=[],go=[],o1=Math.min,a1=Math.max,Ys=Math.cos,qs=Math.sin,ea=Math.abs,nS=Math.PI,Ka=nS*2,s1=typeof Float32Array<"u",pf=[];function l1(e){var t=Math.round(e/nS*1e8)/1e8;return t%2*nS}function _K(e,t){var r=l1(e[0]);r<0&&(r+=Ka);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ka?i=r+Ka:t&&r-i>=Ka?i=r-Ka:!t&&r>i?i=r+(Ka-l1(r-i)):t&&r<i&&(i=r-(Ka-l1(i-r))),e[0]=r,e[1]=i}var Nl=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,r,n){n=n||0,n>0&&(this._ux=ea(n/sg/t)||0,this._uy=ea(n/sg/r)||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,r){return this._drawPendingPt(),this.addData(Ot.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=ea(t-this._xi),i=ea(r-this._yi),o=n>this._ux||i>this._uy;if(this.addData(Ot.L,t,r),this._ctx&&o&&this._ctx.lineTo(t,r),o)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,o,a){return this._drawPendingPt(),this.addData(Ot.C,t,r,n,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Ot.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,o,a){this._drawPendingPt(),pf[0]=i,pf[1]=o,_K(pf,a),i=pf[0],o=pf[1];var s=o-i;return this.addData(Ot.A,t,r,n,n,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,r,n,i,o,a),this._xi=Ys(o)*n+t,this._yi=qs(o)*n+r,this},e.prototype.arcTo=function(t,r,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,o),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Ot.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ot.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,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 r=t.length;!(this.data&&this.data.length===r)&&s1&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,o=0;o<r;o++)n+=t[o].len();s1&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var o=0;o<r;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,r,n,i,o,a,s,l,c){if(this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var p=0;p<arguments.length;p++)d[this._len++]=arguments[p]}},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=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,s1&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ho[0]=ho[1]=vo[0]=vo[1]=Number.MAX_VALUE,za[0]=za[1]=go[0]=go[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(r=t[a],n=t[a+1],i=r,o=n),s){case Ot.M:r=i=t[a++],n=o=t[a++],vo[0]=i,vo[1]=o,go[0]=i,go[1]=o;break;case Ot.L:PP(r,n,t[a],t[a+1],vo,go),r=t[a++],n=t[a++];break;case Ot.C:SK(r,n,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],vo,go),r=t[a++],n=t[a++];break;case Ot.Q:bK(r,n,t[a++],t[a++],t[a],t[a+1],vo,go),r=t[a++],n=t[a++];break;case Ot.A:var c=t[a++],d=t[a++],p=t[a++],h=t[a++],v=t[a++],g=t[a++]+v;a+=1;var x=!t[a++];l&&(i=Ys(v)*p+c,o=qs(v)*h+d),wK(c,d,p,h,v,g,x,vo,go),r=Ys(g)*p+c,n=qs(g)*h+d;break;case Ot.R:i=r=t[a++],o=n=t[a++];var y=t[a++],S=t[a++];PP(i,o,i+y,o+S,vo,go);break;case Ot.Z:r=i,n=o;break}Du(ho,ho,vo),Lu(za,za,go)}return a===0&&(ho[0]=ho[1]=za[0]=za[1]=0),new $t(ho[0],ho[1],za[0]-ho[0],za[1]-ho[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,p=0,h=0;h<r;){var v=t[h++],g=h===1;g&&(o=t[h],a=t[h+1],s=o,l=a);var x=-1;switch(v){case Ot.M:o=s=t[h++],a=l=t[h++];break;case Ot.L:{var y=t[h++],S=t[h++],w=y-o,b=S-a;(ea(w)>n||ea(b)>i||h===r-1)&&(x=Math.sqrt(w*w+b*b),o=y,a=S);break}case Ot.C:{var C=t[h++],T=t[h++],y=t[h++],S=t[h++],P=t[h++],E=t[h++];x=Qq(o,a,C,T,y,S,P,E,10),o=P,a=E;break}case Ot.Q:{var C=t[h++],T=t[h++],y=t[h++],S=t[h++];x=eK(o,a,C,T,y,S,10),o=y,a=S;break}case Ot.A:var A=t[h++],O=t[h++],R=t[h++],L=t[h++],N=t[h++],B=t[h++],F=B+N;h+=1,g&&(s=Ys(N)*R+A,l=qs(N)*L+O),x=a1(R,L)*o1(Ka,Math.abs(B)),o=Ys(F)*R+A,a=qs(F)*L+O;break;case Ot.R:{s=o=t[h++],l=a=t[h++];var z=t[h++],j=t[h++];x=z*2+j*2;break}case Ot.Z:{var w=s-o,b=l-a;x=Math.sqrt(w*w+b*b),o=s,a=l;break}}x>=0&&(c[p++]=x,d+=x)}return this._pathLen=d,d},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,o=this._uy,a=this._len,s,l,c,d,p,h,v=r<1,g,x,y=0,S=0,w,b=0,C,T;if(!(v&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,x=this._pathLen,w=r*x,!w)))e:for(var P=0;P<a;){var E=n[P++],A=P===1;switch(A&&(c=n[P],d=n[P+1],s=c,l=d),E!==Ot.L&&b>0&&(t.lineTo(C,T),b=0),E){case Ot.M:s=c=n[P++],l=d=n[P++],t.moveTo(c,d);break;case Ot.L:{p=n[P++],h=n[P++];var O=ea(p-c),R=ea(h-d);if(O>i||R>o){if(v){var L=g[S++];if(y+L>w){var N=(w-y)/L;t.lineTo(c*(1-N)+p*N,d*(1-N)+h*N);break e}y+=L}t.lineTo(p,h),c=p,d=h,b=0}else{var B=O*O+R*R;B>b&&(C=p,T=h,b=B)}break}case Ot.C:{var F=n[P++],z=n[P++],j=n[P++],X=n[P++],V=n[P++],H=n[P++];if(v){var L=g[S++];if(y+L>w){var N=(w-y)/L;ig(c,F,j,V,N,Us),ig(d,z,X,H,N,Gs),t.bezierCurveTo(Us[1],Gs[1],Us[2],Gs[2],Us[3],Gs[3]);break e}y+=L}t.bezierCurveTo(F,z,j,X,V,H),c=V,d=H;break}case Ot.Q:{var F=n[P++],z=n[P++],j=n[P++],X=n[P++];if(v){var L=g[S++];if(y+L>w){var N=(w-y)/L;og(c,F,j,N,Us),og(d,z,X,N,Gs),t.quadraticCurveTo(Us[1],Gs[1],Us[2],Gs[2]);break e}y+=L}t.quadraticCurveTo(F,z,j,X),c=j,d=X;break}case Ot.A:var G=n[P++],W=n[P++],Y=n[P++],te=n[P++],le=n[P++],ne=n[P++],Z=n[P++],ce=!n[P++],me=Y>te?Y:te,de=ea(Y-te)>.001,fe=le+ne,ge=!1;if(v){var L=g[S++];y+L>w&&(fe=le+ne*(w-y)/L,ge=!0),y+=L}if(de&&t.ellipse?t.ellipse(G,W,Y,te,Z,le,fe,ce):t.arc(G,W,me,le,fe,ce),ge)break e;A&&(s=Ys(le)*Y+G,l=qs(le)*te+W),c=Ys(fe)*Y+G,d=qs(fe)*te+W;break;case Ot.R:s=c=n[P],l=d=n[P+1],p=n[P++],h=n[P++];var pe=n[P++],Oe=n[P++];if(v){var L=g[S++];if(y+L>w){var ke=w-y;t.moveTo(p,h),t.lineTo(p+o1(ke,pe),h),ke-=pe,ke>0&&t.lineTo(p+pe,h+o1(ke,Oe)),ke-=Oe,ke>0&&t.lineTo(p+a1(pe-ke,0),h+Oe),ke-=pe,ke>0&&t.lineTo(p,h+a1(Oe-ke,0));break e}y+=L}t.rect(p,h,pe,Oe);break;case Ot.Z:if(v){var L=g[S++];if(y+L>w){var N=(w-y)/L;t.lineTo(c*(1-N)+s*N,d*(1-N)+l*N);break e}y+=L}t.closePath(),c=s,d=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Ot,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function yu(e,t,r,n,i,o,a){if(i===0)return!1;var s=i,l=0,c=e;if(a>t+s&&a>n+s||a<t-s&&a<n-s||o>e+s&&o>r+s||o<e-s&&o<r-s)return!1;if(e!==r)l=(t-n)/(e-r),c=(e*n-r*t)/(e-r);else return Math.abs(o-e)<=s/2;var d=l*o-a+c,p=d*d/(l*l+1);return p<=s/2*s/2}function CK(e,t,r,n,i,o,a,s,l,c,d){if(l===0)return!1;var p=l;if(d>t+p&&d>n+p&&d>o+p&&d>s+p||d<t-p&&d<n-p&&d<o-p&&d<s-p||c>e+p&&c>r+p&&c>i+p&&c>a+p||c<e-p&&c<r-p&&c<i-p&&c<a-p)return!1;var h=Xq(e,t,r,n,i,o,a,s,c,d);return h<=p/2}function TK(e,t,r,n,i,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c||s>e+c&&s>r+c&&s>i+c||s<e-c&&s<r-c&&s<i-c)return!1;var d=Jq(e,t,r,n,i,o,s,l);return d<=c/2}var EP=Math.PI*2;function qh(e){return e%=EP,e<0&&(e+=EP),e}var hf=Math.PI*2;function kK(e,t,r,n,i,o,a,s,l){if(a===0)return!1;var c=a;s-=e,l-=t;var d=Math.sqrt(s*s+l*l);if(d-c>r||d+c<r)return!1;if(Math.abs(n-i)%hf<1e-4)return!0;if(o){var p=n;n=qh(i),i=qh(p)}else n=qh(n),i=qh(i);n>i&&(i+=hf);var h=Math.atan2(l,s);return h<0&&(h+=hf),h>=n&&h<=i||h+hf>=n&&h+hf<=i}function Ks(e,t,r,n,i,o){if(o>t&&o>n||o<t&&o<n||n===t)return 0;var a=(o-t)/(n-t),s=n<t?1:-1;(a===1||a===0)&&(s=n<t?.5:-.5);var l=a*(r-e)+e;return l===i?1/0:l>i?s:0}var ja=Nl.CMD,Xs=Math.PI*2,PK=1e-4;function RK(e,t){return Math.abs(e-t)<PK}var xn=[-1,-1,-1],Ci=[-1,-1];function MK(){var e=Ci[0];Ci[0]=Ci[1],Ci[1]=e}function EK(e,t,r,n,i,o,a,s,l,c){if(c>t&&c>n&&c>o&&c>s||c<t&&c<n&&c<o&&c<s)return 0;var d=ng(t,n,o,s,c,xn);if(d===0)return 0;for(var p=0,h=-1,v=void 0,g=void 0,x=0;x<d;x++){var y=xn[x],S=y===0||y===1?.5:1,w=qr(e,r,i,a,y);w<l||(h<0&&(h=FD(t,n,o,s,Ci),Ci[1]<Ci[0]&&h>1&&MK(),v=qr(t,n,o,s,Ci[0]),h>1&&(g=qr(t,n,o,s,Ci[1]))),h===2?y<Ci[0]?p+=v<t?S:-S:y<Ci[1]?p+=g<v?S:-S:p+=s<g?S:-S:y<Ci[0]?p+=v<t?S:-S:p+=s<v?S:-S)}return p}function IK(e,t,r,n,i,o,a,s){if(s>t&&s>n&&s>o||s<t&&s<n&&s<o)return 0;var l=Zq(t,n,o,s,xn);if(l===0)return 0;var c=zD(t,n,o);if(c>=0&&c<=1){for(var d=0,p=Dn(t,n,o,c),h=0;h<l;h++){var v=xn[h]===0||xn[h]===1?.5:1,g=Dn(e,r,i,xn[h]);g<a||(xn[h]<c?d+=p<t?v:-v:d+=o<p?v:-v)}return d}else{var v=xn[0]===0||xn[0]===1?.5:1,g=Dn(e,r,i,xn[0]);return g<a?0:o<t?v:-v}}function AK(e,t,r,n,i,o,a,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);xn[0]=-l,xn[1]=l;var c=Math.abs(n-i);if(c<1e-4)return 0;if(c>=Xs-1e-4){n=0,i=Xs;var d=o?1:-1;return a>=xn[0]+e&&a<=xn[1]+e?d:0}if(n>i){var p=n;n=i,i=p}n<0&&(n+=Xs,i+=Xs);for(var h=0,v=0;v<2;v++){var g=xn[v];if(g+e>a){var x=Math.atan2(s,g),d=o?1:-1;x<0&&(x=Xs+x),(x>=n&&x<=i||x+Xs>=n&&x+Xs<=i)&&(x>Math.PI/2&&x<Math.PI*1.5&&(d=-d),h+=d)}}return h}function GD(e,t,r,n,i){for(var o=e.data,a=e.len(),s=0,l=0,c=0,d=0,p=0,h,v,g=0;g<a;){var x=o[g++],y=g===1;switch(x===ja.M&&g>1&&(r||(s+=Ks(l,c,d,p,n,i))),y&&(l=o[g],c=o[g+1],d=l,p=c),x){case ja.M:d=o[g++],p=o[g++],l=d,c=p;break;case ja.L:if(r){if(yu(l,c,o[g],o[g+1],t,n,i))return!0}else s+=Ks(l,c,o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case ja.C:if(r){if(CK(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,n,i))return!0}else s+=EK(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case ja.Q:if(r){if(TK(l,c,o[g++],o[g++],o[g],o[g+1],t,n,i))return!0}else s+=IK(l,c,o[g++],o[g++],o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case ja.A:var S=o[g++],w=o[g++],b=o[g++],C=o[g++],T=o[g++],P=o[g++];g+=1;var E=!!(1-o[g++]);h=Math.cos(T)*b+S,v=Math.sin(T)*C+w,y?(d=h,p=v):s+=Ks(l,c,h,v,n,i);var A=(n-S)*C/b+S;if(r){if(kK(S,w,C,T,T+P,E,t,A,i))return!0}else s+=AK(S,w,C,T,T+P,E,A,i);l=Math.cos(T+P)*b+S,c=Math.sin(T+P)*C+w;break;case ja.R:d=l=o[g++],p=c=o[g++];var O=o[g++],R=o[g++];if(h=d+O,v=p+R,r){if(yu(d,p,h,p,t,n,i)||yu(h,p,h,v,t,n,i)||yu(h,v,d,v,t,n,i)||yu(d,v,d,p,t,n,i))return!0}else s+=Ks(h,p,h,v,n,i),s+=Ks(d,v,d,p,n,i);break;case ja.Z:if(r){if(yu(l,c,d,p,t,n,i))return!0}else s+=Ks(l,c,d,p,n,i);l=d,c=p;break}}return!r&&!RK(c,p)&&(s+=Ks(l,c,d,p,n,i)||0),s!==0}function DK(e,t,r){return GD(e,0,!1,t,r)}function LK(e,t,r,n){return GD(e,t,!0,r,n)}var YD=Wt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cl),OK={style:Wt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fm.style)},u1=Md.concat(["invisible","culling","z","z2","zlevel","parent"]),Xt=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var o=i.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<u1.length;++s)i[u1[s]]=this[u1[s]];i.__dirty|=Eo}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=lr(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<n.length;o++){var a=n[o],s=r[a];a==="style"?this.style?Ce(this.style,s):this.useStyle(s):a==="shape"?Ce(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 r=this.style.fill;if(r!=="none"){if(Ue(r)){var n=ag(r,0);return n>.5?eS:n>.2?fK:tS}else if(r)return tS}return eS},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ue(n)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=ag(r,0)<Jx;if(o===a)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Nl(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&Bf)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),r=a.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,c=n.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d??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 r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect(),a=this.style;if(r=i[0],n=i[1],o.contain(r,n)){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)),LK(s,l/c,r,n)))return!0}if(this.hasFill())return DK(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Bf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Ce(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Bf)},t.prototype.createStyle=function(r){return am(YD,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ce({},this.shape))},t.prototype._applyStateObj=function(r,n,i,o,a,s){e.prototype._applyStateObj.call(this,r,n,i,o,a,s);var l=!(n&&o),c;if(n&&n.shape?a?o?c=n.shape:(c=Ce({},i.shape),Ce(c,n.shape)):(c=Ce({},o?this.shape:i.shape),Ce(c,n.shape)):l&&(c=i.shape),c)if(a){this.shape=Ce({},this.shape);for(var d={},p=lr(c),h=0;h<p.length;h++){var v=p[h];typeof c[v]=="object"?this.shape[v]=c[v]:d[v]=c[v]}this._transitionState(r,{shape:d},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,o=0;o<r.length;o++){var a=r[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return OK},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){Ae(a,o);function a(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Pt(r.style)},a.prototype.getDefaultShape=function(){return Pt(r.shape)},a}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Eo|Ev|Bf}(),t}(lp),NK=Wt({strokeFirst:!0,font:Ll,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},YD),lg=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return am(NK,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=dw(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var o=r.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 r=t.prototype;r.dirtyRectTolerance=10}(),t}(lp);lg.prototype.type="tspan";var $K=Wt({x:0,y:0},Cl),BK={style:Wt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fm.style)};function FK(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Ss=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return am($K,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var o=FK(n.image)?n.image:this.__image;if(!o)return 0;var a=r==="width"?"height":"width",s=n[a];return s==null?o[r]:o[r]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return BK},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new $t(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(lp);Ss.prototype.type="image";function zK(e,t){var r=t.x,n=t.y,i=t.width,o=t.height,a=t.r,s,l,c,d;i<0&&(r=r+i,i=-i),o<0&&(n=n+o,o=-o),typeof a=="number"?s=l=c=d=a:a instanceof Array?a.length===1?s=l=c=d=a[0]:a.length===2?(s=c=a[0],l=d=a[1]):a.length===3?(s=a[0],l=d=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],d=a[3]):s=l=c=d=0;var p;s+l>i&&(p=s+l,s*=i/p,l*=i/p),c+d>i&&(p=c+d,c*=i/p,d*=i/p),l+c>o&&(p=l+c,l*=o/p,c*=o/p),s+d>o&&(p=s+d,s*=o/p,d*=o/p),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+o-c),c!==0&&e.arc(r+i-c,n+o-c,c,0,Math.PI/2),e.lineTo(r+d,n+o),d!==0&&e.arc(r+d,n+o-d,d,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ou=Math.round;function qD(e,t,r){if(t){var n=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=n,e.x2=i,e.y1=o,e.y2=a;var s=r&&r.lineWidth;return s&&(Ou(n*2)===Ou(i*2)&&(e.x1=e.x2=yl(n,s,!0)),Ou(o*2)===Ou(a*2)&&(e.y1=e.y2=yl(o,s,!0))),e}}function KD(e,t,r){if(t){var n=t.x,i=t.y,o=t.width,a=t.height;e.x=n,e.y=i,e.width=o,e.height=a;var s=r&&r.lineWidth;return s&&(e.x=yl(n,s,!0),e.y=yl(i,s,!0),e.width=Math.max(yl(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(yl(i+a,s,!1)-e.y,a===0?0:1)),e}}function yl(e,t,r){if(!t)return e;var n=Ou(e*2);return(n+Ou(t))%2===0?n/2:(n+(r?1:-1))/2}var jK=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),WK={},Wr=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jK},t.prototype.buildPath=function(r,n){var i,o,a,s;if(this.subPixelOptimize){var l=KD(WK,n,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,o=n.y,a=n.width,s=n.height;n.r?zK(r,n):r.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Xt);Wr.prototype.type="rect";var IP={fill:"#000"},AP=2,HK={style:Wt({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},fm.style)},dn=function(e){Ae(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=IP,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},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,qK(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new $t(0,0,0,0),n=this._children,i=[],o=null,a=0;a<n.length;a++){var s=n[a],l=s.getBoundingRect(),c=s.getLocalTransform(i);c?(r.copy(l),r.applyTransform(c),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||IP},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,o=r.rich||i&&{};return Ce(r,n),i&&o?(this._mergeRich(o,i),r.rich=o):o&&(r.rich=o),r},t.prototype._mergeRich=function(r,n){for(var i=lr(n),o=0;o<i.length;o++){var a=i[o];r[a]=r[a]||{},Ce(r[a],n[a])}},t.prototype.getAnimationStyleProps=function(){return HK},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Ll,i=r.padding,o=FP(r),a=Lq(o,r),s=c1(r),l=!!r.backgroundColor,c=a.outerHeight,d=a.outerWidth,p=a.contentWidth,h=a.lines,v=a.lineHeight,g=this._defaultStyle,x=r.x||0,y=r.y||0,S=r.align||g.align||"left",w=r.verticalAlign||g.verticalAlign||"top",b=x,C=Eu(y,a.contentHeight,w);if(s||i){var T=Nf(x,d,S),P=Eu(y,c,w);s&&this._renderBackground(r,r,T,P,d,c)}C+=v/2,i&&(b=BP(x,S,i),w==="top"?C+=i[0]:w==="bottom"&&(C-=i[2]));for(var E=0,A=!1,O=$P("fill"in r?r.fill:(A=!0,g.fill)),R=NP("stroke"in r?r.stroke:!l&&(!g.autoStroke||A)?(E=AP,g.stroke):null),L=r.textShadowBlur>0,N=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),B=a.calculatedLineHeight,F=0;F<h.length;F++){var z=this._getOrCreateChild(lg),j=z.createStyle();z.useStyle(j),j.text=h[F],j.x=b,j.y=C,j.textAlign=S,j.textBaseline="middle",j.opacity=r.opacity,j.strokeFirst=!0,L&&(j.shadowBlur=r.textShadowBlur||0,j.shadowColor=r.textShadowColor||"transparent",j.shadowOffsetX=r.textShadowOffsetX||0,j.shadowOffsetY=r.textShadowOffsetY||0),j.stroke=R,j.fill=O,R&&(j.lineWidth=r.lineWidth||E,j.lineDash=r.lineDash,j.lineDashOffset=r.lineDashOffset||0),j.font=n,LP(j,r),C+=v,N&&z.setBoundingRect(new $t(Nf(j.x,r.width,j.textAlign),Eu(j.y,B,j.textBaseline),p,B))}},t.prototype._updateRichTexts=function(){var r=this.style,n=FP(r),i=$q(n,r),o=i.width,a=i.outerWidth,s=i.outerHeight,l=r.padding,c=r.x||0,d=r.y||0,p=this._defaultStyle,h=r.align||p.align,v=r.verticalAlign||p.verticalAlign,g=Nf(c,a,h),x=Eu(d,s,v),y=g,S=x;l&&(y+=l[3],S+=l[0]);var w=y+o;c1(r)&&this._renderBackground(r,r,g,x,a,s);for(var b=!!r.backgroundColor,C=0;C<i.lines.length;C++){for(var T=i.lines[C],P=T.tokens,E=P.length,A=T.lineHeight,O=T.width,R=0,L=y,N=w,B=E-1,F=void 0;R<E&&(F=P[R],!F.align||F.align==="left");)this._placeToken(F,r,A,S,L,"left",b),O-=F.width,L+=F.width,R++;for(;B>=0&&(F=P[B],F.align==="right");)this._placeToken(F,r,A,S,N,"right",b),O-=F.width,N-=F.width,B--;for(L+=(o-(L-y)-(w-N)-O)/2;R<=B;)F=P[R],this._placeToken(F,r,A,S,L+F.width/2,"center",b),L+=F.width,R++;S+=A}},t.prototype._placeToken=function(r,n,i,o,a,s,l){var c=n.rich[r.styleName]||{};c.text=r.text;var d=r.verticalAlign,p=o+i/2;d==="top"?p=o+r.height/2:d==="bottom"&&(p=o+i-r.height/2);var h=!r.isLineHolder&&c1(c);h&&this._renderBackground(c,n,s==="right"?a-r.width:s==="center"?a-r.width/2:a,p-r.height/2,r.width,r.height);var v=!!c.backgroundColor,g=r.textPadding;g&&(a=BP(a,s,g),p-=r.height/2-g[0]-r.innerHeight/2);var x=this._getOrCreateChild(lg),y=x.createStyle();x.useStyle(y);var S=this._defaultStyle,w=!1,b=0,C=$P("fill"in c?c.fill:"fill"in n?n.fill:(w=!0,S.fill)),T=NP("stroke"in c?c.stroke:"stroke"in n?n.stroke:!v&&!l&&(!S.autoStroke||w)?(b=AP,S.stroke):null),P=c.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=a,y.y=p,P&&(y.shadowBlur=c.textShadowBlur||n.textShadowBlur||0,y.shadowColor=c.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||Ll,y.opacity=kv(c.opacity,n.opacity,1),LP(y,c),T&&(y.lineWidth=kv(c.lineWidth,n.lineWidth,b),y.lineDash=wt(c.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=T),C&&(y.fill=C);var E=r.contentWidth,A=r.contentHeight;x.setBoundingRect(new $t(Nf(y.x,E,y.textAlign),Eu(y.y,A,y.textBaseline),E,A))},t.prototype._renderBackground=function(r,n,i,o,a,s){var l=r.backgroundColor,c=r.borderWidth,d=r.borderColor,p=l&&l.image,h=l&&!p,v=r.borderRadius,g=this,x,y;if(h||r.lineHeight||c&&d){x=this._getOrCreateChild(Wr),x.useStyle(x.createStyle()),x.style.fill=null;var S=x.shape;S.x=i,S.y=o,S.width=a,S.height=s,S.r=v,x.dirtyShape()}if(h){var w=x.style;w.fill=l||null,w.fillOpacity=wt(r.fillOpacity,1)}else if(p){y=this._getOrCreateChild(Ss),y.onload=function(){g.dirtyStyle()};var b=y.style;b.image=l.image,b.x=i,b.y=o,b.width=a,b.height=s}if(c&&d){var w=x.style;w.lineWidth=c,w.stroke=d,w.strokeOpacity=wt(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var C=(x||y).style;C.shadowBlur=r.shadowBlur||0,C.shadowColor=r.shadowColor||"transparent",C.shadowOffsetX=r.shadowOffsetX||0,C.shadowOffsetY=r.shadowOffsetY||0,C.opacity=kv(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return YK(r)&&(n=[r.fontStyle,r.fontWeight,GK(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&_o(n)||r.textFont||r.font},t}(lp),VK={left:!0,right:1,center:1},UK={top:1,bottom:1,middle:1},DP=["fontStyle","fontWeight","fontSize","fontFamily"];function GK(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?nw+"px":e+"px"}function LP(e,t){for(var r=0;r<DP.length;r++){var n=DP[r],i=t[n];i!=null&&(e[n]=i)}}function YK(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function qK(e){return OP(e),K(e.rich,OP),e}function OP(e){if(e){e.font=dn.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||VK[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||UK[r]?r:"top";var n=e.padding;n&&(e.padding=CD(e.padding))}}function NP(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function $P(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function BP(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function FP(e){var t=e.text;return t!=null&&(t+=""),t}function c1(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var KK=1e-4,XD=20;function XK(e){return e.replace(/^\s+|\s+$/g,"")}function zP(e,t,r,n){var i=t[0],o=t[1],a=r[0],s=r[1],l=o-i,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(n)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 bn(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 Ue(e)?XK(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ir(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),XD),e=(+e).toFixed(t),r?e:+e}function oa(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return QK(e)}function QK(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-n)}function ZK(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function JK(e,t){var r=Math.max(oa(e),oa(t)),n=e+t;return r>XD?n:Ir(n,r)}function QD(e){var t=Math.PI*2;return(e%t+t)%t}function ug(e){return e>-1e-4&&e<KK}var eX=/^(?:(\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 ha(e){if(e instanceof Date)return e;if(Ue(e)){var t=eX.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(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 tX(e){return Math.pow(10,gw(e))}function gw(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 ZD(e,t){var r=gw(e),n=Math.pow(10,r),i=e/n,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*n,r>=-20?+e.toFixed(r<0?-r:0):e}function cg(e){var t=parseFloat(e);return t==e&&(t!==0||!Ue(e)||e.indexOf("x")<=0)?t:NaN}function rX(e){return!isNaN(cg(e))}function JD(){return Math.round(Math.random()*9)}function eL(e,t){return t===0?e:eL(t,e%t)}function jP(e,t){return e==null?t:t==null?e:e*t/eL(e,t)}function Ln(e){throw new Error(e)}function WP(e,t,r){return(t-e)*r+e}var tL="series\0",nX="\0_ec_\0";function _n(e){return e instanceof Array?e:e==null?[]:[e]}function HP(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var o=r[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var VP=["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 up(e){return Qe(e)&&!$e(e)&&!(e instanceof Date)?e.value:e}function iX(e){return Qe(e)&&!(e instanceof Array)}function oX(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var a=yt();K(t,function(l,c){if(!Qe(l)){t[c]=null;return}});var s=aX(e,a,r);return(n||i)&&sX(s,e,a,t),n&&lX(s,t),n||i?uX(s,t,i):o&&cX(s,t),fX(s),s}function aX(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),n.push({existing:r==="replaceMerge"||Ed(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function sX(e,t,r,n){K(n,function(i,o){if(!(!i||i.id==null)){var a=ed(i.id),s=r.get(a);if(s!=null){var l=e[s];pa(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],n[o]=null}}})}function lX(e,t){K(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||r.id==null)&&!Ed(r)&&!Ed(o)&&rL("name",o,r)){e[i].newOption=r,t[n]=null;return}}})}function uX(e,t,r){K(t,function(n){if(n){for(var i,o=0;(i=e[o])&&(i.newOption||Ed(i.existing)||i.existing&&n.id!=null&&!rL("id",n,i.existing));)o++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function cX(e,t){K(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function fX(e){var t=yt();K(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),K(e,function(r){var n=r.newOption;pa(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),K(e,function(r,n){var i=r.existing,o=r.newOption,a=r.keyInfo;if(Qe(o)){if(a.name=o.name!=null?ed(o.name):i?i.name:tL+n,i)a.id=ed(i.id);else if(o.id!=null)a.id=ed(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,r)}})}function rL(e,t,r){var n=Io(t[e],null),i=Io(r[e],null);return n!=null&&i!=null&&n===i}function ed(e){return Io(e,"")}function Io(e,t){return e==null?t:Ue(e)?e:ur(e)||Hx(e)?e+"":t}function mw(e){var t=e.name;return!!(t&&t.indexOf(tL))}function Ed(e){return e&&e.id!=null&&ed(e.id).indexOf(nX)===0}function dX(e,t,r){K(e,function(n){var i=n.newOption;Qe(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=pX(t,i,n.existing,r))})}function pX(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function $l(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return $e(t.dataIndex)?at(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return $e(t.name)?at(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Nr(){var e="__ec_inner_"+hX++;return function(t){return t[e]||(t[e]={})}}var hX=JD();function f1(e,t,r){var n=yw(t,r),i=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=r?r.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(c,d){var p=cp(e,d,c,{useDefault:l===d,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[d+"Models"]=p.models,s[d+"Model"]=p.models[0]}),s}function yw(e,t){var r;if(Ue(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=yt(),o={},a=!1;return K(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],p=(c[2]||"").toLowerCase();if(!(!d||!p||t&&t.includeMainTypes&&Ut(t.includeMainTypes,d)<0)){a=a||!!d;var h=i.get(d)||i.set(d,{});h[p]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var to={useDefault:!0,enableAll:!1,enableNone:!1};function cp(e,t,r,n){n=n||to;var i=r.index,o=r.id,a=r.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(pa(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(pa(n.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 nL(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function vX(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function gX(e){return e==="auto"?ut.domSupported?"html":"richText":e||"html"}function mX(e,t,r,n,i){var o=t==null||t==="auto";if(n==null)return n;if(ur(n)){var a=WP(r||0,n,i);return Ir(a,o?Math.max(oa(r||0),oa(n)):t)}else{if(Ue(n))return i<1?r:n;for(var s=[],l=r,c=n,d=Math.max(l?l.length:0,c.length),p=0;p<d;++p){var h=e.getDimensionInfo(p);if(h&&h.type==="ordinal")s[p]=(i<1&&l?l:c)[p];else{var v=l&&l[p]?l[p]:0,g=c[p],a=WP(v,g,i);s[p]=Ir(a,o?Math.max(oa(v),oa(g)):t)}}return s}}var jt=Nr(),yX=function(e,t,r,n){if(n){var i=jt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(o){var a=jt(o);a.seriesIndex=e,a.dataIndex=r,a.dataType=t,a.ssrType="chart"})}},UP=1,GP={},iL=Nr(),xw=Nr(),Sw=0,dm=1,pm=2,Oo=["emphasis","blur","select"],YP=["normal","emphasis","blur","select"],xX=10,SX=9,Tl="highlight",Iv="downplay",td="select",Av="unselect",rd="toggleSelect";function xu(e){return e!=null&&e!=="none"}function hm(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function oL(e){hm(e,"emphasis",pm)}function aL(e){e.hoverState===pm&&hm(e,"normal",Sw)}function bw(e){hm(e,"blur",dm)}function sL(e){e.hoverState===dm&&hm(e,"normal",Sw)}function bX(e){e.selected=!0}function wX(e){e.selected=!1}function qP(e,t,r){t(e,r)}function ga(e,t,r){qP(e,t,r),e.isGroup&&e.traverse(function(n){qP(n,t,r)})}function KP(e,t){switch(t){case"emphasis":e.hoverState=pm;break;case"normal":e.hoverState=Sw;break;case"blur":e.hoverState=dm;break;case"select":e.selected=!0}}function _X(e,t,r,n){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(n&&n[s])}for(var a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(r)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function CX(e,t,r,n){var i=r&&Ut(r,"select")>=0,o=!1;if(e instanceof Xt){var a=iL(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(xu(s)||xu(l)){n=n||{};var c=n.style||{};c.fill==="inherit"?(o=!0,n=Ce({},n),c=Ce({},c),c.fill=s):!xu(c.fill)&&xu(s)?(o=!0,n=Ce({},n),c=Ce({},c),c.fill=wP(s)):!xu(c.stroke)&&xu(l)&&(o||(n=Ce({},n),c=Ce({},c)),c.stroke=wP(l)),n.style=c}}if(n&&n.z2==null){o||(n=Ce({},n));var d=e.z2EmphasisLift;n.z2=e.z2+(d??xX)}return n}function TX(e,t,r){if(r&&r.z2==null){r=Ce({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??SX)}return r}function kX(e,t,r){var n=Ut(e.currentStates,t)>=0,i=e.style.opacity,o=n?null:_X(e,["opacity"],t,{opacity:1});r=r||{};var a=r.style||{};return a.opacity==null&&(r=Ce({},r),a=Ce({opacity:n?i:o.opacity*.1},a),r.style=a),r}function d1(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return CX(this,e,t,r);if(e==="blur")return kX(this,e,r);if(e==="select")return TX(this,e,r)}return r}function PX(e){e.stateProxy=d1;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=d1),r&&(r.stateProxy=d1)}function XP(e,t){!fL(e,t)&&!e.__highByOuter&&ga(e,oL)}function QP(e,t){!fL(e,t)&&!e.__highByOuter&&ga(e,aL)}function fg(e,t){e.__highByOuter|=1<<(t||0),ga(e,oL)}function dg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ga(e,aL)}function RX(e){ga(e,bw)}function lL(e){ga(e,sL)}function uL(e){ga(e,bX)}function cL(e){ga(e,wX)}function fL(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dL(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,o){var a=xw(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),a.isBlured&&(l.group.traverse(function(c){sL(c)}),s&&r.push(o)),a.isBlured=!1}),K(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function iS(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function o(c,d){for(var p=0;p<d.length;p++){var h=c.getItemGraphicEl(d[p]);h&&lL(h)}}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 d=a===c,p=c.coordinateSystem;p&&p.master&&(p=p.master);var h=p&&s?p===s:d;if(!(r==="series"&&!d||r==="coordinateSystem"&&!h||t==="series"&&d)){var v=n.getViewOfSeriesModel(c);if(v.group.traverse(function(y){y.__highByOuter&&d&&t==="self"||bw(y)}),Wn(t))o(c.getData(),t);else if(Qe(t))for(var g=lr(t),x=0;x<g.length;x++)o(c.getData(g[x]),t[g[x]]);l.push(c),xw(c).isBlured=!0}}),i.eachComponent(function(c,d){if(c!=="series"){var p=n.getViewOfComponentModel(d);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,i)}})}}function oS(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){xw(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(o){bw(o)})}}}function MX(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=$l(i,t);o=($e(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=jt(a);iS(n,c.focus,c.blurScope,r)}else{var d=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);d!=null&&iS(n,d,p,r)}}}function ww(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var o=n.getModel().getComponent(e,t);if(!o)return i;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(r),l,c=0;c<s.length;c++)if(jt(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function EX(e,t,r){var n=jt(e),i=ww(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=i.dispatchers,a=i.focusSelf;o?(a&&oS(n.componentMainType,n.componentIndex,r),K(o,function(s){return XP(s,t)})):(iS(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&oS(n.componentMainType,n.componentIndex,r),XP(e,t))}function IX(e,t,r){dL(r);var n=jt(e),i=ww(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?K(i,function(o){return QP(o,t)}):QP(e,t)}function AX(e,t,r){if(uS(t)){var n=t.dataType,i=e.getData(n),o=$l(i,t);$e(o)||(o=[o]),e[t.type===rd?"toggleSelect":t.type===td?"select":"unselect"](o,n)}}function ZP(e){var t=e.getAllData();K(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?uL(o):cL(o)})})}function DX(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();K(n,function(i){i.data;var o=i.type,a=r.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function aS(e,t,r){pL(e,!0),ga(e,PX),OX(e,t,r)}function LX(e){pL(e,!1)}function sS(e,t,r,n){n?LX(e):aS(e,t,r)}function OX(e,t,r){var n=jt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var JP=["emphasis","blur","select"],NX={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function eR(e,t,r,n){r=r||"itemStyle";for(var i=0;i<JP.length;i++){var o=JP[i],a=t.getModel([o,r]),s=e.ensureState(o);s.style=a[NX[r]]()}}function pL(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function lS(e){return!!(e&&e.__highDownDispatcher)}function $X(e){var t=GP[e];return t==null&&UP<=32&&(t=GP[e]=UP++),t}function uS(e){var t=e.type;return t===td||t===Av||t===rd}function tR(e){var t=e.type;return t===Tl||t===Iv}function BX(e){var t=iL(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Su=Nl.CMD,FX=[[],[],[]],rR=Math.sqrt,zX=Math.atan2;function jX(e,t){if(t){var r=e.data,n=e.len(),i,o,a,s,l,c,d=Su.M,p=Su.C,h=Su.L,v=Su.R,g=Su.A,x=Su.Q;for(a=0,s=0;a<n;){switch(i=r[a++],s=a,o=0,i){case d:o=1;break;case h:o=1;break;case p:o=3;break;case x:o=2;break;case g:var y=t[4],S=t[5],w=rR(t[0]*t[0]+t[1]*t[1]),b=rR(t[2]*t[2]+t[3]*t[3]),C=zX(-t[1]/b,t[0]/w);r[a]*=w,r[a++]+=y,r[a]*=b,r[a++]+=S,r[a++]*=w,r[a++]*=b,r[a++]+=C,r[a++]+=C,a+=2,s=a;break;case v:c[0]=r[a++],c[1]=r[a++],Di(c,c,t),r[s++]=c[0],r[s++]=c[1],c[0]+=r[a++],c[1]+=r[a++],Di(c,c,t),r[s++]=c[0],r[s++]=c[1]}for(l=0;l<o;l++){var T=FX[l];T[0]=r[a++],T[1]=r[a++],Di(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var p1=Math.sqrt,Kh=Math.sin,Xh=Math.cos,vf=Math.PI;function nR(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function cS(e,t){return(e[0]*t[0]+e[1]*t[1])/(nR(e)*nR(t))}function iR(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(cS(e,t))}function oR(e,t,r,n,i,o,a,s,l,c,d){var p=l*(vf/180),h=Xh(p)*(e-r)/2+Kh(p)*(t-n)/2,v=-1*Kh(p)*(e-r)/2+Xh(p)*(t-n)/2,g=h*h/(a*a)+v*v/(s*s);g>1&&(a*=p1(g),s*=p1(g));var x=(i===o?-1:1)*p1((a*a*(s*s)-a*a*(v*v)-s*s*(h*h))/(a*a*(v*v)+s*s*(h*h)))||0,y=x*a*v/s,S=x*-s*h/a,w=(e+r)/2+Xh(p)*y-Kh(p)*S,b=(t+n)/2+Kh(p)*y+Xh(p)*S,C=iR([1,0],[(h-y)/a,(v-S)/s]),T=[(h-y)/a,(v-S)/s],P=[(-1*h-y)/a,(-1*v-S)/s],E=iR(T,P);if(cS(T,P)<=-1&&(E=vf),cS(T,P)>=1&&(E=0),E<0){var A=Math.round(E/vf*1e6)/1e6;E=vf*2+A%2*vf}d.addData(c,w,b,a,s,C,E,p,o)}var WX=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HX=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VX(e){var t=new Nl;if(!e)return t;var r=0,n=0,i=r,o=n,a,s=Nl.CMD,l=e.match(WX);if(!l)return t;for(var c=0;c<l.length;c++){for(var d=l[c],p=d.charAt(0),h=void 0,v=d.match(HX)||[],g=v.length,x=0;x<g;x++)v[x]=parseFloat(v[x]);for(var y=0;y<g;){var S=void 0,w=void 0,b=void 0,C=void 0,T=void 0,P=void 0,E=void 0,A=r,O=n,R=void 0,L=void 0;switch(p){case"l":r+=v[y++],n+=v[y++],h=s.L,t.addData(h,r,n);break;case"L":r=v[y++],n=v[y++],h=s.L,t.addData(h,r,n);break;case"m":r+=v[y++],n+=v[y++],h=s.M,t.addData(h,r,n),i=r,o=n,p="l";break;case"M":r=v[y++],n=v[y++],h=s.M,t.addData(h,r,n),i=r,o=n,p="L";break;case"h":r+=v[y++],h=s.L,t.addData(h,r,n);break;case"H":r=v[y++],h=s.L,t.addData(h,r,n);break;case"v":n+=v[y++],h=s.L,t.addData(h,r,n);break;case"V":n=v[y++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,v[y++],v[y++],v[y++],v[y++],v[y++],v[y++]),r=v[y-2],n=v[y-1];break;case"c":h=s.C,t.addData(h,v[y++]+r,v[y++]+n,v[y++]+r,v[y++]+n,v[y++]+r,v[y++]+n),r+=v[y-2],n+=v[y-1];break;case"S":S=r,w=n,R=t.len(),L=t.data,a===s.C&&(S+=r-L[R-4],w+=n-L[R-3]),h=s.C,A=v[y++],O=v[y++],r=v[y++],n=v[y++],t.addData(h,S,w,A,O,r,n);break;case"s":S=r,w=n,R=t.len(),L=t.data,a===s.C&&(S+=r-L[R-4],w+=n-L[R-3]),h=s.C,A=r+v[y++],O=n+v[y++],r+=v[y++],n+=v[y++],t.addData(h,S,w,A,O,r,n);break;case"Q":A=v[y++],O=v[y++],r=v[y++],n=v[y++],h=s.Q,t.addData(h,A,O,r,n);break;case"q":A=v[y++]+r,O=v[y++]+n,r+=v[y++],n+=v[y++],h=s.Q,t.addData(h,A,O,r,n);break;case"T":S=r,w=n,R=t.len(),L=t.data,a===s.Q&&(S+=r-L[R-4],w+=n-L[R-3]),r=v[y++],n=v[y++],h=s.Q,t.addData(h,S,w,r,n);break;case"t":S=r,w=n,R=t.len(),L=t.data,a===s.Q&&(S+=r-L[R-4],w+=n-L[R-3]),r+=v[y++],n+=v[y++],h=s.Q,t.addData(h,S,w,r,n);break;case"A":b=v[y++],C=v[y++],T=v[y++],P=v[y++],E=v[y++],A=r,O=n,r=v[y++],n=v[y++],h=s.A,oR(A,O,r,n,P,E,b,C,T,h,t);break;case"a":b=v[y++],C=v[y++],T=v[y++],P=v[y++],E=v[y++],A=r,O=n,r+=v[y++],n+=v[y++],h=s.A,oR(A,O,r,n,P,E,b,C,T,h,t);break}}(p==="z"||p==="Z")&&(h=s.Z,t.addData(h),r=i,n=o),a=h}return t.toStatic(),t}var hL=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Xt);function vL(e){return e.setData!=null}function gL(e,t){var r=VX(e),n=Ce({},t);return n.buildPath=function(i){if(vL(i)){i.setData(r.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;r.rebuildPath(o,1)}},n.applyTransform=function(i){jX(r,i),this.dirtyShape()},n}function UX(e,t){return new hL(gL(e,t))}function GX(e,t){var r=gL(e,t),n=function(i){Ae(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(hL);return n}function YX(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var o=e[i];r.push(o.getUpdatedPathProxy(!0))}var a=new Xt(t);return a.createPathProxy(),a.buildPath=function(s){if(vL(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var pn=function(e){Ae(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,o=i.indexOf(n);o>=0&&(i.splice(o,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Ut(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,o=i[n];if(r&&r!==this&&r.parent!==this&&r!==o){i[n]=r,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,o=Ut(i,r);return o<0?this:(i.splice(o,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var o=r[i];n&&o.removeSelfFromZr(n),o.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];r.call(n,a,o)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=r.call(n,o);o.isGroup&&!a&&o.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new $t(0,0,0,0),i=r||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),d=l.getLocalTransform(o);d?($t.applyTransform(n,c,d),a=a||n.clone(),a.union(n)):(a=a||c.clone(),a.union(c))}}return a||n},t}(cm);pn.prototype.type="group";var qX=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),vm=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qX},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Xt);vm.prototype.type="circle";var KX=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),_w=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new KX},t.prototype.buildPath=function(r,n){var i=.5522848,o=n.cx,a=n.cy,s=n.rx,l=n.ry,c=s*i,d=l*i;r.moveTo(o-s,a),r.bezierCurveTo(o-s,a-d,o-c,a-l,o,a-l),r.bezierCurveTo(o+c,a-l,o+s,a-d,o+s,a),r.bezierCurveTo(o+s,a+d,o+c,a+l,o,a+l),r.bezierCurveTo(o-c,a+l,o-s,a+d,o-s,a),r.closePath()},t}(Xt);_w.prototype.type="ellipse";var mL=Math.PI,h1=mL*2,Qs=Math.sin,bu=Math.cos,XX=Math.acos,on=Math.atan2,aR=Math.abs,nd=Math.sqrt,Ff=Math.max,mo=Math.min,Qi=1e-4;function QX(e,t,r,n,i,o,a,s){var l=r-e,c=n-t,d=a-i,p=s-o,h=p*l-d*c;if(!(h*h<Qi))return h=(d*(t-o)-p*(e-i))/h,[e+h*l,t+h*c]}function Qh(e,t,r,n,i,o,a){var s=e-r,l=t-n,c=(a?o:-o)/nd(s*s+l*l),d=c*l,p=-c*s,h=e+d,v=t+p,g=r+d,x=n+p,y=(h+g)/2,S=(v+x)/2,w=g-h,b=x-v,C=w*w+b*b,T=i-o,P=h*x-g*v,E=(b<0?-1:1)*nd(Ff(0,T*T*C-P*P)),A=(P*b-w*E)/C,O=(-P*w-b*E)/C,R=(P*b+w*E)/C,L=(-P*w+b*E)/C,N=A-y,B=O-S,F=R-y,z=L-S;return N*N+B*B>F*F+z*z&&(A=R,O=L),{cx:A,cy:O,x0:-d,y0:-p,x1:A*(i/T-1),y1:O*(i/T-1)}}function ZX(e){var t;if($e(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function JX(e,t){var r,n=Ff(t.r,0),i=Ff(t.r0||0,0),o=n>0,a=i>0;if(!(!o&&!a)){if(o||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var d=t.cx,p=t.cy,h=!!t.clockwise,v=aR(c-l),g=v>h1&&v%h1;if(g>Qi&&(v=g),!(n>Qi))e.moveTo(d,p);else if(v>h1-Qi)e.moveTo(d+n*bu(l),p+n*Qs(l)),e.arc(d,p,n,l,c,!h),i>Qi&&(e.moveTo(d+i*bu(c),p+i*Qs(c)),e.arc(d,p,i,c,l,h));else{var x=void 0,y=void 0,S=void 0,w=void 0,b=void 0,C=void 0,T=void 0,P=void 0,E=void 0,A=void 0,O=void 0,R=void 0,L=void 0,N=void 0,B=void 0,F=void 0,z=n*bu(l),j=n*Qs(l),X=i*bu(c),V=i*Qs(c),H=v>Qi;if(H){var G=t.cornerRadius;G&&(r=ZX(G),x=r[0],y=r[1],S=r[2],w=r[3]);var W=aR(n-i)/2;if(b=mo(W,S),C=mo(W,w),T=mo(W,x),P=mo(W,y),O=E=Ff(b,C),R=A=Ff(T,P),(E>Qi||A>Qi)&&(L=n*bu(c),N=n*Qs(c),B=i*bu(l),F=i*Qs(l),v<mL)){var Y=QX(z,j,B,F,L,N,X,V);if(Y){var te=z-Y[0],le=j-Y[1],ne=L-Y[0],Z=N-Y[1],ce=1/Qs(XX((te*ne+le*Z)/(nd(te*te+le*le)*nd(ne*ne+Z*Z)))/2),me=nd(Y[0]*Y[0]+Y[1]*Y[1]);O=mo(E,(n-me)/(ce+1)),R=mo(A,(i-me)/(ce-1))}}}if(!H)e.moveTo(d+z,p+j);else if(O>Qi){var de=mo(S,O),fe=mo(w,O),ge=Qh(B,F,z,j,n,de,h),pe=Qh(L,N,X,V,n,fe,h);e.moveTo(d+ge.cx+ge.x0,p+ge.cy+ge.y0),O<E&&de===fe?e.arc(d+ge.cx,p+ge.cy,O,on(ge.y0,ge.x0),on(pe.y0,pe.x0),!h):(de>0&&e.arc(d+ge.cx,p+ge.cy,de,on(ge.y0,ge.x0),on(ge.y1,ge.x1),!h),e.arc(d,p,n,on(ge.cy+ge.y1,ge.cx+ge.x1),on(pe.cy+pe.y1,pe.cx+pe.x1),!h),fe>0&&e.arc(d+pe.cx,p+pe.cy,fe,on(pe.y1,pe.x1),on(pe.y0,pe.x0),!h))}else e.moveTo(d+z,p+j),e.arc(d,p,n,l,c,!h);if(!(i>Qi)||!H)e.lineTo(d+X,p+V);else if(R>Qi){var de=mo(x,R),fe=mo(y,R),ge=Qh(X,V,L,N,i,-fe,h),pe=Qh(z,j,B,F,i,-de,h);e.lineTo(d+ge.cx+ge.x0,p+ge.cy+ge.y0),R<A&&de===fe?e.arc(d+ge.cx,p+ge.cy,R,on(ge.y0,ge.x0),on(pe.y0,pe.x0),!h):(fe>0&&e.arc(d+ge.cx,p+ge.cy,fe,on(ge.y0,ge.x0),on(ge.y1,ge.x1),!h),e.arc(d,p,i,on(ge.cy+ge.y1,ge.cx+ge.x1),on(pe.cy+pe.y1,pe.cx+pe.x1),h),de>0&&e.arc(d+pe.cx,p+pe.cy,de,on(pe.y1,pe.x1),on(pe.y0,pe.x0),!h))}else e.lineTo(d+X,p+V),e.arc(d,p,i,c,l,h)}e.closePath()}}}var eQ=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}(),gm=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eQ},t.prototype.buildPath=function(r,n){JX(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Xt);gm.prototype.type="sector";var tQ=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Cw=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tQ},t.prototype.buildPath=function(r,n){var i=n.cx,o=n.cy,a=Math.PI*2;r.moveTo(i+n.r,o),r.arc(i,o,n.r,0,a,!1),r.moveTo(i+n.r0,o),r.arc(i,o,n.r0,0,a,!0)},t}(Xt);Cw.prototype.type="ring";function rQ(e,t,r,n){var i=[],o=[],a=[],s=[],l,c,d,p;if(n){d=[1/0,1/0],p=[-1/0,-1/0];for(var h=0,v=e.length;h<v;h++)Du(d,d,e[h]),Lu(p,p,e[h]);Du(d,d,n[0]),Lu(p,p,n[1])}for(var h=0,v=e.length;h<v;h++){var g=e[h];if(r)l=e[h?h-1:v-1],c=e[(h+1)%v];else if(h===0||h===v-1){i.push(jq(e[h]));continue}else l=e[h-1],c=e[h+1];Wq(o,c,l),U0(o,o,t);var x=Yx(g,l),y=Yx(g,c),S=x+y;S!==0&&(x/=S,y/=S),U0(a,o,-x),U0(s,o,y);var w=pP([],g,a),b=pP([],g,s);n&&(Lu(w,w,d),Du(w,w,p),Lu(b,b,d),Du(b,b,p)),i.push(w),i.push(b)}return r&&i.push(i.shift()),i}function yL(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var o=rQ(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(r?a:a-1);s++){var l=o[s*2],c=o[s*2+1],d=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,p=i.length;s<p;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var nQ=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Tw=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new nQ},t.prototype.buildPath=function(r,n){yL(r,n,!0)},t}(Xt);Tw.prototype.type="polygon";var iQ=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),kw=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iQ},t.prototype.buildPath=function(r,n){yL(r,n,!1)},t}(Xt);kw.prototype.type="polyline";var oQ={},aQ=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),ps=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aQ},t.prototype.buildPath=function(r,n){var i,o,a,s;if(this.subPixelOptimize){var l=qD(oQ,n,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=n.x1,o=n.y1,a=n.x2,s=n.y2;var c=n.percent;c!==0&&(r.moveTo(i,o),c<1&&(a=i*(1-c)+a*c,s=o*(1-c)+s*c),r.lineTo(a,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Xt);ps.prototype.type="line";var In=[],sQ=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 sR(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?gP:qr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?gP:qr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?mP:Dn)(e.x1,e.cpx1,e.x2,t),(r?mP:Dn)(e.y1,e.cpy1,e.y2,t)]}var Pw=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sQ},t.prototype.buildPath=function(r,n){var i=n.x1,o=n.y1,a=n.x2,s=n.y2,l=n.cpx1,c=n.cpy1,d=n.cpx2,p=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,o),d==null||p==null?(h<1&&(og(i,l,a,h,In),l=In[1],a=In[2],og(o,c,s,h,In),c=In[1],s=In[2]),r.quadraticCurveTo(l,c,a,s)):(h<1&&(ig(i,l,d,a,h,In),l=In[1],d=In[2],a=In[3],ig(o,c,p,s,h,In),c=In[1],p=In[2],s=In[3]),r.bezierCurveTo(l,c,d,p,a,s)))},t.prototype.pointAt=function(r){return sR(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=sR(this.shape,r,!0);return Uq(n,n)},t}(Xt);Pw.prototype.type="bezier-curve";var lQ=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}(),mm=function(e){Ae(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lQ},t.prototype.buildPath=function(r,n){var i=n.cx,o=n.cy,a=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,c=n.clockwise,d=Math.cos(s),p=Math.sin(s);r.moveTo(d*a+i,p*a+o),r.arc(i,o,a,s,l,!c)},t}(Xt);mm.prototype.type="arc";var uQ=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],o=0;o<i.length;o++)i[o].buildPath(r,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Xt.prototype.getBoundingRect.call(this)},t}(Xt),xL=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),SL=function(e){Ae(t,e);function t(r,n,i,o,a,s){var l=e.call(this,a)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(xL),cQ=function(e){Ae(t,e);function t(r,n,i,o,a){var s=e.call(this,o)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t}(xL),Zs=[0,0],Js=[0,0],Zh=new Kt,Jh=new Kt,pg=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Kt;for(var n=0;n<2;n++)this._axes[n]=new Kt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),r)for(var c=0;c<4;c++)n[c].transform(r);Kt.sub(i[0],n[1],n[0]),Kt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Zh.set(1/0,1/0),Jh.set(0,0),!this._intersectCheckOneSide(this,t,Zh,Jh,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Zh,Jh,i,-1)&&(n=!1,i)||i||Kt.copy(r,n?Zh:Jh),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,o,a){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Zs),this._getProjMinMaxOnAxis(l,r._corners,Js),Zs[1]<Js[0]||Zs[0]>Js[1]){if(s=!1,o)return s;var d=Math.abs(Js[0]-Zs[1]),p=Math.abs(Zs[0]-Js[1]);Math.min(d,p)>i.len()&&(d<p?Kt.scale(i,c,-d*a):Kt.scale(i,c,p*a))}else if(n){var d=Math.abs(Js[0]-Zs[1]),p=Math.abs(Zs[0]-Js[1]);Math.min(d,p)<n.len()&&(d<p?Kt.scale(n,c,d*a):Kt.scale(n,c,-p*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],o=this._origin,a=r[0].dot(i)+o[t],s=a,l=a,c=1;c<r.length;c++){var d=r[c].dot(i)+o[t];s=Math.min(d,s),l=Math.max(d,l)}n[0]=s,n[1]=l},e}(),fQ=[],dQ=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new $t(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(fQ)),r.union(o)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),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(r,n))return!0}return!1},t}(lp),pQ=Nr();function hQ(e,t,r,n,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,d=void 0,p=void 0;n?(c=wt(n.duration,200),d=wt(n.easing,"cubicOut"),p=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),d=t.getShallow(l?"animationEasingUpdate":"animationEasing"),p=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(d=o.easing),o.delay!=null&&(p=o.delay)),dt(p)&&(p=p(r,i)),dt(c)&&(c=c(r));var h={duration:c||0,delay:p,easing:d};return h}else return null}function Rw(e,t,r,n,i,o,a){var s=!1,l;dt(i)?(a=o,o=i,i=null):Qe(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 d=hQ(e,n,i,c?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(d&&d.duration>0){var p=d.duration,h=d.delay,v=d.easing,g={duration:p,delay:h||0,easing:v,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(r,g):t.animateTo(r,g)}else t.stopAnimation(),!s&&t.attr(r),a&&a(1),o&&o()}function hs(e,t,r,n,i,o){Rw("update",e,t,r,n,i,o)}function fp(e,t,r,n,i,o){Rw("enter",e,t,r,n,i,o)}function id(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function hg(e,t,r,n,i,o){id(e)||Rw("leave",e,t,r,n,i,o)}function lR(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),hg(e,{style:{opacity:0}},t,r,n)}function vQ(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||lR(i,t,r,n)}):lR(e,t,r,n)}function gQ(e){pQ(e).oldStyle=e.style}var vg=Math.max,gg=Math.min,fS={};function mQ(e){return Xt.extend(e)}var yQ=GX;function xQ(e,t){return yQ(e,t)}function so(e,t){fS[e]=t}function SQ(e){if(fS.hasOwnProperty(e))return fS[e]}function Mw(e,t,r,n){var i=UX(e,t);return r&&(n==="center"&&(r=wL(r,i.getBoundingRect())),_L(i,r)),i}function bL(e,t,r){var n=new Ss({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var o={width:i.width,height:i.height};n.setStyle(wL(t,o))}}});return n}function wL(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-n/2,y:a-i/2,width:n,height:i}}var bQ=YX;function _L(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Id(e,t){return qD(e,e,{lineWidth:t}),e}function wQ(e){return KD(e.shape,e.shape,e.style),e}var _Q=yl;function CQ(e,t){for(var r=uw([]);e&&e!==t;)Wu(r,e.getLocalTransform(),r),e=e.parent;return r}function Ew(e,t,r){return t&&!Wn(t)&&(t=hw.getLocalTransform(t)),r&&(t=fw([],t)),Di([],e,t)}function TQ(e,t,r){var n=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"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return o=Ew(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function uR(e){return!e.isGroup}function kQ(e){return e.shape!=null}function CL(e,t,r){if(!e||!t)return;function n(a){var s={};return a.traverse(function(l){uR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return kQ(a)&&(s.shape=Ce({},a.shape)),s}var o=n(e);t.traverse(function(a){if(uR(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),hs(a,l,r,jt(a).dataIndex)}}})}function PQ(e,t){return at(e,function(r){var n=r[0];n=vg(n,t.x),n=gg(n,t.x+t.width);var i=r[1];return i=vg(i,t.y),i=gg(i,t.y+t.height),[n,i]})}function RQ(e,t){var r=vg(e.x,t.x),n=gg(e.x+e.width,t.x+t.width),i=vg(e.y,t.y),o=gg(e.y+e.height,t.y+t.height);if(n>=r&&o>=i)return{x:r,y:i,width:n-r,height:o-i}}function Iw(e,t,r){var n=Ce({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Wt(i,r),new Ss(n)):Mw(e.replace("path://",""),n,r,"center")}function MQ(e,t,r,n,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(TL(e,t,r,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function TL(e,t,r,n,i,o,a,s){var l=r-e,c=n-t,d=a-i,p=s-o,h=v1(d,p,l,c);if(EQ(h))return!1;var v=e-i,g=t-o,x=v1(v,g,l,c)/h;if(x<0||x>1)return!1;var y=v1(v,g,d,p)/h;return!(y<0||y>1)}function v1(e,t,r,n){return e*n-r*t}function EQ(e){return e<=1e-6&&e>=-1e-6}function Aw(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ue(t)?{formatter:t}:t,o=r.mainType,a=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&K(lr(l),function(d){nc(s,d)||(s[d]=l[d],s.$vars.push(d))});var c=jt(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:n,option:Wt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function cR(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Dw(e,t){if(e)if($e(e))for(var r=0;r<e.length;r++)cR(e[r],t);else cR(e,t)}so("circle",vm);so("ellipse",_w);so("sector",gm);so("ring",Cw);so("polygon",Tw);so("polyline",kw);so("rect",Wr);so("line",ps);so("bezierCurve",Pw);so("arc",mm);const IQ=Object.freeze(Object.defineProperty({__proto__:null,Arc:mm,BezierCurve:Pw,BoundingRect:$t,Circle:vm,CompoundPath:uQ,Ellipse:_w,Group:pn,Image:Ss,IncrementalDisplayable:dQ,Line:ps,LinearGradient:SL,OrientedBoundingRect:pg,Path:Xt,Point:Kt,Polygon:Tw,Polyline:kw,RadialGradient:cQ,Rect:Wr,Ring:Cw,Sector:gm,Text:dn,applyTransform:Ew,clipPointsByRect:PQ,clipRectByRect:RQ,createIcon:Iw,extendPath:xQ,extendShape:mQ,getShapeClass:SQ,getTransform:CQ,groupTransition:CL,initProps:fp,isElementRemoved:id,lineLineIntersect:TL,linePolygonIntersect:MQ,makeImage:bL,makePath:Mw,mergePath:bQ,registerShape:so,removeElement:hg,removeElementWithFadeOut:vQ,resizePath:_L,setTooltipConfig:Aw,subPixelOptimize:_Q,subPixelOptimizeLine:Id,subPixelOptimizeRect:wQ,transformDirection:TQ,traverseElements:Dw,updateProps:hs},Symbol.toStringTag,{value:"Module"}));var ym={};function AQ(e,t){for(var r=0;r<Oo.length;r++){var n=Oo[r],i=t[n],o=e.ensureState(n);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 fR(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=dt(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},c=0;c<Oo.length;c++){var d=Oo[c],p=t[d];l[d]=wt(n?n.getFormattedLabel(i,d,null,o,p&&p.get("formatter")):null,s)}return l}function Lw(e,t,r,n){r=r||ym;for(var i=e instanceof dn,o=!1,a=0;a<YP.length;a++){var s=t[YP[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new dn,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=fR(r,t),d=t.normal,p=!!d.getShallow("show"),h=vs(d,n&&n.normal,r,!1,!i);h.text=c.normal,i||e.setTextConfig(dR(d,r,!1));for(var a=0;a<Oo.length;a++){var v=Oo[a],s=t[v];if(s){var g=l.ensureState(v),x=!!wt(s.getShallow("show"),p);if(x!==p&&(g.ignore=!x),g.style=vs(s,n&&n[v],r,!0,!i),g.style.text=c[v],!i){var y=e.ensureState(v);y.textConfig=dR(s,r,!0)}}}l.silent=!!d.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!p,l.useStyle(h),l.dirty(),r.enableTextSetter&&(kL(l).setLabelText=function(S){var w=fR(r,t,S);AQ(l,w)})}else l&&(l.ignore=!0);e.dirty()}function Ow(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Oo.length;n++){var i=Oo[n];r[i]=e.getModel([i,t])}return r}function vs(e,t,r,n,i){var o={};return DQ(o,e,r,n,i),t&&Ce(o,t),o}function dR(e,t,r){t=t||{};var n={},i,o=e.getShallow("rotate"),a=wt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),o!=null&&(o*=Math.PI/180,n.rotation=o),a!=null&&(n.distance=a),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function DQ(e,t,r,n,i){r=r||ym;var o=t.ecModel,a=o&&o.option.textStyle,s=LQ(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var d=t.getModel(["rich",c]);gR(l[c]={},d,a,r,n,i,!1,!0)}}l&&(e.rich=l);var p=t.get("overflow");p&&(e.overflow=p);var h=t.get("minMargin");h!=null&&(e.margin=h),gR(e,t,a,r,n,i,!0,!1)}function LQ(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ym).rich;if(r){t=t||{};for(var n=lr(r),i=0;i<n.length;i++){var o=n[i];t[o]=1}}e=e.parentModel}return t}var pR=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hR=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vR=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gR(e,t,r,n,i,o,a,s){r=!i&&r||ym;var l=n&&n.inheritColor,c=t.getShallow("color"),d=t.getShallow("textBorderColor"),p=wt(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(d==="inherit"||d==="auto")&&(l?d=l:d=null),o||(c=c||r.color,d=d||r.textBorderColor),c!=null&&(e.fill=c),d!=null&&(e.stroke=d);var h=wt(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var v=wt(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var g=wt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!i&&p==null&&!s&&(p=n&&n.defaultOpacity),p!=null&&(e.opacity=p),!i&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var x=0;x<pR.length;x++){var y=pR[x],S=wt(t.getShallow(y),r[y]);S!=null&&(e[y]=S)}for(var x=0;x<hR.length;x++){var y=hR[x],S=t.getShallow(y);S!=null&&(e[y]=S)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!a||!n.disableBox){for(var x=0;x<vR.length;x++){var y=vR[x],S=t.getShallow(y);S!=null&&(e[y]=S)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function OQ(e,t){var r=t&&t.getModel("textStyle");return _o([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var kL=Nr(),NQ=["textStyle","color"],g1=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],m1=new dn,$Q=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(NQ):null)},e.prototype.getFont=function(){return OQ({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 r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<g1.length;n++)r[g1[n]]=this.getShallow(g1[n]);return m1.useStyle(r),m1.update(),m1.getBoundingRect()},e}(),PL=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],BQ=Rd(PL),FQ=function(){function e(){}return e.prototype.getLineStyle=function(t){return BQ(this,t)},e}(),RL=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],zQ=Rd(RL),jQ=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return zQ(this,t,r)},e}(),xr=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Nt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,o=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,r,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(Pt(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(!ut.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();lw(xr);wq(xr);Bo(xr,FQ);Bo(xr,jQ);Bo(xr,Pq);Bo(xr,$Q);function gf(e){return e==null?0:e.length||1}function mR(e){return e}var WQ=function(){function e(t,r,n,i,o,a){this._old=t,this._new=r,this._oldKeyGetter=n||mR,this._newKeyGetter=i||mR,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,r=this._new,n={},i=new Array(t.length),o=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=n[s],c=gf(l);if(c>1){var d=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(d,a)}else c===1?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=n[l],d=i[l],p=gf(c),h=gf(d);if(p>1&&h===1)this._updateManyToOne&&this._updateManyToOne(d,c),i[l]=null;else if(p===1&&h>1)this._updateOneToMany&&this._updateOneToMany(d,c),i[l]=null;else if(p===1&&h===1)this._update&&this._update(d,c),i[l]=null;else if(p>1&&h>1)this._updateManyToMany&&this._updateManyToMany(d,c),i[l]=null;else if(p>1)for(var v=0;v<p;v++)this._remove&&this._remove(c[v]);else this._remove&&this._remove(c)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],o=r[i],a=gf(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);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),!!r){var l=r[s],c=gf(l);c===0?(r[s]=a,o&&n.push(s)):c===1?r[s]=[l,a]:l.push(a)}}},e}(),ML=yt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Fi="original",Vn="arrayRows",zo="objectRows",ma="keyedColumns",as="typedArray",EL="unknown",la="column",pc="row",Zn={Must:1,Might:2,Not:3},IL=Nr();function HQ(e){IL(e).datasetMap=yt()}function VQ(e,t,r){var n={},i=AL(t);if(!i||!e)return n;var o=[],a=[],s=t.ecModel,l=IL(s).datasetMap,c=i.uid+"_"+r.seriesLayoutBy,d,p;e=e.slice(),K(e,function(x,y){var S=Qe(x)?x:e[y]={name:x};S.type==="ordinal"&&d==null&&(d=y,p=g(S)),n[S.name]=[]});var h=l.get(c)||l.set(c,{categoryWayDim:p,valueWayDim:0});K(e,function(x,y){var S=x.name,w=g(x);if(d==null){var b=h.valueWayDim;v(n[S],b,w),v(a,b,w),h.valueWayDim+=w}else if(d===y)v(n[S],0,w),v(o,0,w);else{var b=h.categoryWayDim;v(n[S],b,w),v(a,b,w),h.categoryWayDim+=w}});function v(x,y,S){for(var w=0;w<S;w++)x.push(y+w)}function g(x){var y=x.dimsDef;return y?y.length:1}return o.length&&(n.itemName=o),a.length&&(n.seriesName=a),n}function AL(e){var t=e.get("data",!0);if(!t)return cp(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},to).models[0]}function UQ(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:cp(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},to).models}function DL(e,t){return GQ(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function GQ(e,t,r,n,i,o){var a,s=5;if(Hn(e))return Zn.Not;var l,c;if(n){var d=n[o];Qe(d)?(l=d.name,c=d.type):Ue(d)&&(l=d)}if(c!=null)return c==="ordinal"?Zn.Must:Zn.Not;if(t===Vn){var p=e;if(r===pc){for(var h=p[o],v=0;v<(h||[]).length&&v<s;v++)if((a=C(h[i+v]))!=null)return a}else for(var v=0;v<p.length&&v<s;v++){var g=p[i+v];if(g&&(a=C(g[o]))!=null)return a}}else if(t===zo){var x=e;if(!l)return Zn.Not;for(var v=0;v<x.length&&v<s;v++){var y=x[v];if(y&&(a=C(y[l]))!=null)return a}}else if(t===ma){var S=e;if(!l)return Zn.Not;var h=S[l];if(!h||Hn(h))return Zn.Not;for(var v=0;v<h.length&&v<s;v++)if((a=C(h[v]))!=null)return a}else if(t===Fi)for(var w=e,v=0;v<w.length&&v<s;v++){var y=w[v],b=up(y);if(!$e(b))return Zn.Not;if((a=C(b[o]))!=null)return a}function C(T){var P=Ue(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return P?Zn.Might:Zn.Not;if(P&&T!=="-")return Zn.Must}return Zn.Not}var xm=function(){function e(t){this.data=t.data||(t.sourceFormat===ma?{}:[]),this.sourceFormat=t.sourceFormat||EL,this.seriesLayoutBy=t.seriesLayoutBy||la,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&DL(this,n)===Zn.Must&&(i.type="ordinal")}}return e}();function Nw(e){return e instanceof xm}function dS(e,t,r){r=r||OL(e);var n=t.seriesLayoutBy,i=qQ(e,r,n,t.sourceHeader,t.dimensions),o=new xm({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Pt(t)});return o}function LL(e){return new xm({data:e,sourceFormat:Hn(e)?as:Fi})}function YQ(e){return new xm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Pt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function OL(e){var t=EL;if(Hn(e))t=as;else if($e(e)){e.length===0&&(t=Vn);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if($e(i)||Hn(i)){t=Vn;break}else if(Qe(i)){t=zo;break}}}}else if(Qe(e)){for(var o in e)if(nc(e,o)&&Wn(e[o])){t=ma;break}}return t}function qQ(e,t,r,n,i){var o,a;if(!e)return{dimensionsDefine:yR(i),startIndex:a,dimensionsDetectedCount:o};if(t===Vn){var s=e;n==="auto"||n==null?xR(function(c){c!=null&&c!=="-"&&(Ue(c)?a==null&&(a=1):a=0)},r,s,10):a=ur(n)?n:n?1:0,!i&&a===1&&(i=[],xR(function(c,d){i[d]=c!=null?c+"":""},r,s,1/0)),o=i?i.length:r===pc?s.length:s[0]?s[0].length:null}else if(t===zo)i||(i=KQ(e));else if(t===ma)i||(i=[],K(e,function(c,d){i.push(d)}));else if(t===Fi){var l=up(e[0]);o=$e(l)&&l.length||1}return{startIndex:a,dimensionsDefine:yR(i),dimensionsDetectedCount:o}}function KQ(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return lr(r)}function yR(e){if(e){var t=yt();return at(e,function(r,n){r=Qe(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.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 xR(e,t,r,n){if(t===pc)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var o=r[0]||[],i=0;i<o.length&&i<n;i++)e(o[i],i)}function NL(e){var t=e.sourceFormat;return t===zo||t===ma}var el,tl,rl,SR,bR,$L=function(){function e(t,r){var n=Nw(t)?t:LL(t);this._source=n;var i=this._data=n.data;n.sourceFormat===as&&(this._offset=0,this._dimSize=r,this._data=i),bR(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},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;bR=function(a,s,l){var c=l.sourceFormat,d=l.seriesLayoutBy,p=l.startIndex,h=l.dimensionsDefine,v=SR[$w(c,d)];if(Ce(a,v),c===as)a.getItem=r,a.count=i,a.fillStorage=n;else{var g=BL(c,d);a.getItem=dr(g,null,s,p,h);var x=FL(c,d);a.count=dr(x,null,s,p,h)}};var r=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,d=c*a,p=0;p<c;p++)s[p]=l[d+p];return s},n=function(a,s,l,c){for(var d=this._data,p=this._dimSize,h=0;h<p;h++){for(var v=c[h],g=v[0]==null?1/0:v[0],x=v[1]==null?-1/0:v[1],y=s-a,S=l[h],w=0;w<y;w++){var b=d[w*p+h];S[a+w]=b,b<g&&(g=b),b>x&&(x=b)}v[0]=g,v[1]=x}},i=function(){return this._data?this._data.length/this._dimSize:0};SR=(t={},t[Vn+"_"+la]={pure:!0,appendData:o},t[Vn+"_"+pc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[zo]={pure:!0,appendData:o},t[ma]={pure:!0,appendData:function(a){var s=this._data;K(a,function(l,c){for(var d=s[c]||(s[c]=[]),p=0;p<(l||[]).length;p++)d.push(l[p])})}},t[Fi]={appendData:o},t[as]={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}(),wR=function(e,t,r,n){return e[n]},XQ=(el={},el[Vn+"_"+la]=function(e,t,r,n){return e[n+t]},el[Vn+"_"+pc]=function(e,t,r,n,i){n+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},el[zo]=wR,el[ma]=function(e,t,r,n,i){for(var o=i||[],a=0;a<r.length;a++){var s=r[a].name,l=e[s];o[a]=l?l[n]:null}return o},el[Fi]=wR,el);function BL(e,t){var r=XQ[$w(e,t)];return r}var _R=function(e,t,r){return e.length},QQ=(tl={},tl[Vn+"_"+la]=function(e,t,r){return Math.max(0,e.length-t)},tl[Vn+"_"+pc]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},tl[zo]=_R,tl[ma]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},tl[Fi]=_R,tl);function FL(e,t){var r=QQ[$w(e,t)];return r}var y1=function(e,t,r){return e[t]},ZQ=(rl={},rl[Vn]=y1,rl[zo]=function(e,t,r){return e[r]},rl[ma]=y1,rl[Fi]=function(e,t,r){var n=up(e);return n instanceof Array?n[t]:n},rl[as]=y1,rl);function zL(e){var t=ZQ[e];return t}function $w(e,t){return e===Vn?e+"_"+t:e}function ic(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(r!=null){var a=e.getDimensionIndex(r),s=i.getDimensionProperty(a);return zL(o)(n,a,s)}else{var l=n;return o===Fi&&(l=up(n)),l}}}}var JQ=function(){function e(t,r){this._encode=t,this._schema=r}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 eZ(e,t){var r={},n=r.encode={},i=yt(),o=[],a=[],s={};K(e.dimensions,function(h){var v=e.getDimensionInfo(h),g=v.coordDim;if(g){var x=v.coordDimIndex;x1(n,g)[x]=h,v.isExtraCoord||(i.set(g,1),rZ(v.type)&&(o[0]=h),x1(s,g)[x]=e.getDimensionIndex(v.name)),v.defaultTooltip&&a.push(h)}ML.each(function(y,S){var w=x1(n,S),b=v.otherDims[S];b!=null&&b!==!1&&(w[b]=v.name)})});var l=[],c={};i.each(function(h,v){var g=n[v];c[v]=g[0],l=l.concat(g)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=at(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=c;var d=n.label;d&&d.length&&(o=d.slice());var p=n.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,r.userOutput=new JQ(s,t),r}function x1(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function tZ(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function rZ(e){return!(e==="ordinal"||e==="time")}var Dv=function(){function e(t){this.otherDims={},t!=null&&Ce(this,t)}return e}();function Lv(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ur(e)&&e!=null&&e!=="-"&&(e=+ha(e)),e==null||e===""?NaN:Number(e))}yt({number:function(e){return parseFloat(e)},time:function(e){return+ha(e)},trim:function(e){return Ue(e)?_o(e):e}});var nZ=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ur(t)?t:cg(t),i=ur(r)?r:cg(r),o=isNaN(n),a=isNaN(i);if(o&&(n=this._incomparable),a&&(i=this._incomparable),o&&a){var s=Ue(t),l=Ue(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Sm="undefined",iZ=typeof Uint32Array===Sm?Array:Uint32Array,oZ=typeof Uint16Array===Sm?Array:Uint16Array,jL=typeof Int32Array===Sm?Array:Int32Array,CR=typeof Float64Array===Sm?Array:Float64Array,WL={float:CR,int:jL,ordinal:Array,number:Array,time:CR},S1;function mf(e){return e>65535?iZ:oZ}function wu(){return[1/0,-1/0]}function aZ(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function TR(e,t,r,n,i){var o=WL[r||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==n){for(var l=new o(n),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(n)}var pS=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=yt()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=S1[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],NL(i),this._dimensions=at(r,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,r){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(o!=null){if(i[o].type===r)return o}else o=i.length;return i[o]={type:r},n.set(t,o),this._chunks[o]=new WL[r||"float"](this._rawCount),this._rawExtent[o]=wu(),o},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=n.length;a===0&&(o[t]=wu());for(var l=o[t],c=a;c<s;c++){var d=n[c]=r.parseAndCollect(n[c]);isNaN(d)||(l[0]=Math.min(d,l[0]),l[1]=Math.max(d,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),c=0;c<o;c++){var d=i[c];TR(n,c,d.type,l,!0)}for(var p=[],h=s;h<l;h++)for(var v=h-s,g=0;g<o;g++){var d=i[g],x=S1.arrayRows.call(this,t[v]||p,d.property,v,g);n[g][h]=x;var y=a[g];x<y[0]&&(y[0]=x),x>y[1]&&(y[1]=x)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=at(a,function(w){return w.property}),d=0;d<s;d++){var p=a[d];l[d]||(l[d]=wu()),TR(o,d,p.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,o,l);else for(var h=[],v=t;v<r;v++){h=i.getItem(v,h);for(var g=0;g<s;g++){var x=o[g],y=this._dimValueGetter(h,c[g],v,g);x[v]=y;var S=l[g];y<S[0]&&(S[0]=y),y>S[1]&&(S[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=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++)n.push(this.get(i[o],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(o){isNaN(o)||r.push(o)});var n=r.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(r[a]<t)i=a+1;else if(r[a]>t)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,o=i[t],a=[];if(!o)return a;n==null&&(n=1/0);for(var s=1/0,l=-1,c=0,d=0,p=this.count();d<p;d++){var h=this.getRawIndex(d),v=r-o[h],g=Math.abs(v);g<=n&&((g<s||g===s&&v>=0&&l<0)&&(s=g,l=v,c=0),v===l&&(a[c++]=d))}return a.length=c,a},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var o=0;o<i;o++)t[o]=r[o]}else t=new n(r.buffer,0,i)}else{var n=mf(this._rawCount);t=new n(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=mf(n._rawCount),a=new o(i),s=[],l=t.length,c=0,d=t[0],p=n._chunks,h=0;h<i;h++){var v=void 0,g=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var x=p[d][g];v=r(x,h)}else{for(var y=0;y<l;y++)s[y]=p[t[y]][g];s[y]=h,v=r.apply(null,s)}v&&(a[c++]=g)}return c<i&&(n._indices=a),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=lr(t),o=i.length;if(!o)return this;var a=r.count(),s=mf(r._rawCount),l=new s(a),c=0,d=i[0],p=t[d][0],h=t[d][1],v=r._chunks,g=!1;if(!r._indices){var x=0;if(o===1){for(var y=v[i[0]],S=0;S<n;S++){var w=y[S];(w>=p&&w<=h||isNaN(w))&&(l[c++]=x),x++}g=!0}else if(o===2){for(var y=v[i[0]],b=v[i[1]],C=t[i[1]][0],T=t[i[1]][1],S=0;S<n;S++){var w=y[S],P=b[S];(w>=p&&w<=h||isNaN(w))&&(P>=C&&P<=T||isNaN(P))&&(l[c++]=x),x++}g=!0}}if(!g)if(o===1)for(var S=0;S<a;S++){var E=r.getRawIndex(S),w=v[i[0]][E];(w>=p&&w<=h||isNaN(w))&&(l[c++]=E)}else for(var S=0;S<a;S++){for(var A=!0,E=r.getRawIndex(S),O=0;O<o;O++){var R=i[O],w=v[R][E];(w<t[R][0]||w>t[R][1])&&(A=!1)}A&&(l[c++]=r.getRawIndex(S))}return c<a&&(r._indices=l),r._count=c,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,o=[],a=r.length,s=t.count(),l=[],c=t._rawExtent,d=0;d<r.length;d++)c[r[d]]=wu();for(var p=0;p<s;p++){for(var h=t.getRawIndex(p),v=0;v<a;v++)l[v]=i[r[v]][h];l[a]=p;var g=n&&n.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var d=0;d<g.length;d++){var x=r[d],y=g[d],S=c[x],w=i[x];w&&(w[h]=y),y<S[0]&&(S[0]=y),y>S[1]&&(S[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/r),c=this.getRawIndex(0),d,p,h,v=new(mf(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));v[s++]=c;for(var g=1;g<a-1;g+=l){for(var x=Math.min(g+l,a-1),y=Math.min(g+l*2,a),S=(y+x)/2,w=0,b=x;b<y;b++){var C=this.getRawIndex(b),T=o[C];isNaN(T)||(w+=T)}w/=y-x;var P=g,E=Math.min(g+l,a),A=g-1,O=o[c];d=-1,h=P;for(var R=-1,L=0,b=P;b<E;b++){var C=this.getRawIndex(b),T=o[C];if(isNaN(T)){L++,R<0&&(R=C);continue}p=Math.abs((A-S)*(T-O)-(A-b)*(w-O)),p>d&&(d=p,h=C)}L>0&&L<E-P&&(v[s++]=Math.min(R,h),h=Math.max(R,h)),v[s++]=h,c=h}return v[s++]=this.getRawIndex(a-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/r),c=a[t],d=this.count(),p=o._rawExtent[t]=wu(),h=new(mf(this._rawCount))(Math.ceil(d/l)),v=0,g=0;g<d;g+=l){l>d-g&&(l=d-g,s.length=l);for(var x=0;x<l;x++){var y=this.getRawIndex(g+x);s[x]=c[y]}var S=n(s),w=this.getRawIndex(Math.min(g+i(s,S)||0,d-1));c[w]=S,S<p[0]&&(p[0]=S),S>p[1]&&(p[1]=S),h[v++]=w}return o._count=v,o._indices=h,o._updateGetRawIdx(),o},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(n){case 0:r(o);break;case 1:r(i[t[0]][s],o);break;case 2:r(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,c=[];l<n;l++)c[l]=i[t[l]][s];c[l]=o,r.apply(null,c)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=wu();if(!r)return n;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=n;for(var s=a[0],l=a[1],c=0;c<i;c++){var d=this.getRawIndex(c),p=r[d];p<s&&(s=p),p>l&&(l=p)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,o=t&&fc(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)n._chunks[a]=o[a]?aZ(i[a]):i[a];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Pt(this._extent),t._rawExtent=Pt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}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(r,n,i,o){return Lv(r[o],this._dimensions[o])}S1={arrayRows:t,objectRows:function(r,n,i,o){return Lv(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,i,o){var a=r&&(r.value==null?r:r.value);return Lv(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(r,n,i,o){return r[o]}}}(),e}(),sZ=Nr(),lZ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},HL=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=GL(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return wt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=NL(this.source),n=!YL(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,d=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===a)l=r?p.name:null,c=p.type,d=p.ordinalMeta,s++;else{var h=this.getSourceDimension(a);h&&(l=r?h.name:null,c=h.type)}o.push({property:l,type:c,ordinalMeta:d}),r&&l!=null&&(!p||!p.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=lZ[c]||"f",d&&(i+=d.uid),i+="$"}var v=this.source,g=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:o,hash:g}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(i=o.name),n++;else{var a=this.getSourceDimension(r);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 VL(e){return e instanceof HL}function UL(e){for(var t=yt(),r=0;r<(e||[]).length;r++){var n=e[r],i=Qe(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function GL(e){var t=sZ(e);return t.dimNameMap||(t.dimNameMap=UL(e.dimensionsDefine))}function YL(e){return e>30}var yf=Qe,Wa=at,uZ=typeof Int32Array>"u"?Array:Int32Array,cZ="e\0\0",kR=-1,fZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dZ=["_approximateExtent"],PR,ev,xf,Sf,b1,tv,w1,pZ=function(){function e(t,r){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;VL(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},a=[],s={},l=!1,c={},d=0;d<n.length;d++){var p=n[d],h=Ue(p)?new Dv({name:p}):p instanceof Dv?p:new Dv(p),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var g=h.otherDims=h.otherDims||{};a.push(v),o[v]=h,c[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),g.itemName===0&&(this._nameDimIdx=d),g.itemId===0&&(this._idDimIdx=d),i&&(h.storeDimIndex=d)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var x=this._dimIdxToName=yt();K(a,function(y){x.set(o[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ur(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,o;if(t instanceof pS&&(o=t),!o){var a=this.dimensions,s=Nw(t)||Wn(t)?new $L(t,a.length):t;o=new pS;var l=Wa(a,function(c){return{type:i._dimInfos[c].type,property:c}});o.initData(s,l,n)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=eZ(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,o=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=r[l],a&&w1(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==as&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Fi;if(l&&!i.pure)for(var c=[],d=t;d<r;d++){var p=i.getItem(d,c);if(!this.hasItemOption&&iX(p)&&(this.hasItemOption=!0),p){var h=p.name;o[d]==null&&h!=null&&(o[d]=Io(h,null));var v=p.id;a[d]==null&&v!=null&&(a[d]=Io(v,null))}}if(this._shouldMakeIdFromName())for(var d=t;d<r;d++)w1(this,d);PR(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){yf(t)?Ce(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=xf(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return ev(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},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,r){var n=this,i=this._store;return $e(t)?i.getValues(Wa(t,function(o){return n._getStoreDimIndex(o)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;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,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?kR:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){dt(t)&&(n=r,r=t,t=[]);var i=n||this,o=Wa(Sf(t),this._getStoreDimIndex,this);this._store.each(o,i?dr(r,i):r)},e.prototype.filterSelf=function(t,r,n){dt(t)&&(n=r,r=t,t=[]);var i=n||this,o=Wa(Sf(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?dr(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=lr(t);return K(i,function(o){var a=r._getStoreDimIndex(o);n[a]=t[o]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){dt(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var o=n||i||this,a=Wa(Sf(t),this._getStoreDimIndex,this),s=tv(this);return s._store=this._store.map(a,o?dr(r,o):r),s},e.prototype.modify=function(t,r,n,i){var o=n||i||this,a=Wa(Sf(t),this._getStoreDimIndex,this);this._store.modify(a,o?dr(r,o):r)},e.prototype.downSample=function(t,r,n,i){var o=tv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),o},e.prototype.lttbDownSample=function(t,r){var n=tv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new xr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new WQ(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ev(t,n)},function(n){return ev(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},yf(t)?Ce(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[r];return o==null&&(o=this.getVisual(r),$e(o)?o=o.slice():yf(o)&&(o=Ce({},o)),i[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,yf(r)?Ce(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){yf(t)?Ce(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Ce(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;yX(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){K(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Wa(this.dimensions,this._getDimInfo,this),this.hostModel)),b1(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];dt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(sw(arguments)))})},e.internalField=function(){PR=function(t){var r=t._invertedIndicesMap;K(r,function(n,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){n=r[i]=new uZ(a.categories.length);for(var l=0;l<n.length;l++)n[l]=kR;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},xf=function(t,r,n){return Io(t._getCategory(r,n),null)},ev=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=xf(t,t._idDimIdx,r)),n==null&&(n=cZ+r),n},Sf=function(t){return $e(t)||(t=t!=null?[t]:[]),t},tv=function(t){var r=new e(t._schema?t._schema:Wa(t.dimensions,t._getDimInfo,t),t.hostModel);return b1(r,t),r},b1=function(t,r){K(fZ.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,K(dZ,function(n){t[n]=Pt(r[n])}),t._calculationInfo=Ce({},r._calculationInfo)},w1=function(t,r){var n=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=n[r],l=i[r];if(s==null&&o!=null&&(n[r]=s=xf(t,o,r)),l==null&&a!=null&&(i[r]=l=xf(t,a,r)),l==null&&s!=null){var c=t._nameRepeatCount,d=c[s]=(c[s]||0)+1;l=s,d>1&&(l+="__ec__"+d),i[r]=l}}}(),e}();function hZ(e,t){Nw(e)||(e=LL(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=yt(),o=[],a=gZ(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&YL(a),l=n===e.dimensionsDefine,c=l?GL(e):UL(n),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(e,a));for(var p=yt(d),h=new jL(a),v=0;v<h.length;v++)h[v]=-1;function g(O){var R=h[O];if(R<0){var L=n[O],N=Qe(L)?L:{name:L},B=new Dv,F=N.name;F!=null&&c.get(F)!=null&&(B.name=B.displayName=F),N.type!=null&&(B.type=N.type),N.displayName!=null&&(B.displayName=N.displayName);var z=o.length;return h[O]=z,B.storeDimIndex=O,o.push(B),B}return o[R]}if(!s)for(var v=0;v<a;v++)g(v);p.each(function(O,R){var L=_n(O).slice();if(L.length===1&&!Ue(L[0])&&L[0]<0){p.set(R,!1);return}var N=p.set(R,[]);K(L,function(B,F){var z=Ue(B)?c.get(B):B;z!=null&&z<a&&(N[F]=z,y(g(z),R,F))})});var x=0;K(r,function(O){var R,L,N,B;if(Ue(O))R=O,B={};else{B=O,R=B.name;var F=B.ordinalMeta;B.ordinalMeta=null,B=Ce({},B),B.ordinalMeta=F,L=B.dimsDef,N=B.otherDims,B.name=B.coordDim=B.coordDimIndex=B.dimsDef=B.otherDims=null}var z=p.get(R);if(z!==!1){if(z=_n(z),!z.length)for(var j=0;j<(L&&L.length||1);j++){for(;x<a&&g(x).coordDim!=null;)x++;x<a&&z.push(x++)}K(z,function(X,V){var H=g(X);if(l&&B.type!=null&&(H.type=B.type),y(Wt(H,B),R,V),H.name==null&&L){var G=L[V];!Qe(G)&&(G={name:G}),H.name=H.displayName=G.name,H.defaultTooltip=G.defaultTooltip}N&&Wt(H.otherDims,N)})}});function y(O,R,L){ML.get(R)!=null?O.otherDims[R]=L:(O.coordDim=R,O.coordDimIndex=L,i.set(R,!0))}var S=t.generateCoord,w=t.generateCoordCount,b=w!=null;w=S?w||1:0;var C=S||"value";function T(O){O.name==null&&(O.name=O.coordDim)}if(s)K(o,function(O){T(O)}),o.sort(function(O,R){return O.storeDimIndex-R.storeDimIndex});else for(var P=0;P<a;P++){var E=g(P),A=E.coordDim;A==null&&(E.coordDim=mZ(C,i,b),E.coordDimIndex=0,(!S||w<=0)&&(E.isExtraCoord=!0),w--),T(E),E.type==null&&(DL(e,P)===Zn.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return vZ(o),new HL({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function vZ(e){for(var t=yt(),r=0;r<e.length;r++){var n=e[r],i=n.name,o=t.get(i)||0;o>0&&(n.name=i+(o-1)),o++,t.set(i,o)}}function gZ(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return K(t,function(o){var a;Qe(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function mZ(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var _1={},Bw=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];K(_1,function(i,o){var a=i.create(t,r);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){K(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){_1[t]=r},e.get=function(t){return _1[t]},e}(),yZ=function(){function e(t){this.coordSysDims=[],this.axisMap=yt(),this.categoryAxisMap=yt(),this.coordSysName=t}return e}();function xZ(e){var t=e.get("coordinateSystem"),r=new yZ(t),n=SZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var SZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",to).models[0],o=e.getReferringComponents("yAxis",to).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",o),_u(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),_u(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",to).models[0];t.coordSysDims=["single"],r.set("single",i),_u(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",to).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",a),_u(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),_u(a)&&(n.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();K(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),d=a[l];r.set(d,c),_u(c)&&(n.set(d,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function _u(e){return e.get("type")==="category"}function bZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,o,a,s;wZ(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,d,p,h;if(K(o,function(w,b){Ue(w)&&(o[b]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!c&&w.ordinalMeta&&(c=w),!d&&w.type!=="ordinal"&&w.type!=="time"&&(!i||i===w.coordDim)&&(d=w))}),d&&!n&&!c&&(n=!0),d){p="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var v=d.coordDim,g=d.type,x=0;K(o,function(w){w.coordDim===v&&x++});var y={name:p,coordDim:v,coordDimIndex:x,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},S={name:h,coordDim:h,coordDimIndex:x+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,g),S.storeDimIndex=s.ensureCalculationDimension(p,g)),a.appendCalculationDimension(y),a.appendCalculationDimension(S)):(o.push(y),o.push(S))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:p}}function wZ(e){return!VL(e.schema)}function Ad(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function _Z(e,t){return Ad(e,t)?e.getCalculationInfo("stackResultDimension"):t}function CZ(e,t){var r=e.get("coordinateSystem"),n=Bw.get(r),i;return t&&t.coordSysDims&&(i=at(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=tZ(l)}return a})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function TZ(e,t,r){var n,i;return r&&K(e,function(o,a){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function kZ(e,t,r){r=r||{};var n=t.getSourceManager(),i,o=!1;i=n.getSource(),o=i.sourceFormat===Fi;var a=xZ(t),s=CZ(t,a),l=r.useEncodeDefaulter,c=dt(l)?l:l?zr(VQ,s,t):null,d={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},p=hZ(i,d),h=TZ(p.dimensions,r.createInvertedIndices,a),v=o?null:n.getSharedDataStore(p),g=bZ(t,{schema:p,store:v}),x=new pZ(p,t);x.setCalculationInfo(g);var y=h!=null&&PZ(i)?function(S,w,b,C){return C===h?b:this.defaultDimValueGetter(S,w,b,C)}:null;return x.hasItemOption=!1,x.initData(o?i:v,null,y),x}function PZ(e){if(e.sourceFormat===Fi){var t=RZ(e.data||[]);return!$e(up(t))}}function RZ(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var MZ=Math.round(Math.random()*10);function bm(e){return[e||"",MZ++].join("_")}function EZ(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Co(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var o=Co(r).main;e.hasSubTypes(r)&&t[o]&&(i=t[o](n))}return i}}function IZ(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=r(a),d=c.graph,p=c.noEntryList,h={};for(K(o,function(w){h[w]=!0});p.length;){var v=p.pop(),g=d[v],x=!!h[v];x&&(s.call(l,v,g.originalDeps.slice()),delete h[v]),K(g.successor,x?S:y)}K(h,function(){var w="";throw new Error(w)});function y(w){d[w].entryCount--,d[w].entryCount===0&&p.push(w)}function S(w){h[w]=!0,y(w)}};function r(o){var a={},s=[];return K(o,function(l){var c=n(a,l),d=c.originalDeps=t(l),p=i(d,o);c.entryCount=p.length,c.entryCount===0&&s.push(l),K(p,function(h){Ut(c.predecessor,h)<0&&c.predecessor.push(h);var v=n(a,h);Ut(v.successor,h)<0&&v.successor.push(l)})}),{graph:a,noEntryList:s}}function n(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return K(o,function(l){Ut(a,l)>=0&&s.push(l)}),s}}function AZ(e,t){return Nt(Nt({},e,!0),t,!0)}var DZ=Math.log(2);function hS(e,t,r,n,i,o){var a=n+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/DZ);return e[r][l]}for(var c=n|1<<r,d=r+1;n&1<<d;)d++;for(var p=0,h=0,v=0;h<s;h++){var g=1<<h;g&i||(p+=(v%2?-1:1)*e[r][h]*hS(e,t-1,d,c,i|g,o),v++)}return o[a]=p,p}function RR(e,t){var r=[[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]]],n={},i=hS(r,8,0,0,0,n);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)*hS(r,7,a===0?1:0,1<<a,1<<s,n)/i*t[a];return function(l,c,d){var p=c*o[6]+d*o[7]+1;l[0]=(c*o[0]+d*o[1]+o[2])/p,l[1]=(c*o[3]+d*o[4]+o[5])/p}}}var MR="___zrEVENTSAVED",C1=[];function LZ(e,t,r,n,i){return vS(C1,t,n,i,!0)&&vS(e,r,C1[0],C1[1])}function vS(e,t,r,n,i){if(t.getBoundingClientRect&&ut.domSupported&&!qL(t)){var o=t[MR]||(t[MR]={}),a=OZ(t,o),s=NZ(a,o,i);if(s)return s(e,r,n),!0}return!1}function OZ(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["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",n[l]+":0",i[c]+":0",n[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),r.push(a)}return r}function NZ(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var d=e[c].getBoundingClientRect(),p=2*c,h=d.left,v=d.top;a.push(h,v),l=l&&o&&h===o[p]&&v===o[p+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=a,t[n]=r?RR(s,a):RR(a,s))}function qL(e){return e.nodeName.toUpperCase()==="CANVAS"}var $Z=/([&<>"'])/g,BZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ti(e){return e==null?"":(e+"").replace($Z,function(t,r){return BZ[r]})}const FZ={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:". "}}}},zZ={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 mg="ZH",Fw="EN",Uu=Fw,Ov={},zw={},KL=ut.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Uu).toUpperCase();return e.indexOf(mg)>-1?mg:Uu}():Uu;function XL(e,t){e=e.toUpperCase(),zw[e]=new xr(t),Ov[e]=t}function jZ(e){if(Ue(e)){var t=Ov[e.toUpperCase()]||{};return e===mg||e===Fw?Pt(t):Nt(Pt(t),Pt(Ov[Uu]),!1)}else return Nt(Pt(e),Pt(Ov[Uu]),!1)}function WZ(e){return zw[e]}function HZ(){return zw[Uu]}XL(Fw,FZ);XL(mg,zZ);var jw=1e3,Ww=jw*60,od=Ww*60,Ii=od*24,ER=Ii*365,zf={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}"},rv="{yyyy}-{MM}-{dd}",IR={year:"{yyyy}",month:"{yyyy}-{MM}",day:rv,hour:rv+" "+zf.hour,minute:rv+" "+zf.minute,second:rv+" "+zf.second,millisecond:zf.none},T1=["year","month","day","hour","minute","second","millisecond"],QL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ha(e,t){return e+="","0000".substr(0,t-e.length)+e}function Gu(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 VZ(e){return e===Gu(e)}function UZ(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wm(e,t,r,n){var i=ha(e),o=i[Hw(r)](),a=i[Yu(r)]()+1,s=Math.floor((a-1)/3)+1,l=i[_m(r)](),c=i["get"+(r?"UTC":"")+"Day"](),d=i[Dd(r)](),p=(d-1)%12+1,h=i[Cm(r)](),v=i[Tm(r)](),g=i[km(r)](),x=d>=12?"pm":"am",y=x.toUpperCase(),S=n instanceof xr?n:WZ(n||KL)||HZ(),w=S.getModel("time"),b=w.get("month"),C=w.get("monthAbbr"),T=w.get("dayOfWeek"),P=w.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,x+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Ha(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,C[a-1]).replace(/{MM}/g,Ha(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ha(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[c]).replace(/{ee}/g,P[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Ha(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,Ha(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Ha(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ha(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ha(g,3)).replace(/{S}/g,g+"")}function GZ(e,t,r,n,i){var o=null;if(Ue(r))o=r;else if(dt(r))o=r(e.value,t,{level:e.level});else{var a=Ce({},zf);if(e.level>0)for(var s=0;s<T1.length;++s)a[T1[s]]="{primary|"+a[T1[s]]+"}";var l=r?r.inherit===!1?r:Wt(r,a):a,c=ZL(e.value,i);if(l[c])o=l[c];else if(l.inherit){for(var d=QL.indexOf(c),s=d-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if($e(o)){var p=e.level==null?0:e.level>=0?e.level:o.length+e.level;p=Math.min(p,o.length-1),o=o[p]}}return wm(new Date(e.value),o,i,n)}function ZL(e,t){var r=ha(e),n=r[Yu(t)]()+1,i=r[_m(t)](),o=r[Dd(t)](),a=r[Cm(t)](),s=r[Tm(t)](),l=r[km(t)](),c=l===0,d=c&&s===0,p=d&&a===0,h=p&&o===0,v=h&&i===1,g=v&&n===1;return g?"year":v?"month":h?"day":p?"hour":d?"minute":c?"second":"millisecond"}function AR(e,t,r){var n=ur(e)?ha(e):e;switch(t=t||ZL(e,r),t){case"year":return n[Hw(r)]();case"half-year":return n[Yu(r)]()>=6?1:0;case"quarter":return Math.floor((n[Yu(r)]()+1)/4);case"month":return n[Yu(r)]();case"day":return n[_m(r)]();case"half-day":return n[Dd(r)]()/24;case"hour":return n[Dd(r)]();case"minute":return n[Cm(r)]();case"second":return n[Tm(r)]();case"millisecond":return n[km(r)]()}}function Hw(e){return e?"getUTCFullYear":"getFullYear"}function Yu(e){return e?"getUTCMonth":"getMonth"}function _m(e){return e?"getUTCDate":"getDate"}function Dd(e){return e?"getUTCHours":"getHours"}function Cm(e){return e?"getUTCMinutes":"getMinutes"}function Tm(e){return e?"getUTCSeconds":"getSeconds"}function km(e){return e?"getUTCMilliseconds":"getMilliseconds"}function YZ(e){return e?"setUTCFullYear":"setFullYear"}function JL(e){return e?"setUTCMonth":"setMonth"}function eO(e){return e?"setUTCDate":"setDate"}function tO(e){return e?"setUTCHours":"setHours"}function rO(e){return e?"setUTCMinutes":"setMinutes"}function nO(e){return e?"setUTCSeconds":"setSeconds"}function iO(e){return e?"setUTCMilliseconds":"setMilliseconds"}function oO(e){if(!rX(e))return Ue(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function aO(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Pm=CD;function gS(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(d){return d&&_o(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?ha(e):e;if(isNaN(+l)){if(s)return"-"}else return wm(l,n,r)}if(t==="ordinal")return Hx(e)?i(e):ur(e)&&o(e)?e+"":"-";var c=cg(e);return o(c)?oO(c):Hx(e)?i(e):typeof e=="boolean"?e+"":"-"}var DR=["a","b","c","d","e","f","g"],k1=function(e,t){return"{"+e+(t??"")+"}"};function sO(e,t,r){$e(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=DR[o];e=e.replace(k1(a),k1(a,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(k1(DR[l],s),r?ti(c):c)}return e}function qZ(e,t){var r=Ue(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var o=r.renderMode||"html";if(!n)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:'+ti(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ti(n)+";"+(t||"")+'"></span>';var a=r.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Bl(e,t){return t=t||"transparent",Ue(e)?e:Qe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function LR(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Nv=K,KZ=["left","right","top","bottom","width","height"],nv=[["width","left","right"],["height","top","bottom"]];function Vw(e,t,r,n,i){var o=0,a=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,c){var d=l.getBoundingRect(),p=t.childAt(c+1),h=p&&p.getBoundingRect(),v,g;if(e==="horizontal"){var x=d.width+(h?-h.x+d.x:0);v=o+x,v>n||l.newline?(o=0,v=x,a+=s+r,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(h?-h.y+d.y:0);g=a+y,g>i||l.newline?(o+=s+r,a=0,g=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=v+r:a=g+r)})}var ad=Vw;zr(Vw,"vertical");zr(Vw,"horizontal");function Ld(e,t,r){r=Pm(r||0);var n=t.width,i=t.height,o=bn(e.left,n),a=bn(e.top,i),s=bn(e.right,n),l=bn(e.bottom,i),c=bn(e.width,n),d=bn(e.height,i),p=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(c)&&(c=n-s-h-o),isNaN(d)&&(d=i-l-p-a),v!=null&&(isNaN(c)&&isNaN(d)&&(v>n/i?c=n*.8:d=i*.8),isNaN(c)&&(c=v*d),isNaN(d)&&(d=c/v)),isNaN(o)&&(o=n-s-c-h),isNaN(a)&&(a=i-l-d-p),e.left||e.right){case"center":o=n/2-c/2-r[3];break;case"right":o=n-c-h;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-d/2-r[0];break;case"bottom":a=i-d-p;break}o=o||0,a=a||0,isNaN(c)&&(c=n-h-o-(s||0)),isNaN(d)&&(d=i-p-a-(l||0));var g=new $t(o+r[3],a+r[0],c,d);return g.margin=r,g}function Od(e){var t=e.layoutMode||e.constructor.layoutMode;return Qe(t)?t:t?{type:t}:null}function oc(e,t,r){var n=r&&r.ignoreSize;!$e(n)&&(n=[n,n]);var i=a(nv[0],0),o=a(nv[1],1);c(nv[0],e,i),c(nv[1],e,o);function a(d,p){var h={},v=0,g={},x=0,y=2;if(Nv(d,function(b){g[b]=e[b]}),Nv(d,function(b){s(t,b)&&(h[b]=g[b]=t[b]),l(h,b)&&v++,l(g,b)&&x++}),n[p])return l(t,d[1])?g[d[2]]=null:l(t,d[2])&&(g[d[1]]=null),g;if(x===y||!v)return g;if(v>=y)return h;for(var S=0;S<d.length;S++){var w=d[S];if(!s(h,w)&&s(e,w)){h[w]=e[w];break}}return h}function s(d,p){return d.hasOwnProperty(p)}function l(d,p){return d[p]!=null&&d[p]!=="auto"}function c(d,p,h){Nv(d,function(v){p[v]=h[v]})}}function Rm(e){return XZ({},e)}function XZ(e,t){return t&&e&&Nv(KZ,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var QZ=Nr(),zt=function(e){Ae(t,e);function t(r,n,i){var o=e.call(this,r,n,i)||this;return o.uid=bm("ec_cpt_model"),o}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Od(this),o=i?Rm(r):{},a=n.getTheme();Nt(r,a.get(this.mainType)),Nt(r,this.getDefaultOption()),i&&oc(r,o,i)},t.prototype.mergeOption=function(r,n){Nt(this.option,r,!0);var i=Od(this);i&&oc(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!xq(r))return r.defaultOption;var n=QZ(this);if(!n.defaultOption){for(var i=[],o=r;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Nt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",o=r+"Id";return cp(this.ecModel,r,{index:this.get(i,!0),id:this.get(o,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(xr);MD(zt,xr);sm(zt);EZ(zt);IZ(zt,ZZ);function ZZ(e){var t=[];return K(zt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=at(t,function(r){return Co(r).main}),e!=="dataset"&&Ut(t,"dataset")<=0&&t.unshift("dataset"),t}var OR=Nr();Nr();var Uw=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=_n(this.get("color",!0)),o=this.get("colorLayer",!0);return eJ(this,OR,i,o,t,r,n)},e.prototype.clearColorPalette=function(){tJ(this,OR)},e}();function JZ(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function eJ(e,t,r,n,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 d=a==null||!n?r:JZ(n,a);if(d=d||r,!(!d||!d.length)){var p=d[l];return i&&(c[i]=p),s.paletteIdx=(l+1)%d.length,p}}function tJ(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var rJ=/\{@(.+?)\}/g,nJ=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),o=n.getRawIndex(t),a=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),c=l&&l[n.getItemVisual(t,"drawType")||"fill"],d=l&&l.stroke,p=this.mainType,h=p==="series",v=n.userOutput&&n.userOutput.get();return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:o,data:s,dataType:r,value:i,color:c,borderColor:d,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,o,a){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(a&&(l.value=a.interpolatedValue),i!=null&&$e(l.value)&&(l.value=l.value[i]),!o){var c=s.getItemModel(t);o=c.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(dt(o))return l.status=r,l.dimensionIndex=i,o(l);if(Ue(o)){var d=sO(o,l);return d.replace(rJ,function(p,h){var v=h.length,g=h;g.charAt(0)==="["&&g.charAt(v-1)==="]"&&(g=+g.slice(1,v-1));var x=ic(s,t,g);if(a&&$e(a.interpolatedValue)){var y=s.getDimensionIndex(g);y>=0&&(x=a.interpolatedValue[y])}return x!=null?x+"":""})}},e.prototype.getRawValue=function(t,r){return ic(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function NR(e){var t,r;return Qe(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function sd(e){return new iJ(e)}var iJ=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 r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var a=d(this._modBy),s=this._modDataCount||0,l=d(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function d(w){return!(w>=1)&&(w=1),w}var p;(this._dirty||o==="reset")&&(this._dirty=!1,p=this._doReset(n)),this._modBy=l,this._modDataCount=c;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,g=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(p||v<g)){var x=this._progress;if($e(x))for(var y=0;y<x.length;y++)this._doProgress(x[y],v,g,l,c);else this._doProgress(x,v,g,l,c)}this._dueIndex=g;var S=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=S}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,r,n,i,o){$R.reset(r,n,i,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:$R.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),$e(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},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}(),$R=function(){var e,t,r,n,i,o={reset:function(l,c,d,p){t=l,e=c,r=d,n=p,i=Math.ceil(n/r),o.next=r>1&&n>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),c=t>=e?null:l<n?l:t;return t++,c}}(),oJ=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,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Lv(t,r)},e}();function aJ(e,t){var r=new oJ,n=e.data,i=r.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==la&&Ln(a);var s=[],l={},c=e.dimensionsDefine;if(c)K(c,function(x,y){var S=x.name,w={index:y,name:S,displayName:x.displayName};if(s.push(w),S!=null){var b="";nc(l,S)&&Ln(b),l[S]=w}});else for(var d=0;d<e.dimensionsDetectedCount;d++)s.push({index:d});var p=BL(i,la);t.__isBuiltIn&&(r.getRawDataItem=function(x){return p(n,o,s,x)},r.getRawData=dr(sJ,null,e)),r.cloneRawData=dr(lJ,null,e);var h=FL(i,la);r.count=dr(h,null,n,o,s);var v=zL(i);r.retrieveValue=function(x,y){var S=p(n,o,s,x);return g(S,y)};var g=r.retrieveValueFromItem=function(x,y){if(x!=null){var S=s[y];if(S)return v(x,y,S.name)}};return r.getDimensionInfo=dr(uJ,null,s,l),r.cloneAllDimensionInfo=dr(cJ,null,s),r}function sJ(e){var t=e.sourceFormat;if(!Gw(t)){var r="";Ln(r)}return e.data}function lJ(e){var t=e.sourceFormat,r=e.data;if(!Gw(t)){var n="";Ln(n)}if(t===Vn){for(var i=[],o=0,a=r.length;o<a;o++)i.push(r[o].slice());return i}else if(t===zo){for(var i=[],o=0,a=r.length;o<a;o++)i.push(Ce({},r[o]));return i}}function uJ(e,t,r){if(r!=null){if(ur(r)||!isNaN(r)&&!nc(t,r))return e[r];if(nc(t,r))return t[r]}}function cJ(e){return Pt(e)}var lO=yt();function fJ(e){e=Pt(e);var t=e.type,r="";t||Ln(r);var n=t.split(":");n.length!==2&&Ln(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,lO.set(t,e)}function dJ(e,t,r){var n=_n(e),i=n.length,o="";i||Ln(o);for(var a=0,s=i;a<s;a++){var l=n[a];t=pJ(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function pJ(e,t,r,n){var i="";t.length||Ln(i),Qe(e)||Ln(i);var o=e.type,a=lO.get(o);a||Ln(i);var s=at(t,function(c){return aJ(c,a)}),l=_n(a.transform({upstream:s[0],upstreamList:s,config:Pt(e.config)}));return at(l,function(c,d){var p="";Qe(c)||Ln(p),c.data||Ln(p);var h=OL(c.data);Gw(h)||Ln(p);var v,g=t[0];if(g&&d===0&&!c.dimensions){var x=g.startIndex;x&&(c.data=g.data.slice(0,x).concat(c.data)),v={seriesLayoutBy:la,sourceHeader:x,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:la,sourceHeader:0,dimensions:c.dimensions};return dS(c.data,v,null)})}function Gw(e){return e===Vn||e===zo}var hJ=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,r){this._sourceList=t,this._upstreamSignList=r,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,r=this._getUpstreamSourceManagers(),n=!!r.length,i,o;if(iv(t)){var a=t,s=void 0,l=void 0,c=void 0;if(n){var d=r[0];d.prepareSource(),c=d.getSource(),s=c.data,l=c.sourceFormat,o=[d._getVersionSign()]}else s=a.get("data",!0),l=Hn(s)?as:Fi,o=[];var p=this._getSourceMetaRawOption()||{},h=c&&c.metaRawOption||{},v=wt(p.seriesLayoutBy,h.seriesLayoutBy)||null,g=wt(p.sourceHeader,h.sourceHeader),x=wt(p.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!g!=!!h.sourceHeader||x;i=y?[dS(s,{seriesLayoutBy:v,sourceHeader:g,dimensions:x},l)]:[]}else{var S=t;if(n){var w=this._applyTransform(r);i=w.sourceList,o=w.upstreamSignList}else{var b=S.get("source",!0);i=[dS(b,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&BR(o)}var a,s=[],l=[];return K(t,function(c){c.prepareSource();var d=c.getSource(i||0),p="";i!=null&&!d&&BR(p),s.push(d),l.push(c._getVersionSign())}),n?a=dJ(n,s,{datasetIndex:r.componentIndex}):i!=null&&(a=[YQ(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[n];if(!s){var l=this._getUpstreamSourceManagers()[0];iv(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new pS,s.initData(new $L(r,t.length),t)),a[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(iv(t)){var r=AL(t);return r?[r.getSourceManager()]:[]}else return at(UQ(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(iv(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;r=o.get("seriesLayoutBy",!0),n=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function iv(e){return e.mainType==="series"}function BR(e){throw new Error(e)}var uO="line-height:1";function cO(e,t){var r=e.color||"#6e7079",n=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:"+ti(n+"")+"px;color:"+ti(r)+";font-weight:"+ti(i+""),valueStyle:"font-size:"+ti(a+"")+"px;color:"+ti(o)+";font-weight:"+ti(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var vJ=[0,10,20,30],gJ=["",`
225
- `,`
226
-
227
- `,`
228
-
229
-
230
- `];function Nd(e,t){return t.type=e,t}function mS(e){return e.type==="section"}function fO(e){return mS(e)?mJ:yJ}function dO(e){if(mS(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return K(e.blocks,function(i){var o=dO(i);o>=t&&(t=o+ +(n&&(!o||mS(i)&&!i.noHeader)))}),t}return 0}function mJ(e,t,r,n){var i=t.noHeader,o=xJ(dO(t)),a=[],s=t.blocks||[];pa(!s||$e(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(nc(c,l)){var d=new nZ(c[l],null);s.sort(function(g,x){return d.evaluate(g.sortParam,x.sortParam)})}else l==="seriesDesc"&&s.reverse()}K(s,function(g,x){var y=t.valueFormatter,S=fO(g)(y?Ce(Ce({},e),{valueFormatter:y}):e,g,x>0?o.html:0,n);S!=null&&a.push(S)});var p=e.renderMode==="richText"?a.join(o.richText):yS(a.join(""),i?r:o.html);if(i)return p;var h=gS(t.header,"ordinal",e.useUTC),v=cO(n,e.renderMode).nameStyle;return e.renderMode==="richText"?pO(e,h,v)+o.richText+p:yS('<div style="'+v+";"+uO+';">'+ti(h)+"</div>"+p,r)}function yJ(e,t,r,n){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,d=t.valueFormatter||e.valueFormatter||function(C){return C=$e(C)?C:[C],at(C,function(T,P){return gS(T,$e(v)?v[P]:v,c)})};if(!(o&&a)){var p=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":gS(l,"ordinal",c),v=t.valueType,g=a?[]:d(t.value,t.dataIndex),x=!s||!o,y=!s&&o,S=cO(n,i),w=S.nameStyle,b=S.valueStyle;return i==="richText"?(s?"":p)+(o?"":pO(e,h,w))+(a?"":wJ(e,g,x,y,b)):yS((s?"":p)+(o?"":SJ(h,!s,w))+(a?"":bJ(g,x,y,b)),r)}}function FR(e,t,r,n,i,o){if(e){var a=fO(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function xJ(e){return{html:vJ[e],richText:gJ[e]}}function yS(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+uO+';">'+e+r+"</div>"}function SJ(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ti(e)+"</span>"}function bJ(e,t,r,n){var i=r?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=$e(e)?e:[e],'<span style="'+o+";"+n+'">'+at(e,function(a){return ti(a)}).join("&nbsp;&nbsp;")+"</span>"}function pO(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function wJ(e,t,r,n,i){var o=[i],a=n?10:20;return r&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle($e(t)?t.join(" "):t,o)}function _J(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Bl(n)}function hO(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var P1=function(){function e(){this.richTextStyles={},this._nextStyleNameId=JD()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,o=qZ({color:r,type:t,renderMode:n,markerId:i});return Ue(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};$e(r)?K(r,function(o){return Ce(n,o)}):Ce(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function CJ(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(r),l=$e(s),c=_J(t,r),d,p,h,v;if(a>1||l&&!a){var g=TJ(s,t,r,o,c);d=g.inlineValues,p=g.inlineValueTypes,h=g.blocks,v=g.inlineValues[0]}else if(a){var x=i.getDimensionInfo(o[0]);v=d=ic(i,r,o[0]),p=x.type}else v=d=l?s[0]:s;var y=mw(t),S=y&&t.name||"",w=i.getName(r),b=n?S:w;return Nd("section",{header:S,noHeader:n||!y,sortParam:v,blocks:[Nd("nameValue",{markerType:"item",markerColor:c,name:b,noName:!_o(b),value:d,valueType:p,dataIndex:r})].concat(h||[])})}function TJ(e,t,r,n,i){var o=t.getData(),a=fc(e,function(p,h,v){var g=o.getDimensionInfo(v);return p=p||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],c=[];n.length?K(n,function(p){d(ic(o,r,p),p)}):K(e,d);function d(p,h){var v=o.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(a?c.push(Nd("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:p,valueType:v.type})):(s.push(p),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Va=Nr();function ov(e,t){return e.getName(t)||e.getId(t)}var kJ="__universalTransitionEnabled",gs=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=sd({count:RJ,reset:MJ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var o=Va(this).sourceManager=new hJ(this);o.prepareSource();var a=this.getInitialData(r,i);jR(a,this),this.dataTask.context.data=a,Va(this).dataBeforeProcessed=a,zR(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Od(this),o=i?Rm(r):{},a=this.subType;zt.hasClass(a)&&(a+="Series"),Nt(r,n.getTheme().get(this.subType)),Nt(r,this.getDefaultOption()),HP(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&oc(r,o,i)},t.prototype.mergeOption=function(r,n){r=Nt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Od(this);i&&oc(this.option,r,i);var o=Va(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(r,n);jR(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Va(this).dataBeforeProcessed=a,zR(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(r){if(r&&!Hn(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&HP(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=xS(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Va(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=xS(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Va(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return yt(r)},t.prototype.getSourceManager=function(){return Va(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Va(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return CJ({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ut.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var o=this.ecModel,a=Uw.prototype.getColorFromPalette.call(this,r,n,i);return a||(a=o.getColorFromPalette(r,n,i)),a},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(n);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],c=ov(a,l);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],o=0;o<r.length;o++)i[0]=r[o],this.isSelected(r[o],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=lr(r),i=[],o=0;o<n.length;o++){var a=r[n[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(n);return(i==="all"||i[ov(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[kJ])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,o,a=this.option,s=a.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Qe(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,d=0;d<l;d++){var p=n[d],h=ov(r,p);c[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(p)}}else if(s==="single"||s===!0){var v=n[l-1],h=ov(r,v);a.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(o={},o[h]=r.getRawIndex(v),o)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var o=r.getRawDataItem(i);o&&o.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return zt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(zt);Bo(gs,nJ);Bo(gs,Uw);MD(gs,zt);function zR(e){var t=e.name;mw(e)||(e.name=PJ(e)||t)}function PJ(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return K(r,function(i){var o=t.getDimensionInfo(i);o.displayName&&n.push(o.displayName)}),n.join(" ")}function RJ(e){return e.model.getRawData().count()}function MJ(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),EJ}function EJ(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function jR(e,t){K(dq(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,zr(IJ,t))})}function IJ(e,t){var r=xS(e);return r&&r.setOutputEnd((t||this).count()),t}function xS(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var AJ=Xt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+i,n+o),e.lineTo(r-i,n+o),e.closePath()}}),DJ=Xt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+i,n),e.lineTo(r,n+o),e.lineTo(r-i,n),e.closePath()}}),LJ=Xt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=n-o+a+s,c=Math.asin(s/a),d=Math.cos(c)*a,p=Math.sin(c),h=Math.cos(c),v=a*.6,g=a*.7;e.moveTo(r-d,l+s),e.arc(r,l,a,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(r+d-p*v,l+s+h*v,r,n-g,r,n),e.bezierCurveTo(r,n-g,r-d+p*v,l+s+h*v,r-d,l+s),e.closePath()}}),OJ=Xt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,o=t.y,a=n/3*2;e.moveTo(i,o),e.lineTo(i+a,o+r),e.lineTo(i,o+r/4*3),e.lineTo(i-a,o+r),e.lineTo(i,o),e.closePath()}}),NJ={line:ps,rect:Wr,roundRect:Wr,square:Wr,circle:vm,diamond:DJ,pin:LJ,arrow:OJ,triangle:AJ},$J={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var o=Math.min(r,n);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},SS={};K(NJ,function(e,t){SS[t]=new e});var BJ=Xt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=AD(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=SS[n];i||(n="rect",i=SS[n]),$J[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function FJ(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function ac(e,t,r,n,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=bL(e.slice(8),new $t(t,r,n,i),a?"center":"cover"):e.indexOf("path://")===0?l=Mw(e.slice(7),{},new $t(t,r,n,i),a?"center":"cover"):l=new BJ({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=FJ,o&&l.setColor(o),l}function zJ(e){return $e(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function vO(e,t){if(e!=null)return $e(e)||(e=[e,e]),[bn(e[0],t[0])||0,bn(wt(e[1],e[0]),t[1])||0]}var jJ=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return kZ(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new pn,i=ac("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,c=ac(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(c),c.setStyle(r.itemStyle);var d=r.iconRotate==="inherit"?a:r.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),n},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}(gs);function gO(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ic(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var o=[],a=0;a<r.length;a++)o.push(ic(e,t,r[a]));return o.join(" ")}}function WJ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!$e(t))return t+"";for(var n=[],i=0;i<r.length;i++){var o=e.getDimensionIndex(r[i]);o>=0&&n.push(t[o])}return n.join(" ")}var Yw=function(e){Ae(t,e);function t(r,n,i,o){var a=e.call(this)||this;return a.updateData(r,n,i,o),a}return t.prototype._createSymbol=function(r,n,i,o,a){this.removeAll();var s=ac(r,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=HJ,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){fg(this.childAt(0))},t.prototype.downplay=function(){dg(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,o){this.silent=!1;var a=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),c=a!==this._symbolType,d=o&&o.disableAnimation;if(c){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,r,n,l,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};d?h.attr(v):hs(h,v,s,n),gQ(h)}if(this._updateCommon(r,n,l,i,o),c){var h=this.childAt(0);if(!d){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,fp(h,v,s,n)}}d&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,o,a){var s=this.childAt(0),l=r.hostModel,c,d,p,h,v,g,x,y,S;if(o&&(c=o.emphasisItemStyle,d=o.blurItemStyle,p=o.selectItemStyle,h=o.focus,v=o.blurScope,x=o.labelStatesModels,y=o.hoverScale,S=o.cursorStyle,g=o.emphasisDisabled),!o||r.hasItemOption){var w=o&&o.itemModel?o.itemModel:r.getItemModel(n),b=w.getModel("emphasis");c=b.getModel("itemStyle").getItemStyle(),p=w.getModel(["select","itemStyle"]).getItemStyle(),d=w.getModel(["blur","itemStyle"]).getItemStyle(),h=b.get("focus"),v=b.get("blurScope"),g=b.get("disabled"),x=Ow(w),y=b.getShallow("scale"),S=w.getShallow("cursor")}var C=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var T=vO(r.getItemVisual(n,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),S&&s.attr("cursor",S);var P=r.getItemVisual(n,"style"),E=P.fill;if(s instanceof Ss){var A=s.style;s.useStyle(Ce({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},P))}else s.__isEmptyBrush?s.useStyle(Ce({},P)):s.useStyle(P),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var O=r.getItemVisual(n,"liftZ"),R=this._z2;O!=null?R==null&&(this._z2=s.z2,s.z2+=O):R!=null&&(s.z2=R,this._z2=null);var L=a&&a.useNameLabel;Lw(s,x,{labelFetcher:l,labelDataIndex:n,defaultText:N,inheritColor:E,defaultOpacity:P.opacity});function N(z){return L?r.getName(z):gO(r,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var B=s.ensureState("emphasis");B.style=c,s.ensureState("select").style=p,s.ensureState("blur").style=d;var F=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;B.scaleX=this._sizeX*F,B.scaleY=this._sizeY*F,this.setSymbolScale(1),sS(this,h,v,g)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var o=this.childAt(0),a=jt(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&hg(l,{style:{opacity:0}},n,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();hg(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:a,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return zJ(r.getItemVisual(n,"symbolSize"))},t}(pn);function HJ(e,t){this.parent.drift(e,t)}function R1(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function WR(e){return e!=null&&!Qe(e)&&(e={isIgnore:e}),e||{}}function HR(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ow(t),cursorStyle:t.get("cursor")}}var VJ=function(){function e(t){this.group=new pn,this._SymbolCtor=t||Yw}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=WR(r);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=r.disableAnimation,l=HR(t),c={disableAnimation:s},d=r.getSymbolPoint||function(p){return t.getItemLayout(p)};o||n.removeAll(),t.diff(o).add(function(p){var h=d(p);if(R1(t,h,p,r)){var v=new a(t,p,l,c);v.setPosition(h),t.setItemGraphicEl(p,v),n.add(v)}}).update(function(p,h){var v=o.getItemGraphicEl(h),g=d(p);if(!R1(t,g,p,r)){n.remove(v);return}var x=t.getItemVisual(p,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==x)n.remove(v),v=new a(t,p,l,c),v.setPosition(g);else{v.updateData(t,p,l,c);var S={x:g[0],y:g[1]};s?v.attr(S):hs(v,S,i)}n.add(v),t.setItemGraphicEl(p,v)}).remove(function(p){var h=o.getItemGraphicEl(p);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=d,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var o=t._getSymbolPoint(i);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=HR(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=WR(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=r.getItemLayout(o);if(R1(r,a,o,n)){var s=new this._SymbolCtor(r,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),r.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Dw(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();function mO(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),o=UJ(i,r),a=n.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(a),d=s==="x"||s==="radius"?1:0,p=at(e.dimensions,function(g){return t.mapDimension(g)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Ad(t,p[0])&&(h=!0,p[0]=v),Ad(t,p[1])&&(h=!0,p[1]=v),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:c,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function UJ(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:ur(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function yO(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=r.get(e.baseDim,n),a[1-o]=i,t.dataToPoint(a)}var xO=typeof Float32Array<"u",GJ=xO?Float32Array:Array;function Nu(e){return $e(e)?xO?new Float32Array(e):e:new GJ(e)}function YJ(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function qJ(e,t,r,n,i,o,a,s){for(var l=YJ(e,t),c=[],d=[],p=[],h=[],v=[],g=[],x=[],y=mO(i,t,a),S=e.getLayout("points")||[],w=t.getLayout("points")||[],b=0;b<l.length;b++){var C=l[b],T=!0,P=void 0,E=void 0;switch(C.cmd){case"=":P=C.idx*2,E=C.idx1*2;var A=S[P],O=S[P+1],R=w[E],L=w[E+1];(isNaN(A)||isNaN(O))&&(A=R,O=L),c.push(A,O),d.push(R,L),p.push(r[P],r[P+1]),h.push(n[E],n[E+1]),x.push(t.getRawIndex(C.idx1));break;case"+":var N=C.idx,B=y.dataDimsForPoint,F=i.dataToPoint([t.get(B[0],N),t.get(B[1],N)]);E=N*2,c.push(F[0],F[1]),d.push(w[E],w[E+1]);var z=yO(y,i,t,N);p.push(z[0],z[1]),h.push(n[E],n[E+1]),x.push(t.getRawIndex(N));break;case"-":T=!1}T&&(v.push(C),g.push(g.length))}g.sort(function(ne,Z){return x[ne]-x[Z]});for(var j=c.length,X=Nu(j),V=Nu(j),H=Nu(j),G=Nu(j),W=[],b=0;b<g.length;b++){var Y=g[b],te=b*2,le=Y*2;X[te]=c[le],X[te+1]=c[le+1],V[te]=d[le],V[te+1]=d[le+1],H[te]=p[le],H[te+1]=p[le+1],G[te]=h[le],G[te+1]=h[le+1],W[b]=v[Y]}return{current:X,next:V,stackedOnCurrent:H,stackedOnNext:G,status:W}}var Ua=Math.min,Ga=Math.max;function kl(e,t){return isNaN(e)||isNaN(t)}function bS(e,t,r,n,i,o,a,s,l){for(var c,d,p,h,v,g,x=r,y=0;y<n;y++){var S=t[x*2],w=t[x*2+1];if(x>=i||x<0)break;if(kl(S,w)){if(l){x+=o;continue}break}if(x===r)e[o>0?"moveTo":"lineTo"](S,w),p=S,h=w;else{var b=S-c,C=w-d;if(b*b+C*C<.5){x+=o;continue}if(a>0){for(var T=x+o,P=t[T*2],E=t[T*2+1];P===S&&E===w&&y<n;)y++,T+=o,x+=o,P=t[T*2],E=t[T*2+1],S=t[x*2],w=t[x*2+1],b=S-c,C=w-d;var A=y+1;if(l)for(;kl(P,E)&&A<n;)A++,T+=o,P=t[T*2],E=t[T*2+1];var O=.5,R=0,L=0,N=void 0,B=void 0;if(A>=n||kl(P,E))v=S,g=w;else{R=P-c,L=E-d;var F=S-c,z=P-S,j=w-d,X=E-w,V=void 0,H=void 0;if(s==="x"){V=Math.abs(F),H=Math.abs(z);var G=R>0?1:-1;v=S-G*V*a,g=w,N=S+G*H*a,B=w}else if(s==="y"){V=Math.abs(j),H=Math.abs(X);var W=L>0?1:-1;v=S,g=w-W*V*a,N=S,B=w+W*H*a}else V=Math.sqrt(F*F+j*j),H=Math.sqrt(z*z+X*X),O=H/(H+V),v=S-R*a*(1-O),g=w-L*a*(1-O),N=S+R*a*O,B=w+L*a*O,N=Ua(N,Ga(P,S)),B=Ua(B,Ga(E,w)),N=Ga(N,Ua(P,S)),B=Ga(B,Ua(E,w)),R=N-S,L=B-w,v=S-R*V/H,g=w-L*V/H,v=Ua(v,Ga(c,S)),g=Ua(g,Ga(d,w)),v=Ga(v,Ua(c,S)),g=Ga(g,Ua(d,w)),R=S-v,L=w-g,N=S+R*H/V,B=w+L*H/V}e.bezierCurveTo(p,h,v,g,S,w),p=N,h=B}else e.lineTo(S,w)}c=S,d=w,x+=o}return y}var SO=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),KJ=function(e){Ae(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SO},t.prototype.buildPath=function(r,n){var i=n.points,o=0,a=i.length/2;if(n.connectNulls){for(;a>0&&kl(i[a*2-2],i[a*2-1]);a--);for(;o<a&&kl(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=bS(r,i,o,a,a,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Nl.CMD,s,l,c=n==="x",d=[],p=0;p<o.length;){var h=o[p++],v=void 0,g=void 0,x=void 0,y=void 0,S=void 0,w=void 0,b=void 0;switch(h){case a.M:s=o[p++],l=o[p++];break;case a.L:if(v=o[p++],g=o[p++],b=c?(r-s)/(v-s):(r-l)/(g-l),b<=1&&b>=0){var C=c?(g-l)*b+l:(v-s)*b+s;return c?[r,C]:[C,r]}s=v,l=g;break;case a.C:v=o[p++],g=o[p++],x=o[p++],y=o[p++],S=o[p++],w=o[p++];var T=c?ng(s,v,x,S,r,d):ng(l,g,y,w,r,d);if(T>0)for(var P=0;P<T;P++){var E=d[P];if(E<=1&&E>=0){var C=c?qr(l,g,y,w,E):qr(s,v,x,S,E);return c?[r,C]:[C,r]}}s=S,l=w;break}}},t}(Xt),XJ=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(SO),QJ=function(e){Ae(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new XJ},t.prototype.buildPath=function(r,n){var i=n.points,o=n.stackedOnPoints,a=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&kl(i[s*2-2],i[s*2-1]);s--);for(;a<s&&kl(i[a*2],i[a*2+1]);a++);}for(;a<s;){var c=bS(r,i,a,s,s,1,n.smooth,l,n.connectNulls);bS(r,o,a+c-1,c,s,-1,n.stackedOnSmooth,l,n.connectNulls),a+=c+1,r.closePath()}},t}(Xt);function bO(){var e=Nr();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,o=!!r.progressiveRender,a=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==a||o!==s)&&"reset"}}var wO=Nr(),ZJ=bO(),Ao=function(){function e(){this.group=new pn,this.uid=bm("viewChart"),this.renderTask=sd({plan:JJ,reset:eee}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var o=t.getData(i&&i.dataType);o&&UR(o,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var o=t.getData(i&&i.dataType);o&&UR(o,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Dw(this.group,t)},e.markUpdateMethod=function(t,r){wO(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function VR(e,t,r){e&&lS(e)&&(t==="emphasis"?fg:dg)(e,r)}function UR(e,t,r){var n=$l(e,t),i=t&&t.highlightKey!=null?$X(t.highlightKey):null;n!=null?K(_n(n),function(o){VR(e.getItemGraphicEl(o),r,i)}):e.eachItemGraphicEl(function(o){VR(o,r,i)})}lw(Ao);sm(Ao);function JJ(e){return ZJ(e.model)}function eee(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&wO(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,r,n,i),tee[l]}var tee={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)}}};function ree(e,t,r,n,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,d=r.get(["lineStyle","width"])||2;a-=d/2,s-=d/2,l+=d,c+=d,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var p=new Wr({shape:{x:a,y:s,width:l,height:c}});if(t){var h=e.getBaseAxis(),v=h.isHorizontal(),g=h.inverse;v?(g&&(p.shape.x+=l),p.shape.width=0):(g||(p.shape.y+=c),p.shape.height=0);var x=dt(i)?function(y){i(y,p)}:null;fp(p,{shape:{width:l,height:c,x:a,y:s}},r,null,n,x)}return p}function nee(e,t,r){var n=e.getArea(),i=Ir(n.r0,1),o=Ir(n.r,1),a=new gm({shape:{cx:Ir(e.cx,1),cy:Ir(e.cy,1),r0:i,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=n.startAngle:a.shape.r=i,fp(a,{shape:{endAngle:n.endAngle,r:o}},r)}return a}function iee(e,t){return e.type===t}function GR(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function YR(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),n=Math.max(a,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function qR(e,t){var r=YR(e),n=r[0],i=r[1],o=YR(t),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function KR(e){return ur(e)?e:e?.5:0}function oee(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=Nu(n*2),o=0;o<n;o++){var a=yO(r,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Ya(e,t,r,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,a=[],s=0,l=[],c=[],d=[],p=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&p.push(e[s],e[s+1]);e=p}for(s=0;s<e.length-2;s+=2)switch(d[0]=e[s+2],d[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),r){case"end":l[o]=d[o],l[1-o]=c[1-o],a.push(l[0],l[1]);break;case"middle":var h=(c[o]+d[o])/2,v=[];l[o]=v[o]=h,l[1-o]=c[1-o],v[1-o]=d[1-o],a.push(l[0],l[1]),a.push(v[0],v[1]);break;default:l[o]=c[o],l[1-o]=d[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function aee(e,t){var r=[],n=e.length,i,o;function a(d,p,h){var v=d.coord,g=(h-v)/(p.coord-v),x=nK(g,[d.color,p.color]);return{coord:h,color:x}}for(var s=0;s<n;s++){var l=e[s],c=l.coord;if(c<0)i=l;else if(c>t){o?r.push(a(o,l,t)):i&&r.push(a(i,l,0),a(i,l,t));break}else i&&(r.push(a(i,l,0)),i=null),r.push(l),o=l}return r}function see(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=n.length-1;a>=0;a--){var s=e.getDimensionInfo(n[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=n[a];break}}if(o){var l=t.getAxis(i),c=at(o.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),d=c.length,p=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),p.reverse());var h=aee(c,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&d)return c[0].coord<0?p[1]?p[1]:c[d-1].color:p[0]?p[0]:c[0].color;var g=10,x=h[0].coord-g,y=h[v-1].coord+g,S=y-x;if(S<.001)return"transparent";K(h,function(b){b.offset=(b.coord-x)/S}),h.push({offset:v?h[v-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:p[0]||"transparent"});var w=new SL(0,0,0,0,h,!0);return w[i]=x,w[i+"2"]=y,w}}}function lee(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(i&&uee(o,t))){var a=t.mapDimension(o.dim),s={};return K(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function uee(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(Yw.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function cee(e,t){return isNaN(e)||isNaN(t)}function fee(e){for(var t=e.length/2;t>0&&cee(e[t*2-2],e[t*2-1]);t--);return t-1}function XR(e,t){return[e[t*2],e[t*2+1]]}function dee(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,o,a,s=0,l=-1,c=0;c<n;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 _O(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Oo.length;t++)if(e.get([Oo[t],"endLabel","show"]))return!0;return!1}function M1(e,t,r,n){if(iee(t,"cartesian2d")){var i=n.getModel("endLabel"),o=i.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=_O(n)?function(v,g){e._endLabelOnDuring(v,g,a,s,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),d=ree(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var p=d.shape,h=Math.max(p.width,p.height);c?(p.y-=h,p.height+=h*2):(p.x-=h,p.width+=h*2)}return l&&l(1,d),d}else return nee(t,r,n)}function pee(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,o=n?i?"right":"left":"center",a=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var hee=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new pn,n=new VJ;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var o=this,a=r.coordinateSystem,s=this.group,l=r.getData(),c=r.getModel("lineStyle"),d=r.getModel("areaStyle"),p=l.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,g=this._symbolDraw,x=this._polyline,y=this._polygon,S=this._lineGroup,w=!n.ssr&&r.get("animation"),b=!d.isEmpty(),C=d.get("origin"),T=mO(a,l,C),P=b&&oee(a,l,T),E=r.get("showSymbol"),A=r.get("connectNulls"),O=E&&!h&&lee(r,l,a),R=this._data;R&&R.eachItemGraphicEl(function(Z,ce){Z.__temp&&(s.remove(Z),R.setItemGraphicEl(ce,null))}),E||g.remove(),s.add(S);var L=h?!1:r.get("step"),N;a&&a.getArea&&r.get("clip",!0)&&(N=a.getArea(),N.width!=null?(N.x-=.1,N.y-=.1,N.width+=.2,N.height+=.2):N.r0&&(N.r0-=.5,N.r+=.5)),this._clipShapeForSymbol=N;var B=see(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(x&&v.type===a.type&&L===this._step))E&&g.updateData(l,{isIgnore:O,clipShape:N,disableAnimation:!0,getSymbolPoint:function(Z){return[p[Z*2],p[Z*2+1]]}}),w&&this._initSymbolLabelAnimation(l,a,N),L&&(p=Ya(p,a,L,A),P&&(P=Ya(P,a,L,A))),x=this._newPolyline(p),b?y=this._newPolygon(p,P):y&&(S.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,Bl(B)),S.setClipPath(M1(this,a,!0,r));else{b&&!y?y=this._newPolygon(p,P):y&&!b&&(S.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,Bl(B));var F=S.getClipPath();if(F){var z=M1(this,a,!1,r);fp(F,{shape:z.shape},r)}else S.setClipPath(M1(this,a,!0,r));E&&g.updateData(l,{isIgnore:O,clipShape:N,disableAnimation:!0,getSymbolPoint:function(Z){return[p[Z*2],p[Z*2+1]]}}),(!GR(this._stackedOnPoints,P)||!GR(this._points,p))&&(w?this._doUpdateAnimation(l,P,a,i,L,C,A):(L&&(p=Ya(p,a,L,A),P&&(P=Ya(P,a,L,A))),x.setShape({points:p}),y&&y.setShape({points:p,stackedOnPoints:P})))}var j=r.getModel("emphasis"),X=j.get("focus"),V=j.get("blurScope"),H=j.get("disabled");if(x.useStyle(Wt(c.getLineStyle(),{fill:"none",stroke:B,lineJoin:"bevel"})),eR(x,r,"lineStyle"),x.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=x.getState("emphasis").style;G.lineWidth=+x.style.lineWidth+1}jt(x).seriesIndex=r.seriesIndex,sS(x,X,V,H);var W=KR(r.get("smooth")),Y=r.get("smoothMonotone");if(x.setShape({smooth:W,smoothMonotone:Y,connectNulls:A}),y){var te=l.getCalculationInfo("stackedOnSeries"),le=0;y.useStyle(Wt(d.getAreaStyle(),{fill:B,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),te&&(le=KR(te.get("smooth"))),y.setShape({smooth:W,stackedOnSmooth:le,smoothMonotone:Y,connectNulls:A}),eR(y,r,"areaStyle"),jt(y).seriesIndex=r.seriesIndex,sS(y,X,V,H)}var ne=function(Z){o._changePolyState(Z)};l.eachItemGraphicEl(function(Z){Z&&(Z.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=l,this._coordSys=a,this._stackedOnPoints=P,this._points=p,this._step=L,this._valueOrigin=C,r.get("triggerLineEvent")&&(this.packEventData(r,x),y&&this.packEventData(r,y))},t.prototype.packEventData=function(r,n){jt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,o){var a=r.getData(),s=$l(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 d=l[s*2],p=l[s*2+1];if(isNaN(d)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,p))return;var h=r.get("zlevel")||0,v=r.get("z")||0;c=new Yw(a,s),c.x=d,c.y=p,c.setZ(h,v);var g=c.getSymbolPath().getTextContent();g&&(g.zlevel=h,g.z=v,g.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Ao.prototype.highlight.call(this,r,n,i,o)},t.prototype.downplay=function(r,n,i,o){var a=r.getData(),s=$l(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 Ao.prototype.downplay.call(this,r,n,i,o)},t.prototype._changePolyState=function(r){var n=this._polygon;KP(this._polyline,r),n&&KP(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new KJ({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new QJ({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var o,a,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):n.type==="polar"&&(o=s.dim==="angle",a=!0);var c=r.hostModel,d=c.get("animationDuration");dt(d)&&(d=d(null));var p=c.get("animationDelay")||0,h=dt(p)?p(null):p;r.eachItemGraphicEl(function(v,g){var x=v;if(x){var y=[v.x,v.y],S=void 0,w=void 0,b=void 0;if(i)if(a){var C=i,T=n.pointToCoord(y);o?(S=C.startAngle,w=C.endAngle,b=-T[1]/180*Math.PI):(S=C.r0,w=C.r,b=T[0])}else{var P=i;o?(S=P.x,w=P.x+P.width,b=v.x):(S=P.y+P.height,w=P.y,b=v.y)}var E=w===S?0:(b-S)/(w-S);l&&(E=1-E);var A=dt(p)?p(g):d*E+h,O=x.getSymbolPath(),R=O.getTextContent();x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:A}),O.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var o=r.getModel("endLabel");if(_O(r)){var a=r.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 dn({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var d=fee(l);d>=0&&(Lw(s,Ow(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:d,defaultText:function(p,h,v){return v!=null?WJ(a,v):gO(a,p)},enableTextSetter:!0},pee(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,o,a,s,l){var c=this._endLabel,d=this._polyline;if(c){r<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var p=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),g=s.get("precision"),x=s.get("distance")||0,y=l.getBaseAxis(),S=y.isHorizontal(),w=y.inverse,b=n.shape,C=w?S?b.x:b.y+b.height:S?b.x+b.width:b.y,T=(S?x:0)*(w?-1:1),P=(S?0:-x)*(w?-1:1),E=S?"x":"y",A=dee(p,C,E),O=A.range,R=O[1]-O[0],L=void 0;if(R>=1){if(R>1&&!v){var N=XR(p,O[0]);c.attr({x:N[0]+T,y:N[1]+P}),a&&(L=h.getRawValue(O[0]))}else{var N=d.getPointOn(C,E);N&&c.attr({x:N[0]+T,y:N[1]+P});var B=h.getRawValue(O[0]),F=h.getRawValue(O[1]);a&&(L=mX(i,g,B,F,A.t))}o.lastFrameIndex=O[0]}else{var z=r===1||o.lastFrameIndex>0?O[0]:0,N=XR(p,z);a&&(L=h.getRawValue(z)),c.attr({x:N[0]+T,y:N[1]+P})}if(a){var j=kL(c);typeof j.setLabelText=="function"&&j.setLabelText(L)}}},t.prototype._doUpdateAnimation=function(r,n,i,o,a,s,l){var c=this._polyline,d=this._polygon,p=r.hostModel,h=qJ(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,g=h.stackedOnCurrent,x=h.next,y=h.stackedOnNext;if(a&&(v=Ya(h.current,i,a,l),g=Ya(h.stackedOnCurrent,i,a,l),x=Ya(h.next,i,a,l),y=Ya(h.stackedOnNext,i,a,l)),qR(v,x)>3e3||d&&qR(g,y)>3e3){c.stopAnimation(),c.setShape({points:x}),d&&(d.stopAnimation(),d.setShape({points:x,stackedOnPoints:y}));return}c.shape.__points=h.current,c.shape.points=v;var S={shape:{points:x}};h.current!==v&&(S.shape.__points=h.next),c.stopAnimation(),hs(c,S,p),d&&(d.setShape({points:v,stackedOnPoints:g}),d.stopAnimation(),hs(d,{shape:{stackedOnPoints:y}},p),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var w=[],b=h.status,C=0;C<b.length;C++){var T=b[C].cmd;if(T==="="){var P=r.getItemGraphicEl(b[C].idx1);P&&w.push({el:P,ptIdx:C})}}c.animators&&c.animators.length&&c.animators[0].during(function(){d&&d.dirtyShape();for(var E=c.shape.__points,A=0;A<w.length;A++){var O=w[A].el,R=w[A].ptIdx*2;O.x=E[R],O.y=E[R+1],O.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(n.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}(Ao);function vee(e,t){return{seriesType:e,plan:bO(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var o=at(i.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),a=o.length,s=n.getCalculationInfo("stackResultDimension");Ad(n,o[0])&&(o[0]=s),Ad(n,o[1])&&(o[1]=s);var l=n.getStore(),c=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return a&&{progress:function(p,h){for(var v=p.end-p.start,g=Nu(v*a),x=[],y=[],S=p.start,w=0;S<p.end;S++){var b=void 0;if(a===1){var C=l.get(c,S);b=i.dataToPoint(C,null,y)}else x[0]=l.get(c,S),x[1]=l.get(d,S),b=i.dataToPoint(x,null,y);g[w++]=b[0],g[w++]=b[1]}h.setLayout("points",g)}}}}}}var gee={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var i=e[n],o=Math.abs(i);o>t&&(t=o,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},mee=function(e){return Math.round(e.length/2)};function yee(e){return{seriesType:e,reset:function(t,r,n){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),d=l.getExtent(),p=n.getDevicePixelRatio(),h=Math.abs(d[1]-d[0])*(p||1),v=Math.round(s/h);if(isFinite(v)&&v>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/v));var g=void 0;Ue(o)?g=gee[o]:dt(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(c.dim),1/v,g,mee))}}}}}function xee(e){e.registerChartView(hee),e.registerSeriesModel(jJ),e.registerLayout(vee("line")),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yee("line"))}var See="__ec_stack_";function bee(e){return e.get("stack")||See+e.seriesIndex}function CO(e){return e.dim+e.index}function wee(e,t){var r=[];return t.eachSeriesByType(e,function(n){Pee(n)&&r.push(n)}),r}function _ee(e){var t={};K(e,function(l){var c=l.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var p=l.getData(),h=d.dim+"_"+d.index,v=p.getDimensionIndex(p.mapDimension(d.dim)),g=p.getStore(),x=0,y=g.count();x<y;++x){var S=g.get(v,x);t[h]?t[h].push(S):t[h]=[S]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];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))}r[n]=o}}return r}function Cee(e){var t=_ee(e),r=[];return K(e,function(n){var i=n.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],d=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),h=Math.abs(p[1]-p[0]);s=c?d/h*c:d}else{var v=n.getData();s=Math.abs(a[1]-a[0])/v.count()}var g=bn(n.get("barWidth"),s),x=bn(n.get("barMaxWidth"),s),y=bn(n.get("barMinWidth")||(Ree(n)?.5:1),s),S=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:x,barMinWidth:y,barGap:S,barCategoryGap:w,axisKey:CO(o),stackId:bee(n)})}),Tee(r)}function Tee(e){var t={};K(e,function(n,i){var o=n.axisKey,a=n.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=n.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var d=n.barWidth;d&&!l[c].width&&(l[c].width=d,d=Math.min(s.remainedWidth,d),s.remainedWidth-=d);var p=n.barMaxWidth;p&&(l[c].maxWidth=p);var h=n.barMinWidth;h&&(l[c].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return K(t,function(n,i){r[i]={};var o=n.stacks,a=n.bandWidth,s=n.categoryGap;if(s==null){var l=lr(o).length;s=Math.max(35-l*4,15)+"%"}var c=bn(s,a),d=bn(n.gap,1),p=n.remainedWidth,h=n.autoWidthCount,v=(p-c)/(h+(h-1)*d);v=Math.max(v,0),K(o,function(S){var w=S.maxWidth,b=S.minWidth;if(S.width){var C=S.width;w&&(C=Math.min(C,w)),b&&(C=Math.max(C,b)),S.width=C,p-=C+d*C,h--}else{var C=v;w&&w<C&&(C=Math.min(w,p)),b&&b>C&&(C=b),C!==v&&(S.width=C,p-=C+d*C,h--)}}),v=(p-c)/(h+(h-1)*d),v=Math.max(v,0);var g=0,x;K(o,function(S,w){S.width||(S.width=v),x=S,g+=S.width*(1+d)}),x&&(g-=x.width*d);var y=-g/2;K(o,function(S,w){r[i][w]=r[i][w]||{bandWidth:a,offset:y,width:S.width},y+=S.width*(1+d)})}),r}function kee(e,t,r){if(e&&t){var n=e[CO(t)];return n}}function Pee(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Ree(e){return e.pipelineContext&&e.pipelineContext.large}var yg="\0__throttleOriginMethod",QR="\0__throttleRate",ZR="\0__throttleType";function TO(e,t,r){var n,i=0,o=0,a=null,s,l,c,d;t=t||0;function p(){o=new Date().getTime(),a=null,e.apply(l,c||[])}var h=function(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];n=new Date().getTime(),l=this,c=v;var x=d||t,y=d||r;d=null,s=n-(y?i:o)-x,clearTimeout(a),y?a=setTimeout(p,x):s>=0?p():a=setTimeout(p,-s),i=n};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(v){d=v},h}function kO(e,t,r,n){var i=e[t];if(i){var o=i[yg]||i,a=i[ZR],s=i[QR];if(s!==r||a!==n){if(r==null)return e[t]=o;i=e[t]=TO(o,r,n==="debounce"),i[yg]=o,i[ZR]=n,i[QR]=r}return i}}function wS(e,t){var r=e[t];r&&r[yg]&&(r.clear&&r.clear(),e[t]=r[yg])}function Cu(e,t,r,n,i){var o=e+t;r.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=i.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===s){var p=a.getData(),h=$l(p,i.fromActionPayload);r.trigger(o,{type:o,seriesId:a.id,name:$e(h)?p.getName(h[0]):p.getName(h),selected:Ue(l)?l:Ce({},l)})}})}function Mee(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Cu("map","selectchanged",t,i,n),Cu("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Cu("map","selected",t,i,n),Cu("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Cu("map","unselected",t,i,n),Cu("pie","unselected",t,i,n))})}function Eee(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.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 d=s?new pg(a,o):null;t.push({label:i,labelLine:n.labelLine,rect:c,localRect:a,obb:d,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function Iee(e){var t=[];e.sort(function(x,y){return y.priority-x.priority});var r=new $t(0,0,0,0);function n(x){if(!x.ignore){var y=x.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}x.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,d=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var p=o.obb,h=!1,v=0;v<t.length;v++){var g=t[v];if(r.intersect(g.rect)){if(a&&g.axisAligned){h=!0;break}if(g.obb||(g.obb=new pg(g.localRect,g.transform)),p||(p=new pg(s,l)),p.intersect(g.obb)){h=!0;break}}}h?(n(c),d&&n(d)):(c.attr("ignore",o.defaultAttr.ignore),d&&d.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var Tu=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Aee=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 r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Tu(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,r.drift(o,a,t),this.handler.dispatchToElement(new Tu(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Tu(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Tu(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Tu(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Tu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Dee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,E1=[],Lee=ut.browser.firefox&&+ut.browser.version.split(".")[0]<39;function _S(e,t,r,n){return r=r||{},n?JR(e,t,r):Lee&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):JR(e,t,r),r}function JR(e,t,r){if(ut.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(qL(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=i-o.top;return}else if(vS(E1,e,n,i)){r.zrX=E1[0],r.zrY=E1[1];return}}r.zrX=r.zrY=0}function qw(e){return e||window.event}function wi(e,t,r){if(t=qw(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var a=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&_S(e,a,t,r)}else{_S(e,t,t,r);var o=Oee(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Dee.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Oee(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),o=n>0?-1:n<0?1:r>0?-1:1;return 3*i*o}function Nee(e,t,r,n){e.addEventListener(t,r,n)}function $ee(e,t,r,n){e.removeEventListener(t,r,n)}var PO=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Bee=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:r,event:t},a=0,s=i.length;a<s;a++){var l=i[a],c=_S(n,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var r in I1)if(I1.hasOwnProperty(r)){var n=I1[r](this._track,t);if(n)return n}},e}();function eM(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Fee(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var I1={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var o=eM(n)/eM(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Fee(n);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},RO="silent";function zee(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:jee}}function jee(){PO(this.event)}var Wee=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fo),bf=function(){function e(t,r){this.x=t,this.y=r}return e}(),Hee=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],A1=new $t(0,0,0,0),MO=function(e){Ae(t,e);function t(r,n,i,o,a){var s=e.call(this)||this;return s._hovered=new bf(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=a,i=i||new Wee,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Aee(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(K(Hee,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,o=EO(this,n,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 bf(n,i):this.findHover(n,i),c=l.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",r),this.dispatchToElement(l,"mousemove",r),c&&c!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new bf(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var o=r.target;if(!(o&&o.silent)){for(var a="on"+n,s=zee(n,r,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var o=this.storage.getDisplayList(),a=new bf(r,n);if(tM(o,a,r,n,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,d=new $t(r-c,n-c,l,l),p=o.length-1;p>=0;p--){var h=o[p];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(A1.copy(h.getBoundingRect()),h.transform&&A1.applyTransform(h.transform),A1.intersect(d)&&s.push(h))}if(s.length)for(var v=4,g=Math.PI/12,x=Math.PI*2,y=0;y<c;y+=v)for(var S=0;S<x;S+=g){var w=r+y*Math.cos(S),b=n+y*Math.sin(S);if(tM(s,a,w,b,i),a.target)return a}}return a},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Bee);var i=this._gestureMgr;n==="start"&&i.clear();var o=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),o){var a=o.type;r.gestureEvent=a;var s=new bf;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(Fo);K(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){MO.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=EO(this,r,n),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(r,n),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||Gq(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Vee(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?RO:!0}return!1}function tM(e,t,r,n,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Vee(a,r,n))&&(!t.topTarget&&(t.topTarget=a),s!==RO)){t.target=a;break}}}function EO(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var IO=32,wf=7;function Uee(e){for(var t=0;e>=IO;)t|=e&1,e>>=1;return e+t}function rM(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;Gee(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Gee(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function nM(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var o=e[n],a=t,s=n,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var c=n-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 D1(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])>0){for(s=n-i;l<s&&o(e,t[r+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[r+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 d=a+(l-a>>>1);o(e,t[r+d])>0?a=d+1:l=d}return l}function L1(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])<0){for(s=i+1;l<s&&o(e,t[r+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=n-i;l<s&&o(e,t[r+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 d=a+(l-a>>>1);o(e,t[r+d])<0?l=d:a=d+1}return l}function Yee(e,t){var r=wf,n,i,o=0,a=[];n=[],i=[];function s(v,g){n[o]=v,i[o]=g,o+=1}function l(){for(;o>1;){var v=o-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;d(v)}}function c(){for(;o>1;){var v=o-2;v>0&&i[v-1]<i[v+1]&&v--,d(v)}}function d(v){var g=n[v],x=i[v],y=n[v+1],S=i[v+1];i[v]=x+S,v===o-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),o--;var w=L1(e[y],e,g,x,0,t);g+=w,x-=w,x!==0&&(S=D1(e[g+x-1],e,y,S,S-1,t),S!==0&&(x<=S?p(g,x,y,S):h(g,x,y,S)))}function p(v,g,x,y){var S=0;for(S=0;S<g;S++)a[S]=e[v+S];var w=0,b=x,C=v;if(e[C++]=e[b++],--y===0){for(S=0;S<g;S++)e[C+S]=a[w+S];return}if(g===1){for(S=0;S<y;S++)e[C+S]=e[b+S];e[C+y]=a[w];return}for(var T=r,P,E,A;;){P=0,E=0,A=!1;do if(t(e[b],a[w])<0){if(e[C++]=e[b++],E++,P=0,--y===0){A=!0;break}}else if(e[C++]=a[w++],P++,E=0,--g===1){A=!0;break}while((P|E)<T);if(A)break;do{if(P=L1(e[b],a,w,g,0,t),P!==0){for(S=0;S<P;S++)e[C+S]=a[w+S];if(C+=P,w+=P,g-=P,g<=1){A=!0;break}}if(e[C++]=e[b++],--y===0){A=!0;break}if(E=D1(a[w],e,b,y,0,t),E!==0){for(S=0;S<E;S++)e[C+S]=e[b+S];if(C+=E,b+=E,y-=E,y===0){A=!0;break}}if(e[C++]=a[w++],--g===1){A=!0;break}T--}while(P>=wf||E>=wf);if(A)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S=0;S<y;S++)e[C+S]=e[b+S];e[C+y]=a[w]}else{if(g===0)throw new Error;for(S=0;S<g;S++)e[C+S]=a[w+S]}}function h(v,g,x,y){var S=0;for(S=0;S<y;S++)a[S]=e[x+S];var w=v+g-1,b=y-1,C=x+y-1,T=0,P=0;if(e[C--]=e[w--],--g===0){for(T=C-(y-1),S=0;S<y;S++)e[T+S]=a[S];return}if(y===1){for(C-=g,w-=g,P=C+1,T=w+1,S=g-1;S>=0;S--)e[P+S]=e[T+S];e[C]=a[b];return}for(var E=r;;){var A=0,O=0,R=!1;do if(t(a[b],e[w])<0){if(e[C--]=e[w--],A++,O=0,--g===0){R=!0;break}}else if(e[C--]=a[b--],O++,A=0,--y===1){R=!0;break}while((A|O)<E);if(R)break;do{if(A=g-L1(a[b],e,v,g,g-1,t),A!==0){for(C-=A,w-=A,g-=A,P=C+1,T=w+1,S=A-1;S>=0;S--)e[P+S]=e[T+S];if(g===0){R=!0;break}}if(e[C--]=a[b--],--y===1){R=!0;break}if(O=y-D1(e[w],a,0,y,y-1,t),O!==0){for(C-=O,b-=O,y-=O,P=C+1,T=b+1,S=0;S<O;S++)e[P+S]=a[T+S];if(y<=1){R=!0;break}}if(e[C--]=e[w--],--g===0){R=!0;break}E--}while(A>=wf||O>=wf);if(R)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),y===1){for(C-=g,w-=g,P=C+1,T=w+1,S=g-1;S>=0;S--)e[P+S]=e[T+S];e[C]=a[b]}else{if(y===0)throw new Error;for(T=C-(y-1),S=0;S<y;S++)e[T+S]=a[S]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function $v(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var o=0;if(i<IO){o=rM(e,r,n,t),nM(e,r,n,r+o,t);return}var a=Yee(e,t),s=Uee(i);do{if(o=rM(e,r,n,t),o<s){var l=i;l>s&&(l=s),nM(e,r,r+l,r+o,t),o=l}a.pushRun(r,o),a.mergeRuns(),i-=o,r+=o}while(i!==0);a.forceMergeRuns()}}var iM=!1;function O1(){iM||(iM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function oM(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var qee=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=oM}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,o=r.length;i<o;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,$v(n,oM)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),r.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|=Eo),this._updateAndAddDisplayable(c,r,n)}t.__dirty=0}else{var d=t;r&&r.length?d.__clipPaths=r:d.__clipPaths&&d.__clipPaths.length>0&&(d.__clipPaths=[]),isNaN(d.z)&&(O1(),d.z=0),isNaN(d.z2)&&(O1(),d.z2=0),isNaN(d.zlevel)&&(O1(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},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 r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=Ut(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}(),xg;xg=ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function $u(){return new Date().getTime()}var Kee=function(e){Ae(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=$u()-this._pausedTime,i=n-this._time,o=this._head;o;){var a=o.next,s=o.step(n,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(xg(n),!r._paused&&r.update())}xg(n)},t.prototype.start=function(){this._running||(this._time=$u(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=$u(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=$u()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new vw(r,n.loop);return this.addAnimator(i),i},t}(Fo),Xee=300,N1=ut.domSupported,$1=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=at(e,function(i){var o=i.replace("mouse","pointer");return r.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:n}}(),aM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sM=!1;function CS(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Qee(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 B1(e){e&&(e.zrByTouch=!0)}function Zee(e,t){return wi(e.dom,new Jee(e,t),!0)}function AO(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Jee=function(){function e(t,r){this.stopPropagation=Bn,this.stopImmediatePropagation=Bn,this.preventDefault=Bn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Zi={mousedown:function(e){e=wi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=wi(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=wi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=wi(this.dom,e);var t=e.toElement||e.relatedTarget;AO(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){sM=!0,e=wi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){sM||(e=wi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=wi(this.dom,e),B1(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Zi.mousemove.call(this,e),Zi.mousedown.call(this,e)},touchmove:function(e){e=wi(this.dom,e),B1(e),this.handler.processGesture(e,"change"),Zi.mousemove.call(this,e)},touchend:function(e){e=wi(this.dom,e),B1(e),this.handler.processGesture(e,"end"),Zi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Xee&&Zi.click.call(this,e)},pointerdown:function(e){Zi.mousedown.call(this,e)},pointermove:function(e){CS(e)||Zi.mousemove.call(this,e)},pointerup:function(e){Zi.mouseup.call(this,e)},pointerout:function(e){CS(e)||Zi.mouseout.call(this,e)}};K(["click","dblclick","contextmenu"],function(e){Zi[e]=function(t){t=wi(this.dom,t),this.trigger(e,t)}});var TS={pointermove:function(e){CS(e)||TS.mousemove.call(this,e)},pointerup:function(e){TS.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 ete(e,t){var r=t.domHandlers;ut.pointerEventsSupported?K($1.pointer,function(n){Bv(t,n,function(i){r[n].call(e,i)})}):(ut.touchEventsSupported&&K($1.touch,function(n){Bv(t,n,function(i){r[n].call(e,i),Qee(t)})}),K($1.mouse,function(n){Bv(t,n,function(i){i=qw(i),t.touching||r[n].call(e,i)})}))}function tte(e,t){ut.pointerEventsSupported?K(aM.pointer,r):ut.touchEventsSupported||K(aM.mouse,r);function r(n){function i(o){o=qw(o),AO(e,o.target)||(o=Zee(e,o),t.domHandlers[n].call(e,o))}Bv(t,n,i,{capture:!0})}}function Bv(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,Nee(e.domTarget,t,r,n)}function F1(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&$ee(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var lM=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),rte=function(e){Ae(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new lM(r,Zi),N1&&(i._globalHandlerScope=new lM(document,TS)),ete(i,i._localHandlerScope),i}return t.prototype.dispose=function(){F1(this._localHandlerScope),N1&&F1(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,N1&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?tte(this,n):F1(n)}},t}(Fo);/*!
231
- * ZRender, a high performance 2d drawing library.
232
- *
233
- * Copyright (c) 2013, Baidu Inc.
234
- * All rights reserved.
235
- *
236
- * LICENSE
237
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
238
- */var Fv={},DO={};function nte(e){delete DO[e]}function ite(e){if(!e)return!1;if(typeof e=="string")return ag(e,1)<Jx;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=ag(t[i].color,1);return r/=n,r<Jx}return!1}var ote=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var o=new qee,a=n.renderer||"canvas";Fv[a]||(a=lr(Fv)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Fv[a](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!ut.node&&!ut.worker&&!l?new rte(s.getViewportRoot(),s.root):null,d=n.useCoarsePointer,p=d==null||d==="auto"?ut.touchEventsSupported:!!d,h=44,v;p&&(v=wt(n.pointerSize,h)),this.handler=new MO(o,s,c,s.root,v),this.animation=new Kee({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,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=ite(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 r,n=$u();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=$u();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):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,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof pn&&t[r].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,nte(this.id))},e}();function uM(e,t){var r=new ote(_D(),e,t);return DO[r.id]=r,r}function ate(e,t){Fv[e]=t}var LO="";typeof navigator<"u"&&(LO=navigator.platform||"");var ku="rgba(0, 0, 0, 0.2)";const ste={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ku,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ku,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ku,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ku,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ku,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ku,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LO.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 lte=yt();function ute(e,t,r){var n=lte.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var av,_f,cM,fM="\0_ec_inner",cte=1,Kw=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,o,a,s){o=o||{},this.option=null,this._theme=new xr(o),this._locale=new xr(a),this._optionManager=s},t.prototype.setOption=function(r,n,i){var o=hM(n);this._optionManager.setOption(r,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(r,n){return this._resetOption(r,hM(n))},t.prototype._resetOption=function(r,n){var i=!1,o=this._optionManager;if(!r||r==="recreate"){var a=o.mountOption(r==="recreate");!this.option||r==="recreate"?cM(this,a):(this.restoreData(),this._mergeOption(a,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=o.getMediaOption(this);l.length&&K(l,function(c){i=!0,this._mergeOption(c,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=yt(),c=n&&n.replaceMergeMainTypeMap;HQ(this),K(r,function(p,h){p!=null&&(zt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Pt(p):Nt(i[h],p,!0))}),c&&c.each(function(p,h){zt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),zt.topologicalTravel(s,zt.getAllClassMainTypes(),d,this);function d(p){var h=ute(this,p,_n(r[p])),v=o.get(p),g=v?c&&c.get(p)?"replaceMerge":"normalMerge":"replaceAll",x=oX(v,h,g);dX(x,p,zt),i[p]=null,o.set(p,null),a.set(p,0);var y=[],S=[],w=0,b;K(x,function(C,T){var P=C.existing,E=C.newOption;if(!E)P&&(P.mergeOption({},this),P.optionUpdated({},!1));else{var A=p==="series",O=zt.getClass(p,C.keyInfo.subType,!A);if(!O)return;if(p==="tooltip"){if(b)return;b=!0}if(P&&P.constructor===O)P.name=C.keyInfo.name,P.mergeOption(E,this),P.optionUpdated(E,!1);else{var R=Ce({componentIndex:T},C.keyInfo);P=new O(E,this,this,R),Ce(P,R),C.brandNew&&(P.__requireNewView=!0),P.init(E,this,this),P.optionUpdated(null,!0)}}P?(y.push(P.option),S.push(P),w++):(y.push(void 0),S.push(void 0))},this),i[p]=y,o.set(p,S),a.set(p,w),p==="series"&&av(this)}this._seriesIndices||av(this)},t.prototype.getOption=function(){var r=Pt(this.option);return K(r,function(n,i){if(zt.hasClass(i)){for(var o=_n(n),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Ed(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,r[i]=o}}),delete r[fM],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var o=i[n||0];if(o)return o;if(n==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,o=r.id,a=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],K(_n(i),function(c){s[c]&&l.push(s[c])})):o!=null?l=dM("id",o,s):a!=null?l=dM("name",a,s):l=Sn(s,function(c){return!!c}),pM(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,o=s(n),a=o?this.queryComponents(o):Sn(this._componentsMap.get(i),function(c){return!!c});return l(pM(a,r));function s(c){var d=i+"Index",p=i+"Id",h=i+"Name";return c&&(c[d]!=null||c[p]!=null||c[h]!=null)?{mainType:i,index:c[d],id:c[p],name:c[h]}:null}function l(c){return r.filter?Sn(c,r.filter):c}},t.prototype.eachComponent=function(r,n,i){var o=this._componentsMap;if(dt(r)){var a=n,s=r;o.each(function(p,h){for(var v=0;p&&v<p.length;v++){var g=p[v];g&&s.call(a,h,g,g.componentIndex)}})}else for(var l=Ue(r)?o.get(r):Qe(r)?this.findComponents(r):null,c=0;l&&c<l.length;c++){var d=l[c];d&&n.call(i,d,d.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Io(r,null);return Sn(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Sn(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Sn(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){_f(this),K(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)},this)},t.prototype.eachRawSeries=function(r,n){K(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){_f(this),K(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===r&&n.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return K(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return _f(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){_f(this);var i=[];K(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];r.call(n,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=yt(i)},t.prototype.restoreData=function(r){av(this);var n=this._componentsMap,i=[];n.each(function(o,a){zt.hasClass(a)&&i.push(a)}),zt.topologicalTravel(i,zt.getAllClassMainTypes(),function(o){K(n.get(o),function(a){a&&(o!=="series"||!fte(a,r))&&a.restoreData()})})},t.internalField=function(){av=function(r){var n=r._seriesIndices=[];K(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=yt(n)},_f=function(r){},cM=function(r,n){r.option={},r.option[fM]=cte,r._componentsMap=yt({series:[]}),r._componentsCount=yt();var i=n.aria;Qe(i)&&i.enabled==null&&(i.enabled=!0),dte(n,r._theme.option),Nt(n,ste,!1),r._mergeOption(n,null)}}(),t}(xr);function fte(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function dte(e,t){var r=e.color&&!e.colorLayer;K(t,function(n,i){i==="colorLayer"&&r||zt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Nt(e[i],n,!1):Pt(n):e[i]==null&&(e[i]=n))})}function dM(e,t,r){if($e(t)){var n=yt();return K(t,function(o){if(o!=null){var a=Io(o,null);a!=null&&n.set(o,!0)}}),Sn(r,function(o){return o&&n.get(o[e])})}else{var i=Io(t,null);return Sn(r,function(o){return o&&i!=null&&o[e]===i})}}function pM(e,t){return t.hasOwnProperty("subType")?Sn(e,function(r){return r&&r.subType===t.subType}):e}function hM(e){var t=yt();return e&&K(_n(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Bo(Kw,Uw);var pte=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],OO=function(){function e(t){K(pte,function(r){this[r]=dr(t[r],t)},this)}return e}(),hte=/^(min|max)?(.+)$/,vte=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(K(_n(t.series),function(a){a&&a.data&&Hn(a.data)&&Vx(a.data)}),K(_n(t.dataset),function(a){a&&a.source&&Hn(a.source)&&Vx(a.source)})),t=Pt(t);var i=this._optionBackup,o=gte(t,r,!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 r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Pt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Pt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=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++)mte(i[l].query,r,n)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!xte(a,this._currentMediaIndices)&&(s=at(a,function(d){return Pt(d===-1?o.option:i[d].option)})),this._currentMediaIndices=a,s},e}();function gte(e,t,r){var n=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,c=e.media,d=!!e.media,p=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((p||d)&&(e.options=e.media=null),o=e),d&&$e(c)&&K(c,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(o),K(l,function(v){return h(v)}),K(n,function(v){return h(v.option)});function h(v){K(t,function(g){g(v,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function mte(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return K(e,function(o,a){var s=a.match(hte);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();yte(n[c],o,l)||(i=!1)}}),i}function yte(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function xte(e,t){return e.join(",")===t.join(",")}var Ki=K,$d=Qe,vM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function z1(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=vM.length;r<n;r++){var i=vM[r],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?Nt(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?Nt(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function un(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Wt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function jf(e){un(e,"itemStyle"),un(e,"lineStyle"),un(e,"areaStyle"),un(e,"label"),un(e,"labelLine"),un(e,"upperLabel"),un(e,"edgeLabel")}function br(e,t){var r=$d(e)&&e[t],n=$d(r)&&r.textStyle;if(n)for(var i=0,o=VP.length;i<o;i++){var a=VP[i];n.hasOwnProperty(a)&&(r[a]=n[a])}}function _i(e){e&&(jf(e),br(e,"label"),e.emphasis&&br(e.emphasis,"label"))}function Ste(e){if($d(e)){z1(e),jf(e),br(e,"label"),br(e,"upperLabel"),br(e,"edgeLabel"),e.emphasis&&(br(e.emphasis,"label"),br(e.emphasis,"upperLabel"),br(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(z1(t),_i(t));var r=e.markLine;r&&(z1(r),_i(r));var n=e.markArea;n&&_i(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Hn(o))for(var a=0;a<o.length;a++)_i(o[a]);K(e.categories,function(c){jf(c)})}if(i&&!Hn(i))for(var a=0;a<i.length;a++)_i(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)_i(s[a]);if(r=e.markLine,r&&r.data)for(var l=r.data,a=0;a<l.length;a++)$e(l[a])?(_i(l[a][0]),_i(l[a][1])):_i(l[a]);e.type==="gauge"?(br(e,"axisLabel"),br(e,"title"),br(e,"detail")):e.type==="treemap"?(un(e.breadcrumb,"itemStyle"),K(e.levels,function(c){jf(c)})):e.type==="tree"&&jf(e.leaves)}}function ta(e){return $e(e)?e:e?[e]:[]}function gM(e){return($e(e)?e[0]:e)||{}}function bte(e,t){Ki(ta(e.series),function(n){$d(n)&&Ste(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ki(r,function(n){Ki(ta(e[n]),function(i){i&&(br(i,"axisLabel"),br(i.axisPointer,"label"))})}),Ki(ta(e.parallel),function(n){var i=n&&n.parallelAxisDefault;br(i,"axisLabel"),br(i&&i.axisPointer,"label")}),Ki(ta(e.calendar),function(n){un(n,"itemStyle"),br(n,"dayLabel"),br(n,"monthLabel"),br(n,"yearLabel")}),Ki(ta(e.radar),function(n){br(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Ki(ta(e.geo),function(n){$d(n)&&(_i(n),Ki(ta(n.regions),function(i){_i(i)}))}),Ki(ta(e.timeline),function(n){_i(n),un(n,"label"),un(n,"itemStyle"),un(n,"controlStyle",!0);var i=n.data;$e(i)&&K(i,function(o){Qe(o)&&(un(o,"label"),un(o,"itemStyle"))})}),Ki(ta(e.toolbox),function(n){un(n,"iconStyle"),Ki(n.feature,function(i){un(i,"iconStyle")})}),br(gM(e.axisPointer),"label"),br(gM(e.tooltip).axisPointer,"label")}function wte(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function _te(e,t,r,n){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]]=r)}function mM(e){e&&K(Cte,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Cte=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Tte=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],j1=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cf(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<j1.length;r++){var n=j1[r][1],i=j1[r][0];t[n]!=null&&(t[i]=t[n])}}function yM(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function xM(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function kte(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function NO(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&NO(e[r].children,t)}function $O(e,t){bte(e,t),e.series=_n(e.series),K(e.series,function(r){if(Qe(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),yM(r.label);var i=r.data;if(i&&!Hn(i))for(var o=0;o<i.length;o++)yM(i[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var a=wte(r,"pointer.color");a!=null&&_te(r,"itemStyle.color",a)}else if(n==="bar"){Cf(r),Cf(r.backgroundStyle),Cf(r.emphasis);var i=r.data;if(i&&!Hn(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(Cf(i[o]),Cf(i[o]&&i[o].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),xM(r),NO(r.data,xM)}else n==="graph"||n==="sankey"?kte(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Wt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),mM(r)}}),e.dataRange&&(e.visualMap=e.dataRange),K(Tte,function(r){var n=e[r];n&&($e(n)||(n=[n]),K(n,function(i){mM(i)}))})}function Pte(e){var t=yt();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),o=r.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:r};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(Rte)}function Rte(e){K(e,function(t,r){var n=[],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,d,p){var h=a.get(t.stackedDimension,p);if(isNaN(h))return i;var v,g;s?g=a.getRawIndex(p):v=a.get(t.stackedByDimension,p);for(var x=NaN,y=r-1;y>=0;y--){var S=e[y];if(s||(g=S.data.rawIndexOf(S.stackedByDimension,v)),g>=0){var w=S.data.getByRawIndex(S.stackResultDimension,g);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&h>=0&&w>0||l==="samesign"&&h<=0&&w<0){h=JK(h,w),x=w;break}}}return n[0]=h,n[1]=x,n})})}var ao=function(){function e(){this.group=new pn,this.uid=bm("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();lw(ao);sm(ao);var SM=Nr(),bM={itemStyle:Rd(RL,!0),lineStyle:Rd(PL,!0)},Mte={lineStyle:"stroke",itemStyle:"fill"};function BO(e,t){var r=e.visualStyleMapper||bM[t];return r||(console.warn("Unknown style type '"+t+"'."),bM.itemStyle)}function FO(e,t){var r=e.visualDrawType||Mte[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ete={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),o=BO(e,n),a=o(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=FO(e,n),c=a[l],d=dt(c)?c:null,p=a.fill==="auto"||a.stroke==="auto";if(!a[l]||d||p){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,r.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||dt(a.fill)?h:a.fill,a.stroke=a.stroke==="auto"||dt(a.stroke)?h:a.stroke}if(r.setVisual("style",a),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&d)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,g){var x=e.getDataParams(g),y=Ce({},a);y[l]=d(x),v.setItemVisual(g,"style",y)}}}},Tf=new xr,Ite={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=BO(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[n]){Tf.option=l[n];var c=i(Tf),d=a.ensureUniqueItemVisual(s,"style");Ce(d,c),Tf.option.decal&&(a.setItemVisual(s,"decal",Tf.option.decal),Tf.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ate={performRawSeries:!0,overallReset:function(e){var t=yt();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,o=t.get(i);o||(o={},t.set(i,o)),SM(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},o=r.getData(),a=SM(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=FO(r,s);o.each(function(c){var d=o.getRawIndex(c);i[d]=c}),n.each(function(c){var d=i[c],p=o.getItemVisual(d,"colorFromPalette");if(p){var h=o.ensureUniqueItemVisual(d,"style"),v=n.getName(c)||c+"",g=n.count();h[l]=r.getColorFromPalette(v,a,g)}})}})}},sv=Math.PI;function Dte(e,t){t=t||{},Wt(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 r=new pn,n=new Wr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new dn({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 Wr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(o);var a;return t.showSpinner&&(a=new mm({shape:{startAngle:-sv/2,endAngle:-sv/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:sv*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:sv*3/2}).delay(300).start("circularInOut"),r.add(a)),r.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),d=e.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:d}),o.setShape({x:c-l,y:d-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var zO=function(){function e(t,r,n,i){this._stageTaskMap=yt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,o=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=o?n.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,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=yt();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;n.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}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;K(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";pa(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,r,n),i.overallReset&&this._createOverallStageTask(i,o,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var o=t.renderTask,a=o.context;a.model=r,a.ecModel=n,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(r,o)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var o=!1,a=this;K(t,function(l,c){if(!(i.visualType&&i.visualType!==l.visualType)){var d=a._stageTaskMap.get(l.uid),p=d.seriesTaskMap,h=d.overallTask;if(h){var v,g=h.agentStubMap;g.each(function(y){s(i,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),a.updatePayload(h,n);var x=a.getPerformArgs(h,i.block);g.each(function(y){y.perform(x)}),h.perform(x)&&(o=!0)}else p&&p.each(function(y,S){s(i,y)&&y.dirty();var w=a.getPerformArgs(y,i.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),a.updatePayload(y,n),y.perform(w)&&(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 r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var o=this,a=r.seriesTaskMap,s=r.seriesTaskMap=yt(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(d):l?n.eachRawSeriesByType(l,d):c&&c(n,i).each(d);function d(p){var h=p.uid,v=s.set(h,a&&a.get(h)||sd({plan:Bte,reset:Fte,count:jte}));v.context={model:p,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(p,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var o=this,a=r.overallTask=r.overallTask||sd({reset:Lte});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=yt(),c=t.seriesType,d=t.getTargetSeries,p=!0,h=!1,v="";pa(!t.createOnAllSeries,v),c?n.eachRawSeriesByType(c,g):d?d(n,i).each(g):(p=!1,K(n.getSeries(),g));function g(x){var y=x.uid,S=l.set(y,s&&s.get(y)||(h=!0,sd({reset:Ote,onDirty:$te})));S.context={model:x,overallProgress:p},S.agent=a,S.__block=p,o._pipe(x,S)}h&&a.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return dt(t)&&(t={overallReset:t,seriesType:Wte(t)}),t.uid=bm("stageHandler"),r&&(t.visualType=r),t},e}();function Lte(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ote(e){return e.overallProgress&&Nte}function Nte(){this.agent.dirty(),this.getDownstream().dirty()}function $te(){this.agent&&this.agent.dirty()}function Bte(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Fte(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=_n(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?at(t,function(r,n){return jO(n)}):zte}var zte=jO(0);function jO(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function jte(e){return e.data.count()}function Wte(e){Sg=null;try{e(Bd,WO)}catch{}return Sg}var Bd={},WO={},Sg;HO(Bd,Kw);HO(WO,OO);Bd.eachSeriesByType=Bd.eachRawSeriesByType=function(e){Sg=e};Bd.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Sg=e.subType)};function HO(e,t){for(var r in t.prototype)e[r]=Bn}var wM=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Hte={color:wM,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wM]};var mn="#B9B8CE",_M="#100C2A",lv=function(){return{axisLine:{lineStyle:{color:mn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},CM=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],VO={darkMode:!0,color:CM,backgroundColor:_M,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:mn}},textStyle:{color:mn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:mn}},dataZoom:{borderColor:"#71708A",textStyle:{color:mn},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:mn}},timeline:{lineStyle:{color:mn},label:{color:mn},controlStyle:{color:mn,borderColor:mn}},calendar:{itemStyle:{color:_M},dayLabel:{color:mn},monthLabel:{color:mn},yearLabel:{color:mn}},timeAxis:lv(),logAxis:lv(),valueAxis:lv(),categoryAxis:lv(),line:{symbol:"circle"},graph:{color:CM},gauge:{title:{color:mn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:mn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};VO.categoryAxis.splitLine.show=!1;var Vte=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Ue(t)){var o=Co(t);r.mainType=o.main||null,r.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};K(t,function(l,c){for(var d=!1,p=0;p<a.length;p++){var h=a[p],v=c.lastIndexOf(h);if(v>0&&v===c.length-h.length){var g=c.slice(0,v);g!=="data"&&(r.mainType=g,r[h.toLowerCase()]=l,d=!0)}}s.hasOwnProperty(c)&&(n[c]=l,d=!0),d||(i[c]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=r.cptQuery,c=r.dataQuery;return d(l,a,"mainType")&&d(l,a,"subType")&&d(l,a,"index","componentIndex")&&d(l,a,"name")&&d(l,a,"id")&&d(c,o,"name")&&d(c,o,"dataIndex")&&d(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,o));function d(p,h,v,g){return p[v]==null||h[g||v]===p[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),kS=["symbol","symbolSize","symbolRotate","symbolOffset"],TM=kS.concat(["symbolKeepAspect"]),Ute={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},o=!1,a=0;a<kS.length;a++){var s=kS[a],l=e.get(s);dt(l)?(o=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Ce({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var c=lr(i);function d(p,h){for(var v=e.getRawValue(h),g=e.getDataParams(h),x=0;x<c.length;x++){var y=c[x];p.setItemVisual(h,y,i[y](v,g))}}return{dataEach:o?d:null}}},Gte={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,o){for(var a=i.getItemModel(o),s=0;s<TM.length;s++){var l=TM[s],c=a.getShallow(l,!0);c!=null&&i.setItemVisual(o,l,c)}}return{dataEach:r.hasItemOption?n:null}}};function Yte(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function qte(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Wf(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Kte=Math.round(Math.random()*9),Xte=typeof Object.defineProperty=="function",Qte=function(){function e(){this._id="__ec_inner_"+Kte++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Xte?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,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}();function xl(e){return isFinite(e)}function Zte(e,t,r){var n=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||(n=n*r.width+r.x,i=i*r.width+r.x,o=o*r.height+r.y,a=a*r.height+r.y),n=xl(n)?n:0,i=xl(i)?i:1,o=xl(o)?o:0,a=xl(a)?a:0;var s=e.createLinearGradient(n,o,i,a);return s}function Jte(e,t,r){var n=r.width,i=r.height,o=Math.min(n,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*n+r.x,s=s*i+r.y,l=l*o),a=xl(a)?a:.5,s=xl(s)?s:.5,l=l>=0&&xl(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function PS(e,t,r){for(var n=t.type==="radial"?Jte(e,t,r):Zte(e,t,r),i=t.colorStops,o=0;o<i.length;o++)n.addColorStop(i[o].offset,i[o].color);return n}function ere(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function uv(e){return parseInt(e,10)}function cv(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||uv(s[n])||uv(e.style[n]))-(uv(s[o])||0)-(uv(s[a])||0)|0}function tre(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ur(e)?[e]:$e(e)?e:null}function UO(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&tre(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=at(r,function(o){return o/i}),n/=i)}return[r,n]}var rre=new Nl(!0);function bg(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function kM(e){return typeof e=="string"&&e!=="none"}function wg(e){var t=e.fill;return t!=null&&t!=="none"}function PM(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function RM(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function RS(e,t,r){var n=ID(t.image,t.__image,r);if(lm(n)){var i=e.createPattern(n,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)*pq),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function nre(e,t,r,n){var i,o=bg(r),a=wg(r),s=r.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var d=t.path||rre,p=t.__dirty;if(!n){var h=r.fill,v=r.stroke,g=a&&!!h.colorStops,x=o&&!!v.colorStops,y=a&&!!h.image,S=o&&!!v.image,w=void 0,b=void 0,C=void 0,T=void 0,P=void 0;(g||x)&&(P=t.getBoundingRect()),g&&(w=p?PS(e,h,P):t.__canvasFillGradient,t.__canvasFillGradient=w),x&&(b=p?PS(e,v,P):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(C=p||!t.__canvasFillPattern?RS(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=C),S&&(T=p||!t.__canvasStrokePattern?RS(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=C),g?e.fillStyle=w:y&&(C?e.fillStyle=C:a=!1),x?e.strokeStyle=b:S&&(T?e.strokeStyle=T:o=!1)}var E=t.getGlobalScale();d.setScale(E[0],E[1],t.segmentIgnoreThreshold);var A,O;e.setLineDash&&r.lineDash&&(i=UO(t),A=i[0],O=i[1]);var R=!0;(c||p&Bf)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),R=!1),d.reset(),t.buildPath(d,t.shape,n),d.toStatic(),t.pathUpdated()),R&&d.rebuildPath(e,l?s:1),A&&(e.setLineDash(A),e.lineDashOffset=O),n||(r.strokeFirst?(o&&RM(e,r),a&&PM(e,r)):(a&&PM(e,r),o&&RM(e,r))),A&&e.setLineDash([])}function ire(e,t,r){var n=t.__image=ID(r.image,t.__image,t,t.onload);if(!(!n||!lm(n))){var i=r.x||0,o=r.y||0,a=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=n.width,s=n.height),r.sWidth&&r.sHeight){var c=r.sx||0,d=r.sy||0;e.drawImage(n,c,d,r.sWidth,r.sHeight,i,o,a,s)}else if(r.sx&&r.sy){var c=r.sx,d=r.sy,p=a-c,h=s-d;e.drawImage(n,c,d,p,h,i,o,a,s)}else e.drawImage(n,i,o,a,s)}}function ore(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Ll,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,a=void 0;e.setLineDash&&r.lineDash&&(n=UO(t),o=n[0],a=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),r.strokeFirst?(bg(r)&&e.strokeText(i,r.x,r.y),wg(r)&&e.fillText(i,r.x,r.y)):(wg(r)&&e.fillText(i,r.x,r.y),bg(r)&&e.strokeText(i,r.x,r.y)),o&&e.setLineDash([])}}var MM=["shadowBlur","shadowOffsetX","shadowOffsetY"],EM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function GO(e,t,r,n,i){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){On(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Cl.opacity:a}(n||t.blend!==r.blend)&&(o||(On(e,i),o=!0),e.globalCompositeOperation=t.blend||Cl.blend);for(var s=0;s<MM.length;s++){var l=MM[s];(n||t[l]!==r[l])&&(o||(On(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||(On(e,i),o=!0),e.shadowColor=t.shadowColor||Cl.shadowColor),o}function IM(e,t,r,n,i){var o=Fd(t,i.inHover),a=n?null:r&&Fd(r,i.inHover)||{};if(o===a)return!1;var s=GO(e,o,a,n,i);if((n||o.fill!==a.fill)&&(s||(On(e,i),s=!0),kM(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(On(e,i),s=!0),kM(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(On(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||(On(e,i),s=!0),e.lineWidth=c)}for(var d=0;d<EM.length;d++){var p=EM[d],h=p[0];(n||o[h]!==a[h])&&(s||(On(e,i),s=!0),e[h]=o[h]||p[1])}return s}function are(e,t,r,n,i){return GO(e,Fd(t,i.inHover),r&&Fd(r,i.inHover),n,i)}function YO(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function sre(e,t,r){for(var n=!1,i=0;i<e.length;i++){var o=e[i];n=n||o.isZeroArea(),YO(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function lre(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 AM=1,DM=2,LM=3,OM=4;function ure(e){var t=wg(e),r=bg(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function On(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Fd(e,t){return t&&e.__hoverStyle||e.style}function qO(e,t){Sl(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Sl(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,a=r.prevElClipPaths,s=!1,l=!1;if((!a||ere(o,a))&&(a&&a.length&&(On(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&(On(e,r),e.save(),sre(o,e,r),s=!0),r.prevElClipPaths=o),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=r.prevEl;c||(l=s=!0);var d=t instanceof Xt&&t.autoBatch&&ure(t.style);s||lre(i,c.transform)?(On(e,r),YO(e,t)):d||On(e,r);var p=Fd(t,r.inHover);t instanceof Xt?(r.lastDrawType!==AM&&(l=!0,r.lastDrawType=AM),IM(e,t,c,l,r),(!d||!r.batchFill&&!r.batchStroke)&&e.beginPath(),nre(e,t,p,d),d&&(r.batchFill=p.fill||"",r.batchStroke=p.stroke||"")):t instanceof lg?(r.lastDrawType!==LM&&(l=!0,r.lastDrawType=LM),IM(e,t,c,l,r),ore(e,t,p)):t instanceof Ss?(r.lastDrawType!==DM&&(l=!0,r.lastDrawType=DM),are(e,t,c,l,r),ire(e,t,p)):t.getTemporalDisplayables&&(r.lastDrawType!==OM&&(l=!0,r.lastDrawType=OM),cre(e,t,r)),d&&n&&On(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function cre(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},a,s;for(a=t.getCursor(),s=n.length;a<s;a++){var l=n[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Sl(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,d=i.length;c<d;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Sl(e,l,o,c===d-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var W1=new Qte,NM=new sp(100),$M=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function MS(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&W1.delete(e);var o=W1.get(e);if(o)return o;var a=Wt(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/r,W1.set(e,s),e.dirty=!1,s;function l(c){for(var d=[r],p=!0,h=0;h<$M.length;++h){var v=a[$M[h]];if(v!=null&&!$e(v)&&!Ue(v)&&!ur(v)&&typeof v!="boolean"){p=!1;break}d.push(v)}var g;if(p){g=d.join(",")+(i?"-svg":"");var x=NM.get(g);x&&(i?c.svgElement=x:c.image=x)}var y=XO(a.dashArrayX),S=fre(a.dashArrayY),w=KO(a.symbol),b=dre(y),C=QO(S),T=!i&&cc.createCanvas(),P=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=O(),A;T&&(T.width=E.width*r,T.height=E.height*r,A=T.getContext("2d")),R(),p&&NM.put(g,T||P),c.image=T,c.svgElement=P,c.svgWidth=E.width,c.svgHeight=E.height;function O(){for(var L=1,N=0,B=b.length;N<B;++N)L=jP(L,b[N]);for(var F=1,N=0,B=w.length;N<B;++N)F=jP(F,w[N].length);L*=F;var z=C*b.length*w.length;return{width:Math.max(1,Math.min(L,a.maxTileWidth)),height:Math.max(1,Math.min(z,a.maxTileHeight))}}function R(){A&&(A.clearRect(0,0,T.width,T.height),a.backgroundColor&&(A.fillStyle=a.backgroundColor,A.fillRect(0,0,T.width,T.height)));for(var L=0,N=0;N<S.length;++N)L+=S[N];if(L<=0)return;for(var B=-C,F=0,z=0,j=0;B<E.height;){if(F%2===0){for(var X=z/2%w.length,V=0,H=0,G=0;V<E.width*2;){for(var W=0,N=0;N<y[j].length;++N)W+=y[j][N];if(W<=0)break;if(H%2===0){var Y=(1-a.symbolSize)*.5,te=V+y[j][H]*Y,le=B+S[F]*Y,ne=y[j][H]*a.symbolSize,Z=S[F]*a.symbolSize,ce=G/2%w[X].length;me(te,le,ne,Z,w[X][ce])}V+=y[j][H],++G,++H,H===y[j].length&&(H=0)}++j,j===y.length&&(j=0)}B+=S[F],++z,++F,F===S.length&&(F=0)}function me(de,fe,ge,pe,Oe){var ke=i?1:r,nt=ac(Oe,de*ke,fe*ke,ge*ke,pe*ke,a.color,a.symbolKeepAspect);if(i){var tt=n.painter.renderOneToVNode(nt);tt&&P.children.push(tt)}else qO(A,nt)}}}}function KO(e){if(!e||e.length===0)return[["rect"]];if(Ue(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ue(e[r])){t=!1;break}if(t)return KO([e]);for(var n=[],r=0;r<e.length;++r)Ue(e[r])?n.push([e[r]]):n.push(e[r]);return n}function XO(e){if(!e||e.length===0)return[[0,0]];if(ur(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ur(e[n])){r=!1;break}if(r)return XO([e]);for(var i=[],n=0;n<e.length;++n)if(ur(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=at(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function fre(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ur(e)){var t=Math.ceil(e);return[t,t]}var r=at(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function dre(e){return at(e,function(t){return QO(t)})}function QO(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function pre(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(a){var s=n.getItemVisual(a,"decal");if(s){var l=n.ensureUniqueItemVisual(a,"style");l.decal=MS(s,t)}});var i=n.getVisual("decal");if(i){var o=n.getVisual("style");o.decal=MS(i,t)}}})}var Ji=new Fo,ZO={};function hre(e,t){ZO[e]=t}function vre(e){return ZO[e]}var gre=1,mre=800,yre=900,xre=1e3,Sre=2e3,bre=5e3,JO=1e3,wre=1100,Xw=2e3,e5=3e3,_re=4e3,Mm=4500,Cre=4600,Tre=5e3,kre=6e3,t5=7e3,Pre={PROCESSOR:{FILTER:xre,SERIES_FILTER:mre,STATISTIC:bre},VISUAL:{LAYOUT:JO,PROGRESSIVE_LAYOUT:wre,GLOBAL:Xw,CHART:e5,POST_CHART_LAYOUT:Cre,COMPONENT:_re,BRUSH:Tre,CHART_ITEM:Mm,ARIA:kre,DECAL:t5}},an="__flagInMainProcess",An="__pendingUpdate",H1="__needsUpdateStatus",BM=/^[a-zA-Z0-9_]+$/,V1="__connectUpdateStatus",FM=0,Rre=1,Mre=2;function r5(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return i5(this,e,t)}}function n5(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return i5(this,e,t)}}function i5(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Fo.prototype[t].apply(e,r)}var o5=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Fo),a5=o5.prototype;a5.on=n5("on");a5.off=n5("off");var Pu,U1,fv,qa,G1,Y1,q1,kf,Pf,zM,jM,K1,WM,dv,HM,s5,yi,VM,_g=function(e){Ae(t,e);function t(r,n,i){var o=e.call(this,new Vte)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Ue(n)&&(n=l5[n]),o._dom=r;var a="canvas",s="auto",l=!1;i.ssr;var c=o._zr=uM(r,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:wt(i.useDirtyRect,l),useCoarsePointer:wt(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=TO(dr(c.flush,c),17),n=Pt(n),n&&$O(n,!0),o._theme=n,o._locale=jZ(i.locale||KL),o._coordSysMgr=new Bw;var d=o._api=HM(o);function p(h,v){return h.__prio-v.__prio}return $v(Tg,p),$v(ES,p),o._scheduler=new zO(o,d,ES,Tg),o._messageCenter=new o5,o._initEvents(),o.resize=dr(o.resize,o),c.animation.on("frame",o._onframe,o),zM(c,o),jM(c,o),Vx(o),o}return t.prototype._onframe=function(){if(!this._disposed){VM(this);var r=this._scheduler;if(this[An]){var n=this[An].silent;this[an]=!0;try{Pu(this),qa.update.call(this,null,this[An].updateParams)}catch(l){throw this[an]=!1,this[An]=null,l}this._zr.flush(),this[an]=!1,this[An]=null,kf.call(this,n),Pf.call(this,n)}else if(r.unfinished){var i=gre,o=this._model,a=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),Y1(this,o),r.performVisualTasks(o),dv(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.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(r,n,i){if(!this[an]){if(this._disposed){this.id;return}var o,a,s;if(Qe(n)&&(i=n.lazyUpdate,o=n.silent,a=n.replaceMerge,s=n.transition,n=n.notMerge),this[an]=!0,!this._model||n){var l=new vte(this._api),c=this._theme,d=this._model=new Kw;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,l)}this._model.setOption(r,{replaceMerge:a},IS);var p={seriesTransition:s,optionChanged:!0};if(i)this[An]={silent:o,updateParams:p},this[an]=!1,this.getZr().wakeUp();else{try{Pu(this),qa.update.call(this,null,p)}catch(h){throw this[An]=null,this[an]=!1,h}this._ssr||this._zr.flush(),this[An]=null,this[an]=!1,kf.call(this,o),Pf.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||ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(ut.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return K(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,o=[],a=this;K(n,function(l){i.eachComponent({mainType:l},function(c){var d=a._componentsMap[c.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return K(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(DS[i]){var l=s,c=s,d=-s,p=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();K(qu,function(b,C){if(b.group===i){var T=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Pt(r)),P=b.getDom().getBoundingClientRect();l=o(P.left,l),c=o(P.top,c),d=a(P.right,d),p=a(P.bottom,p),h.push({dom:T,left:P.left,top:P.top})}}),l*=v,c*=v,d*=v,p*=v;var g=d-l,x=p-c,y=cc.createCanvas(),S=uM(y,{renderer:n?"svg":"canvas"});if(S.resize({width:g,height:x}),n){var w="";return K(h,function(b){var C=b.left-l,T=b.top-c;w+='<g transform="translate('+C+","+T+')">'+b.dom+"</g>"}),S.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&S.painter.setBackgroundColor(r.connectedBackgroundColor),S.refreshImmediately(),S.painter.toDataURL()}else return r.connectedBackgroundColor&&S.add(new Wr({shape:{x:0,y:0,width:g,height:x},style:{fill:r.connectedBackgroundColor}})),K(h,function(b){var C=new Ss({style:{x:b.left*v-l,y:b.top*v-c,image:b.dom}});S.add(C)}),S.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return G1(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return G1(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,o,a=f1(i,r);return K(a,function(s,l){l.indexOf("Models")>=0&&K(s,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(n);else if(l==="seriesModels"){var p=this._chartsMap[c.__viewId];p&&p.containPoint&&(o=o||p.containPoint(n,c))}},this)},this),!!o},t.prototype.getVisual=function(r,n){var i=this._model,o=f1(i,r,{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?Yte(s,l,n):qte(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;K(Ere,function(n){var i=function(o){var a=r.getModel(),s=o.target,l,c=n==="globalout";if(c?l={}:s&&Wf(s,function(g){var x=jt(g);if(x&&x.dataIndex!=null){var y=x.dataModel||a.getSeriesByIndex(x.seriesIndex);return l=y&&y.getDataParams(x.dataIndex,x.dataType,s)||{},!0}else if(x.eventData)return l=Ce({},x.eventData),!0},!0),l){var d=l.componentType,p=l.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",p=l.seriesIndex);var h=d&&p!=null&&a.getComponent(d,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),K(ld,function(n,i){r._messageCenter.on(i,function(o){this.trigger(i,o)},r)}),K(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Mee(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 r=this.getDom();r&&nL(this.getDom(),Zw,"");var n=this,i=n._api,o=n._model;K(n._componentsViews,function(a){a.dispose(o,i)}),K(n._chartsViews,function(a){a.dispose(o,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete qu[n.id]},t.prototype.resize=function(r){if(!this[an]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),o=r&&r.silent;this[An]&&(o==null&&(o=this[An].silent),i=!0,this[An]=null),this[an]=!0;try{i&&Pu(this),qa.update.call(this,{type:"resize",animation:Ce({duration:0},r&&r.animation)})}catch(a){throw this[an]=!1,a}this[an]=!1,kf.call(this,o),Pf.call(this,o)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Qe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!AS[r]){var i=AS[r](this._api,n),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(r){var n=Ce({},r);return n.type=ld[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Qe(n)||(n={silent:!!n}),!!Cg[r.type]&&this._model){if(this[an]){this._pendingActions.push(r);return}var i=n.silent;q1.call(this,r,i);var o=n.flush;o?this._zr.flush():o!==!1&&ut.browser.weChat&&this._throttledZrFlush(),kf.call(this,i),Pf.call(this,i)}},t.prototype.updateLabelLayout=function(){Ji.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(n);o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Pu=function(p){var h=p._scheduler;h.restorePipelines(p._model),h.prepareStageTasks(),U1(p,!0),U1(p,!1),h.plan()},U1=function(p,h){for(var v=p._model,g=p._scheduler,x=h?p._componentsViews:p._chartsViews,y=h?p._componentsMap:p._chartsMap,S=p._zr,w=p._api,b=0;b<x.length;b++)x[b].__alive=!1;h?v.eachComponent(function(P,E){P!=="series"&&C(E)}):v.eachSeries(C);function C(P){var E=P.__requireNewView;P.__requireNewView=!1;var A="_ec_"+P.id+"_"+P.type,O=!E&&y[A];if(!O){var R=Co(P.type),L=h?ao.getClass(R.main,R.sub):Ao.getClass(R.sub);O=new L,O.init(v,w),y[A]=O,x.push(O),S.add(O.group)}P.__viewId=O.__id=A,O.__alive=!0,O.__model=P,O.group.__ecComponentInfo={mainType:P.mainType,index:P.componentIndex},!h&&g.prepareView(O,P,v,w)}for(var b=0;b<x.length;){var T=x[b];T.__alive?b++:(!h&&T.renderTask.dispose(),S.remove(T.group),T.dispose(v,w),x.splice(b,1),y[T.__id]===T&&delete y[T.__id],T.__id=T.group.__ecComponentInfo=null)}},fv=function(p,h,v,g,x){var y=p._model;if(y.setUpdatePayload(v),!g){K([].concat(p._componentsViews).concat(p._chartsViews),T);return}var S={};S[g+"Id"]=v[g+"Id"],S[g+"Index"]=v[g+"Index"],S[g+"Name"]=v[g+"Name"];var w={mainType:g,query:S};x&&(w.subType=x);var b=v.excludeSeriesId,C;b!=null&&(C=yt(),K(_n(b),function(P){var E=Io(P,null);E!=null&&C.set(E,!0)})),y&&y.eachComponent(w,function(P){var E=C&&C.get(P.id)!=null;if(!E)if(tR(v))if(P instanceof gs)v.type===Tl&&!v.notBlur&&!P.get(["emphasis","disabled"])&&MX(P,v,p._api);else{var A=ww(P.mainType,P.componentIndex,v.name,p._api),O=A.focusSelf,R=A.dispatchers;v.type===Tl&&O&&!v.notBlur&&oS(P.mainType,P.componentIndex,p._api),R&&K(R,function(L){v.type===Tl?fg(L):dg(L)})}else uS(v)&&P instanceof gs&&(AX(P,v,p._api),ZP(P),yi(p))},p),y&&y.eachComponent(w,function(P){var E=C&&C.get(P.id)!=null;E||T(p[g==="series"?"_chartsMap":"_componentsMap"][P.__viewId])},p);function T(P){P&&P.__alive&&P[h]&&P[h](P.__model,y,p._api,v)}},qa={prepareAndUpdate:function(p){Pu(this),qa.update.call(this,p,{optionChanged:p.newOption!=null})},update:function(p,h){var v=this._model,g=this._api,x=this._zr,y=this._coordSysMgr,S=this._scheduler;if(v){v.setUpdatePayload(p),S.restoreData(v,p),S.performSeriesTasks(v),y.create(v,g),S.performDataProcessorTasks(v,p),Y1(this,v),y.update(v,g),r(v),S.performVisualTasks(v,p),K1(this,v,g,p,h);var w=v.get("backgroundColor")||"transparent",b=v.get("darkMode");x.setBackgroundColor(w),b!=null&&b!=="auto"&&x.setDarkMode(b),Ji.trigger("afterupdate",v,g)}},updateTransform:function(p){var h=this,v=this._model,g=this._api;if(v){v.setUpdatePayload(p);var x=[];v.eachComponent(function(S,w){if(S!=="series"){var b=h.getViewOfComponentModel(w);if(b&&b.__alive)if(b.updateTransform){var C=b.updateTransform(w,v,g,p);C&&C.update&&x.push(b)}else x.push(b)}});var y=yt();v.eachSeries(function(S){var w=h._chartsMap[S.__viewId];if(w.updateTransform){var b=w.updateTransform(S,v,g,p);b&&b.update&&y.set(S.uid,1)}else y.set(S.uid,1)}),r(v),this._scheduler.performVisualTasks(v,p,{setDirty:!0,dirtyMap:y}),dv(this,v,g,p,{},y),Ji.trigger("afterupdate",v,g)}},updateView:function(p){var h=this._model;h&&(h.setUpdatePayload(p),Ao.markUpdateMethod(p,"updateView"),r(h),this._scheduler.performVisualTasks(h,p,{setDirty:!0}),K1(this,h,this._api,p,{}),Ji.trigger("afterupdate",h,this._api))},updateVisual:function(p){var h=this,v=this._model;v&&(v.setUpdatePayload(p),v.eachSeries(function(g){g.getData().clearAllVisual()}),Ao.markUpdateMethod(p,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,p,{visualType:"visual",setDirty:!0}),v.eachComponent(function(g,x){if(g!=="series"){var y=h.getViewOfComponentModel(x);y&&y.__alive&&y.updateVisual(x,v,h._api,p)}}),v.eachSeries(function(g){var x=h._chartsMap[g.__viewId];x.updateVisual(g,v,h._api,p)}),Ji.trigger("afterupdate",v,this._api))},updateLayout:function(p){qa.update.call(this,p)}},G1=function(p,h,v,g){if(p._disposed){p.id;return}for(var x=p._model,y=p._coordSysMgr.getCoordinateSystems(),S,w=f1(x,v),b=0;b<y.length;b++){var C=y[b];if(C[h]&&(S=C[h](x,w,g))!=null)return S}},Y1=function(p,h){var v=p._chartsMap,g=p._scheduler;h.eachSeries(function(x){g.updateStreamModes(x,v[x.__viewId])})},q1=function(p,h){var v=this,g=this.getModel(),x=p.type,y=p.escapeConnect,S=Cg[x],w=S.actionInfo,b=(w.update||"update").split(":"),C=b.pop(),T=b[0]!=null&&Co(b[0]);this[an]=!0;var P=[p],E=!1;p.batch&&(E=!0,P=at(p.batch,function(F){return F=Wt(Ce({},F),p),F.batch=null,F}));var A=[],O,R=uS(p),L=tR(p);if(L&&dL(this._api),K(P,function(F){if(O=S.action(F,v._model,v._api),O=O||Ce({},F),O.type=w.event||O.type,A.push(O),L){var z=yw(p),j=z.queryOptionMap,X=z.mainTypeSpecified,V=X?j.keys()[0]:"series";fv(v,C,F,V),yi(v)}else R?(fv(v,C,F,"series"),yi(v)):T&&fv(v,C,F,T.main,T.sub)}),C!=="none"&&!L&&!R&&!T)try{this[An]?(Pu(this),qa.update.call(this,p),this[An]=null):qa[C].call(this,p)}catch(F){throw this[an]=!1,F}if(E?O={type:w.event||x,escapeConnect:y,batch:A}:O=A[0],this[an]=!1,!h){var N=this._messageCenter;if(N.trigger(O.type,O),R){var B={type:"selectchanged",escapeConnect:y,selected:DX(g),isFromClick:p.isFromClick||!1,fromAction:p.type,fromActionPayload:p};N.trigger(B.type,B)}}},kf=function(p){for(var h=this._pendingActions;h.length;){var v=h.shift();q1.call(this,v,p)}},Pf=function(p){!p&&this.trigger("updated")},zM=function(p,h){p.on("rendered",function(v){h.trigger("rendered",v),p.animation.isFinished()&&!h[An]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},jM=function(p,h){p.on("mouseover",function(v){var g=v.target,x=Wf(g,lS);x&&(EX(x,v,h._api),yi(h))}).on("mouseout",function(v){var g=v.target,x=Wf(g,lS);x&&(IX(x,v,h._api),yi(h))}).on("click",function(v){var g=v.target,x=Wf(g,function(w){return jt(w).dataIndex!=null},!0);if(x){var y=x.selected?"unselect":"select",S=jt(x);h._api.dispatchAction({type:y,dataType:S.dataType,dataIndexInside:S.dataIndex,seriesIndex:S.seriesIndex,isFromClick:!0})}})};function r(p){p.clearColorPalette(),p.eachSeries(function(h){h.clearColorPalette()})}function n(p){var h=[],v=[],g=!1;if(p.eachComponent(function(w,b){var C=b.get("zlevel")||0,T=b.get("z")||0,P=b.getZLevelKey();g=g||!!P,(w==="series"?v:h).push({zlevel:C,z:T,idx:b.componentIndex,type:w,key:P})}),g){var x=h.concat(v),y,S;$v(x,function(w,b){return w.zlevel===b.zlevel?w.z-b.z:w.zlevel-b.zlevel}),K(x,function(w){var b=p.getComponent(w.type,w.idx),C=w.zlevel,T=w.key;y!=null&&(C=Math.max(y,C)),T?(C===y&&T!==S&&C++,S=T):S&&(C===y&&C++,S=""),y=C,b.setZLevel(C)})}}K1=function(p,h,v,g,x){n(h),WM(p,h,v,g,x),K(p._chartsViews,function(y){y.__alive=!1}),dv(p,h,v,g,x),K(p._chartsViews,function(y){y.__alive||y.remove(h,v)})},WM=function(p,h,v,g,x,y){K(y||p._componentsViews,function(S){var w=S.__model;c(w,S),S.render(w,h,v,g),s(w,S),d(w,S)})},dv=function(p,h,v,g,x,y){var S=p._scheduler;x=Ce(x||{},{updatedSeries:h.getSeries()}),Ji.trigger("series:beforeupdate",h,v,x);var w=!1;h.eachSeries(function(b){var C=p._chartsMap[b.__viewId];C.__alive=!0;var T=C.renderTask;S.updatePayload(T,g),c(b,C),y&&y.get(b.uid)&&T.dirty(),T.perform(S.getPerformArgs(T))&&(w=!0),C.group.silent=!!b.get("silent"),a(b,C),ZP(b)}),S.unfinished=w||S.unfinished,Ji.trigger("series:layoutlabels",h,v,x),Ji.trigger("series:transition",h,v,x),h.eachSeries(function(b){var C=p._chartsMap[b.__viewId];s(b,C),d(b,C)}),o(p,h),Ji.trigger("series:afterupdate",h,v,x)},yi=function(p){p[H1]=!0,p.getZr().wakeUp()},VM=function(p){p[H1]&&(p.getZr().storage.traverse(function(h){id(h)||i(h)}),p[H1]=!1)};function i(p){for(var h=[],v=p.currentStates,g=0;g<v.length;g++){var x=v[g];x==="emphasis"||x==="blur"||x==="select"||h.push(x)}p.selected&&p.states.select&&h.push("select"),p.hoverState===pm&&p.states.emphasis?h.push("emphasis"):p.hoverState===dm&&p.states.blur&&h.push("blur"),p.useStates(h)}function o(p,h){var v=p._zr,g=v.storage,x=0;g.traverse(function(y){y.isGroup||x++}),x>h.get("hoverLayerThreshold")&&!ut.node&&!ut.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var S=p._chartsMap[y.__viewId];S.__alive&&S.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function a(p,h){var v=p.get("blendMode")||null;h.eachRendered(function(g){g.isGroup||(g.style.blend=v)})}function s(p,h){if(!p.preventAutoZ){var v=p.get("z")||0,g=p.get("zlevel")||0;h.eachRendered(function(x){return l(x,v,g,-1/0),!0})}}function l(p,h,v,g){var x=p.getTextContent(),y=p.getTextGuideLine(),S=p.isGroup;if(S)for(var w=p.childrenRef(),b=0;b<w.length;b++)g=Math.max(l(w[b],h,v,g),g);else p.z=h,p.zlevel=v,g=Math.max(p.z2,g);if(x&&(x.z=h,x.zlevel=v,isFinite(g)&&(x.z2=g+2)),y){var C=p.textGuideLineConfig;y.z=h,y.zlevel=v,isFinite(g)&&(y.z2=g+(C&&C.showAbove?1:-1))}return g}function c(p,h){h.eachRendered(function(v){if(!id(v)){var g=v.getTextContent(),x=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function d(p,h){var v=p.getModel("stateAnimation"),g=p.isAnimationEnabled(),x=v.get("duration"),y=x>0?{duration:x,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(S){if(S.states&&S.states.emphasis){if(id(S))return;if(S instanceof Xt&&BX(S),S.__dirty){var w=S.prevStates;w&&S.useStates(w)}if(g){S.stateTransition=y;var b=S.getTextContent(),C=S.getTextGuideLine();b&&(b.stateTransition=y),C&&(C.stateTransition=y)}S.__dirty&&i(S)}})}HM=function(p){return new(function(h){Ae(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(g){for(;g;){var x=g.__ecComponentInfo;if(x!=null)return p._model.getComponent(x.mainType,x.index);g=g.parent}},v.prototype.enterEmphasis=function(g,x){fg(g,x),yi(p)},v.prototype.leaveEmphasis=function(g,x){dg(g,x),yi(p)},v.prototype.enterBlur=function(g){RX(g),yi(p)},v.prototype.leaveBlur=function(g){lL(g),yi(p)},v.prototype.enterSelect=function(g){uL(g),yi(p)},v.prototype.leaveSelect=function(g){cL(g),yi(p)},v.prototype.getModel=function(){return p.getModel()},v.prototype.getViewOfComponentModel=function(g){return p.getViewOfComponentModel(g)},v.prototype.getViewOfSeriesModel=function(g){return p.getViewOfSeriesModel(g)},v}(OO))(p)},s5=function(p){function h(v,g){for(var x=0;x<v.length;x++){var y=v[x];y[V1]=g}}K(ld,function(v,g){p._messageCenter.on(g,function(x){if(DS[p.group]&&p[V1]!==FM){if(x&&x.escapeConnect)return;var y=p.makeActionFromEvent(x),S=[];K(qu,function(w){w!==p&&w.group===p.group&&S.push(w)}),h(S,FM),K(S,function(w){w[V1]!==Rre&&w.dispatchAction(y)}),h(S,Mre)}})})}}(),t}(Fo),Qw=_g.prototype;Qw.on=r5("on");Qw.off=r5("off");Qw.one=function(e,t,r){var n=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),n.off(e,i)}this.on.call(this,e,i,r)};var Ere=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Cg={},ld={},ES=[],IS=[],Tg=[],l5={},AS={},qu={},DS={},Ire=+new Date-0,Are=+new Date-0,Zw="_echarts_instance_";function Dre(e,t,r){{var n=u5(e);if(n)return n}var i=new _g(e,t,r);return i.id="ec_"+Ire++,qu[i.id]=i,nL(e,Zw,i.id),s5(i),Ji.trigger("afterinit",i),i}function Lre(e){if($e(e)){var t=e;e=null,K(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+Are++,K(t,function(r){r.group=e})}return DS[e]=!0,e}function Ore(e){Ue(e)?e=qu[e]:e instanceof _g||(e=u5(e)),e instanceof _g&&!e.isDisposed()&&e.dispose()}function u5(e){return qu[vX(e,Zw)]}function c5(e,t){l5[e]=t}function f5(e){Ut(IS,e)<0&&IS.push(e)}function d5(e,t){e_(ES,e,t,Sre)}function Nre(e){Jw("afterinit",e)}function $re(e){Jw("afterupdate",e)}function Jw(e,t){Ji.on(e,t)}function hc(e,t,r){dt(t)&&(r=t,t="");var n=Qe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!ld[t]&&(pa(BM.test(n)&&BM.test(t)),Cg[n]||(Cg[n]={action:r,actionInfo:e}),ld[t]=n)}function Bre(e,t){Bw.register(e,t)}function Fre(e,t){e_(Tg,e,t,JO,"layout")}function zl(e,t){e_(Tg,e,t,e5,"visual")}var UM=[];function e_(e,t,r,n,i){if((dt(t)||Qe(t))&&(r=t,t=n),!(Ut(UM,r)>=0)){UM.push(r);var o=zO.wrapStageHandler(r,i);o.__prio=t,o.__raw=r,e.push(o)}}function p5(e,t){AS[e]=t}function zre(e,t,r){var n=vre("registerMap");n&&n(e,t,r)}var jre=fJ;zl(Xw,Ete);zl(Mm,Ite);zl(Mm,Ate);zl(Xw,Ute);zl(Mm,Gte);zl(t5,pre);f5($O);d5(yre,Pte);p5("default",Dte);hc({type:Tl,event:Tl,update:Tl},Bn);hc({type:Iv,event:Iv,update:Iv},Bn);hc({type:td,event:td,update:td},Bn);hc({type:Av,event:Av,update:Av},Bn);hc({type:rd,event:rd,update:rd},Bn);c5("light",Hte);c5("dark",VO);var GM=[],Wre={registerPreprocessor:f5,registerProcessor:d5,registerPostInit:Nre,registerPostUpdate:$re,registerUpdateLifecycle:Jw,registerAction:hc,registerCoordinateSystem:Bre,registerLayout:Fre,registerVisual:zl,registerTransform:jre,registerLoading:p5,registerMap:zre,registerImpl:hre,PRIORITY:Pre,ComponentModel:zt,ComponentView:ao,SeriesModel:gs,ChartView:Ao,registerComponentModel:function(e){zt.registerClass(e)},registerComponentView:function(e){ao.registerClass(e)},registerSeriesModel:function(e){gs.registerClass(e)},registerChartView:function(e){Ao.registerClass(e)},registerSubTypeDefaulter:function(e,t){zt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){ate(e,t)}};function ms(e){if($e(e)){K(e,function(t){ms(t)});return}Ut(GM,e)>=0||(GM.push(e),dt(e)&&(e={install:e}),e.install(Wre))}var Hre=function(e){Ae(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}(zt),Vre=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),LS=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",to).models[0]},t.type="cartesian2dAxis",t}(zt);Bo(LS,Vre);var h5={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Ure=Nt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},h5),t_=Nt({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}}},h5),Gre=Nt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},t_),Yre=Wt({logBase:10},t_);const qre={category:Ure,value:t_,time:Gre,log:Yre};var Kre=0,OS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Kre}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&at(n,Xre);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ue(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=yt(this.categories))},e}();function Xre(e){return Qe(e)&&e.value!=null?e.value:e+""}var Qre={value:1,category:1,time:1,log:1};function YM(e,t,r,n){K(Qre,function(i,o){var a=Nt(Nt({},qre[o],!0),n,!0),s=function(l){Ae(c,l);function c(){var d=l!==null&&l.apply(this,arguments)||this;return d.type=t+"Axis."+o,d}return c.prototype.mergeDefaultAndTheme=function(d,p){var h=Od(this),v=h?Rm(d):{},g=p.getTheme();Nt(d,g.get(o+"Axis")),Nt(d,this.getDefaultOption()),d.type=qM(d),h&&oc(d,v,h)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=OS.createByAxisModel(this))},c.prototype.getCategories=function(d){var p=this.option;if(p.type==="category")return d?p.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",qM)}function qM(e){return e.type||(e.data?"category":"value")}var jo=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 r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},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}();sm(jo);function NS(e){return e.type==="interval"||e.type==="log"}function Zre(e,t,r,n){var i={},o=e[1]-e[0],a=i.interval=ZD(o/t);r!=null&&a<r&&(a=i.interval=r),n!=null&&a>n&&(a=i.interval=n);var s=i.intervalPrecision=v5(a),l=i.niceTickExtent=[Ir(Math.ceil(e[0]/a)*a,s),Ir(Math.floor(e[1]/a)*a,s)];return Jre(l,e),i}function X1(e){var t=Math.pow(10,gw(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ir(r*t)}function v5(e){return oa(e)+2}function KM(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Jre(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),KM(e,0,t),KM(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Em(e,t){return e>=t[0]&&e<=t[1]}function Im(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Am(e,t){return e*(t[1]-t[0])+t[0]}var r_=function(e){Ae(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new OS({})),$e(i)&&(i=new OS({categories:at(i,function(o){return Qe(o)?o.value:o})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ue(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Em(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Im(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Am(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);a<l;++a){var c=n[a];i[a]=c,o[c]=a}for(var d=0;a<s;++a){for(;o[d]!=null;)d++;i.push(d),o[d]=a}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(jo);jo.registerClass(r_);var nl=Ir,vc=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Em(r,this._extent)},t.prototype.normalize=function(r){return Im(r,this._extent)},t.prototype.scale=function(r){return Am(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=v5(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<o[0]&&(r?s.push({value:nl(o[0]-n,a)}):s.push({value:i[0]}));for(var c=o[0];c<=o[1]&&(s.push({value:c}),c=nl(c+n,a),c!==s[s.length-1].value);)if(s.length>l)return[];var d=s.length?s[s.length-1].value:o[1];return i[1]>d&&(r?s.push({value:nl(d+n,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<n.length;a++){for(var s=n[a],l=n[a-1],c=0,d=[],p=s.value-l.value,h=p/r;c<r-1;){var v=nl(l.value+(c+1)*h);v>o[0]&&v<o[1]&&d.push(v),c++}i.push(d)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=oa(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=nl(r.value,i,!0);return oO(o)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=Zre(o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var a=this._interval;r.fixMin||(n[0]=nl(Math.floor(n[0]/a)*a)),r.fixMax||(n[1]=nl(Math.ceil(n[1]/a)*a))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(jo);jo.registerClass(vc);var ene=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},g5=function(e){Ae(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return wm(r.value,IR[UZ(Gu(this._minLevelUnit))]||IR.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return GZ(r,n,i,a,o)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var o=this.getSetting("useUTC"),a=sne(this._minLevelUnit,this._approxInterval,o,n);return i=i.concat(a),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ii,n[1]+=Ii),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ii}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=pv.length,l=Math.min(ene(pv,this._approxInterval,0,s),s-1);this._interval=pv[l][1],this._minLevelUnit=pv[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return ur(r)?r:+ha(r)},t.prototype.contain=function(r){return Em(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Im(this.parse(r),this._extent)},t.prototype.scale=function(r){return Am(r,this._extent)},t.type="time",t}(vc),pv=[["second",jw],["minute",Ww],["hour",od],["quarter-day",od*6],["half-day",od*12],["day",Ii*1.2],["half-week",Ii*3.5],["week",Ii*7],["month",Ii*31],["quarter",Ii*95],["half-year",ER/2],["year",ER]];function tne(e,t,r,n){var i=ha(t),o=ha(r),a=function(g){return AR(i,g,n)===AR(o,g,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},d=function(){return c()&&a("hour")},p=function(){return d()&&a("minute")},h=function(){return p()&&a("second")},v=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return d();case"minute":return p();case"second":return h();case"millisecond":return v()}}function rne(e,t){return e/=Ii,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nne(e){var t=30*Ii;return e/=t,e>6?6:e>3?3:e>2?2:1}function ine(e){return e/=od,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function XM(e,t){return e/=t?Ww:jw,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function one(e){return ZD(e)}function ane(e,t,r){var n=new Date(e);switch(Gu(t)){case"year":case"month":n[JL(r)](0);case"day":n[eO(r)](1);case"hour":n[tO(r)](0);case"minute":n[rO(r)](0);case"second":n[nO(r)](0),n[iO(r)](0)}return n.getTime()}function sne(e,t,r,n){var i=1e4,o=QL,a=0;function s(R,L,N,B,F,z,j){for(var X=new Date(L),V=L,H=X[B]();V<N&&V<=n[1];)j.push({value:V}),H+=R,X[F](H),V=X.getTime();j.push({value:V,notAdd:!0})}function l(R,L,N){var B=[],F=!L.length;if(!tne(Gu(R),n[0],n[1],r)){F&&(L=[{value:ane(new Date(n[0]),R,r)},{value:n[1]}]);for(var z=0;z<L.length-1;z++){var j=L[z].value,X=L[z+1].value;if(j!==X){var V=void 0,H=void 0,G=void 0,W=!1;switch(R){case"year":V=Math.max(1,Math.round(t/Ii/365)),H=Hw(r),G=YZ(r);break;case"half-year":case"quarter":case"month":V=nne(t),H=Yu(r),G=JL(r);break;case"week":case"half-week":case"day":V=rne(t),H=_m(r),G=eO(r),W=!0;break;case"half-day":case"quarter-day":case"hour":V=ine(t),H=Dd(r),G=tO(r);break;case"minute":V=XM(t,!0),H=Cm(r),G=rO(r);break;case"second":V=XM(t,!1),H=Tm(r),G=nO(r);break;case"millisecond":V=one(t),H=km(r),G=iO(r);break}s(V,j,X,H,G,W,B),R==="year"&&N.length>1&&z===0&&N.unshift({value:N[0].value-V})}}for(var z=0;z<B.length;z++)N.push(B[z]);return B}}for(var c=[],d=[],p=0,h=0,v=0;v<o.length&&a++<i;++v){var g=Gu(o[v]);if(VZ(o[v])){l(o[v],c[c.length-1]||[],d);var x=o[v+1]?Gu(o[v+1]):null;if(g!==x){if(d.length){h=p,d.sort(function(R,L){return R.value-L.value});for(var y=[],S=0;S<d.length;++S){var w=d[S].value;(S===0||d[S-1].value!==w)&&(y.push(d[S]),w>=n[0]&&w<=n[1]&&p++)}var b=(n[1]-n[0])/t;if(p>b*1.5&&h>b/1.5||(c.push(y),p>b||e===o[v]))break}d=[]}}}for(var C=Sn(at(c,function(R){return Sn(R,function(L){return L.value>=n[0]&&L.value<=n[1]&&!L.notAdd})}),function(R){return R.length>0}),T=[],P=C.length-1,v=0;v<C.length;++v)for(var E=C[v],A=0;A<E.length;++A)T.push({value:E[A].value,level:P-v});T.sort(function(R,L){return R.value-L.value});for(var O=[],v=0;v<T.length;++v)(v===0||T[v].value!==T[v-1].value)&&O.push(T[v]);return O}jo.registerClass(g5);var QM=jo.prototype,ud=vc.prototype,lne=Ir,une=Math.floor,cne=Math.ceil,hv=Math.pow,Xi=Math.log,n_=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new vc,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,o=n.getExtent(),a=ud.getTicks.call(this,r);return at(a,function(s){var l=s.value,c=Ir(hv(this.base,l));return c=l===i[0]&&this._fixMin?vv(c,o[0]):c,c=l===i[1]&&this._fixMax?vv(c,o[1]):c,{value:c}},this)},t.prototype.setExtent=function(r,n){var i=Xi(this.base);r=Xi(Math.max(0,r))/i,n=Xi(Math.max(0,n))/i,ud.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=QM.getExtent.call(this);n[0]=hv(r,n[0]),n[1]=hv(r,n[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(n[0]=vv(n[0],o[0])),this._fixMax&&(n[1]=vv(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Xi(r[0])/Xi(n),r[1]=Xi(r[1])/Xi(n),QM.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var o=tX(i),a=r/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Ir(cne(n[0]/o)*o),Ir(une(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){ud.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Xi(r)/Xi(this.base),Em(r,this._extent)},t.prototype.normalize=function(r){return r=Xi(r)/Xi(this.base),Im(r,this._extent)},t.prototype.scale=function(r){return r=Am(r,this._extent),hv(this.base,r)},t.type="log",t}(jo),m5=n_.prototype;m5.getMinorTicks=ud.getMinorTicks;m5.getLabel=ud.getLabel;function vv(e,t){return lne(e,oa(t))}jo.registerClass(n_);var fne=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var o=r.get("min",!0);o==null&&(o=r.get("startValue",!0));var a=this._modelMinRaw=o;dt(a)?this._modelMinNum=gv(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=gv(t,a));var s=this._modelMaxRaw=r.get("max",!0);if(dt(s)?this._modelMaxNum=gv(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=gv(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),c=$e(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ol(c[0],1),Ol(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,c=s!=null,d=l!=null;s==null&&(s=t?i?0:NaN:r-o[0]*a),l==null&&(l=t?i?i-1:NaN:n+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var p=rg(s)||rg(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!d&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,c=!0),v!=null&&(l=v,d=!0),{min:s,max:l,minFixed:c,maxFixed:d,isBlank:p}},e.prototype.modifyDataMinMax=function(t,r){this[pne[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=dne[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),dne={min:"_determinedMin",max:"_determinedMax"},pne={min:"_dataMin",max:"_dataMax"};function hne(e,t,r){var n=e.rawExtentInfo;return n||(n=new fne(e,t,r),e.rawExtentInfo=n,n)}function gv(e,t){return t==null?null:rg(t)?NaN:e.parse(t)}function y5(e,t){var r=e.type,n=hne(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,o=n.max,a=t.ecModel;if(a&&r==="time"){var s=wee("bar",a),l=!1;if(K(s,function(p){l=l||p.getBaseAxis()===t.axis}),l){var c=Cee(s),d=vne(i,o,t,c);i=d.min,o=d.max}}return{extent:[i,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function vne(e,t,r,n){var i=r.axis.getExtent(),o=i[1]-i[0],a=kee(n,r.axis);if(a===void 0)return{min:e,max:t};var s=1/0;K(a,function(v){s=Math.min(v.offset,s)});var l=-1/0;K(a,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,d=t-e,p=1-(s+l)/o,h=d/p-d;return t+=h*(l/c),e-=h*(s/c),{min:e,max:t}}function ZM(e,t){var r=t,n=y5(e,r),i=n.extent,o=r.get("splitNumber");e instanceof n_&&(e.base=r.get("logBase"));var a=e.type,s=r.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function gne(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new r_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new g5({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(jo.getClass(t)||vc)}}function mne(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function gc(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,o){return e.scale.getFormattedLabel(i,o,n)}}(t):Ue(t)?function(n){return function(i){var o=e.scale.getLabel(i),a=n.replace("{value}",o??"");return a}}(t):dt(t)?function(n){return function(i,o){return r!=null&&(o=i.value-r),n(i_(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function i_(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function yne(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,o=r.getExtent();r instanceof r_?i=r.count():(n=r.getTicks(),i=n.length);var a=e.getLabelModel(),s=gc(e),l,c=1;i>40&&(c=Math.ceil(i/40));for(var d=0;d<i;d+=c){var p=n?n[d]:{value:o[0]+d},h=s(p,d),v=a.getTextRect(h),g=xne(v,a.get("rotate")||0);l?l.union(g):l=g}return l}}function xne(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,o=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),a=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new $t(e.x,e.y,o,a);return s}function o_(e){var t=e.get("interval");return t??"auto"}function x5(e){return e.type==="category"&&o_(e.getLabelModel())===0}function Sne(e,t){var r={};return K(e.mapDimensionsAll(t),function(n){r[_Z(e,n)]=!0}),lr(r)}var bne=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 at(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Sn(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),$S=["x","y"];function JM(e){return e.type==="interval"||e.type==="time"}var wne=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=$S,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!JM(r)||!JM(n))){var i=r.getExtent(),o=n.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 d=(s[0]-a[0])/l,p=(s[1]-a[1])/c,h=a[0]-i[0]*d,v=a[1]-o[0]*p,g=this._transform=[d,0,0,p,h,v];this._invTransform=fw([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),o=this.dataToPoint(n),a=this.getArea(),s=new $t(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var o=r[0],a=r[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Di(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,n)),i[1]=l.toGlobalCoord(l.dataToCoord(a,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(r[0]),c=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Di(i,r,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(r[0]),n),i[1]=a.coordToData(a.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(n[0],n[1])-r,a=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(i[0],i[1])-a+r;return new $t(o,a,s,l)},t}(bne),zd=Nr();function S5(e,t){var r=at(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function _ne(e){var t=e.getLabelModel().get("customValues");if(t){var r=gc(e);return{labels:S5(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Tne(e):Pne(e)}function Cne(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:S5(e,r)}:e.type==="category"?kne(e,t):{ticks:at(e.scale.getTicks(),function(n){return n.value})}}function Tne(e){var t=e.getLabelModel(),r=b5(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function b5(e,t){var r=w5(e,"labels"),n=o_(t),i=_5(r,n);if(i)return i;var o,a;return dt(n)?o=k5(e,n):(a=n==="auto"?Rne(e):n,o=T5(e,a)),C5(r,n,{labels:o,labelCategoryInterval:a})}function kne(e,t){var r=w5(e,"ticks"),n=o_(t),i=_5(r,n);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),dt(n))o=k5(e,n,!0);else if(n==="auto"){var s=b5(e,e.getLabelModel());a=s.labelCategoryInterval,o=at(s.labels,function(l){return l.tickValue})}else a=n,o=T5(e,a,!0);return C5(r,n,{ticks:o,tickCategoryInterval:a})}function Pne(e){var t=e.scale.getTicks(),r=gc(e);return{labels:at(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function w5(e,t){return zd(e)[t]||(zd(e)[t]=[])}function _5(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function C5(e,t,r){return e.push({key:t,value:r}),r}function Rne(e){var t=zd(e).autoInterval;return t??(zd(e).autoInterval=e.calculateCategoryInterval())}function Mne(e){var t=Ene(e),r=gc(e),n=(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),d=Math.abs(c*Math.cos(n)),p=Math.abs(c*Math.sin(n)),h=0,v=0;l<=o[1];l+=s){var g=0,x=0,y=dw(r({value:l}),t.font,"center","top");g=y.width*1.3,x=y.height*1.3,h=Math.max(h,g,7),v=Math.max(v,x,7)}var S=h/d,w=v/p;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var b=Math.max(0,Math.floor(Math.min(S,w))),C=zd(e.model),T=e.getExtent(),P=C.lastAutoInterval,E=C.lastTickCount;return P!=null&&E!=null&&Math.abs(P-b)<=1&&Math.abs(E-a)<=1&&P>b&&C.axisExtent0===T[0]&&C.axisExtent1===T[1]?b=P:(C.lastTickCount=a,C.lastAutoInterval=b,C.axisExtent0=T[0],C.axisExtent1=T[1]),b}function Ene(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 T5(e,t,r){var n=gc(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],d=i.count();c!==0&&l>1&&d/l>2&&(c=Math.round(Math.ceil(c/l)*l));var p=x5(e),h=a.get("showMinLabel")||p,v=a.get("showMaxLabel")||p;h&&c!==o[0]&&x(o[0]);for(var g=c;g<=o[1];g+=l)x(g);v&&g-l!==o[1]&&x(o[1]);function x(y){var S={value:y};s.push(r?y:{formattedLabel:n(S),rawLabel:i.getLabel(S),tickValue:y})}return s}function k5(e,t,r){var n=e.scale,i=gc(e),o=[];return K(n.getTicks(),function(a){var s=n.getLabel(a),l=a.value;t(a.value,s)&&o.push(r?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var eE=[0,1],Ine=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&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 ZK(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),tE(n,i.count())),zP(t,eE,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),tE(n,i.count()));var o=zP(t,n,eE,r);return this.scale.scale(o)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Cne(this,r),i=n.ticks,o=at(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=r.get("alignWithLabel");return Ane(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=at(n,function(o){return at(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return _ne(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,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Mne(this)},e}();function tE(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Ane(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1]};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;K(t,function(v){v.coord-=c/2});var d=e.scale.getExtent();s=1+d[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*s},t.push(a)}var p=o[0]>o[1];h(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&h(o[0],t[0].coord)&&t.unshift({coord:o[0]}),h(o[1],a.coord)&&(n?a.coord=o[1]:t.pop()),n&&h(a.coord,o[1])&&t.push({coord:o[1]});function h(v,g){return v=Ir(v),g=Ir(g),p?v>g:v<g}}var Dne=function(e){Ae(t,e);function t(r,n,i,o,a){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ine);function BS(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,c=i.dim,d=n.getRect(),p=[d.x,d.x+d.width,d.y,d.y+d.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,g=c==="x"?[p[2]-v,p[3]+v]:[p[0]-v,p[1]+v];if(a){var x=a.toGlobalCoord(a.dataToCoord(0));g[h.onZero]=Math.max(Math.min(x,g[1]),g[0])}o.position=[c==="y"?g[h[l]]:p[0],c==="x"?g[h[l]]:p[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?g[h[s]]-g[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Pd(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var S=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-S:S,o.z2=1,o}function rE(e){return e.get("coordinateSystem")==="cartesian2d"}function nE(e){var t={xAxisModel:null,yAxisModel:null};return K(t,function(r,n){var i=n.replace(/Model$/,""),o=e.getReferringComponents(i,to).models[0];t[n]=o}),t}var Q1=Math.log;function Lne(e,t,r){var n=vc.prototype,i=n.getTicks.call(r),o=n.getTicks.call(r,!0),a=i.length-1,s=n.getInterval.call(r),l=y5(e,t),c=l.extent,d=l.fixMin,p=l.fixMax;if(e.type==="log"){var h=Q1(e.base);c=[Q1(c[0])/h,Q1(c[1])/h]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:d,fixMax:p});var v=n.getExtent.call(e);d&&(c[0]=v[0]),p&&(c[1]=v[1]);var g=n.getInterval.call(e),x=c[0],y=c[1];if(d&&p)g=(y-x)/a;else if(d)for(y=c[0]+g*a;y<c[1]&&isFinite(y)&&isFinite(c[1]);)g=X1(g),y=c[0]+g*a;else if(p)for(x=c[1]-g*a;x>c[0]&&isFinite(x)&&isFinite(c[0]);)g=X1(g),x=c[1]-g*a;else{var S=e.getTicks().length-1;S>a&&(g=X1(g));var w=g*a;y=Math.ceil(c[1]/g)*g,x=Ir(y-w),x<0&&c[0]>=0?(x=0,y=Ir(w)):y>0&&c[1]<=0&&(y=0,x=-Ir(w))}var b=(i[0].value-o[0].value)/s,C=(i[a].value-o[a].value)/s;n.setExtent.call(e,x+g*b,y+g*C),n.setInterval.call(e,g),(b||C)&&n.setNiceExtent.call(e,x+g,y-g)}var One=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$S,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=lr(a),c=l.length;if(c){for(var d=[],p=c-1;p>=0;p--){var h=+l[p],v=a[h],g=v.model,x=v.scale;NS(x)&&g.get("alignTicks")&&g.get("interval")==null?d.push(v):(ZM(x,g),NS(x)&&(s=v))}d.length&&(s||(s=d.pop(),ZM(s.scale,s.model)),K(d,function(y){Lne(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var o={};K(n.x,function(a){iE(n,"y",a,o)}),K(n.y,function(a){iE(n,"x",a,o)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Ld(i,{width:r.getWidth(),height:r.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(K(s,function(c){if(!c.model.get(["axisLabel","inside"])){var d=yne(c);if(d){var p=c.isHorizontal()?"height":"width",h=c.model.get(["axisLabel","margin"]);a[p]-=d[p]+h,c.position==="top"?a.y+=d.height+h:c.position==="left"&&(a.x+=d.width+h)}}}),l()),K(this._coordsList,function(c){c.calcAffineTransform()});function l(){K(s,function(c){var d=c.isHorizontal(),p=d?[0,a.width]:[0,a.height],h=c.inverse?1:0;c.setExtent(p[h],p[1-h]),Nne(c,d?a.x:a.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Qe(t)&&(r=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===r)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",to).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",to).models[0],o=t.gridModel,a=this._coordsList,s,l;if(r)s=r.coordinateSystem,Ut(a,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.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 r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",c("x"),this),r.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,K(s.x,function(d,p){K(s.y,function(h,v){var g="x"+p+"y"+v,x=new wne(g);x.master=i,x.model=t,i._coordsMap[g]=x,i._coordsList.push(x),x.addAxis(d),x.addAxis(h)})});function c(d){return function(p,h){if(Z1(p,t)){var v=p.get("position");d==="x"?v!=="top"&&v!=="bottom"&&(v=a.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=a.left?"right":"left"),a[v]=!0;var g=new Dne(d,gne(p),[0,0],p.get("type"),v),x=g.type==="category";g.onBand=x&&p.get("boundaryGap"),g.inverse=p.get("inverse"),p.axis=g,g.model=p,g.grid=o,g.index=h,o._axesList.push(g),s[d][h]=g,l[d]++}}}},e.prototype._updateScale=function(t,r){K(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(rE(i)){var o=nE(i),a=o.xAxisModel,s=o.yAxisModel;if(!Z1(a,r)||!Z1(s,r))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=i.getData(),d=l.getAxis("x"),p=l.getAxis("y");n(c,d),n(c,p)}},this);function n(i,o){K(Sne(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return K(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);Ut(r,o)<0&&r.push(o),Ut(n,a)<0&&n.push(a)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,r);a.name="grid_"+o,a.resize(i,r,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(i){if(rE(i)){var o=nE(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),c=l.coordinateSystem;i.coordinateSystem=c.getCartesian(a.componentIndex,s.componentIndex)}}),n},e.dimensions=$S,e}();function Z1(e,t){return e.getCoordSysModel()===t}function iE(e,t,r,n){r.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=r.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)oE(i[l])&&(o=i[l]);else for(var c in i)if(i.hasOwnProperty(c)&&oE(i[c])&&!n[d(i[c])]){o=i[c];break}o&&(n[d(o)]=!0);function d(p){return p.dim+"_"+p.index}}function oE(e){return e&&e.type!=="category"&&e.type!=="time"&&mne(e)}function Nne(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var ts=Math.PI,ss=function(){function e(t,r){this.group=new pn,this.opt=r,this.axisModel=t,Wt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new pn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!aE[t]},e.prototype.add=function(t){aE[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=QD(r-t),o,a;return ug(i)?(a=n>0?"top":"bottom",o="center"):ug(i-ts)?(a=n>0?"bottom":"top",o="center"):(a="middle",i>0&&i<ts?o=n>0?"right":"left":o=n>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),aE={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Di(s,s,a),Di(l,l,a));var d=Ce({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new ps({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Id(p.shape,p.style.lineWidth),p.anid="line",r.add(p);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);Ue(h)&&(h=[h,h]),(Ue(v)||ur(v))&&(v=[v,v]);var g=vO(t.get(["axisLine","symbolOffset"])||0,v),x=v[0],y=v[1];K([{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(S,w){if(h[w]!=="none"&&h[w]!=null){var b=ac(h[w],-x/2,-y/2,x,y,d.stroke,!0),C=S.r+S.offset,T=c?l:s;b.attr({rotation:S.rotate,x:T[0]+C*Math.cos(e.rotation),y:T[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=Fne(r,n,t,e),o=jne(r,n,t,e);if(Bne(t,o,i),zne(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Eee(at(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Iee(a)}},axisName:function(e,t,r,n){var i=Pd(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(),d=c[0]>c[1]?-1:1,p=[o==="start"?c[0]-d*l:o==="end"?c[1]+d*l:(c[0]+c[1])/2,lE(o)?e.labelOffset+a*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*ts/180);var g;lE(o)?h=ss.innerTextLayout(e.rotation,v??e.rotation,a):(h=$ne(e.rotation,o,v||0,c),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(h.rotation)),!isFinite(g)&&(g=null)));var x=s.getFont(),y=t.get("nameTruncate",!0)||{},S=y.ellipsis,w=Pd(e.nameTruncateMaxWidth,y.maxWidth,g),b=new dn({x:p[0],y:p[1],rotation:h.rotation,silent:ss.isLabelSilent(t),style:vs(s,{text:i,font:x,overflow:"truncate",width:w,ellipsis:S,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Aw({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var C=ss.makeAxisEventDataBase(t);C.targetType="axisName",C.name=i,jt(b).eventData=C}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function $ne(e,t,r,n){var i=QD(r-e),o,a,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return ug(i-ts/2)?(a=l?"bottom":"top",o="center"):ug(i-ts*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<ts*1.5&&i>ts/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function Bne(e,t,r){if(!x5(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=r[0],d=r[1],p=r[r.length-1],h=r[r.length-2];n===!1?(xi(o),xi(c)):sE(o,a)&&(n?(xi(a),xi(d)):(xi(o),xi(c))),i===!1?(xi(s),xi(p)):sE(l,s)&&(i?(xi(l),xi(h)):(xi(s),xi(p)))}}function xi(e){e&&(e.ignore=!0)}function sE(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=uw([]);return cw(i,i,-e.rotation),r.applyTransform(Wu([],i,e.getLocalTransform())),n.applyTransform(Wu([],i,t.getLocalTransform())),r.intersect(n)}}function lE(e){return e==="middle"||e==="center"}function P5(e,t,r,n,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]=r,t&&(Di(a,a,t),Di(s,s,t));var d=new ps({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Id(d.shape,d.style.lineWidth),d.anid=i+"_"+e[l].tickValue,o.push(d)}return o}function Fne(e,t,r,n){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),c=i.getTicksCoords(),d=P5(c,t.transform,l,Wt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<d.length;p++)e.add(d[p]);return d}}function zne(e,t,r,n){var i=r.axis,o=r.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),c=Wt(s.getLineStyle(),Wt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),d=0;d<a.length;d++)for(var p=P5(a[d],t.transform,l,c,"minorticks_"+d),h=0;h<p.length;h++)e.add(p[h])}}function jne(e,t,r,n){var i=r.axis,o=Pd(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=r.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),c=(Pd(n.labelRotate,a.get("rotate"))||0)*ts/180,d=ss.innerTextLayout(n.rotation,c,n.labelDirection),p=r.getCategories&&r.getCategories(!0),h=[],v=ss.isLabelSilent(r),g=r.get("triggerEvent");return K(l,function(x,y){var S=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,w=x.formattedLabel,b=x.rawLabel,C=a;if(p&&p[S]){var T=p[S];Qe(T)&&T.textStyle&&(C=new xr(T.textStyle,a,r.ecModel))}var P=C.getTextColor()||r.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(S),A=C.getShallow("align",!0)||d.textAlign,O=wt(C.getShallow("alignMinLabel",!0),A),R=wt(C.getShallow("alignMaxLabel",!0),A),L=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||d.textVerticalAlign,N=wt(C.getShallow("verticalAlignMinLabel",!0),L),B=wt(C.getShallow("verticalAlignMaxLabel",!0),L),F=new dn({x:E,y:n.labelOffset+n.labelDirection*s,rotation:d.rotation,silent:v,z2:10+(x.level||0),style:vs(C,{text:w,align:y===0?O:y===l.length-1?R:A,verticalAlign:y===0?N:y===l.length-1?B:L,fill:dt(P)?P(i.type==="category"?b:i.type==="value"?S+"":S,y):P})});if(F.anid="label_"+S,g){var z=ss.makeAxisEventDataBase(r);z.targetType="axisLabel",z.value=b,z.tickIndex=y,i.type==="category"&&(z.dataIndex=S),jt(F).eventData=z}t.add(F),F.updateTransform(),h.push(F),e.add(F),F.decomposeTransform()}),h}}function Wne(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Hne(r,e,t),r.seriesInvolved&&Une(r,e),r}function Hne(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];K(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=jd(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var d=s.model,p=d.getModel("tooltip",n);if(K(s.getAxes(),zr(x,!1,null)),s.getTooltipAxes&&n&&p.get("show")){var h=p.get("trigger")==="axis",v=p.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(p.get(["axisPointer","axis"]));(h||v)&&K(g.baseAxes,zr(x,v?"cross":!0,h)),v&&K(g.otherAxes,zr(x,"cross",!1))}function x(y,S,w){var b=w.model.getModel("axisPointer",i),C=b.get("show");if(!(!C||C==="auto"&&!y&&!FS(b))){S==null&&(S=b.get("triggerTooltip")),b=y?Vne(w,p,i,t,y,S):b;var T=b.get("snap"),P=b.get("triggerEmphasis"),E=jd(w.model),A=S||T||w.type==="category",O=e.axesInfo[E]={key:E,axis:w,coordSys:s,axisPointerModel:b,triggerTooltip:S,triggerEmphasis:P,involveSeries:A,snap:T,useHandle:FS(b),seriesModels:[],linkGroup:null};c[E]=O,e.seriesInvolved=e.seriesInvolved||A;var R=Gne(o,w);if(R!=null){var L=a[R]||(a[R]={axesInfo:{}});L.axesInfo[E]=O,L.mapper=o[R].mapper,O.linkGroup=L}}}})}function Vne(e,t,r,n,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};K(s,function(h){l[h]=Pt(a.get(h))}),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 d=a.get(["label","show"]);if(c.show=d??!0,!o){var p=l.lineStyle=a.get("crossStyle");p&&Wt(c,p.textStyle)}}return e.model.getModel("axisPointer",new xr(l,r,n))}function Une(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||K(e.coordSysAxesInfo[jd(n.model)],function(a){var s=a.axis;n.getAxis(s.dim)===s&&(a.seriesModels.push(r),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=r.getData().count())})})}function Gne(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(J1(o[n+"AxisId"],r.id)||J1(o[n+"AxisIndex"],r.componentIndex)||J1(o[n+"AxisName"],r.name))return i}}function J1(e,t){return e==="all"||$e(e)&&Ut(e,t)>=0||e===t}function Yne(e){var t=a_(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,o=r.get("status"),a=r.get("value");a!=null&&(a=n.parse(a));var s=FS(r);o==null&&(i.status=s?"show":"hide");var l=n.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 a_(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[jd(e)]}function qne(e){var t=a_(e);return t&&t.axisPointerModel}function FS(e){return!!e.get(["handle","show"])}function jd(e){return e.type+"||"+e.id}var uE={},R5=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,o){this.axisPointerClass&&Yne(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,o){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=qne(r);a?(this._axisPointer||(this._axisPointer=new o)).render(r,a,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){uE[r]=n},t.getAxisPointerClass=function(r){return r&&uE[r]},t.type="axis",t}(ao),zS=Nr();function Kne(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var d=s.length,p=zS(e).splitAreaColors,h=yt(),v=0;if(p)for(var g=0;g<c.length;g++){var x=p.get(c[g].tickValue);if(x!=null){v=(x+(d-1)*g)%d;break}}var y=i.toGlobalCoord(c[0].coord),S=a.getAreaStyle();s=$e(s)?s:[s];for(var g=1;g<c.length;g++){var w=i.toGlobalCoord(c[g].coord),b=void 0,C=void 0,T=void 0,P=void 0;i.isHorizontal()?(b=y,C=l.y,T=w-b,P=l.height,y=b+T):(b=l.x,C=y,T=l.width,P=w-C,y=C+P);var E=c[g-1].tickValue;E!=null&&h.set(E,v),t.add(new Wr({anid:E!=null?"area_"+E:null,shape:{x:b,y:C,width:T,height:P},style:Wt({fill:s[v]},S),autoBatch:!0,silent:!0})),v=(v+1)%d}zS(e).splitAreaColors=h}}}function Xne(e){zS(e).splitAreaColors=null}var Qne=["axisLine","axisTickLabel","axisName"],Zne=["splitArea","splitLine","minorSplitLine"],M5=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new pn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=BS(s,r),c=new ss(r,Ce({handleAutoShown:function(p){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(NS(h[v].getOtherAxis(r.axis).scale))return!0;return!1}},l));K(Qne,c.add,c),this._axisGroup.add(c.getGroup()),K(Zne,function(p){r.get([p,"show"])&&Jne[p](this,this._axisGroup,r,s)},this);var d=o&&o.type==="changeAxisOrder"&&o.isInitSort;d||CL(a,this._axisGroup,r),e.prototype.render.call(this,r,n,i,o)}},t.prototype.remove=function(){Xne(this)},t.type="cartesianAxis",t}(R5),Jne={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=$e(s)?s:[s];for(var l=n.coordinateSystem.getRect(),c=i.isHorizontal(),d=0,p=i.getTicksCoords({tickModel:o}),h=[],v=[],g=a.getLineStyle(),x=0;x<p.length;x++){var y=i.toGlobalCoord(p[x].coord);c?(h[0]=y,h[1]=l.y,v[0]=y,v[1]=l.y+l.height):(h[0]=l.x,h[1]=y,v[0]=l.x+l.width,v[1]=y);var S=d++%s.length,w=p[x].tickValue,b=new ps({anid:w!=null?"line_"+p[x].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:Wt({stroke:s[S]},g),silent:!0});Id(b.shape,g.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,o=r.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var d=[],p=[],h=a.getLineStyle(),v=0;v<c.length;v++)for(var g=0;g<c[v].length;g++){var x=i.toGlobalCoord(c[v][g].coord);l?(d[0]=x,d[1]=s.y,p[0]=x,p[1]=s.y+s.height):(d[0]=s.x,d[1]=x,p[0]=s.x+s.width,p[1]=x);var y=new ps({anid:"minor_line_"+c[v][g].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:h,silent:!0});Id(y.shape,h.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){Kne(e,t,r,n)}},E5=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(M5),eie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=E5.type,r}return t.type="yAxis",t}(M5),tie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Wr({shape:r.coordinateSystem.getRect(),style:Wt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ao),cE={offset:0};function rie(e){e.registerComponentView(tie),e.registerComponentModel(Hre),e.registerCoordinateSystem("cartesian2d",One),YM(e,"x",LS,cE),YM(e,"y",LS,cE),e.registerComponentView(E5),e.registerComponentView(eie),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var hl=Nr(),fE=Pt,ex=dr,nie=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var o=r.get("value"),a=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!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,r,n);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var p=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new pn,this.createPointerEl(s,c,t,r),this.createLabelEl(s,c,t,r),n.getZr().add(s);else{var h=zr(dE,r,p);this.updatePointerEl(s,c,h),this.updateLabelEl(s,c,h,r)}hE(s,r,!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,r){var n=r.get("animation"),i=t.axis,o=i.type==="category",a=r.get("snap");if(!a&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=a_(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,o){},e.prototype.createPointerEl=function(t,r,n,i){var o=r.pointer;if(o){var a=hl(t).pointerEl=new IQ[o.type](fE(r.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var o=hl(t).labelEl=new dn(fE(r.label));t.add(o),pE(o,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=hl(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var o=hl(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),pE(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=r.getModel("handle"),a=r.get("status");if(!o.get("show")||!a||a==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Iw(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){PO(c.event)},onmousedown:ex(this._onHandleDragMove,this,0,0),drift:ex(this._onHandleDragMove,this),ondragend:ex(this._onHandleDragEnd,this)}),n.add(i)),hE(i,r,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");$e(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,kO(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){dE(this._axisPointerModel,!r&&this._moveAnimation,this._handle,tx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(tx(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(tx(i)),hl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),wS(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function dE(e,t,r,n){I5(hl(r).lastProp,n)||(hl(r).lastProp=n,t?hs(r,n,e):(r.stopAnimation(),r.attr(n)))}function I5(e,t){if(Qe(e)&&Qe(t)){var r=!0;return K(t,function(n,i){r=r&&I5(e[i],n)}),!!r}else return e===t}function pE(e,t){e[t.get(["label","show"])?"show":"hide"]()}function tx(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function hE(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),i!=null&&(o.zlevel=i),o.silent=r)})}function iie(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function oie(e,t,r,n,i){var o=r.get("value"),a=A5(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Pm(s.get("padding")||0),c=s.getFont(),d=dw(a,c),p=i.position,h=d.width+l[1]+l[3],v=d.height+l[0]+l[2],g=i.align;g==="right"&&(p[0]-=h),g==="center"&&(p[0]-=h/2);var x=i.verticalAlign;x==="bottom"&&(p[1]-=v),x==="middle"&&(p[1]-=v/2),aie(p,h,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:vs(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function aie(e,t,r,n){var i=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function A5(e,t,r,n,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:i_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};K(n,function(l){var c=r.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=c&&c.getDataParams(d);p&&s.seriesData.push(p)}),Ue(a)?o=a.replace("{value}",o):dt(a)&&(o=a(s))}return o}function D5(e,t,r){var n=ju();return cw(n,n,r.rotation),Gx(n,n,r.position),Ew([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function sie(e,t,r,n,i,o){var a=ss.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),oie(t,n,i,o,{position:D5(n.axis,e,r),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function lie(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function uie(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var cie=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,o,a){var s=i.axis,l=s.grid,c=o.get("type"),d=vE(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var h=iie(o),v=fie[c](s,p,d);v.style=h,r.graphicKey=v.type,r.pointer=v}var g=BS(l.model,i);sie(n,r,g,i,o,a)},t.prototype.getHandleTransform=function(r,n,i){var o=BS(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=D5(n.axis,r,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),c=vE(s,a).getOtherAxis(a).getGlobalExtent(),d=a.dim==="x"?0:1,p=[r.x,r.y];p[d]+=n[d],p[d]=Math.min(l[1],p[d]),p[d]=Math.max(l[0],p[d]);var h=(c[1]+c[0])/2,v=[h,h];v[d]=p[d];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:r.rotation,cursorPoint:v,tooltipOption:g[d]}},t}(nie);function vE(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var fie={line:function(e,t,r){var n=lie([t,r[0]],[t,r[1]],gE(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:uie([t-n/2,r[0]],[n,i],gE(e))}}};function gE(e){return e.dim==="x"?0:1}var die=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(zt),aa=Nr(),pie=K;function L5(e,t,r){if(!ut.node){var n=t.getZr();aa(n).records||(aa(n).records={}),hie(n,t);var i=aa(n).records[e]||(aa(n).records[e]={});i.handler=r}}function hie(e,t){if(aa(e).initialized)return;aa(e).initialized=!0,r("click",zr(mE,"click")),r("mousemove",zr(mE,"mousemove")),r("globalout",gie);function r(n,i){e.on(n,function(o){var a=mie(t);pie(aa(e).records,function(s){s&&i(s,o,a.dispatchAction)}),vie(a.pendings,t)})}}function vie(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function gie(e,t,r){e.handler("leave",null,r)}function mE(e,t,r,n){t.handler(e,r,n)}function mie(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function jS(e,t){if(!ut.node){var r=t.getZr(),n=(aa(r).records||{})[e];n&&(aa(r).records[e]=null)}}var yie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var o=n.getComponent("tooltip"),a=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";L5("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(r,n){jS("axisPointer",n)},t.prototype.dispose=function(r,n){jS("axisPointer",n)},t.type="axisPointer",t}(ao);function O5(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var o=i.getData(),a=$l(o,e);if(a==null||a<0||$e(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c),p=d.dim,h=c.dim,v=p==="x"||p==="radius"?1:0,g=o.mapDimension(h),x=[];x[v]=o.get(g,a),x[1-v]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(x)||[]}else r=l.dataToPoint(o.getValues(at(l.dimensions,function(S){return o.mapDimension(S)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var yE=Nr();function xie(e,t,r){var n=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||dr(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){zv(i)&&(i=O5({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=zv(i),c=o.axesInfo,d=s.axesInfo,p=n==="leave"||zv(i),h={},v={},g={list:[],map:{}},x={showPointer:zr(bie,v),showTooltip:zr(wie,g)};K(s.coordSysMap,function(S,w){var b=l||S.containPoint(i);K(s.coordSysAxesInfo[w],function(C,T){var P=C.axis,E=kie(c,C);if(!p&&b&&(!c||E)){var A=E&&E.value;A==null&&!l&&(A=P.pointToData(i)),A!=null&&xE(C,A,x,!1,h)}})});var y={};return K(d,function(S,w){var b=S.linkGroup;b&&!v[w]&&K(b.axesInfo,function(C,T){var P=v[T];if(C!==S&&P){var E=P.value;b.mapper&&(E=S.axis.scale.parse(b.mapper(E,SE(C),SE(S)))),y[S.key]=E}})}),K(y,function(S,w){xE(d[w],S,x,!0,h)}),_ie(v,d,h),Cie(g,i,e,a),Tie(d,a,r),h}}function xE(e,t,r,n,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var a=Sie(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Ce(i,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,a,l)}}function Sie(e,t){var r=t.axis,n=r.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return K(t.seriesModels,function(l,c){var d=l.getData().mapDimensionsAll(n),p,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(d,e,r);h=v.dataIndices,p=v.nestestValue}else{if(h=l.getData().indicesOfNearest(d[0],e,r.type==="category"?.5:null),!h.length)return;p=l.getData().get(d[0],h[0])}if(!(p==null||!isFinite(p))){var g=e-p,x=Math.abs(g);x<=a&&((x<a||g>=0&&s<0)&&(a=x,s=g,i=p,o.length=0),K(h,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function bie(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function wie(e,t,r,n){var i=r.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,c=jd(l),d=e.map[c];d||(d=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function _ie(e,t,r){var n=r.axesInfo=[];K(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"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Cie(e,t,r,n){if(zv(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Tie(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",o=yE(n)[i]||{},a=yE(n)[i]={};K(e,function(c,d){var p=c.axisPointerModel.option;p.status==="show"&&c.triggerEmphasis&&K(p.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;a[v]=h})});var s=[],l=[];K(o,function(c,d){!a[d]&&l.push(c)}),K(a,function(c,d){!o[d]&&s.push(c)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function kie(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function SE(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function zv(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function N5(e){R5.registerAxisPointerClass("CartesianAxisPointer",cie),e.registerComponentModel(die),e.registerComponentView(yie),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!$e(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Wne(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xie)}function Pie(e){ms(rie),ms(N5)}function Rie(e,t){var r=Pm(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Wr({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var Mie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(zt);function $5(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function B5(e){if(ut.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var F5=B5(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Eie=B5(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function z5(e,t){if(!e)return t;t=aO(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Iie(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var Aie=z5(Eie,"transition"),s_=z5(F5,"transform"),Die="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ut.transform3dSupported?"will-change:transform;":"");function Lie(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Oie(e,t,r){if(!Ue(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Bl(t);var o=Lie(r),a=Math.max(Math.round(i)*1.5,6),s="",l=s_+":",c;Ut(["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 d=c*Math.PI/180,p=a+i,h=p*Math.abs(Math.cos(d))+p*Math.abs(Math.sin(d)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-p)/2)*100)/100;s+=";"+o+":-"+v+"px";var g=t+" solid "+i+"px;",x=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'<div style="'+x.join("")+'"></div>'}function Nie(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=ut.transformSupported?","+s_+n:",left"+n+",top"+n),Aie+":"+i}function bE(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ut.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var o=ut.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+i+(o?",0":"")+")";return r?"top:0;left:0;"+s_+":"+a+";":[["top",0],["left",0],[F5,a]]}function $ie(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),K(["decoration","align"],function(l){var c=e.get(l);c&&t.push("text-"+l+":"+c)}),t.join(";")}function Bie(e,t,r){var n=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),d=e.getModel("textStyle"),p=hO(e,"html"),h=l+"px "+c+"px "+a+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Nie(i,r)),o&&n.push("background-color:"+o),K(["width","color","radius"],function(v){var g="border-"+v,x=aO(g),y=e.get(x);y!=null&&n.push(g+":"+y+(v==="color"?"":"px"))}),n.push($ie(d)),p!=null&&n.push("padding:"+Pm(p).join("px ")+"px"),n.join(";")+";"}function wE(e,t,r,n,i){var o=t&&t.painter;if(r){var a=o&&o.getViewportRoot();a&&LZ(e,a,r,n,i)}else{e[0]=n,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 Fie=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=r.appendTo,a=o&&(Ue(o)?document.querySelector(o):kd(o)?o:dt(o)&&o(t.getDom()));wE(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=i.handler,d=i.painter.getViewportRoot();wi(d,l,!0),c.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=Iie(r,"position"),i=r.style;i.position!=="absolute"&&n!=="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,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=Die+Bie(t,!this._firstShow,this._longHide)+bE(o[0],o[1],!0)+("border-color:"+Bl(r)+";")+(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,r,n,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(Ue(o)&&n.get("trigger")==="item"&&!$5(n)&&(s=Oie(n,i,o)),Ue(t))a.innerHTML=t+s;else if(t){a.innerHTML="",$e(t)||(t=[t]);for(var l=0;l<t.length;l++)kd(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.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(wE(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,o=bE(n[0],n[1]);K(o,function(a){i[a[0]]=a[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ut.transform3dSupported&&(r.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(dr(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}(),zie=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),CE(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,o){var a=this;Qe(t)&&Ln(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new dn({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:hO(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),K(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=n.get(c)}),K(["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,r=this.el.getBoundingRect(),n=_E(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;CE(i,this._zr,t,r),t=i[0],r=i[1];var o=n.style,a=Xa(o.borderWidth||0),s=_E(o);n.x=t+a+s.left,n.y=r+a+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*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(dr(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Xa(e){return Math.max(0,e)}function _E(e){var t=Xa(e.shadowBlur||0),r=Xa(e.shadowOffsetX||0),n=Xa(e.shadowOffsetY||0);return{left:Xa(t-r),right:Xa(t+r),top:Xa(t-n),bottom:Xa(t+n)}}function CE(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var jie=new Wr({shape:{x:-1,y:-1,width:2,height:2}}),Wie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ut.node||!n.getDom())){var i=r.getComponent("tooltip"),o=this._renderMode=gX(i.get("renderMode"));this._tooltipContent=o==="richText"?new zie(n):new Fie(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(ut.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?kO(this,"_updatePosition",50,"fixRate"):wS(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");L5("itemTooltip",this._api,dr(function(i,o,a){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,o=r.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(r,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,o){if(!(o.from===this.uid||ut.node||!i.getDom())){var a=TE(o,i);this._ticket="";var s=o.dataByCoordSys,l=Gie(o,n,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 d=jie;d.x=o.x,d.y=o.y,d.update(),jt(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},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(r,n,i,o))return;var p=O5(o,n),h=p.point[0],v=p.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:p.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(r,n,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(TE(o,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,o){var a=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=n.getSeriesByIndex(a);if(c){var d=c.getData(),p=Rf([d.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var a=r.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,r);else if(i){var s=jt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;Wf(i,function(d){if(jt(d).dataIndex!=null)return l=d,!0;if(jt(d).tooltipConfig!=null)return c=d,!0},!0),l?this._showSeriesItemTooltip(r,l,n):c?this._showComponentItemTooltip(r,c,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=dr(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,o=this._tooltipModel,a=[n.offsetX,n.offsetY],s=Rf([n.tooltipOption],o),l=this._renderMode,c=[],d=Nd("section",{blocks:[],noHeader:!0}),p=[],h=new P1;K(r,function(w){K(w.dataByAxis,function(b){var C=i.getComponent(b.axisDim+"Axis",b.axisIndex),T=b.value;if(!(!C||T==null)){var P=A5(T,C.axis,i,b.seriesDataIndices,b.valueLabelOpt),E=Nd("section",{header:P,noHeader:!_o(P),sortBlocks:!0,blocks:[]});d.blocks.push(E),K(b.seriesDataIndices,function(A){var O=i.getSeriesByIndex(A.seriesIndex),R=A.dataIndexInside,L=O.getDataParams(R);if(!(L.dataIndex<0)){L.axisDim=b.axisDim,L.axisIndex=b.axisIndex,L.axisType=b.axisType,L.axisId=b.axisId,L.axisValue=i_(C.axis,{value:T}),L.axisValueLabel=P,L.marker=h.makeTooltipMarker("item",Bl(L.color),l);var N=NR(O.formatTooltip(R,!0,null)),B=N.frag;if(B){var F=Rf([O],o).get("valueFormatter");E.blocks.push(F?Ce({valueFormatter:F},B):B)}N.text&&p.push(N.text),c.push(L)}})}})}),d.blocks.reverse(),p.reverse();var v=n.position,g=s.get("order"),x=FR(d,h,l,g,i.get("useUTC"),s.get("textStyle"));x&&p.unshift(x);var y=l==="richText"?`
239
-
240
- `:"<br/>",S=p.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(s,v,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,S,c,Math.random()+"",a[0],a[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var o=this._ecModel,a=jt(n),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,d=a.dataIndex,p=a.dataType,h=c.getData(p),v=this._renderMode,g=r.positionDefault,x=Rf([h.getItemModel(d),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),y=x.get("trigger");if(!(y!=null&&y!=="item")){var S=c.getDataParams(d,p),w=new P1;S.marker=w.makeTooltipMarker("item",Bl(S.color),v);var b=NR(c.formatTooltip(d,!1,p)),C=x.get("order"),T=x.get("valueFormatter"),P=b.frag,E=P?FR(T?Ce({valueFormatter:T},P):P,w,v,C,o.get("useUTC"),x.get("textStyle")):b.text,A="item_"+c.name+"_"+d;this._showOrMove(x,function(){this._showTooltipContent(x,E,S,A,r.offsetX,r.offsetY,r.position,r.target,w)}),i({type:"showTip",dataIndexInside:d,dataIndex:h.getRawIndex(d),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var o=this._renderMode==="html",a=jt(n),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(Ue(l)){var d=l;l={content:d,formatter:d},c=!0}c&&o&&l.content&&(l=Pt(l),l.content=ti(l.content));var p=[l],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&p.push(h),p.push({formatter:l.content});var v=r.positionDefault,g=Rf(p,this._tooltipModel,v?{position:v}:null),x=g.get("content"),y=Math.random()+"",S=new P1;this._showOrMove(g,function(){var w=Pt(g.get("formatterParams")||{});this._showTooltipContent(g,x,w,y,r.offsetX,r.offsetY,r.position,n,S)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,o,a,s,l,c,d){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var p=this._tooltipContent;p.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,g=this._getNearestPoint([a,s],i,r.get("trigger"),r.get("borderColor")),x=g.color;if(h)if(Ue(h)){var y=r.ecModel.get("useUTC"),S=$e(i)?i[0]:i,w=S&&S.axisType&&S.axisType.indexOf("time")>=0;v=h,w&&(v=wm(S.axisValue,v,y)),v=sO(v,i,!0)}else if(dt(h)){var b=dr(function(C,T){C===this._ticket&&(p.setContent(T,d,r,x,l),this._updatePosition(r,l,a,s,p,i,c))},this);this._ticket=o,v=h(i,o,b)}else v=h;p.setContent(v,d,r,x,l),p.show(r,x),this._updatePosition(r,l,a,s,p,i,c)}},t.prototype._getNearestPoint=function(r,n,i,o){if(i==="axis"||$e(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!$e(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,o,a,s,l){var c=this._api.getWidth(),d=this._api.getHeight();n=n||r.get("position");var p=a.getSize(),h=r.get("align"),v=r.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),dt(n)&&(n=n([i,o],s,a.el,g,{viewSize:[c,d],contentSize:p.slice()})),$e(n))i=bn(n[0],c),o=bn(n[1],d);else if(Qe(n)){var x=n;x.width=p[0],x.height=p[1];var y=Ld(x,{width:c,height:d});i=y.x,o=y.y,h=null,v=null}else if(Ue(n)&&l){var S=Uie(n,g,p,r.get("borderWidth"));i=S[0],o=S[1]}else{var S=Hie(i,o,a,c,d,h?null:20,v?null:20);i=S[0],o=S[1]}if(h&&(i-=kE(h)?p[0]/2:h==="right"?p[0]:0),v&&(o-=kE(v)?p[1]/2:v==="bottom"?p[1]:0),$5(r)){var S=Vie(i,o,a,c,d);i=S[0],o=S[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===r.length;return a&&K(i,function(s,l){var c=s.dataByAxis||[],d=r[l]||{},p=d.dataByAxis||[];a=a&&c.length===p.length,a&&K(c,function(h,v){var g=p[v]||{},x=h.seriesDataIndices||[],y=g.seriesDataIndices||[];a=a&&h.value===g.value&&h.axisType===g.axisType&&h.axisId===g.axisId&&x.length===y.length,a&&K(x,function(S,w){var b=y[w];a=a&&S.seriesIndex===b.seriesIndex&&S.dataIndex===b.dataIndex}),o&&K(h.seriesDataIndices,function(S){var w=S.seriesIndex,b=n[w],C=o[w];b&&C&&C.data!==b.data&&(a=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!a},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ut.node||!n.getDom()||(wS(this,"_updatePosition"),this._tooltipContent.dispose(),jS("itemTooltip",n))},t.type="tooltip",t}(ao);function Rf(e,t,r){var n=t.ecModel,i;r?(i=new xr(r,n,n),i=new xr(t.option,i,n)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof xr&&(a=a.get("tooltip",!0)),Ue(a)&&(a={formatter:a}),a&&(i=new xr(a,i,n)))}return i}function TE(e,t){return e.dispatchAction||dr(t.dispatchAction,t)}function Hie(e,t,r,n,i,o,a){var s=r.getSize(),l=s[0],c=s[1];return o!=null&&(e+l+o+2>n?e-=l+o:e+=o),a!=null&&(t+c+a>i?t-=c+a:t+=a),[e,t]}function Vie(e,t,r,n,i){var o=r.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,n)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Uie(e,t,r,n){var i=r[0],o=r[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,c=t.width,d=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+d/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+d+a;break;case"left":s=t.x-i-a,l=t.y+d/2-o/2;break;case"right":s=t.x+c+a,l=t.y+d/2-o/2}return[s,l]}function kE(e){return e==="center"||e==="middle"}function Gie(e,t,r){var n=yw(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var o=cp(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=r.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var d=jt(c).tooltipConfig;if(d&&d.name===e.name)return l=c,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function Yie(e){ms(N5),e.registerComponentModel(Mie),e.registerComponentView(Wie),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Bn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Bn)}var qie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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}(zt),Kie=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var o=this.group,a=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),c=wt(r.get("textBaseline"),r.get("textVerticalAlign")),d=new dn({style:vs(a,{text:r.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),h=r.get("subtext"),v=new dn({style:vs(s,{text:h,fill:s.getTextColor(),y:p.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=r.get("link"),x=r.get("sublink"),y=r.get("triggerEvent",!0);d.silent=!g&&!y,v.silent=!x&&!y,g&&d.on("click",function(){LR(g,"_"+r.get("target"))}),x&&v.on("click",function(){LR(x,"_"+r.get("subtarget"))}),jt(d).eventData=jt(v).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(d),h&&o.add(v);var S=o.getBoundingRect(),w=r.getBoxLayoutParams();w.width=S.width,w.height=S.height;var b=Ld(w,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?b.y+=b.height:c==="middle"&&(b.y+=b.height/2),c=c||"top"),o.x=b.x,o.y=b.y,o.markRedraw();var C={align:l,verticalAlign:c};d.setStyle(C),v.setStyle(C),S=o.getBoundingRect();var T=b.margin,P=r.getItemStyle(["color","opacity"]);P.fill=r.get("backgroundColor");var E=new Wr({shape:{x:S.x-T[3],y:S.y-T[0],width:S.width+T[1]+T[3],height:S.height+T[0]+T[2],r:r.get("borderRadius")},style:P,subPixelOptimize:!0,silent:!0});o.add(E)}},t.type="title",t}(ao);function Xie(e){e.registerComponentModel(qie),e.registerComponentView(Kie)}var Qie=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"])}},WS=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),$e(n)&&K(n,function(o,a){Ue(o)&&(o={type:o}),n[a]=Nt(o,Qie(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var o=r[i].get("name");if(this.isSelected(o)){this.select(o),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var c=l.name;i.push(c);var d;if(l.legendVisualProvider){var p=l.legendVisualProvider,h=p.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):d=!0}else d=!0;d&&mw(l)&&n.push(l.name)}),this._availableNames=i;var o=this.get("data")||n,a=yt(),s=at(o,function(l){return(Ue(l)||ur(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new xr(l,this,this.ecModel))},this);this._data=Sn(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;K(o,function(a){n[a.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;K(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;K(r,function(i){var o=i.get("name",!0);n.hasOwnProperty(o)||(n[o]=!0),n[o]=!n[o]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Ut(this._availableNames,r)>=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}(zt),Ru=zr,HS=K,mv=pn,j5=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new mv),this.group.add(this._selectorGroup=new mv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var a=r.get("align"),s=r.get("orient");(!a||a==="auto")&&(a=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),c=r.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,r,n,i,l,s,c);var d=r.getBoxLayoutParams(),p={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=Ld(d,p,h),g=this.layoutInner(r,a,v,o,l,c),x=Ld(Wt({width:g.width,height:g.height},d),p,h);this.group.x=x.x-g.x,this.group.y=x.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Rie(g,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,o,a,s,l){var c=this.getContentGroup(),d=yt(),p=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),HS(n.getData(),function(v,g){var x=v.get("name");if(!this.newlineDisabled&&(x===""||x===`
241
- `)){var y=new mv;y.newline=!0,c.add(y);return}var S=i.getSeriesByName(x)[0];if(!d.get(x))if(S){var w=S.getData(),b=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),T=w.getVisual("style"),P=this._createItem(S,x,g,v,n,r,b,T,C,p,o);P.on("click",Ru(PE,x,null,o,h)).on("mouseover",Ru(VS,S.name,null,o,h)).on("mouseout",Ru(US,S.name,null,o,h)),i.ssr&&P.eachChild(function(E){var A=jt(E);A.seriesIndex=S.seriesIndex,A.dataIndex=g,A.ssrType="legend"}),d.set(x,!0)}else i.eachRawSeries(function(E){if(!d.get(x)&&E.legendVisualProvider){var A=E.legendVisualProvider;if(!A.containName(x))return;var O=A.indexOfName(x),R=A.getItemVisual(O,"style"),L=A.getItemVisual(O,"legendIcon"),N=sa(R.fill);N&&N[3]===0&&(N[3]=.2,R=Ce(Ce({},R),{fill:um(N,"rgba")}));var B=this._createItem(E,x,g,v,n,r,{},R,L,p,o);B.on("click",Ru(PE,null,x,o,h)).on("mouseover",Ru(VS,null,x,o,h)).on("mouseout",Ru(US,null,x,o,h)),i.ssr&&B.eachChild(function(F){var z=jt(F);z.seriesIndex=E.seriesIndex,z.dataIndex=g,z.ssrType="legend"}),d.set(x,!0)}},this)},this),a&&this._createSelector(a,n,o,s,l)},t.prototype._createSelector=function(r,n,i,o,a){var s=this.getSelectorGroup();HS(r,function(c){var d=c.type,p=new dn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Lw(p,{normal:h,emphasis:v},{defaultText:c.title}),aS(p)})},t.prototype._createItem=function(r,n,i,o,a,s,l,c,d,p,h){var v=r.visualDrawType,g=a.get("itemWidth"),x=a.get("itemHeight"),y=a.isSelected(n),S=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),b=o.get("icon");d=b||d||"roundRect";var C=Zie(d,o,l,c,v,y,h),T=new mv,P=o.getModel("textStyle");if(dt(r.getLegendIcon)&&(!b||b==="inherit"))T.add(r.getLegendIcon({itemWidth:g,itemHeight:x,icon:d,iconRotate:S,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:w}));else{var E=b==="inherit"&&r.getData().getVisual("symbol")?S==="inherit"?r.getData().getVisual("symbolRotate"):S:0;T.add(Jie({itemWidth:g,itemHeight:x,icon:d,iconRotate:E,itemStyle:C.itemStyle,symbolKeepAspect:w}))}var A=s==="left"?g+5:-5,O=s,R=a.get("formatter"),L=n;Ue(R)&&R?L=R.replace("{name}",n??""):dt(R)&&(L=R(n));var N=y?P.getTextColor():o.get("inactiveColor");T.add(new dn({style:vs(P,{text:L,x:A,y:x/2,fill:N,align:O,verticalAlign:"middle"},{inheritColor:N})}));var B=new Wr({shape:T.getBoundingRect(),style:{fill:"transparent"}}),F=o.getModel("tooltip");return F.get("show")&&Aw({el:B,componentModel:a,itemName:n,itemTooltipOption:F.option}),T.add(B),T.eachChild(function(z){z.silent=!0}),B.silent=!p,this.getContentGroup().add(T),aS(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();ad(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var d=l.getBoundingRect(),p=[-d.x,-d.y];if(c.markRedraw(),l.markRedraw(),a){ad("horizontal",c,r.get("selectorItemGap",!0));var h=c.getBoundingRect(),v=[-h.x,-h.y],g=r.get("selectorButtonGap",!0),x=r.getOrient().index,y=x===0?"width":"height",S=x===0?"height":"width",w=x===0?"y":"x";s==="end"?v[x]+=d[y]+g:p[x]+=h[y]+g,v[1-x]+=d[S]/2-h[S]/2,c.x=v[0],c.y=v[1],l.x=p[0],l.y=p[1];var b={x:0,y:0};return b[y]=d[y]+g+h[y],b[S]=Math.max(d[S],h[S]),b[w]=Math.min(0,h[w]+v[1-x]),b}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ao);function Zie(e,t,r,n,i,o,a){function s(y,S){y.lineWidth==="auto"&&(y.lineWidth=S.lineWidth>0?2:0),HS(y,function(w,b){y[b]==="inherit"&&(y[b]=S[b])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),d=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");c.decal=!p||p==="inherit"?n.decal:MS(p,a),c.fill==="inherit"&&(c.fill=n[i]),c.stroke==="inherit"&&(c.stroke=n[d]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?n:r).opacity),s(c,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),c.fill==="auto"&&(c.fill=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!o){var g=t.get("inactiveBorderWidth"),x=c[d];c.lineWidth=g==="auto"?n.lineWidth>0&&x?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:c,lineStyle:v}}function Jie(e){var t=e.icon||"roundRect",r=ac(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function PE(e,t,r,n){US(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),VS(e,t,r,n)}function W5(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function VS(e,t,r,n){W5(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function US(e,t,r,n){W5(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function eoe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Mf(e,t,r){var n={},i=e==="toggleSelected",o;return r.eachComponent("legend",function(a){i&&o!=null?a[o?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?a[e]():(a[e](t.name),o=a.isSelected(t.name));var s=a.getData();K(s,function(l){var c=l.get("name");if(!(c===`
242
- `||c==="")){var d=a.isSelected(c);n.hasOwnProperty(c)?n[c]=n[c]&&d:n[c]=d}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function toe(e){e.registerAction("legendToggleSelect","legendselectchanged",zr(Mf,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",zr(Mf,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",zr(Mf,"inverseSelect")),e.registerAction("legendSelect","legendselected",zr(Mf,"select")),e.registerAction("legendUnSelect","legendunselected",zr(Mf,"unSelect"))}function H5(e){e.registerComponentModel(WS),e.registerComponentView(j5),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,eoe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),toe(e)}var roe=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var o=Rm(r);e.prototype.init.call(this,r,n,i),RE(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),RE(this,this.option,r)},t.type="legend.scroll",t.defaultOption=AZ(WS.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}(WS);function RE(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,oc(t,r,{type:"box",ignoreSize:!!i})}var ME=pn,rx=["width","height"],nx=["x","y"],noe=function(e){Ae(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new ME),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ME)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,o,a,s,l){var c=this;e.prototype.renderInner.call(this,r,n,i,o,a,s,l);var d=this._controllerGroup,p=n.get("pageIconSize",!0),h=$e(p)?p:[p,p];g("pagePrev",0);var v=n.getModel("pageTextStyle");d.add(new dn({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(x,y){var S=x+"DataIndex",w=Iw(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:dr(c._pageGo,c,S,n,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});w.name=x,d.add(w)}},t.prototype.layoutInner=function(r,n,i,o,a,s){var l=this.getSelectorGroup(),c=r.getOrient().index,d=rx[c],p=nx[c],h=rx[1-c],v=nx[1-c];a&&ad("horizontal",l,r.get("selectorItemGap",!0));var g=r.get("selectorButtonGap",!0),x=l.getBoundingRect(),y=[-x.x,-x.y],S=Pt(i);a&&(S[d]=i[d]-x[d]-g);var w=this._layoutContentAndController(r,o,S,c,d,h,v,p);if(a){if(s==="end")y[c]+=w[d]+g;else{var b=x[d]+g;y[c]-=b,w[p]-=b}w[d]+=x[d]+g,y[1-c]+=w[v]+w[h]/2-x[h]/2,w[h]=Math.max(w[h],x[h]),w[v]=Math.min(w[v],x[v]+y[1-c]),l.x=y[0],l.y=y[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,i,o,a,s,l,c){var d=this.getContentGroup(),p=this._containerGroup,h=this._controllerGroup;ad(r.get("orient"),d,r.get("itemGap"),o?i.width:null,o?null:i.height),ad("horizontal",h,r.get("pageButtonItemGap",!0));var v=d.getBoundingRect(),g=h.getBoundingRect(),x=this._showController=v[a]>i[a],y=[-v.x,-v.y];n||(y[o]=d[c]);var S=[0,0],w=[-g.x,-g.y],b=wt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(x){var C=r.get("pageButtonPosition",!0);C==="end"?w[o]+=i[a]-g[a]:S[o]+=g[a]+b}w[1-o]+=v[s]/2-g[s]/2,d.setPosition(y),p.setPosition(S),h.setPosition(w);var T={x:0,y:0};if(T[a]=x?i[a]:v[a],T[s]=Math.max(v[s],g[s]),T[l]=Math.min(0,g[l]+w[1-o]),p.__rectSize=i[a],x){var P={x:0,y:0};P[a]=Math.max(i[a]-g[a]-b,0),P[s]=T[s],p.setClipPath(new Wr({shape:P})),p.__rectSize=P[a]}else h.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(r);return E.pageIndex!=null&&hs(d,{x:E.contentPosition[0],y:E.contentPosition[1]},x?r:null),this._updatePageInfoView(r,E),T},t.prototype._pageGo=function(r,n,i){var o=this._getPageInfo(n)[r];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;K(["pagePrev","pageNext"],function(d){var p=d+"DataIndex",h=n[p]!=null,v=i.childOfName(d);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var o=i.childOfName("pageText"),a=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,c=n.pageCount;o&&a&&o.setStyle("text",Ue(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=r.getOrient().index,s=rx[a],l=nx[a],c=this._findTargetItemIndex(n),d=i.children(),p=d[c],h=d.length,v=h?1:0,g={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return g;var x=C(p);g.contentPosition[a]=-x.s;for(var y=c+1,S=x,w=x,b=null;y<=h;++y)b=C(d[y]),(!b&&w.e>S.s+o||b&&!T(b,S.s))&&(w.i>S.i?S=w:S=b,S&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=S.i),++g.pageCount)),w=b;for(var y=c-1,S=x,w=x,b=null;y>=-1;--y)b=C(d[y]),(!b||!T(w,b.s))&&S.i<w.i&&(w=S,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=S.i),++g.pageCount,++g.pageIndex),S=b;return g;function C(P){if(P){var E=P.getBoundingRect(),A=E[l]+P[l];return{s:A,e:A+E[s],i:P.__legendDataIndex}}}function T(P,E){return P.e>=E&&P.s<=E+o}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},t.type="legend.scroll",t}(j5);function ioe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function ooe(e){ms(H5),e.registerComponentModel(roe),e.registerComponentView(noe),ioe(e)}function aoe(e){ms(H5),ms(ooe)}function EE(e,t,r){var n=cc.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=o*r,n}var ix=function(e){Ae(t,e);function t(r,n,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||sg,typeof r=="string"?a=EE(r,n,i):Qe(r)&&(a=r,r=a.id),o.id=r,o.dom=a;var s=a.style;return s&&(PD(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=n,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 r=this.dpr;this.domBack=EE("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new $t(0,0,0,0);function d(w){if(!(!w.isFinite()||w.isZero()))if(a.length===0){var b=new $t(0,0,0,0);b.copy(w),a.push(b)}else{for(var C=!1,T=1/0,P=0,E=0;E<a.length;++E){var A=a[E];if(A.intersect(w)){var O=new $t(0,0,0,0);O.copy(A),O.union(w),a[E]=O,C=!0;break}else if(l){c.copy(w),c.union(A);var R=w.width*w.height,L=A.width*A.height,N=c.width*c.height,B=N-R-L;B<T&&(T=B,P=E)}}if(l&&(a[P].union(w),C=!0),!C){var b=new $t(0,0,0,0);b.copy(w),a.push(b)}l||(l=a.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var h=r[p];if(h){var v=h.shouldBePainted(i,o,!0,!0),g=h.__isRendered&&(h.__dirty&Eo||!v)?h.getPrevPaintRect():null;g&&d(g);var x=v&&(h.__dirty&Eo||!h.__isRendered)?h.getPaintRect():null;x&&d(x)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var h=n[p],v=h&&h.shouldBePainted(i,o,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var g=h.getPrevPaintRect();g&&d(g)}}var y;do{y=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var S=p+1;S<a.length;)a[p].intersect(a[S])?(y=!0,a[p].union(a[S]),a.splice(S,1)):S++;p++}}while(y);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=r+"px",a.height=n+"px"),o.width=r*i,o.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;n=n||this.clearColor;var c=this.motionBlur&&!r,d=this.lastFrameAlpha,p=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/p,l/p));var v=this.domBack;function g(x,y,S,w){if(a.clearRect(x,y,S,w),n&&n!=="transparent"){var b=void 0;if(om(n)){var C=n.global||n.__width===S&&n.__height===w;b=C&&n.__canvasGradient||PS(a,n,{x:0,y:0,width:S,height:w}),n.__canvasGradient=b,n.__width=S,n.__height=w}else lq(n)&&(n.scaleX=n.scaleX||p,n.scaleY=n.scaleY||p,b=RS(a,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));a.save(),a.fillStyle=b||n,a.fillRect(x,y,S,w),a.restore()}c&&(a.save(),a.globalAlpha=d,a.drawImage(v,x,y,S,w),a.restore())}!i||c?g(0,0,s,l):i.length&&K(i,function(x){g(x.x*p,x.y*p,x.width*p,x.height*p)})},t}(Fo),IE=1e5,il=314159,yv=.01,soe=.001;function loe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function uoe(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var coe=function(){function e(t,r,n,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=n=Ce({},n||{}),this.dpr=n.devicePixelRatio||sg,this._singleCanvas=o,this.root=t;var a=t.style;a&&(PD(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var d=t,p=d.width,h=d.height;n.width!=null&&(p=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,d.width=p*this.dpr,d.height=h*this.dpr,this._width=p,this._height=h;var v=new ix(d,this,this.dpr);v.__builtin__=!0,v.initContext(),l[il]=v,v.zlevel=il,s.push(il),this._domRoot=t}else{this._width=cv(t,0,n),this._height=cv(t,1,n);var c=this._domRoot=uoe(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 r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,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=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<r;a++){var s=t[a];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(IE)),o||(o=n.ctx,o.save()),Sl(o,s,i,a===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(IE)},e.prototype.paintOne=function(t,r){qO(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,r,n),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;xg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(il).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){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||n)&&o.push(c)}for(var d=!0,p=!1,h=function(x){var y=o[x],S=y.ctx,w=a&&y.createRepaintRects(t,r,v._width,v._height),b=n?y.__startIndex:y.__drawIndex,C=!n&&y.incremental&&Date.now,T=C&&Date.now(),P=y.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,P,w);else if(b===y.__startIndex){var E=t[b];(!E.incremental||!E.notClear||n)&&y.clear(!1,P,w)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=y.__startIndex);var A,O=function(B){var F={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(A=b;A<y.__endIndex;A++){var z=t[A];if(z.__inHover&&(p=!0),i._doPaintEl(z,y,a,B,F,A===y.__endIndex-1),C){var j=Date.now()-T;if(j>15)break}}F.prevElClipPaths&&S.restore()};if(w)if(w.length===0)A=y.__endIndex;else for(var R=v.dpr,L=0;L<w.length;++L){var N=w[L];S.save(),S.beginPath(),S.rect(N.x*R,N.y*R,N.width*R,N.height*R),S.clip(),O(N),S.restore()}else S.save(),O(),S.restore();y.__drawIndex=A,y.__drawIndex<y.__endIndex&&(d=!1)},v=this,g=0;g<o.length;g++)h(g);return ut.wxa&&K(this._layers,function(x){x&&x.ctx&&x.ctx.draw&&x.ctx.draw()}),{finished:d,needsRefreshHover:p}},e.prototype._doPaintEl=function(t,r,n,i,o,a){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Sl(s,t,o,a),t.setPrevPaintRect(l))}else Sl(s,t,o,a)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=il);var n=this._layers[t];return n||(n=new ix("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Nt(n,this._layerConfig[t],!0):this._layerConfig[t-yv]&&Nt(n,this._layerConfig[t-yv],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&loe(r)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(r.dom,c.nextSibling):a.appendChild(r.dom)}else a.firstChild?a.insertBefore(r.dom,a.firstChild):a.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(r,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],a=this._layers[o];a.__builtin__&&t.call(r,a,o)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],a=this._layers[o];a.__builtin__||t.call(r,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(p,h){p.__dirty=p.__used=!1});function r(p){o&&(o.__endIndex!==p&&(o.__dirty=!0),o.__endIndex=p)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-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,d=void 0;s!==c&&(s=c,a=0),i.incremental?(d=this.getLayer(c+soe,this._needsManuallyCompositing),d.incremental=!0,a=1):d=this.getLayer(c+(a>0?yv:0),this._needsManuallyCompositing),d.__builtin__||aw("ZLevel "+c+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==l&&(d.__dirty=!0),d.__startIndex=l,d.incremental?d.__drawIndex=-1:d.__drawIndex=l,r(l),o=d),i.__dirty&Eo&&!i.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(p,h){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__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,K(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Nt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+yv){var a=this._layers[o];Nt(a,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(Ut(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=cv(o,0,i),r=cv(o,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(il).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.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[il].dom;var r=new ix("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,o=r.dom.height;this.eachLayer(function(p){p.__builtin__?n.drawImage(p.dom,0,0,i,o):p.renderToCanvas&&(n.save(),p.renderToCanvas(n),n.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 d=s[l];Sl(n,d,a,l===c-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function foe(e){e.registerPainter("canvas",coe)}const AE={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},doe=e=>!isNaN(new Date(e).getTime()),poe=e=>e&&doe(e)?new Date(e).toLocaleString():"",V5=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),DE={type:"value",boundaryGap:[0,"5%"]},hoe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(DE).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...DE,...t?{name:t}:{}},voe=e=>new Date(e).toLocaleTimeString(),goe=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,moe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c})=>({title:{text:t},tooltip:{trigger:"axis",formatter:d=>Array.isArray(d)&&d.length>0&&d.some(p=>!!p.value)?d.reduce((p,{axisValue:h,color:v,seriesName:g,value:x},y)=>`
243
- ${y===0?poe(h):""}
244
- ${p}
245
- <br>
246
- <span style="color:${v};">
247
- ${g}:&nbsp${goe({chartValueFormatter:i,value:x})}
248
- </span>
249
- `,""):"No data",borderWidth:0},xAxis:s||{type:"time",min:(e.time||[new Date().toISOString()])[0],startValue:(e.time||[])[0],splitNumber:window.innerWidth<900?2:7,minInterval:1,axisLabel:{formatter:voe}},grid:l||{left:60,right:40},yAxis:hoe({splitAxis:o,yAxisLabels:a}),series:V5({charts:e,lines:r,scatterplot:c}),color:n,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}},legend:{top:25}}),yoe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(t=>({xAxis:t}))}),xoe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:o}]=r,a=n>0&&o<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:a}]})};ms([xee,Xie,Yie,Pie,aoe,foe]);function Soe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c,shouldReplaceMergeLines:d=!1,isDarkMode:p=!1}){const[h,v]=D.useState(null),g=D.useRef(null);return D.useEffect(()=>{if(!g.current)return;const x=Dre(g.current);x.setOption(moe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c})),x.on("datazoom",xoe(x));const y=()=>{x.resize(),x.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",y),x.group="swarmCharts",Lre("swarmCharts"),v(x),()=>{Ore(x),window.removeEventListener("resize",y)}},[g]),D.useEffect(()=>{const x=r.every(({key:y})=>!!e[y]);h&&x&&h.setOption({series:r.map(({key:y,yAxisIndex:S,...w},b)=>({...w,data:e[y],...o?{yAxisIndex:S||b}:{},...b===0?{markLine:yoe(e)}:{}}))})},[e,h,r]),D.useEffect(()=>{if(h){const{textColor:x,axisColor:y,backgroundColor:S,splitLine:w}=p?AE.DARK:AE.LIGHT;h.setOption({backgroundColor:S,textStyle:{color:x},title:{textStyle:{color:x}},legend:{icon:"circle",inactiveColor:x,textStyle:{color:x}},tooltip:{backgroundColor:S,textStyle:{color:x}},xAxis:{axisLine:{lineStyle:{color:y}}},yAxis:{axisLine:{lineStyle:{color:y}},splitLine:{lineStyle:{color:w}}}})}},[h,p]),D.useEffect(()=>{h&&h.setOption({series:V5({charts:e,lines:r,scatterplot:c})},d?{replaceMerge:["series"]}:void 0)},[r]),M.jsx("div",{ref:g,style:{width:"100%",height:"300px"}})}const boe=Mo.percentilesToChart?Mo.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],woe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],_oe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:boe,colors:woe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function Coe({charts:e,isDarkMode:t}){return _oe.map((r,n)=>M.jsx(Soe,{...r,charts:e,isDarkMode:t},`swarm-chart-${n}`))}const Toe=({theme:{isDarkMode:e},ui:{charts:t}})=>({charts:t,isDarkMode:e}),koe=ui(Toe)(Coe);function Poe(e){return(e*100).toFixed(1)+"%"}function GS({classRatio:e}){return M.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>M.jsxs("li",{children:[`${Poe(r)} ${t}`,n&&M.jsx(GS,{classRatio:n})]},`nested-ratio-${t}`))})}function Roe({ratios:{perClass:e,total:t}}){return!e&&!t?null:M.jsxs("div",{children:[e&&M.jsxs(M.Fragment,{children:[M.jsx("h3",{children:"Ratio Per Class"}),M.jsx(GS,{classRatio:e})]}),t&&M.jsxs(M.Fragment,{children:[M.jsx("h3",{children:"Total Ratio"}),M.jsx(GS,{classRatio:t})]})]})}const Moe=({ui:{ratios:e}})=>({ratios:e}),Eoe=ui(Moe)(Roe);function Ioe(){const{data:e,refetch:t}=EG(),r=wo(Xf.setUi),n=Cn(({swarm:o})=>o.state),i=n===Xr.SPAWNING||n==Xr.RUNNING;D.useEffect(()=>{e&&r({ratios:e})},[e]),ip(t,5e3,{shouldRunInterval:i,immediate:!0})}function Aoe(){return Ioe(),M.jsx(Eoe,{})}const Doe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:U$}];function Loe({workers:e=[]}){return M.jsx(op,{defaultSortKey:"id",rows:e,structure:Doe})}const Ooe=({ui:{workers:e}})=>({workers:e}),Noe=ui(Ooe)(Loe),ra={stats:{component:KY,key:"stats",title:"Statistics"},charts:{component:koe,key:"charts",title:"Charts"},failures:{component:EY,key:"failures",title:"Failures"},exceptions:{component:kY,key:"exceptions",title:"Exceptions"},ratios:{component:Aoe,key:"ratios",title:"Current Ratio"},reports:{component:WY,key:"reports",title:"Download Data"},logs:{component:FY,key:hD,title:"Logs"},workers:{component:Noe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed},locustCloud:{component:NY,key:"locustcloud",title:"Locust Cloud"}},$oe=[ra.stats,ra.charts,ra.failures,ra.exceptions,ra.ratios,ra.reports,ra.logs,ra.workers,ra.locustCloud],Boe=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},Foe=()=>window.location.search?V$(window.location.search):null,zoe={query:Foe()},U5=ki({name:"url",initialState:zoe,reducers:{setUrl:np}}),joe=U5.actions,Woe=U5.reducer;function Hoe({hasNotification:e,title:t}){return M.jsxs(et,{sx:{display:"flex",alignItems:"center"},children:[e&&M.jsx(KA,{color:"secondary"}),M.jsx("span",{children:t})]})}function Voe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[o,a]=D.useState(e),s=(l,c)=>{const d=i[c].key;t[d]&&r({[d]:!1}),Boe({tab:d}),n({query:{tab:d}}),a(c)};return D.useEffect(()=>{a(e)},[e]),M.jsxs(rp,{maxWidth:"xl",children:[M.jsx(et,{sx:{mb:2},children:M.jsx(cU,{onChange:s,scrollButtons:"auto",value:o,variant:"scrollable",children:i.map(({key:l,title:c},d)=>M.jsx(SV,{label:M.jsx(Hoe,{hasNotification:t[l],title:c})},`tab-${d}`))})}),i.map(({component:l=gY},c)=>o===c&&M.jsx(l,{},`tabpabel-${c}`))]})}const Uoe=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:o}}=e,s=(t||[...$oe,...r||i||[]]).filter(({shouldDisplayTab:c})=>!c||c&&c(e)),l=o&&o.tab?s.findIndex(({key:c})=>c===o.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},Goe={setNotification:gD.setNotification,setUrl:joe.setUrl},Yoe=ui(Uoe,Goe)(Voe),qoe=2e3;function Koe(){const e=wo(nm.setSwarm),t=wo(Xf.setUi),r=wo(Xf.updateCharts),n=wo(Xf.updateChartMarkers),i=Cn(({swarm:p})=>p),o=D.useRef(i.state),[a,s]=D.useState(!1),{data:l,refetch:c}=MG(),d=i.state===Xr.SPAWNING||i.state==Xr.RUNNING;D.useEffect(()=>{if(!l)return;const{state:p,currentResponseTimePercentiles:h,extendedStats:v,stats:g,errors:x,totalRps:y,totalFailPerSec:S,failRatio:w,workers:b,workerCount:C,userCount:T,totalAvgResponseTime:P}=l,E=new Date().toISOString();a&&(s(!1),n(E));const A=Of(y,2),O=Of(S,2),R=Of(w*100),N={...Object.entries(h).reduce((B,[F,z])=>({...B,[F]:[E,z||0]}),{}),currentRps:[E,A],currentFailPerSec:[E,O],totalAvgResponseTime:[E,Of(P,2)],userCount:[E,T],time:E};t({extendedStats:v,stats:g,errors:x,totalRps:A,failRatio:R,workers:b,userCount:T}),r(N),e({state:p,workerCount:C})},[l]),ip(c,qoe,{shouldRunInterval:d}),D.useEffect(()=>{i.state===Xr.RUNNING&&o.current===Xr.STOPPED&&s(!0),o.current=i.state},[i.state,o])}const Xoe=2e3;function Qoe(){const{data:e,refetch:t}=DG(),r=wo(nm.setSwarm),n=Cn(({swarm:i})=>i);D.useEffect(()=>{e&&r({workerCount:e.workerCount})},[e]),ip(t,Xoe,{shouldRunInterval:n.isDistributed&&n.state===Xr.READY})}function Zoe({swarmState:e,tabs:t,extendedTabs:r}){Koe(),Qoe(),cY();const n=eD();return M.jsxs(rA,{theme:n,children:[M.jsx(RA,{}),M.jsx(rY,{children:e===Xr.READY?M.jsx(rw,{}):M.jsx(Yoe,{extendedTabs:r,tabs:t})})]})}const Joe=({swarm:{state:e}})=>({swarmState:e}),eae=ui(Joe)(Zoe),tae=Pg({[tg.reducerPath]:tg.reducer,logViewer:lY,notification:iY,swarm:FG,theme:JA,ui:CY,url:Woe}),rae=KE({reducer:tae,middleware:e=>e().concat(tg.middleware)});function nae(){if(c2){const e=KE({reducer:Pg({theme:JA})});return M.jsx(l2,{store:e,children:M.jsx(EU,{...c2})})}else return M.jsx(l2,{store:rae,children:M.jsx(eae,{})})}function iae({error:e}){return M.jsxs("div",{role:"alert",children:[M.jsx("p",{children:"Something went wrong"}),e.message&&M.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",M.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const oae=jN.createRoot(document.getElementById("root"));oae.render(M.jsx(HN,{fallbackRender:iae,children:M.jsx(nae,{})}));