locust 2.31.3.dev6__py3-none-any.whl → 2.31.3.dev20__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.
- locust/_version.py +2 -2
- locust/web.py +1 -1
- locust/webui/dist/assets/favicon.png +0 -0
- locust/webui/dist/assets/index-QclDHWFg.js +234 -0
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +2 -2
- {locust-2.31.3.dev6.dist-info → locust-2.31.3.dev20.dist-info}/METADATA +1 -1
- {locust-2.31.3.dev6.dist-info → locust-2.31.3.dev20.dist-info}/RECORD +11 -12
- locust/webui/dist/assets/favicon.ico +0 -0
- locust/webui/dist/assets/index-eRQ5N65G.js +0 -234
- locust/webui/dist/assets/logo-D7qLhWk4.png +0 -0
- {locust-2.31.3.dev6.dist-info → locust-2.31.3.dev20.dist-info}/LICENSE +0 -0
- {locust-2.31.3.dev6.dist-info → locust-2.31.3.dev20.dist-info}/WHEEL +0 -0
- {locust-2.31.3.dev6.dist-info → locust-2.31.3.dev20.dist-info}/entry_points.txt +0 -0
@@ -1,234 +0,0 @@
|
|
1
|
-
var e7=Object.defineProperty;var t7=(e,t,r)=>t in e?e7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Kx=(e,t,r)=>t7(e,typeof t!="symbol"?t+"":t,r);function r7(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 a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function X0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var JF={exports:{}},q0={},e3={exports:{}},it={};/**
|
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 av=Symbol.for("react.element"),i7=Symbol.for("react.portal"),a7=Symbol.for("react.fragment"),o7=Symbol.for("react.strict_mode"),s7=Symbol.for("react.profiler"),l7=Symbol.for("react.provider"),u7=Symbol.for("react.context"),c7=Symbol.for("react.forward_ref"),f7=Symbol.for("react.suspense"),d7=Symbol.for("react.memo"),h7=Symbol.for("react.lazy"),lD=Symbol.iterator;function p7(e){return e===null||typeof e!="object"?null:(e=lD&&e[lD]||e["@@iterator"],typeof e=="function"?e:null)}var t3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r3=Object.assign,n3={};function Nf(e,t,r){this.props=e,this.context=t,this.refs=n3,this.updater=r||t3}Nf.prototype.isReactComponent={};Nf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Nf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function i3(){}i3.prototype=Nf.prototype;function V2(e,t,r){this.props=e,this.context=t,this.refs=n3,this.updater=r||t3}var $2=V2.prototype=new i3;$2.constructor=V2;r3($2,Nf.prototype);$2.isPureReactComponent=!0;var uD=Array.isArray,a3=Object.prototype.hasOwnProperty,G2={current:null},o3={key:!0,ref:!0,__self:!0,__source:!0};function s3(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)a3.call(t,n)&&!o3.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:av,type:e,key:a,ref:o,props:i,_owner:G2.current}}function v7(e,t){return{$$typeof:av,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function H2(e){return typeof e=="object"&&e!==null&&e.$$typeof===av}function g7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var cD=/\/+/g;function Qx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?g7(""+e.key):t.toString(36)}function km(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case av:case i7:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Qx(o,0):n,uD(i)?(r="",e!=null&&(r=e.replace(cD,"$&/")+"/"),km(i,t,r,"",function(u){return u})):i!=null&&(H2(i)&&(i=v7(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(cD,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",uD(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+Qx(a,s);o+=km(a,t,r,l,i)}else if(l=p7(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+Qx(a,s++),o+=km(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Xv(e,t,r){if(e==null)return e;var n=[],i=0;return km(e,n,"","",function(a){return t.call(r,a,i++)}),n}function m7(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pn={current:null},Im={transition:null},y7={ReactCurrentDispatcher:pn,ReactCurrentBatchConfig:Im,ReactCurrentOwner:G2};function l3(){throw Error("act(...) is not supported in production builds of React.")}it.Children={map:Xv,forEach:function(e,t,r){Xv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Xv(e,function(){t++}),t},toArray:function(e){return Xv(e,function(t){return t})||[]},only:function(e){if(!H2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=Nf;it.Fragment=a7;it.Profiler=s7;it.PureComponent=V2;it.StrictMode=o7;it.Suspense=f7;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=y7;it.act=l3;it.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=r3({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=G2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)a3.call(t,l)&&!o3.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:av,type:e.type,key:i,ref:a,props:n,_owner:o}};it.createContext=function(e){return e={$$typeof:u7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:l7,_context:e},e.Consumer=e};it.createElement=s3;it.createFactory=function(e){var t=s3.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:c7,render:e}};it.isValidElement=H2;it.lazy=function(e){return{$$typeof:h7,_payload:{_status:-1,_result:e},_init:m7}};it.memo=function(e,t){return{$$typeof:d7,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Im.transition;Im.transition={};try{e()}finally{Im.transition=t}};it.unstable_act=l3;it.useCallback=function(e,t){return pn.current.useCallback(e,t)};it.useContext=function(e){return pn.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return pn.current.useDeferredValue(e)};it.useEffect=function(e,t){return pn.current.useEffect(e,t)};it.useId=function(){return pn.current.useId()};it.useImperativeHandle=function(e,t,r){return pn.current.useImperativeHandle(e,t,r)};it.useInsertionEffect=function(e,t){return pn.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return pn.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return pn.current.useMemo(e,t)};it.useReducer=function(e,t,r){return pn.current.useReducer(e,t,r)};it.useRef=function(e){return pn.current.useRef(e)};it.useState=function(e){return pn.current.useState(e)};it.useSyncExternalStore=function(e,t,r){return pn.current.useSyncExternalStore(e,t,r)};it.useTransition=function(){return pn.current.useTransition()};it.version="18.3.1";e3.exports=it;var N=e3.exports;const Hi=X0(N),Jh=r7({__proto__:null,default:Hi},[N]);/**
|
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 x7=N,S7=Symbol.for("react.element"),_7=Symbol.for("react.fragment"),b7=Object.prototype.hasOwnProperty,w7=x7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C7={key:!0,ref:!0,__self:!0,__source:!0};function u3(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)b7.call(t,n)&&!C7.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:S7,type:e,key:a,ref:o,props:i,_owner:w7.current}}q0.Fragment=_7;q0.jsx=u3;q0.jsxs=u3;JF.exports=q0;var R=JF.exports,Tw={},c3={exports:{}},Qn={},f3={exports:{}},d3={};/**
|
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
|
-
*/(function(e){function t(O,V){var L=O.length;O.push(V);e:for(;0<L;){var G=L-1>>>1,W=O[G];if(0<i(W,V))O[G]=V,O[L]=W,L=G;else break e}}function r(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var V=O[0],L=O.pop();if(L!==V){O[0]=L;e:for(var G=0,W=O.length,B=W>>>1;G<B;){var X=2*(G+1)-1,te=O[X],U=X+1,re=O[U];if(0>i(te,L))U<W&&0>i(re,te)?(O[G]=re,O[U]=L,G=U):(O[G]=te,O[X]=L,G=X);else if(U<W&&0>i(re,L))O[G]=re,O[U]=L,G=U;else break e}}return V}function i(O,V){var L=O.sortIndex-V.sortIndex;return L!==0?L:O.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(O){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=O)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function S(O){if(v=!1,x(O),!p)if(r(l)!==null)p=!0,z(b);else{var V=r(u);V!==null&&$(S,V.startTime-O)}}function b(O,V){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x(V),f=r(l);f!==null&&(!(f.expirationTime>V)||O&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var W=G(f.expirationTime<=V);V=e.unstable_now(),typeof W=="function"?f.callback=W:f===r(l)&&n(l),x(V)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var X=r(u);X!==null&&$(S,X.startTime-V),B=!1}return B}finally{f=null,d=L,h=!1}}var _=!1,w=null,C=-1,T=5,A=-1;function M(){return!(e.unstable_now()-A<T)}function k(){if(w!==null){var O=e.unstable_now();A=O;var V=!0;try{V=w(!0,O)}finally{V?I():(_=!1,w=null)}}else _=!1}var I;if(typeof y=="function")I=function(){y(k)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,E=P.port2;P.port1.onmessage=k,I=function(){E.postMessage(null)}}else I=function(){g(k,0)};function z(O){w=O,_||(_=!0,I())}function $(O,V){C=g(function(){O(e.unstable_now())},V)}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(O){O.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,z(b))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var L=d;d=V;try{return O()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,V){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=d;d=O;try{return V()}finally{d=L}},e.unstable_scheduleCallback=function(O,V,L){var G=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?G+L:G):L=G,O){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=L+W,O={id:c++,callback:V,priorityLevel:O,startTime:L,expirationTime:W,sortIndex:-1},L>G?(O.sortIndex=L,t(u,O),r(l)===null&&O===r(u)&&(v?(m(C),C=-1):v=!0,$(S,L-G))):(O.sortIndex=W,t(l,O),p||h||(p=!0,z(b))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var V=d;return function(){var L=d;d=V;try{return O.apply(this,arguments)}finally{d=L}}}})(d3);f3.exports=d3;var T7=f3.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 A7=N,Zn=T7;function ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h3=new Set,ep={};function Iu(e,t){df(e,t),df(e+"Capture",t)}function df(e,t){for(ep[e]=t,e=0;e<t.length;e++)h3.add(t[e])}var vo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Aw=Object.prototype.hasOwnProperty,M7=/^[: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]*$/,fD={},dD={};function k7(e){return Aw.call(dD,e)?!0:Aw.call(fD,e)?!1:M7.test(e)?dD[e]=!0:(fD[e]=!0,!1)}function I7(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D7(e,t,r,n){if(t===null||typeof t>"u"||I7(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new vn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new vn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new vn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new vn(e,2,!1,e,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(e){Nr[e]=new vn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new vn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new vn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new vn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new vn(e,5,!1,e.toLowerCase(),null,!1,!1)});var W2=/[\-:]([a-z])/g;function j2(e){return e[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(e){var t=e.replace(W2,j2);Nr[t]=new vn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(W2,j2);Nr[t]=new vn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(W2,j2);Nr[t]=new vn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new vn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new vn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new vn(e,1,!1,e.toLowerCase(),null,!0,!0)});function U2(e,t,r,n){var i=Nr.hasOwnProperty(t)?Nr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D7(t,r,i,n)&&(r=null),n||i===null?k7(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Do=A7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qv=Symbol.for("react.element"),kc=Symbol.for("react.portal"),Ic=Symbol.for("react.fragment"),Y2=Symbol.for("react.strict_mode"),Mw=Symbol.for("react.profiler"),p3=Symbol.for("react.provider"),v3=Symbol.for("react.context"),X2=Symbol.for("react.forward_ref"),kw=Symbol.for("react.suspense"),Iw=Symbol.for("react.suspense_list"),q2=Symbol.for("react.memo"),Ko=Symbol.for("react.lazy"),g3=Symbol.for("react.offscreen"),hD=Symbol.iterator;function od(e){return e===null||typeof e!="object"?null:(e=hD&&e[hD]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Object.assign,Jx;function Qd(e){if(Jx===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Jx=t&&t[1]||""}return`
|
34
|
-
`+Jx+e}var eS=!1;function tS(e,t){if(!e||eS)return"";eS=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
35
|
-
`),a=n.stack.split(`
|
36
|
-
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{eS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Qd(e):""}function P7(e){switch(e.tag){case 5:return Qd(e.type);case 16:return Qd("Lazy");case 13:return Qd("Suspense");case 19:return Qd("SuspenseList");case 0:case 2:case 15:return e=tS(e.type,!1),e;case 11:return e=tS(e.type.render,!1),e;case 1:return e=tS(e.type,!0),e;default:return""}}function Dw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ic:return"Fragment";case kc:return"Portal";case Mw:return"Profiler";case Y2:return"StrictMode";case kw:return"Suspense";case Iw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v3:return(e.displayName||"Context")+".Consumer";case p3:return(e._context.displayName||"Context")+".Provider";case X2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q2:return t=e.displayName||null,t!==null?t:Dw(e.type)||"Memo";case Ko:t=e._payload,e=e._init;try{return Dw(e(t))}catch{}}return null}function R7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dw(t);case 8:return t===Y2?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function m3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E7(e){var t=m3(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zv(e){e._valueTracker||(e._valueTracker=E7(e))}function y3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=m3(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function dy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pw(e,t){var r=t.checked;return qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function pD(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ks(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x3(e,t){t=t.checked,t!=null&&U2(e,"checked",t,!1)}function Rw(e,t){x3(e,t);var r=ks(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ew(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ew(e,t.type,ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vD(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ew(e,t,r){(t!=="number"||dy(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Jd=Array.isArray;function Yc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ks(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ie(91));return qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gD(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ie(92));if(Jd(r)){if(1<r.length)throw Error(ie(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ks(r)}}function S3(e,t){var r=ks(t.value),n=ks(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function mD(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _3(e){switch(e){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 Ow(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_3(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Kv,b3=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Kv=Kv||document.createElement("div"),Kv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Kv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xh={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},L7=["Webkit","ms","Moz","O"];Object.keys(xh).forEach(function(e){L7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xh[t]=xh[e]})});function w3(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||xh.hasOwnProperty(e)&&xh[e]?(""+t).trim():t+"px"}function C3(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=w3(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var O7=qt({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 Nw(e,t){if(t){if(O7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function zw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Bw=null;function Z2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fw=null,Xc=null,qc=null;function yD(e){if(e=lv(e)){if(typeof Fw!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=e1(t),Fw(e.stateNode,e.type,t))}}function T3(e){Xc?qc?qc.push(e):qc=[e]:Xc=e}function A3(){if(Xc){var e=Xc,t=qc;if(qc=Xc=null,yD(e),t)for(e=0;e<t.length;e++)yD(t[e])}}function M3(e,t){return e(t)}function k3(){}var rS=!1;function I3(e,t,r){if(rS)return e(t,r);rS=!0;try{return M3(e,t,r)}finally{rS=!1,(Xc!==null||qc!==null)&&(k3(),A3())}}function rp(e,t){var r=e.stateNode;if(r===null)return null;var n=e1(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(ie(231,t,typeof r));return r}var Vw=!1;if(vo)try{var sd={};Object.defineProperty(sd,"passive",{get:function(){Vw=!0}}),window.addEventListener("test",sd,sd),window.removeEventListener("test",sd,sd)}catch{Vw=!1}function N7(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Sh=!1,hy=null,py=!1,$w=null,z7={onError:function(e){Sh=!0,hy=e}};function B7(e,t,r,n,i,a,o,s,l){Sh=!1,hy=null,N7.apply(z7,arguments)}function F7(e,t,r,n,i,a,o,s,l){if(B7.apply(this,arguments),Sh){if(Sh){var u=hy;Sh=!1,hy=null}else throw Error(ie(198));py||(py=!0,$w=u)}}function Du(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function D3(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xD(e){if(Du(e)!==e)throw Error(ie(188))}function V7(e){var t=e.alternate;if(!t){if(t=Du(e),t===null)throw Error(ie(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return xD(i),e;if(a===n)return xD(i),t;a=a.sibling}throw Error(ie(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(ie(189))}}if(r.alternate!==n)throw Error(ie(190))}if(r.tag!==3)throw Error(ie(188));return r.stateNode.current===r?e:t}function P3(e){return e=V7(e),e!==null?R3(e):null}function R3(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=R3(e);if(t!==null)return t;e=e.sibling}return null}var E3=Zn.unstable_scheduleCallback,SD=Zn.unstable_cancelCallback,$7=Zn.unstable_shouldYield,G7=Zn.unstable_requestPaint,rr=Zn.unstable_now,H7=Zn.unstable_getCurrentPriorityLevel,K2=Zn.unstable_ImmediatePriority,L3=Zn.unstable_UserBlockingPriority,vy=Zn.unstable_NormalPriority,W7=Zn.unstable_LowPriority,O3=Zn.unstable_IdlePriority,Z0=null,Ia=null;function j7(e){if(Ia&&typeof Ia.onCommitFiberRoot=="function")try{Ia.onCommitFiberRoot(Z0,e,void 0,(e.current.flags&128)===128)}catch{}}var Ui=Math.clz32?Math.clz32:X7,U7=Math.log,Y7=Math.LN2;function X7(e){return e>>>=0,e===0?32:31-(U7(e)/Y7|0)|0}var Qv=64,Jv=4194304;function eh(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=eh(s):(a&=o,a!==0&&(n=eh(a)))}else o=r&~i,o!==0?n=eh(o):a!==0&&(n=eh(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ui(t),i=1<<r,n|=e[r],t&=~i;return n}function q7(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Z7(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ui(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=q7(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Gw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function N3(){var e=Qv;return Qv<<=1,!(Qv&4194240)&&(Qv=64),e}function nS(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ov(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ui(t),e[t]=r}function K7(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ui(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function Q2(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ui(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var At=0;function z3(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var B3,J2,F3,V3,$3,Hw=!1,eg=[],vs=null,gs=null,ms=null,np=new Map,ip=new Map,rs=[],Q7="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 _D(e,t){switch(e){case"focusin":case"focusout":vs=null;break;case"dragenter":case"dragleave":gs=null;break;case"mouseover":case"mouseout":ms=null;break;case"pointerover":case"pointerout":np.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ip.delete(t.pointerId)}}function ld(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=lv(t),t!==null&&J2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function J7(e,t,r,n,i){switch(t){case"focusin":return vs=ld(vs,e,t,r,n,i),!0;case"dragenter":return gs=ld(gs,e,t,r,n,i),!0;case"mouseover":return ms=ld(ms,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return np.set(a,ld(np.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,ip.set(a,ld(ip.get(a)||null,e,t,r,n,i)),!0}return!1}function G3(e){var t=Vl(e.target);if(t!==null){var r=Du(t);if(r!==null){if(t=r.tag,t===13){if(t=D3(r),t!==null){e.blockedOn=t,$3(e.priority,function(){F3(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ww(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Bw=n,r.target.dispatchEvent(n),Bw=null}else return t=lv(r),t!==null&&J2(t),e.blockedOn=r,!1;t.shift()}return!0}function bD(e,t,r){Dm(e)&&r.delete(t)}function eY(){Hw=!1,vs!==null&&Dm(vs)&&(vs=null),gs!==null&&Dm(gs)&&(gs=null),ms!==null&&Dm(ms)&&(ms=null),np.forEach(bD),ip.forEach(bD)}function ud(e,t){e.blockedOn===t&&(e.blockedOn=null,Hw||(Hw=!0,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,eY)))}function ap(e){function t(i){return ud(i,e)}if(0<eg.length){ud(eg[0],e);for(var r=1;r<eg.length;r++){var n=eg[r];n.blockedOn===e&&(n.blockedOn=null)}}for(vs!==null&&ud(vs,e),gs!==null&&ud(gs,e),ms!==null&&ud(ms,e),np.forEach(t),ip.forEach(t),r=0;r<rs.length;r++)n=rs[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<rs.length&&(r=rs[0],r.blockedOn===null);)G3(r),r.blockedOn===null&&rs.shift()}var Zc=Do.ReactCurrentBatchConfig,my=!0;function tY(e,t,r,n){var i=At,a=Zc.transition;Zc.transition=null;try{At=1,eA(e,t,r,n)}finally{At=i,Zc.transition=a}}function rY(e,t,r,n){var i=At,a=Zc.transition;Zc.transition=null;try{At=4,eA(e,t,r,n)}finally{At=i,Zc.transition=a}}function eA(e,t,r,n){if(my){var i=Ww(e,t,r,n);if(i===null)hS(e,t,n,yy,r),_D(e,n);else if(J7(i,e,t,r,n))n.stopPropagation();else if(_D(e,n),t&4&&-1<Q7.indexOf(e)){for(;i!==null;){var a=lv(i);if(a!==null&&B3(a),a=Ww(e,t,r,n),a===null&&hS(e,t,n,yy,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else hS(e,t,n,null,r)}}var yy=null;function Ww(e,t,r,n){if(yy=null,e=Z2(n),e=Vl(e),e!==null)if(t=Du(e),t===null)e=null;else if(r=t.tag,r===13){if(e=D3(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yy=e,null}function H3(e){switch(e){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(H7()){case K2:return 1;case L3:return 4;case vy:case W7:return 16;case O3:return 536870912;default:return 16}default:return 16}}var is=null,tA=null,Pm=null;function W3(){if(Pm)return Pm;var e,t=tA,r=t.length,n,i="value"in is?is.value:is.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Pm=i.slice(e,1<n?1-n:void 0)}function Rm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tg(){return!0}function wD(){return!1}function Jn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?tg:wD,this.isPropagationStopped=wD,this}return qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=tg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=tg)},persist:function(){},isPersistent:tg}),t}var zf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rA=Jn(zf),sv=qt({},zf,{view:0,detail:0}),nY=Jn(sv),iS,aS,cd,K0=qt({},sv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nA,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cd&&(cd&&e.type==="mousemove"?(iS=e.screenX-cd.screenX,aS=e.screenY-cd.screenY):aS=iS=0,cd=e),iS)},movementY:function(e){return"movementY"in e?e.movementY:aS}}),CD=Jn(K0),iY=qt({},K0,{dataTransfer:0}),aY=Jn(iY),oY=qt({},sv,{relatedTarget:0}),oS=Jn(oY),sY=qt({},zf,{animationName:0,elapsedTime:0,pseudoElement:0}),lY=Jn(sY),uY=qt({},zf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cY=Jn(uY),fY=qt({},zf,{data:0}),TD=Jn(fY),dY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hY={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"},pY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vY(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pY[e])?!!t[e]:!1}function nA(){return vY}var gY=qt({},sv,{key:function(e){if(e.key){var t=dY[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hY[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nA,charCode:function(e){return e.type==="keypress"?Rm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mY=Jn(gY),yY=qt({},K0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),AD=Jn(yY),xY=qt({},sv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nA}),SY=Jn(xY),_Y=qt({},zf,{propertyName:0,elapsedTime:0,pseudoElement:0}),bY=Jn(_Y),wY=qt({},K0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),CY=Jn(wY),TY=[9,13,27,32],iA=vo&&"CompositionEvent"in window,_h=null;vo&&"documentMode"in document&&(_h=document.documentMode);var AY=vo&&"TextEvent"in window&&!_h,j3=vo&&(!iA||_h&&8<_h&&11>=_h),MD=" ",kD=!1;function U3(e,t){switch(e){case"keyup":return TY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Y3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dc=!1;function MY(e,t){switch(e){case"compositionend":return Y3(t);case"keypress":return t.which!==32?null:(kD=!0,MD);case"textInput":return e=t.data,e===MD&&kD?null:e;default:return null}}function kY(e,t){if(Dc)return e==="compositionend"||!iA&&U3(e,t)?(e=W3(),Pm=tA=is=null,Dc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return j3&&t.locale!=="ko"?null:t.data;default:return null}}var IY={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 ID(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IY[e.type]:t==="textarea"}function X3(e,t,r,n){T3(n),t=xy(t,"onChange"),0<t.length&&(r=new rA("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var bh=null,op=null;function DY(e){a4(e,0)}function Q0(e){var t=Ec(e);if(y3(t))return e}function PY(e,t){if(e==="change")return t}var q3=!1;if(vo){var sS;if(vo){var lS="oninput"in document;if(!lS){var DD=document.createElement("div");DD.setAttribute("oninput","return;"),lS=typeof DD.oninput=="function"}sS=lS}else sS=!1;q3=sS&&(!document.documentMode||9<document.documentMode)}function PD(){bh&&(bh.detachEvent("onpropertychange",Z3),op=bh=null)}function Z3(e){if(e.propertyName==="value"&&Q0(op)){var t=[];X3(t,op,e,Z2(e)),I3(DY,t)}}function RY(e,t,r){e==="focusin"?(PD(),bh=t,op=r,bh.attachEvent("onpropertychange",Z3)):e==="focusout"&&PD()}function EY(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Q0(op)}function LY(e,t){if(e==="click")return Q0(t)}function OY(e,t){if(e==="input"||e==="change")return Q0(t)}function NY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zi=typeof Object.is=="function"?Object.is:NY;function sp(e,t){if(Zi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Aw.call(t,i)||!Zi(e[i],t[i]))return!1}return!0}function RD(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ED(e,t){var r=RD(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=RD(r)}}function K3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?K3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Q3(){for(var e=window,t=dy();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dy(e.document)}return t}function aA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zY(e){var t=Q3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&K3(r.ownerDocument.documentElement,r)){if(n!==null&&aA(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=ED(r,a);var o=ED(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var BY=vo&&"documentMode"in document&&11>=document.documentMode,Pc=null,jw=null,wh=null,Uw=!1;function LD(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Uw||Pc==null||Pc!==dy(n)||(n=Pc,"selectionStart"in n&&aA(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wh&&sp(wh,n)||(wh=n,n=xy(jw,"onSelect"),0<n.length&&(t=new rA("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Pc)))}function rg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Rc={animationend:rg("Animation","AnimationEnd"),animationiteration:rg("Animation","AnimationIteration"),animationstart:rg("Animation","AnimationStart"),transitionend:rg("Transition","TransitionEnd")},uS={},J3={};vo&&(J3=document.createElement("div").style,"AnimationEvent"in window||(delete Rc.animationend.animation,delete Rc.animationiteration.animation,delete Rc.animationstart.animation),"TransitionEvent"in window||delete Rc.transitionend.transition);function J0(e){if(uS[e])return uS[e];if(!Rc[e])return e;var t=Rc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in J3)return uS[e]=t[r];return e}var e4=J0("animationend"),t4=J0("animationiteration"),r4=J0("animationstart"),n4=J0("transitionend"),i4=new Map,OD="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 Vs(e,t){i4.set(e,t),Iu(t,[e])}for(var cS=0;cS<OD.length;cS++){var fS=OD[cS],FY=fS.toLowerCase(),VY=fS[0].toUpperCase()+fS.slice(1);Vs(FY,"on"+VY)}Vs(e4,"onAnimationEnd");Vs(t4,"onAnimationIteration");Vs(r4,"onAnimationStart");Vs("dblclick","onDoubleClick");Vs("focusin","onFocus");Vs("focusout","onBlur");Vs(n4,"onTransitionEnd");df("onMouseEnter",["mouseout","mouseover"]);df("onMouseLeave",["mouseout","mouseover"]);df("onPointerEnter",["pointerout","pointerover"]);df("onPointerLeave",["pointerout","pointerover"]);Iu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Iu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Iu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Iu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Iu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Iu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var th="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(" "),$Y=new Set("cancel close invalid load scroll toggle".split(" ").concat(th));function ND(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,F7(n,t,void 0,e),e.currentTarget=null}function a4(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;ND(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;ND(i,s,u),a=l}}}if(py)throw e=$w,py=!1,$w=null,e}function Ft(e,t){var r=t[Kw];r===void 0&&(r=t[Kw]=new Set);var n=e+"__bubble";r.has(n)||(o4(t,e,2,!1),r.add(n))}function dS(e,t,r){var n=0;t&&(n|=4),o4(r,e,n,t)}var ng="_reactListening"+Math.random().toString(36).slice(2);function lp(e){if(!e[ng]){e[ng]=!0,h3.forEach(function(r){r!=="selectionchange"&&($Y.has(r)||dS(r,!1,e),dS(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ng]||(t[ng]=!0,dS("selectionchange",!1,t))}}function o4(e,t,r,n){switch(H3(t)){case 1:var i=tY;break;case 4:i=rY;break;default:i=eA}r=i.bind(null,t,r,e),i=void 0,!Vw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function hS(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Vl(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}I3(function(){var u=a,c=Z2(r),f=[];e:{var d=i4.get(e);if(d!==void 0){var h=rA,p=e;switch(e){case"keypress":if(Rm(r)===0)break e;case"keydown":case"keyup":h=mY;break;case"focusin":p="focus",h=oS;break;case"focusout":p="blur",h=oS;break;case"beforeblur":case"afterblur":h=oS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=CD;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=aY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=SY;break;case e4:case t4:case r4:h=lY;break;case n4:h=bY;break;case"scroll":h=nY;break;case"wheel":h=CY;break;case"copy":case"cut":case"paste":h=cY;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=AD}var v=(t&4)!==0,g=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var y=u,x;y!==null;){x=y;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,m!==null&&(S=rp(y,m),S!=null&&v.push(up(y,S,x)))),g)break;y=y.return}0<v.length&&(d=new h(d,p,null,r,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==Bw&&(p=r.relatedTarget||r.fromElement)&&(Vl(p)||p[go]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=r.relatedTarget||r.toElement,h=u,p=p?Vl(p):null,p!==null&&(g=Du(p),p!==g||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(v=CD,S="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=AD,S="onPointerLeave",m="onPointerEnter",y="pointer"),g=h==null?d:Ec(h),x=p==null?d:Ec(p),d=new v(S,y+"leave",h,r,c),d.target=g,d.relatedTarget=x,S=null,Vl(c)===u&&(v=new v(m,y+"enter",p,r,c),v.target=x,v.relatedTarget=g,S=v),g=S,h&&p)t:{for(v=h,m=p,y=0,x=v;x;x=Hu(x))y++;for(x=0,S=m;S;S=Hu(S))x++;for(;0<y-x;)v=Hu(v),y--;for(;0<x-y;)m=Hu(m),x--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=Hu(v),m=Hu(m)}v=null}else v=null;h!==null&&zD(f,d,h,v,!1),p!==null&&g!==null&&zD(f,g,p,v,!0)}}e:{if(d=u?Ec(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var b=PY;else if(ID(d))if(q3)b=OY;else{b=EY;var _=RY}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=LY);if(b&&(b=b(e,u))){X3(f,b,r,c);break e}_&&_(e,d,u),e==="focusout"&&(_=d._wrapperState)&&_.controlled&&d.type==="number"&&Ew(d,"number",d.value)}switch(_=u?Ec(u):window,e){case"focusin":(ID(_)||_.contentEditable==="true")&&(Pc=_,jw=u,wh=null);break;case"focusout":wh=jw=Pc=null;break;case"mousedown":Uw=!0;break;case"contextmenu":case"mouseup":case"dragend":Uw=!1,LD(f,r,c);break;case"selectionchange":if(BY)break;case"keydown":case"keyup":LD(f,r,c)}var w;if(iA)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Dc?U3(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(j3&&r.locale!=="ko"&&(Dc||C!=="onCompositionStart"?C==="onCompositionEnd"&&Dc&&(w=W3()):(is=c,tA="value"in is?is.value:is.textContent,Dc=!0)),_=xy(u,C),0<_.length&&(C=new TD(C,e,null,r,c),f.push({event:C,listeners:_}),w?C.data=w:(w=Y3(r),w!==null&&(C.data=w)))),(w=AY?MY(e,r):kY(e,r))&&(u=xy(u,"onBeforeInput"),0<u.length&&(c=new TD("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=w))}a4(f,t)})}function up(e,t,r){return{instance:e,listener:t,currentTarget:r}}function xy(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=rp(e,r),a!=null&&n.unshift(up(e,a,i)),a=rp(e,t),a!=null&&n.push(up(e,a,i))),e=e.return}return n}function Hu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zD(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=rp(r,a),l!=null&&o.unshift(up(r,l,s))):i||(l=rp(r,a),l!=null&&o.push(up(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var GY=/\r\n?/g,HY=/\u0000|\uFFFD/g;function BD(e){return(typeof e=="string"?e:""+e).replace(GY,`
|
38
|
-
`).replace(HY,"")}function ig(e,t,r){if(t=BD(t),BD(e)!==t&&r)throw Error(ie(425))}function Sy(){}var Yw=null,Xw=null;function qw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zw=typeof setTimeout=="function"?setTimeout:void 0,WY=typeof clearTimeout=="function"?clearTimeout:void 0,FD=typeof Promise=="function"?Promise:void 0,jY=typeof queueMicrotask=="function"?queueMicrotask:typeof FD<"u"?function(e){return FD.resolve(null).then(e).catch(UY)}:Zw;function UY(e){setTimeout(function(){throw e})}function pS(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),ap(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);ap(t)}function ys(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function VD(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Bf=Math.random().toString(36).slice(2),ya="__reactFiber$"+Bf,cp="__reactProps$"+Bf,go="__reactContainer$"+Bf,Kw="__reactEvents$"+Bf,YY="__reactListeners$"+Bf,XY="__reactHandles$"+Bf;function Vl(e){var t=e[ya];if(t)return t;for(var r=e.parentNode;r;){if(t=r[go]||r[ya]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=VD(e);e!==null;){if(r=e[ya])return r;e=VD(e)}return t}e=r,r=e.parentNode}return null}function lv(e){return e=e[ya]||e[go],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ec(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ie(33))}function e1(e){return e[cp]||null}var Qw=[],Lc=-1;function $s(e){return{current:e}}function Vt(e){0>Lc||(e.current=Qw[Lc],Qw[Lc]=null,Lc--)}function Ot(e,t){Lc++,Qw[Lc]=e.current,e.current=t}var Is={},Xr=$s(Is),kn=$s(!1),fu=Is;function hf(e,t){var r=e.type.contextTypes;if(!r)return Is;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function In(e){return e=e.childContextTypes,e!=null}function _y(){Vt(kn),Vt(Xr)}function $D(e,t,r){if(Xr.current!==Is)throw Error(ie(168));Ot(Xr,t),Ot(kn,r)}function s4(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ie(108,R7(e)||"Unknown",i));return qt({},r,n)}function by(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Is,fu=Xr.current,Ot(Xr,e),Ot(kn,kn.current),!0}function GD(e,t,r){var n=e.stateNode;if(!n)throw Error(ie(169));r?(e=s4(e,t,fu),n.__reactInternalMemoizedMergedChildContext=e,Vt(kn),Vt(Xr),Ot(Xr,e)):Vt(kn),Ot(kn,r)}var no=null,t1=!1,vS=!1;function l4(e){no===null?no=[e]:no.push(e)}function qY(e){t1=!0,l4(e)}function Gs(){if(!vS&&no!==null){vS=!0;var e=0,t=At;try{var r=no;for(At=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}no=null,t1=!1}catch(i){throw no!==null&&(no=no.slice(e+1)),E3(K2,Gs),i}finally{At=t,vS=!1}}return null}var Oc=[],Nc=0,wy=null,Cy=0,fi=[],di=0,du=null,io=1,ao="";function Sl(e,t){Oc[Nc++]=Cy,Oc[Nc++]=wy,wy=e,Cy=t}function u4(e,t,r){fi[di++]=io,fi[di++]=ao,fi[di++]=du,du=e;var n=io;e=ao;var i=32-Ui(n)-1;n&=~(1<<i),r+=1;var a=32-Ui(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,io=1<<32-Ui(t)+i|r<<i|n,ao=a+e}else io=1<<a|r<<i|n,ao=e}function oA(e){e.return!==null&&(Sl(e,1),u4(e,1,0))}function sA(e){for(;e===wy;)wy=Oc[--Nc],Oc[Nc]=null,Cy=Oc[--Nc],Oc[Nc]=null;for(;e===du;)du=fi[--di],fi[di]=null,ao=fi[--di],fi[di]=null,io=fi[--di],fi[di]=null}var jn=null,Gn=null,Ht=!1,Gi=null;function c4(e,t){var r=xi(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function HD(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,jn=e,Gn=ys(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,jn=e,Gn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=du!==null?{id:io,overflow:ao}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=xi(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,jn=e,Gn=null,!0):!1;default:return!1}}function Jw(e){return(e.mode&1)!==0&&(e.flags&128)===0}function eC(e){if(Ht){var t=Gn;if(t){var r=t;if(!HD(e,t)){if(Jw(e))throw Error(ie(418));t=ys(r.nextSibling);var n=jn;t&&HD(e,t)?c4(n,r):(e.flags=e.flags&-4097|2,Ht=!1,jn=e)}}else{if(Jw(e))throw Error(ie(418));e.flags=e.flags&-4097|2,Ht=!1,jn=e}}}function WD(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jn=e}function ag(e){if(e!==jn)return!1;if(!Ht)return WD(e),Ht=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qw(e.type,e.memoizedProps)),t&&(t=Gn)){if(Jw(e))throw f4(),Error(ie(418));for(;t;)c4(e,t),t=ys(t.nextSibling)}if(WD(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ie(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Gn=ys(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Gn=null}}else Gn=jn?ys(e.stateNode.nextSibling):null;return!0}function f4(){for(var e=Gn;e;)e=ys(e.nextSibling)}function pf(){Gn=jn=null,Ht=!1}function lA(e){Gi===null?Gi=[e]:Gi.push(e)}var ZY=Do.ReactCurrentBatchConfig;function fd(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(ie(309));var n=r.stateNode}if(!n)throw Error(ie(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(ie(284));if(!r._owner)throw Error(ie(290,e))}return e}function og(e,t){throw e=Object.prototype.toString.call(t),Error(ie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jD(e){var t=e._init;return t(e._payload)}function d4(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function r(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function n(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=bs(m,y),m.index=0,m.sibling=null,m}function a(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=2,y):x):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,y,x,S){return y===null||y.tag!==6?(y=bS(x,m.mode,S),y.return=m,y):(y=i(y,x),y.return=m,y)}function l(m,y,x,S){var b=x.type;return b===Ic?c(m,y,x.props.children,S,x.key):y!==null&&(y.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ko&&jD(b)===y.type)?(S=i(y,x.props),S.ref=fd(m,y,x),S.return=m,S):(S=Fm(x.type,x.key,x.props,null,m.mode,S),S.ref=fd(m,y,x),S.return=m,S)}function u(m,y,x,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=wS(x,m.mode,S),y.return=m,y):(y=i(y,x.children||[]),y.return=m,y)}function c(m,y,x,S,b){return y===null||y.tag!==7?(y=tu(x,m.mode,S,b),y.return=m,y):(y=i(y,x),y.return=m,y)}function f(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=bS(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case qv:return x=Fm(y.type,y.key,y.props,null,m.mode,x),x.ref=fd(m,null,y),x.return=m,x;case kc:return y=wS(y,m.mode,x),y.return=m,y;case Ko:var S=y._init;return f(m,S(y._payload),x)}if(Jd(y)||od(y))return y=tu(y,m.mode,x,null),y.return=m,y;og(m,y)}return null}function d(m,y,x,S){var b=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:s(m,y,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case qv:return x.key===b?l(m,y,x,S):null;case kc:return x.key===b?u(m,y,x,S):null;case Ko:return b=x._init,d(m,y,b(x._payload),S)}if(Jd(x)||od(x))return b!==null?null:c(m,y,x,S,null);og(m,x)}return null}function h(m,y,x,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(x)||null,s(y,m,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case qv:return m=m.get(S.key===null?x:S.key)||null,l(y,m,S,b);case kc:return m=m.get(S.key===null?x:S.key)||null,u(y,m,S,b);case Ko:var _=S._init;return h(m,y,x,_(S._payload),b)}if(Jd(S)||od(S))return m=m.get(x)||null,c(y,m,S,b,null);og(y,S)}return null}function p(m,y,x,S){for(var b=null,_=null,w=y,C=y=0,T=null;w!==null&&C<x.length;C++){w.index>C?(T=w,w=null):T=w.sibling;var A=d(m,w,x[C],S);if(A===null){w===null&&(w=T);break}e&&w&&A.alternate===null&&t(m,w),y=a(A,y,C),_===null?b=A:_.sibling=A,_=A,w=T}if(C===x.length)return r(m,w),Ht&&Sl(m,C),b;if(w===null){for(;C<x.length;C++)w=f(m,x[C],S),w!==null&&(y=a(w,y,C),_===null?b=w:_.sibling=w,_=w);return Ht&&Sl(m,C),b}for(w=n(m,w);C<x.length;C++)T=h(w,m,C,x[C],S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),y=a(T,y,C),_===null?b=T:_.sibling=T,_=T);return e&&w.forEach(function(M){return t(m,M)}),Ht&&Sl(m,C),b}function v(m,y,x,S){var b=od(x);if(typeof b!="function")throw Error(ie(150));if(x=b.call(x),x==null)throw Error(ie(151));for(var _=b=null,w=y,C=y=0,T=null,A=x.next();w!==null&&!A.done;C++,A=x.next()){w.index>C?(T=w,w=null):T=w.sibling;var M=d(m,w,A.value,S);if(M===null){w===null&&(w=T);break}e&&w&&M.alternate===null&&t(m,w),y=a(M,y,C),_===null?b=M:_.sibling=M,_=M,w=T}if(A.done)return r(m,w),Ht&&Sl(m,C),b;if(w===null){for(;!A.done;C++,A=x.next())A=f(m,A.value,S),A!==null&&(y=a(A,y,C),_===null?b=A:_.sibling=A,_=A);return Ht&&Sl(m,C),b}for(w=n(m,w);!A.done;C++,A=x.next())A=h(w,m,C,A.value,S),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?C:A.key),y=a(A,y,C),_===null?b=A:_.sibling=A,_=A);return e&&w.forEach(function(k){return t(m,k)}),Ht&&Sl(m,C),b}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Ic&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case qv:e:{for(var b=x.key,_=y;_!==null;){if(_.key===b){if(b=x.type,b===Ic){if(_.tag===7){r(m,_.sibling),y=i(_,x.props.children),y.return=m,m=y;break e}}else if(_.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ko&&jD(b)===_.type){r(m,_.sibling),y=i(_,x.props),y.ref=fd(m,_,x),y.return=m,m=y;break e}r(m,_);break}else t(m,_);_=_.sibling}x.type===Ic?(y=tu(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Fm(x.type,x.key,x.props,null,m.mode,S),S.ref=fd(m,y,x),S.return=m,m=S)}return o(m);case kc:e:{for(_=x.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=wS(x,m.mode,S),y.return=m,m=y}return o(m);case Ko:return _=x._init,g(m,y,_(x._payload),S)}if(Jd(x))return p(m,y,x,S);if(od(x))return v(m,y,x,S);og(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,x),y.return=m,m=y):(r(m,y),y=bS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var vf=d4(!0),h4=d4(!1),Ty=$s(null),Ay=null,zc=null,uA=null;function cA(){uA=zc=Ay=null}function fA(e){var t=Ty.current;Vt(Ty),e._currentValue=t}function tC(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Kc(e,t){Ay=e,uA=zc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mn=!0),e.firstContext=null)}function Ci(e){var t=e._currentValue;if(uA!==e)if(e={context:e,memoizedValue:t,next:null},zc===null){if(Ay===null)throw Error(ie(308));zc=e,Ay.dependencies={lanes:0,firstContext:e}}else zc=zc.next=e;return t}var $l=null;function dA(e){$l===null?$l=[e]:$l.push(e)}function p4(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,dA(t)):(r.next=i.next,i.next=r),t.interleaved=r,mo(e,n)}function mo(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Qo=!1;function hA(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function v4(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,dt&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,mo(e,r)}return i=n.interleaved,i===null?(t.next=t,dA(n)):(t.next=i.next,i.next=t),n.interleaved=t,mo(e,r)}function Em(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Q2(e,r)}}function UD(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function My(e,t,r,n){var i=e.updateQueue;Qo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var d=s.lane,h=s.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=r,v.tag){case 1:if(p=v.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=qt({},f,d);break e;case 2:Qo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);pu|=o,e.lanes=o,e.memoizedState=f}}function YD(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(ie(191,i));i.call(n)}}}var uv={},Da=$s(uv),fp=$s(uv),dp=$s(uv);function Gl(e){if(e===uv)throw Error(ie(174));return e}function pA(e,t){switch(Ot(dp,t),Ot(fp,e),Ot(Da,uv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ow(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ow(t,e)}Vt(Da),Ot(Da,t)}function gf(){Vt(Da),Vt(fp),Vt(dp)}function g4(e){Gl(dp.current);var t=Gl(Da.current),r=Ow(t,e.type);t!==r&&(Ot(fp,e),Ot(Da,r))}function vA(e){fp.current===e&&(Vt(Da),Vt(fp))}var Ut=$s(0);function ky(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gS=[];function gA(){for(var e=0;e<gS.length;e++)gS[e]._workInProgressVersionPrimary=null;gS.length=0}var Lm=Do.ReactCurrentDispatcher,mS=Do.ReactCurrentBatchConfig,hu=0,Xt=null,dr=null,_r=null,Iy=!1,Ch=!1,hp=0,KY=0;function Vr(){throw Error(ie(321))}function mA(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zi(e[r],t[r]))return!1;return!0}function yA(e,t,r,n,i,a){if(hu=a,Xt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lm.current=e===null||e.memoizedState===null?tX:rX,e=r(n,i),Ch){a=0;do{if(Ch=!1,hp=0,25<=a)throw Error(ie(301));a+=1,_r=dr=null,t.updateQueue=null,Lm.current=nX,e=r(n,i)}while(Ch)}if(Lm.current=Dy,t=dr!==null&&dr.next!==null,hu=0,_r=dr=Xt=null,Iy=!1,t)throw Error(ie(300));return e}function xA(){var e=hp!==0;return hp=0,e}function ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _r===null?Xt.memoizedState=_r=e:_r=_r.next=e,_r}function Ti(){if(dr===null){var e=Xt.alternate;e=e!==null?e.memoizedState:null}else e=dr.next;var t=_r===null?Xt.memoizedState:_r.next;if(t!==null)_r=t,dr=e;else{if(e===null)throw Error(ie(310));dr=e,e={memoizedState:dr.memoizedState,baseState:dr.baseState,baseQueue:dr.baseQueue,queue:dr.queue,next:null},_r===null?Xt.memoizedState=_r=e:_r=_r.next=e}return _r}function pp(e,t){return typeof t=="function"?t(e):t}function yS(e){var t=Ti(),r=t.queue;if(r===null)throw Error(ie(311));r.lastRenderedReducer=e;var n=dr,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((hu&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=f,o=n):l=l.next=f,Xt.lanes|=c,pu|=c}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Zi(n,t.memoizedState)||(Mn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,Xt.lanes|=a,pu|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xS(e){var t=Ti(),r=t.queue;if(r===null)throw Error(ie(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Zi(a,t.memoizedState)||(Mn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function m4(){}function y4(e,t){var r=Xt,n=Ti(),i=t(),a=!Zi(n.memoizedState,i);if(a&&(n.memoizedState=i,Mn=!0),n=n.queue,SA(_4.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||_r!==null&&_r.memoizedState.tag&1){if(r.flags|=2048,vp(9,S4.bind(null,r,n,i,t),void 0,null),Cr===null)throw Error(ie(349));hu&30||x4(r,t,i)}return i}function x4(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Xt.updateQueue,t===null?(t={lastEffect:null,stores:null},Xt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function S4(e,t,r,n){t.value=r,t.getSnapshot=n,b4(t)&&w4(e)}function _4(e,t,r){return r(function(){b4(t)&&w4(e)})}function b4(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zi(e,r)}catch{return!0}}function w4(e){var t=mo(e,1);t!==null&&Yi(t,e,1,-1)}function XD(e){var t=ha();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pp,lastRenderedState:e},t.queue=e,e=e.dispatch=eX.bind(null,Xt,e),[t.memoizedState,e]}function vp(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Xt.updateQueue,t===null?(t={lastEffect:null,stores:null},Xt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function C4(){return Ti().memoizedState}function Om(e,t,r,n){var i=ha();Xt.flags|=e,i.memoizedState=vp(1|t,r,void 0,n===void 0?null:n)}function r1(e,t,r,n){var i=Ti();n=n===void 0?null:n;var a=void 0;if(dr!==null){var o=dr.memoizedState;if(a=o.destroy,n!==null&&mA(n,o.deps)){i.memoizedState=vp(t,r,a,n);return}}Xt.flags|=e,i.memoizedState=vp(1|t,r,a,n)}function qD(e,t){return Om(8390656,8,e,t)}function SA(e,t){return r1(2048,8,e,t)}function T4(e,t){return r1(4,2,e,t)}function A4(e,t){return r1(4,4,e,t)}function M4(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function k4(e,t,r){return r=r!=null?r.concat([e]):null,r1(4,4,M4.bind(null,t,e),r)}function _A(){}function I4(e,t){var r=Ti();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&mA(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function D4(e,t){var r=Ti();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&mA(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function P4(e,t,r){return hu&21?(Zi(r,t)||(r=N3(),Xt.lanes|=r,pu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Mn=!0),e.memoizedState=r)}function QY(e,t){var r=At;At=r!==0&&4>r?r:4,e(!0);var n=mS.transition;mS.transition={};try{e(!1),t()}finally{At=r,mS.transition=n}}function R4(){return Ti().memoizedState}function JY(e,t,r){var n=_s(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},E4(e))L4(t,r);else if(r=p4(e,t,r,n),r!==null){var i=an();Yi(r,e,n,i),O4(r,t,n)}}function eX(e,t,r){var n=_s(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(E4(e))L4(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Zi(s,o)){var l=t.interleaved;l===null?(i.next=i,dA(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=p4(e,t,i,n),r!==null&&(i=an(),Yi(r,e,n,i),O4(r,t,n))}}function E4(e){var t=e.alternate;return e===Xt||t!==null&&t===Xt}function L4(e,t){Ch=Iy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function O4(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Q2(e,r)}}var Dy={readContext:Ci,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},tX={readContext:Ci,useCallback:function(e,t){return ha().memoizedState=[e,t===void 0?null:t],e},useContext:Ci,useEffect:qD,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Om(4194308,4,M4.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Om(4194308,4,e,t)},useInsertionEffect:function(e,t){return Om(4,2,e,t)},useMemo:function(e,t){var r=ha();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ha();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=JY.bind(null,Xt,e),[n.memoizedState,e]},useRef:function(e){var t=ha();return e={current:e},t.memoizedState=e},useState:XD,useDebugValue:_A,useDeferredValue:function(e){return ha().memoizedState=e},useTransition:function(){var e=XD(!1),t=e[0];return e=QY.bind(null,e[1]),ha().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Xt,i=ha();if(Ht){if(r===void 0)throw Error(ie(407));r=r()}else{if(r=t(),Cr===null)throw Error(ie(349));hu&30||x4(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,qD(_4.bind(null,n,a,e),[e]),n.flags|=2048,vp(9,S4.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ha(),t=Cr.identifierPrefix;if(Ht){var r=ao,n=io;r=(n&~(1<<32-Ui(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=hp++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=KY++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rX={readContext:Ci,useCallback:I4,useContext:Ci,useEffect:SA,useImperativeHandle:k4,useInsertionEffect:T4,useLayoutEffect:A4,useMemo:D4,useReducer:yS,useRef:C4,useState:function(){return yS(pp)},useDebugValue:_A,useDeferredValue:function(e){var t=Ti();return P4(t,dr.memoizedState,e)},useTransition:function(){var e=yS(pp)[0],t=Ti().memoizedState;return[e,t]},useMutableSource:m4,useSyncExternalStore:y4,useId:R4,unstable_isNewReconciler:!1},nX={readContext:Ci,useCallback:I4,useContext:Ci,useEffect:SA,useImperativeHandle:k4,useInsertionEffect:T4,useLayoutEffect:A4,useMemo:D4,useReducer:xS,useRef:C4,useState:function(){return xS(pp)},useDebugValue:_A,useDeferredValue:function(e){var t=Ti();return dr===null?t.memoizedState=e:P4(t,dr.memoizedState,e)},useTransition:function(){var e=xS(pp)[0],t=Ti().memoizedState;return[e,t]},useMutableSource:m4,useSyncExternalStore:y4,useId:R4,unstable_isNewReconciler:!1};function Fi(e,t){if(e&&e.defaultProps){t=qt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function rC(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:qt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var n1={isMounted:function(e){return(e=e._reactInternals)?Du(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=an(),i=_s(e),a=lo(n,i);a.payload=t,r!=null&&(a.callback=r),t=xs(e,a,i),t!==null&&(Yi(t,e,i,n),Em(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=an(),i=_s(e),a=lo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=xs(e,a,i),t!==null&&(Yi(t,e,i,n),Em(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=an(),n=_s(e),i=lo(r,n);i.tag=2,t!=null&&(i.callback=t),t=xs(e,i,n),t!==null&&(Yi(t,e,n,r),Em(t,e,n))}};function ZD(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!sp(r,n)||!sp(i,a):!0}function N4(e,t,r){var n=!1,i=Is,a=t.contextType;return typeof a=="object"&&a!==null?a=Ci(a):(i=In(t)?fu:Xr.current,n=t.contextTypes,a=(n=n!=null)?hf(e,i):Is),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=n1,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function KD(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&n1.enqueueReplaceState(t,t.state,null)}function nC(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},hA(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ci(a):(a=In(t)?fu:Xr.current,i.context=hf(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(rC(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&n1.enqueueReplaceState(i,i.state,null),My(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function mf(e,t){try{var r="",n=t;do r+=P7(n),n=n.return;while(n);var i=r}catch(a){i=`
|
39
|
-
Error generating stack: `+a.message+`
|
40
|
-
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function SS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function iC(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var iX=typeof WeakMap=="function"?WeakMap:Map;function z4(e,t,r){r=lo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ry||(Ry=!0,pC=n),iC(e,t)},r}function B4(e,t,r){r=lo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){iC(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){iC(e,t),typeof n!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function QD(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new iX;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=yX.bind(null,e,t,r),t.then(e,e))}function JD(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function eP(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=lo(-1,1),t.tag=2,xs(r,t,1))),r.lanes|=1),e)}var aX=Do.ReactCurrentOwner,Mn=!1;function tn(e,t,r,n){t.child=e===null?h4(t,null,r,n):vf(t,e.child,r,n)}function tP(e,t,r,n,i){r=r.render;var a=t.ref;return Kc(t,i),n=yA(e,t,r,n,a,i),r=xA(),e!==null&&!Mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yo(e,t,i)):(Ht&&r&&oA(t),t.flags|=1,tn(e,t,n,i),t.child)}function rP(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!IA(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,F4(e,t,a,n,i)):(e=Fm(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:sp,r(o,n)&&e.ref===t.ref)return yo(e,t,i)}return t.flags|=1,e=bs(a,n),e.ref=t.ref,e.return=t,t.child=e}function F4(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(sp(a,n)&&e.ref===t.ref)if(Mn=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Mn=!0);else return t.lanes=e.lanes,yo(e,t,i)}return aC(e,t,r,n,i)}function V4(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Fc,Fn),Fn|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(Fc,Fn),Fn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ot(Fc,Fn),Fn|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ot(Fc,Fn),Fn|=n;return tn(e,t,i,r),t.child}function $4(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function aC(e,t,r,n,i){var a=In(r)?fu:Xr.current;return a=hf(t,a),Kc(t,i),r=yA(e,t,r,n,a,i),n=xA(),e!==null&&!Mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yo(e,t,i)):(Ht&&n&&oA(t),t.flags|=1,tn(e,t,r,i),t.child)}function nP(e,t,r,n,i){if(In(r)){var a=!0;by(t)}else a=!1;if(Kc(t,i),t.stateNode===null)Nm(e,t),N4(t,r,n),nC(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Ci(u):(u=In(r)?fu:Xr.current,u=hf(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&KD(t,o,n,u),Qo=!1;var d=t.memoizedState;o.state=d,My(t,n,o,i),l=t.memoizedState,s!==n||d!==l||kn.current||Qo?(typeof c=="function"&&(rC(t,r,c,n),l=t.memoizedState),(s=Qo||ZD(t,r,s,n,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,v4(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Fi(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Ci(l):(l=In(r)?fu:Xr.current,l=hf(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||d!==l)&&KD(t,o,n,l),Qo=!1,d=t.memoizedState,o.state=d,My(t,n,o,i);var p=t.memoizedState;s!==f||d!==p||kn.current||Qo?(typeof h=="function"&&(rC(t,r,h,n),p=t.memoizedState),(u=Qo||ZD(t,r,u,n,d,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return oC(e,t,r,n,a,i)}function oC(e,t,r,n,i,a){$4(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&GD(t,r,!1),yo(e,t,a);n=t.stateNode,aX.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=vf(t,e.child,null,a),t.child=vf(t,null,s,a)):tn(e,t,s,a),t.memoizedState=n.state,i&&GD(t,r,!0),t.child}function G4(e){var t=e.stateNode;t.pendingContext?$D(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$D(e,t.context,!1),pA(e,t.containerInfo)}function iP(e,t,r,n,i){return pf(),lA(i),t.flags|=256,tn(e,t,r,n),t.child}var sC={dehydrated:null,treeContext:null,retryLane:0};function lC(e){return{baseLanes:e,cachePool:null,transitions:null}}function H4(e,t,r){var n=t.pendingProps,i=Ut.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(Ut,i&1),e===null)return eC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=o1(o,n,0,null),e=tu(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=lC(r),t.memoizedState=sC,e):bA(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return oX(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=bs(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=bs(s,a):(a=tu(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?lC(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=sC,n}return a=e.child,e=a.sibling,n=bs(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function bA(e,t){return t=o1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sg(e,t,r,n){return n!==null&&lA(n),vf(t,e.child,null,r),e=bA(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oX(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=SS(Error(ie(422))),sg(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=o1({mode:"visible",children:n.children},i,0,null),a=tu(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&vf(t,e.child,null,o),t.child.memoizedState=lC(o),t.memoizedState=sC,a);if(!(t.mode&1))return sg(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(ie(419)),n=SS(a,n,void 0),sg(e,t,o,n)}if(s=(o&e.childLanes)!==0,Mn||s){if(n=Cr,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,mo(e,i),Yi(n,e,i,-1))}return kA(),n=SS(Error(ie(421))),sg(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=xX.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Gn=ys(i.nextSibling),jn=t,Ht=!0,Gi=null,e!==null&&(fi[di++]=io,fi[di++]=ao,fi[di++]=du,io=e.id,ao=e.overflow,du=t),t=bA(t,n.children),t.flags|=4096,t)}function aP(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),tC(e.return,t,r)}function _S(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function W4(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(tn(e,t,n.children,r),n=Ut.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&aP(e,r,t);else if(e.tag===19)aP(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ot(Ut,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ky(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),_S(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ky(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}_S(t,!0,r,null,a);break;case"together":_S(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),pu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ie(153));if(t.child!==null){for(e=t.child,r=bs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=bs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function sX(e,t,r){switch(t.tag){case 3:G4(t),pf();break;case 5:g4(t);break;case 1:In(t.type)&&by(t);break;case 4:pA(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ot(Ty,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ot(Ut,Ut.current&1),t.flags|=128,null):r&t.child.childLanes?H4(e,t,r):(Ot(Ut,Ut.current&1),e=yo(e,t,r),e!==null?e.sibling:null);Ot(Ut,Ut.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return W4(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(Ut,Ut.current),n)break;return null;case 22:case 23:return t.lanes=0,V4(e,t,r)}return yo(e,t,r)}var j4,uC,U4,Y4;j4=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};uC=function(){};U4=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Gl(Da.current);var a=null;switch(r){case"input":i=Pw(e,i),n=Pw(e,n),a=[];break;case"select":i=qt({},i,{value:void 0}),n=qt({},n,{value:void 0}),a=[];break;case"textarea":i=Lw(e,i),n=Lw(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Sy)}Nw(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ep.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ep.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ft("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};Y4=function(e,t,r,n){r!==n&&(t.flags|=4)};function dd(e,t){if(!Ht)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function $r(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function lX(e,t,r){var n=t.pendingProps;switch(sA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $r(t),null;case 1:return In(t.type)&&_y(),$r(t),null;case 3:return n=t.stateNode,gf(),Vt(kn),Vt(Xr),gA(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ag(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi!==null&&(mC(Gi),Gi=null))),uC(e,t),$r(t),null;case 5:vA(t);var i=Gl(dp.current);if(r=t.type,e!==null&&t.stateNode!=null)U4(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ie(166));return $r(t),null}if(e=Gl(Da.current),ag(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[ya]=t,n[cp]=a,e=(t.mode&1)!==0,r){case"dialog":Ft("cancel",n),Ft("close",n);break;case"iframe":case"object":case"embed":Ft("load",n);break;case"video":case"audio":for(i=0;i<th.length;i++)Ft(th[i],n);break;case"source":Ft("error",n);break;case"img":case"image":case"link":Ft("error",n),Ft("load",n);break;case"details":Ft("toggle",n);break;case"input":pD(n,a),Ft("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ft("invalid",n);break;case"textarea":gD(n,a),Ft("invalid",n)}Nw(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&ig(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&ig(n.textContent,s,e),i=["children",""+s]):ep.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ft("scroll",n)}switch(r){case"input":Zv(n),vD(n,a,!0);break;case"textarea":Zv(n),mD(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Sy)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_3(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ya]=t,e[cp]=n,j4(e,t,!1,!1),t.stateNode=e;e:{switch(o=zw(r,n),r){case"dialog":Ft("cancel",e),Ft("close",e),i=n;break;case"iframe":case"object":case"embed":Ft("load",e),i=n;break;case"video":case"audio":for(i=0;i<th.length;i++)Ft(th[i],e);i=n;break;case"source":Ft("error",e),i=n;break;case"img":case"image":case"link":Ft("error",e),Ft("load",e),i=n;break;case"details":Ft("toggle",e),i=n;break;case"input":pD(e,n),i=Pw(e,n),Ft("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=qt({},n,{value:void 0}),Ft("invalid",e);break;case"textarea":gD(e,n),i=Lw(e,n),Ft("invalid",e);break;default:i=n}Nw(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?C3(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&b3(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&tp(e,l):typeof l=="number"&&tp(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ep.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Ft("scroll",e):l!=null&&U2(e,a,l,o))}switch(r){case"input":Zv(e),vD(e,n,!1);break;case"textarea":Zv(e),mD(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ks(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Yc(e,!!n.multiple,a,!1):n.defaultValue!=null&&Yc(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Sy)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return $r(t),null;case 6:if(e&&t.stateNode!=null)Y4(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ie(166));if(r=Gl(dp.current),Gl(Da.current),ag(t)){if(n=t.stateNode,r=t.memoizedProps,n[ya]=t,(a=n.nodeValue!==r)&&(e=jn,e!==null))switch(e.tag){case 3:ig(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ig(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ya]=t,t.stateNode=n}return $r(t),null;case 13:if(Vt(Ut),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ht&&Gn!==null&&t.mode&1&&!(t.flags&128))f4(),pf(),t.flags|=98560,a=!1;else if(a=ag(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(ie(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ie(317));a[ya]=t}else pf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$r(t),a=!1}else Gi!==null&&(mC(Gi),Gi=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ut.current&1?pr===0&&(pr=3):kA())),t.updateQueue!==null&&(t.flags|=4),$r(t),null);case 4:return gf(),uC(e,t),e===null&&lp(t.stateNode.containerInfo),$r(t),null;case 10:return fA(t.type._context),$r(t),null;case 17:return In(t.type)&&_y(),$r(t),null;case 19:if(Vt(Ut),a=t.memoizedState,a===null)return $r(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)dd(a,!1);else{if(pr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ky(e),o!==null){for(t.flags|=128,dd(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ot(Ut,Ut.current&1|2),t.child}e=e.sibling}a.tail!==null&&rr()>yf&&(t.flags|=128,n=!0,dd(a,!1),t.lanes=4194304)}else{if(!n)if(e=ky(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),dd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ht)return $r(t),null}else 2*rr()-a.renderingStartTime>yf&&r!==1073741824&&(t.flags|=128,n=!0,dd(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=rr(),t.sibling=null,r=Ut.current,Ot(Ut,n?r&1|2:r&1),t):($r(t),null);case 22:case 23:return MA(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Fn&1073741824&&($r(t),t.subtreeFlags&6&&(t.flags|=8192)):$r(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function uX(e,t){switch(sA(t),t.tag){case 1:return In(t.type)&&_y(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gf(),Vt(kn),Vt(Xr),gA(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vA(t),null;case 13:if(Vt(Ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));pf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(Ut),null;case 4:return gf(),null;case 10:return fA(t.type._context),null;case 22:case 23:return MA(),null;case 24:return null;default:return null}}var lg=!1,Ur=!1,cX=typeof WeakSet=="function"?WeakSet:Set,we=null;function Bc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qt(e,t,n)}else r.current=null}function cC(e,t,r){try{r()}catch(n){Qt(e,t,n)}}var oP=!1;function fX(e,t){if(Yw=my,e=Q3(),aA(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xw={focusedElem:e,selectionRange:r},my=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Fi(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(S){Qt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=oP,oP=!1,p}function Th(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&cC(t,r,a)}i=i.next}while(i!==n)}}function i1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function fC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function X4(e){var t=e.alternate;t!==null&&(e.alternate=null,X4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ya],delete t[cp],delete t[Kw],delete t[YY],delete t[XY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function q4(e){return e.tag===5||e.tag===3||e.tag===4}function sP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Sy));else if(n!==4&&(e=e.child,e!==null))for(dC(e,t,r),e=e.sibling;e!==null;)dC(e,t,r),e=e.sibling}function hC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}var Dr=null,$i=!1;function No(e,t,r){for(r=r.child;r!==null;)Z4(e,t,r),r=r.sibling}function Z4(e,t,r){if(Ia&&typeof Ia.onCommitFiberUnmount=="function")try{Ia.onCommitFiberUnmount(Z0,r)}catch{}switch(r.tag){case 5:Ur||Bc(r,t);case 6:var n=Dr,i=$i;Dr=null,No(e,t,r),Dr=n,$i=i,Dr!==null&&($i?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&($i?(e=Dr,r=r.stateNode,e.nodeType===8?pS(e.parentNode,r):e.nodeType===1&&pS(e,r),ap(e)):pS(Dr,r.stateNode));break;case 4:n=Dr,i=$i,Dr=r.stateNode.containerInfo,$i=!0,No(e,t,r),Dr=n,$i=i;break;case 0:case 11:case 14:case 15:if(!Ur&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&cC(r,t,o),i=i.next}while(i!==n)}No(e,t,r);break;case 1:if(!Ur&&(Bc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Qt(r,t,s)}No(e,t,r);break;case 21:No(e,t,r);break;case 22:r.mode&1?(Ur=(n=Ur)||r.memoizedState!==null,No(e,t,r),Ur=n):No(e,t,r);break;default:No(e,t,r)}}function lP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new cX),t.forEach(function(n){var i=SX.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ei(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Dr=s.stateNode,$i=!1;break e;case 3:Dr=s.stateNode.containerInfo,$i=!0;break e;case 4:Dr=s.stateNode.containerInfo,$i=!0;break e}s=s.return}if(Dr===null)throw Error(ie(160));Z4(a,o,i),Dr=null,$i=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Qt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)K4(t,e),t=t.sibling}function K4(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ei(t,e),aa(e),n&4){try{Th(3,e,e.return),i1(3,e)}catch(v){Qt(e,e.return,v)}try{Th(5,e,e.return)}catch(v){Qt(e,e.return,v)}}break;case 1:Ei(t,e),aa(e),n&512&&r!==null&&Bc(r,r.return);break;case 5:if(Ei(t,e),aa(e),n&512&&r!==null&&Bc(r,r.return),e.flags&32){var i=e.stateNode;try{tp(i,"")}catch(v){Qt(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&x3(i,a),zw(s,o);var u=zw(s,a);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?C3(i,f):c==="dangerouslySetInnerHTML"?b3(i,f):c==="children"?tp(i,f):U2(i,c,f,u)}switch(s){case"input":Rw(i,a);break;case"textarea":S3(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Yc(i,!!a.multiple,h,!1):d!==!!a.multiple&&(a.defaultValue!=null?Yc(i,!!a.multiple,a.defaultValue,!0):Yc(i,!!a.multiple,a.multiple?[]:"",!1))}i[cp]=a}catch(v){Qt(e,e.return,v)}}break;case 6:if(Ei(t,e),aa(e),n&4){if(e.stateNode===null)throw Error(ie(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){Qt(e,e.return,v)}}break;case 3:if(Ei(t,e),aa(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ap(t.containerInfo)}catch(v){Qt(e,e.return,v)}break;case 4:Ei(t,e),aa(e);break;case 13:Ei(t,e),aa(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(TA=rr())),n&4&&lP(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Ur=(u=Ur)||c,Ei(t,e),Ur=u):Ei(t,e),aa(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(we=e,c=e.child;c!==null;){for(f=we=c;we!==null;){switch(d=we,h=d.child,d.tag){case 0:case 11:case 14:case 15:Th(4,d,d.return);break;case 1:Bc(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(v){Qt(n,r,v)}}break;case 5:Bc(d,d.return);break;case 22:if(d.memoizedState!==null){cP(f);continue}}h!==null?(h.return=d,we=h):cP(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=w3("display",o))}catch(v){Qt(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Qt(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ei(t,e),aa(e),n&4&&lP(e);break;case 21:break;default:Ei(t,e),aa(e)}}function aa(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(q4(r)){var n=r;break e}r=r.return}throw Error(ie(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(tp(i,""),n.flags&=-33);var a=sP(e);hC(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=sP(e);dC(e,s,o);break;default:throw Error(ie(161))}}catch(l){Qt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dX(e,t,r){we=e,Q4(e)}function Q4(e,t,r){for(var n=(e.mode&1)!==0;we!==null;){var i=we,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||lg;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Ur;s=lg;var u=Ur;if(lg=o,(Ur=l)&&!u)for(we=i;we!==null;)o=we,l=o.child,o.tag===22&&o.memoizedState!==null?fP(i):l!==null?(l.return=o,we=l):fP(i);for(;a!==null;)we=a,Q4(a),a=a.sibling;we=i,lg=s,Ur=u}uP(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,we=a):uP(e)}}function uP(e){for(;we!==null;){var t=we;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ur||i1(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ur)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Fi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&YD(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}YD(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ap(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ie(163))}Ur||t.flags&512&&fC(t)}catch(d){Qt(t,t.return,d)}}if(t===e){we=null;break}if(r=t.sibling,r!==null){r.return=t.return,we=r;break}we=t.return}}function cP(e){for(;we!==null;){var t=we;if(t===e){we=null;break}var r=t.sibling;if(r!==null){r.return=t.return,we=r;break}we=t.return}}function fP(e){for(;we!==null;){var t=we;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{i1(4,t)}catch(l){Qt(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Qt(t,i,l)}}var a=t.return;try{fC(t)}catch(l){Qt(t,a,l)}break;case 5:var o=t.return;try{fC(t)}catch(l){Qt(t,o,l)}}}catch(l){Qt(t,t.return,l)}if(t===e){we=null;break}var s=t.sibling;if(s!==null){s.return=t.return,we=s;break}we=t.return}}var hX=Math.ceil,Py=Do.ReactCurrentDispatcher,wA=Do.ReactCurrentOwner,bi=Do.ReactCurrentBatchConfig,dt=0,Cr=null,ur=null,Lr=0,Fn=0,Fc=$s(0),pr=0,gp=null,pu=0,a1=0,CA=0,Ah=null,bn=null,TA=0,yf=1/0,eo=null,Ry=!1,pC=null,Ss=null,ug=!1,as=null,Ey=0,Mh=0,vC=null,zm=-1,Bm=0;function an(){return dt&6?rr():zm!==-1?zm:zm=rr()}function _s(e){return e.mode&1?dt&2&&Lr!==0?Lr&-Lr:ZY.transition!==null?(Bm===0&&(Bm=N3()),Bm):(e=At,e!==0||(e=window.event,e=e===void 0?16:H3(e.type)),e):1}function Yi(e,t,r,n){if(50<Mh)throw Mh=0,vC=null,Error(ie(185));ov(e,r,n),(!(dt&2)||e!==Cr)&&(e===Cr&&(!(dt&2)&&(a1|=r),pr===4&&ns(e,Lr)),Dn(e,n),r===1&&dt===0&&!(t.mode&1)&&(yf=rr()+500,t1&&Gs()))}function Dn(e,t){var r=e.callbackNode;Z7(e,t);var n=gy(e,e===Cr?Lr:0);if(n===0)r!==null&&SD(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&SD(r),t===1)e.tag===0?qY(dP.bind(null,e)):l4(dP.bind(null,e)),jY(function(){!(dt&6)&&Gs()}),r=null;else{switch(z3(n)){case 1:r=K2;break;case 4:r=L3;break;case 16:r=vy;break;case 536870912:r=O3;break;default:r=vy}r=oV(r,J4.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function J4(e,t){if(zm=-1,Bm=0,dt&6)throw Error(ie(327));var r=e.callbackNode;if(Qc()&&e.callbackNode!==r)return null;var n=gy(e,e===Cr?Lr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ly(e,n);else{t=n;var i=dt;dt|=2;var a=tV();(Cr!==e||Lr!==t)&&(eo=null,yf=rr()+500,eu(e,t));do try{gX();break}catch(s){eV(e,s)}while(!0);cA(),Py.current=a,dt=i,ur!==null?t=0:(Cr=null,Lr=0,t=pr)}if(t!==0){if(t===2&&(i=Gw(e),i!==0&&(n=i,t=gC(e,i))),t===1)throw r=gp,eu(e,0),ns(e,n),Dn(e,rr()),r;if(t===6)ns(e,n);else{if(i=e.current.alternate,!(n&30)&&!pX(i)&&(t=Ly(e,n),t===2&&(a=Gw(e),a!==0&&(n=a,t=gC(e,a))),t===1))throw r=gp,eu(e,0),ns(e,n),Dn(e,rr()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(ie(345));case 2:_l(e,bn,eo);break;case 3:if(ns(e,n),(n&130023424)===n&&(t=TA+500-rr(),10<t)){if(gy(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){an(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Zw(_l.bind(null,e,bn,eo),t);break}_l(e,bn,eo);break;case 4:if(ns(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ui(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=rr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*hX(n/1960))-n,10<n){e.timeoutHandle=Zw(_l.bind(null,e,bn,eo),n);break}_l(e,bn,eo);break;case 5:_l(e,bn,eo);break;default:throw Error(ie(329))}}}return Dn(e,rr()),e.callbackNode===r?J4.bind(null,e):null}function gC(e,t){var r=Ah;return e.current.memoizedState.isDehydrated&&(eu(e,t).flags|=256),e=Ly(e,t),e!==2&&(t=bn,bn=r,t!==null&&mC(t)),e}function mC(e){bn===null?bn=e:bn.push.apply(bn,e)}function pX(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Zi(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ns(e,t){for(t&=~CA,t&=~a1,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ui(t),n=1<<r;e[r]=-1,t&=~n}}function dP(e){if(dt&6)throw Error(ie(327));Qc();var t=gy(e,0);if(!(t&1))return Dn(e,rr()),null;var r=Ly(e,t);if(e.tag!==0&&r===2){var n=Gw(e);n!==0&&(t=n,r=gC(e,n))}if(r===1)throw r=gp,eu(e,0),ns(e,t),Dn(e,rr()),r;if(r===6)throw Error(ie(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,bn,eo),Dn(e,rr()),null}function AA(e,t){var r=dt;dt|=1;try{return e(t)}finally{dt=r,dt===0&&(yf=rr()+500,t1&&Gs())}}function vu(e){as!==null&&as.tag===0&&!(dt&6)&&Qc();var t=dt;dt|=1;var r=bi.transition,n=At;try{if(bi.transition=null,At=1,e)return e()}finally{At=n,bi.transition=r,dt=t,!(dt&6)&&Gs()}}function MA(){Fn=Fc.current,Vt(Fc)}function eu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,WY(r)),ur!==null)for(r=ur.return;r!==null;){var n=r;switch(sA(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&_y();break;case 3:gf(),Vt(kn),Vt(Xr),gA();break;case 5:vA(n);break;case 4:gf();break;case 13:Vt(Ut);break;case 19:Vt(Ut);break;case 10:fA(n.type._context);break;case 22:case 23:MA()}r=r.return}if(Cr=e,ur=e=bs(e.current,null),Lr=Fn=t,pr=0,gp=null,CA=a1=pu=0,bn=Ah=null,$l!==null){for(t=0;t<$l.length;t++)if(r=$l[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}$l=null}return e}function eV(e,t){do{var r=ur;try{if(cA(),Lm.current=Dy,Iy){for(var n=Xt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Iy=!1}if(hu=0,_r=dr=Xt=null,Ch=!1,hp=0,wA.current=null,r===null||r.return===null){pr=1,gp=t,ur=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=Lr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=JD(o);if(h!==null){h.flags&=-257,eP(h,o,s,a,t),h.mode&1&&QD(a,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var v=new Set;v.add(l),t.updateQueue=v}else p.add(l);break e}else{if(!(t&1)){QD(a,u,t),kA();break e}l=Error(ie(426))}}else if(Ht&&s.mode&1){var g=JD(o);if(g!==null){!(g.flags&65536)&&(g.flags|=256),eP(g,o,s,a,t),lA(mf(l,s));break e}}a=l=mf(l,s),pr!==4&&(pr=2),Ah===null?Ah=[a]:Ah.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var m=z4(a,l,t);UD(a,m);break e;case 1:s=l;var y=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ss===null||!Ss.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=B4(a,s,t);UD(a,S);break e}}a=a.return}while(a!==null)}nV(r)}catch(b){t=b,ur===r&&r!==null&&(ur=r=r.return);continue}break}while(!0)}function tV(){var e=Py.current;return Py.current=Dy,e===null?Dy:e}function kA(){(pr===0||pr===3||pr===2)&&(pr=4),Cr===null||!(pu&268435455)&&!(a1&268435455)||ns(Cr,Lr)}function Ly(e,t){var r=dt;dt|=2;var n=tV();(Cr!==e||Lr!==t)&&(eo=null,eu(e,t));do try{vX();break}catch(i){eV(e,i)}while(!0);if(cA(),dt=r,Py.current=n,ur!==null)throw Error(ie(261));return Cr=null,Lr=0,pr}function vX(){for(;ur!==null;)rV(ur)}function gX(){for(;ur!==null&&!$7();)rV(ur)}function rV(e){var t=aV(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?nV(e):ur=t,wA.current=null}function nV(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=uX(r,t),r!==null){r.flags&=32767,ur=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pr=6,ur=null;return}}else if(r=lX(r,t,Fn),r!==null){ur=r;return}if(t=t.sibling,t!==null){ur=t;return}ur=t=e}while(t!==null);pr===0&&(pr=5)}function _l(e,t,r){var n=At,i=bi.transition;try{bi.transition=null,At=1,mX(e,t,r,n)}finally{bi.transition=i,At=n}return null}function mX(e,t,r,n){do Qc();while(as!==null);if(dt&6)throw Error(ie(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ie(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(K7(e,a),e===Cr&&(ur=Cr=null,Lr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ug||(ug=!0,oV(vy,function(){return Qc(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=bi.transition,bi.transition=null;var o=At;At=1;var s=dt;dt|=4,wA.current=null,fX(e,r),K4(r,e),zY(Xw),my=!!Yw,Xw=Yw=null,e.current=r,dX(r),G7(),dt=s,At=o,bi.transition=a}else e.current=r;if(ug&&(ug=!1,as=e,Ey=i),a=e.pendingLanes,a===0&&(Ss=null),j7(r.stateNode),Dn(e,rr()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Ry)throw Ry=!1,e=pC,pC=null,e;return Ey&1&&e.tag!==0&&Qc(),a=e.pendingLanes,a&1?e===vC?Mh++:(Mh=0,vC=e):Mh=0,Gs(),null}function Qc(){if(as!==null){var e=z3(Ey),t=bi.transition,r=At;try{if(bi.transition=null,At=16>e?16:e,as===null)var n=!1;else{if(e=as,as=null,Ey=0,dt&6)throw Error(ie(331));var i=dt;for(dt|=4,we=e.current;we!==null;){var a=we,o=a.child;if(we.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(we=u;we!==null;){var c=we;switch(c.tag){case 0:case 11:case 15:Th(8,c,a)}var f=c.child;if(f!==null)f.return=c,we=f;else for(;we!==null;){c=we;var d=c.sibling,h=c.return;if(X4(c),c===u){we=null;break}if(d!==null){d.return=h,we=d;break}we=h}}}var p=a.alternate;if(p!==null){var v=p.child;if(v!==null){p.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(v!==null)}}we=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,we=o;else e:for(;we!==null;){if(a=we,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Th(9,a,a.return)}var m=a.sibling;if(m!==null){m.return=a.return,we=m;break e}we=a.return}}var y=e.current;for(we=y;we!==null;){o=we;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,we=x;else e:for(o=y;we!==null;){if(s=we,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:i1(9,s)}}catch(b){Qt(s,s.return,b)}if(s===o){we=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,we=S;break e}we=s.return}}if(dt=i,Gs(),Ia&&typeof Ia.onPostCommitFiberRoot=="function")try{Ia.onPostCommitFiberRoot(Z0,e)}catch{}n=!0}return n}finally{At=r,bi.transition=t}}return!1}function hP(e,t,r){t=mf(r,t),t=z4(e,t,1),e=xs(e,t,1),t=an(),e!==null&&(ov(e,1,t),Dn(e,t))}function Qt(e,t,r){if(e.tag===3)hP(e,e,r);else for(;t!==null;){if(t.tag===3){hP(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ss===null||!Ss.has(n))){e=mf(r,e),e=B4(t,e,1),t=xs(t,e,1),e=an(),t!==null&&(ov(t,1,e),Dn(t,e));break}}t=t.return}}function yX(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=an(),e.pingedLanes|=e.suspendedLanes&r,Cr===e&&(Lr&r)===r&&(pr===4||pr===3&&(Lr&130023424)===Lr&&500>rr()-TA?eu(e,0):CA|=r),Dn(e,t)}function iV(e,t){t===0&&(e.mode&1?(t=Jv,Jv<<=1,!(Jv&130023424)&&(Jv=4194304)):t=1);var r=an();e=mo(e,t),e!==null&&(ov(e,t,r),Dn(e,r))}function xX(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),iV(e,r)}function SX(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ie(314))}n!==null&&n.delete(t),iV(e,r)}var aV;aV=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kn.current)Mn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Mn=!1,sX(e,t,r);Mn=!!(e.flags&131072)}else Mn=!1,Ht&&t.flags&1048576&&u4(t,Cy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Nm(e,t),e=t.pendingProps;var i=hf(t,Xr.current);Kc(t,r),i=yA(null,t,n,e,i,r);var a=xA();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,In(n)?(a=!0,by(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hA(t),i.updater=n1,t.stateNode=i,i._reactInternals=t,nC(t,n,e,r),t=oC(null,t,n,!0,a,r)):(t.tag=0,Ht&&a&&oA(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Nm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=bX(n),e=Fi(n,e),i){case 0:t=aC(null,t,n,e,r);break e;case 1:t=nP(null,t,n,e,r);break e;case 11:t=tP(null,t,n,e,r);break e;case 14:t=rP(null,t,n,Fi(n.type,e),r);break e}throw Error(ie(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),aC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),nP(e,t,n,i,r);case 3:e:{if(G4(t),e===null)throw Error(ie(387));n=t.pendingProps,a=t.memoizedState,i=a.element,v4(e,t),My(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=mf(Error(ie(423)),t),t=iP(e,t,n,r,i);break e}else if(n!==i){i=mf(Error(ie(424)),t),t=iP(e,t,n,r,i);break e}else for(Gn=ys(t.stateNode.containerInfo.firstChild),jn=t,Ht=!0,Gi=null,r=h4(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pf(),n===i){t=yo(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return g4(t),e===null&&eC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,qw(n,i)?o=null:a!==null&&qw(n,a)&&(t.flags|=32),$4(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&eC(t),null;case 13:return H4(e,t,r);case 4:return pA(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=vf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),tP(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ot(Ty,n._currentValue),n._currentValue=o,a!==null)if(Zi(a.value,o)){if(a.children===i.children&&!kn.current){t=yo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=lo(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),tC(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ie(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),tC(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Kc(t,r),i=Ci(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Fi(n,t.pendingProps),i=Fi(n.type,i),rP(e,t,n,i,r);case 15:return F4(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),Nm(e,t),t.tag=1,In(n)?(e=!0,by(t)):e=!1,Kc(t,r),N4(t,n,i),nC(t,n,i,r),oC(null,t,n,!0,e,r);case 19:return W4(e,t,r);case 22:return V4(e,t,r)}throw Error(ie(156,t.tag))};function oV(e,t){return E3(e,t)}function _X(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(e,t,r,n){return new _X(e,t,r,n)}function IA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bX(e){if(typeof e=="function")return IA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X2)return 11;if(e===q2)return 14}return 2}function bs(e,t){var r=e.alternate;return r===null?(r=xi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Fm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")IA(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ic:return tu(r.children,i,a,t);case Y2:o=8,i|=8;break;case Mw:return e=xi(12,r,t,i|2),e.elementType=Mw,e.lanes=a,e;case kw:return e=xi(13,r,t,i),e.elementType=kw,e.lanes=a,e;case Iw:return e=xi(19,r,t,i),e.elementType=Iw,e.lanes=a,e;case g3:return o1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case p3:o=10;break e;case v3:o=9;break e;case X2:o=11;break e;case q2:o=14;break e;case Ko:o=16,n=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=xi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function tu(e,t,r,n){return e=xi(7,e,n,t),e.lanes=r,e}function o1(e,t,r,n){return e=xi(22,e,n,t),e.elementType=g3,e.lanes=r,e.stateNode={isHidden:!1},e}function bS(e,t,r){return e=xi(6,e,null,t),e.lanes=r,e}function wS(e,t,r){return t=xi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wX(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nS(0),this.expirationTimes=nS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function DA(e,t,r,n,i,a,o,s,l){return e=new wX(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=xi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},hA(a),e}function CX(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kc,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function sV(e){if(!e)return Is;e=e._reactInternals;e:{if(Du(e)!==e||e.tag!==1)throw Error(ie(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(In(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ie(171))}if(e.tag===1){var r=e.type;if(In(r))return s4(e,r,t)}return t}function lV(e,t,r,n,i,a,o,s,l){return e=DA(r,n,!0,e,i,a,o,s,l),e.context=sV(null),r=e.current,n=an(),i=_s(r),a=lo(n,i),a.callback=t??null,xs(r,a,i),e.current.lanes=i,ov(e,i,n),Dn(e,n),e}function s1(e,t,r,n){var i=t.current,a=an(),o=_s(i);return r=sV(r),t.context===null?t.context=r:t.pendingContext=r,t=lo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=xs(i,t,o),e!==null&&(Yi(e,i,o,a),Em(e,i,o)),o}function Oy(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function pP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function PA(e,t){pP(e,t),(e=e.alternate)&&pP(e,t)}function TX(){return null}var uV=typeof reportError=="function"?reportError:function(e){console.error(e)};function RA(e){this._internalRoot=e}l1.prototype.render=RA.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ie(409));s1(e,t,null,null)};l1.prototype.unmount=RA.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vu(function(){s1(null,e,null,null)}),t[go]=null}};function l1(e){this._internalRoot=e}l1.prototype.unstable_scheduleHydration=function(e){if(e){var t=V3();e={blockedOn:null,target:e,priority:t};for(var r=0;r<rs.length&&t!==0&&t<rs[r].priority;r++);rs.splice(r,0,e),r===0&&G3(e)}};function EA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vP(){}function AX(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=Oy(o);a.call(u)}}var o=lV(t,n,e,0,null,!1,!1,"",vP);return e._reactRootContainer=o,e[go]=o.current,lp(e.nodeType===8?e.parentNode:e),vu(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Oy(l);s.call(u)}}var l=DA(e,0,!1,null,null,!1,!1,"",vP);return e._reactRootContainer=l,e[go]=l.current,lp(e.nodeType===8?e.parentNode:e),vu(function(){s1(t,l,r,n)}),l}function c1(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=Oy(o);s.call(l)}}s1(t,o,e,i)}else o=AX(r,t,e,i,n);return Oy(o)}B3=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=eh(t.pendingLanes);r!==0&&(Q2(t,r|1),Dn(t,rr()),!(dt&6)&&(yf=rr()+500,Gs()))}break;case 13:vu(function(){var n=mo(e,1);if(n!==null){var i=an();Yi(n,e,1,i)}}),PA(e,1)}};J2=function(e){if(e.tag===13){var t=mo(e,134217728);if(t!==null){var r=an();Yi(t,e,134217728,r)}PA(e,134217728)}};F3=function(e){if(e.tag===13){var t=_s(e),r=mo(e,t);if(r!==null){var n=an();Yi(r,e,t,n)}PA(e,t)}};V3=function(){return At};$3=function(e,t){var r=At;try{return At=e,t()}finally{At=r}};Fw=function(e,t,r){switch(t){case"input":if(Rw(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=e1(n);if(!i)throw Error(ie(90));y3(n),Rw(n,i)}}}break;case"textarea":S3(e,r);break;case"select":t=r.value,t!=null&&Yc(e,!!r.multiple,t,!1)}};M3=AA;k3=vu;var MX={usingClientEntryPoint:!1,Events:[lv,Ec,e1,T3,A3,AA]},hd={findFiberByHostInstance:Vl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kX={bundleType:hd.bundleType,version:hd.version,rendererPackageName:hd.rendererPackageName,rendererConfig:hd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Do.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=P3(e),e===null?null:e.stateNode},findFiberByHostInstance:hd.findFiberByHostInstance||TX,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 cg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cg.isDisabled&&cg.supportsFiber)try{Z0=cg.inject(kX),Ia=cg}catch{}}Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MX;Qn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!EA(t))throw Error(ie(200));return CX(e,t,null,r)};Qn.createRoot=function(e,t){if(!EA(e))throw Error(ie(299));var r=!1,n="",i=uV;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=DA(e,1,!1,null,null,r,!1,n,i),e[go]=t.current,lp(e.nodeType===8?e.parentNode:e),new RA(t)};Qn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ie(188)):(e=Object.keys(e).join(","),Error(ie(268,e)));return e=P3(t),e=e===null?null:e.stateNode,e};Qn.flushSync=function(e){return vu(e)};Qn.hydrate=function(e,t,r){if(!u1(t))throw Error(ie(200));return c1(null,e,t,!0,r)};Qn.hydrateRoot=function(e,t,r){if(!EA(e))throw Error(ie(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=uV;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=lV(t,null,e,1,r??null,i,!1,a,o),e[go]=t.current,lp(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new l1(t)};Qn.render=function(e,t,r){if(!u1(t))throw Error(ie(200));return c1(null,e,t,!1,r)};Qn.unmountComponentAtNode=function(e){if(!u1(e))throw Error(ie(40));return e._reactRootContainer?(vu(function(){c1(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0):!1};Qn.unstable_batchedUpdates=AA;Qn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!u1(r))throw Error(ie(200));if(e==null||e._reactInternals===void 0)throw Error(ie(38));return c1(e,t,r,!1,n)};Qn.version="18.3.1-next-f1338f8080-20240426";function cV(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cV)}catch(e){console.error(e)}}cV(),c3.exports=Qn;var f1=c3.exports;const fg=X0(f1);var gP=f1;Tw.createRoot=gP.createRoot,Tw.hydrateRoot=gP.hydrateRoot;const IX=N.createContext(null),CS={didCatch:!1,error:null};class DX extends N.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=CS}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(CS)}}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&&PX(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(CS)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=N.createElement(n,l);else if(i===null||N.isValidElement(i))s=i;else throw o}return N.createElement(IX.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function PX(){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 Ir(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 RX=typeof Symbol=="function"&&Symbol.observable||"@@observable",mP=RX,TS=()=>Math.random().toString(36).substring(7).split("").join("."),EX={INIT:`@@redux/INIT${TS()}`,REPLACE:`@@redux/REPLACE${TS()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${TS()}`},Ny=EX;function Na(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 fV(e,t,r){if(typeof e!="function")throw new Error(Ir(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ir(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ir(1));return r(fV)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function u(){o===a&&(o=new Map,a.forEach((g,m)=>{o.set(m,g)}))}function c(){if(l)throw new Error(Ir(3));return i}function f(g){if(typeof g!="function")throw new Error(Ir(4));if(l)throw new Error(Ir(5));let m=!0;u();const y=s++;return o.set(y,g),function(){if(m){if(l)throw new Error(Ir(6));m=!1,u(),o.delete(y),a=null}}}function d(g){if(!Na(g))throw new Error(Ir(7));if(typeof g.type>"u")throw new Error(Ir(8));if(typeof g.type!="string")throw new Error(Ir(17));if(l)throw new Error(Ir(9));try{l=!0,i=n(i,g)}finally{l=!1}return(a=o).forEach(y=>{y()}),g}function h(g){if(typeof g!="function")throw new Error(Ir(10));n=g,d({type:Ny.REPLACE})}function p(){const g=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Ir(11));function y(){const S=m;S.next&&S.next(c())}return y(),{unsubscribe:g(y)}},[mP](){return this}}}return d({type:Ny.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[mP]:p}}function LX(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ny.INIT})>"u")throw new Error(Ir(12));if(typeof r(void 0,{type:Ny.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ir(13))})}function d1(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{LX(r)}catch(a){i=a}return function(o={},s){if(i)throw i;let l=!1;const u={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],h=o[f],p=d(h,s);if(typeof p>"u")throw s&&s.type,new Error(Ir(14));u[f]=p,l=l||p!==h}return l=l||n.length!==Object.keys(o).length,l?u:o}}function zy(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function OX(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Ir(15))};const o={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},s=e.map(l=>l(o));return a=zy(...s)(i.dispatch),{...i,dispatch:a}}}function dV(e){return Na(e)&&"type"in e&&typeof e.type=="string"}var LA=Symbol.for("immer-nothing"),kh=Symbol.for("immer-draftable"),En=Symbol.for("immer-state");function Er(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gu=Object.getPrototypeOf;function Ki(e){return!!e&&!!e[En]}function Qi(e){var t;return e?hV(e)||Array.isArray(e)||!!e[kh]||!!((t=e.constructor)!=null&&t[kh])||cv(e)||fv(e):!1}var NX=Object.prototype.constructor.toString();function hV(e){if(!e||typeof e!="object")return!1;const t=gu(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)===NX}function zX(e){return Ki(e)||Er(15,e),e[En].base_}function mp(e,t){mu(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function mu(e){const t=e[En];return t?t.type_:Array.isArray(e)?1:cv(e)?2:fv(e)?3:0}function yp(e,t){return mu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function AS(e,t){return mu(e)===2?e.get(t):e[t]}function pV(e,t,r){const n=mu(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function BX(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cv(e){return e instanceof Map}function fv(e){return e instanceof Set}function bl(e){return e.copy_||e.base_}function yC(e,t){if(cv(e))return new Map(e);if(fv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=hV(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[En];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(gu(e),n)}else{const n=gu(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function OA(e,t=!1){return h1(e)||Ki(e)||!Qi(e)||(mu(e)>1&&(e.set=e.add=e.clear=e.delete=FX),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>OA(n,!0))),e}function FX(){Er(2)}function h1(e){return Object.isFrozen(e)}var xC={};function yu(e){const t=xC[e];return t||Er(0,e),t}function VX(e,t){xC[e]||(xC[e]=t)}var xp;function vV(){return xp}function $X(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yP(e,t){t&&(yu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function SC(e){_C(e),e.drafts_.forEach(GX),e.drafts_=null}function _C(e){e===xp&&(xp=e.parent_)}function xP(e){return xp=$X(xp,e)}function GX(e){const t=e[En];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function SP(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[En].modified_&&(SC(t),Er(4)),Qi(e)&&(e=By(t,e),t.parent_||Fy(t,e)),t.patches_&&yu("Patches").generateReplacementPatches_(r[En].base_,e,t.patches_,t.inversePatches_)):e=By(t,r,[]),SC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==LA?e:void 0}function By(e,t,r){if(h1(t))return t;const n=t[En];if(!n)return mp(t,(i,a)=>_P(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Fy(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),mp(a,(s,l)=>_P(e,n,i,s,l,r,o)),Fy(e,i,!1),r&&e.patches_&&yu("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function _P(e,t,r,n,i,a,o){if(Ki(i)){const s=a&&t&&t.type_!==3&&!yp(t.assigned_,n)?a.concat(n):void 0,l=By(e,i,s);if(pV(r,n,l),Ki(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Qi(i)&&!h1(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;By(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Fy(e,i)}}function Fy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&OA(t,r)}function HX(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:vV(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=NA;r&&(i=[n],a=Sp);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var NA={get(e,t){if(t===En)return e;const r=bl(e);if(!yp(r,t))return WX(e,r,t);const n=r[t];return e.finalized_||!Qi(n)?n:n===MS(e.base_,t)?(kS(e),e.copy_[t]=wC(n,e)):n},has(e,t){return t in bl(e)},ownKeys(e){return Reflect.ownKeys(bl(e))},set(e,t,r){const n=gV(bl(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=MS(bl(e),t),a=i==null?void 0:i[En];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(BX(r,i)&&(r!==void 0||yp(e.base_,t)))return!0;kS(e),bC(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 MS(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,kS(e),bC(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=bl(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Er(11)},getPrototypeOf(e){return gu(e.base_)},setPrototypeOf(){Er(12)}},Sp={};mp(NA,(e,t)=>{Sp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Sp.deleteProperty=function(e,t){return Sp.set.call(this,e,t,void 0)};Sp.set=function(e,t,r){return NA.set.call(this,e[0],t,r,e[0])};function MS(e,t){const r=e[En];return(r?bl(r):e)[t]}function WX(e,t,r){var i;const n=gV(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function gV(e,t){if(!(t in e))return;let r=gu(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=gu(r)}}function bC(e){e.modified_||(e.modified_=!0,e.parent_&&bC(e.parent_))}function kS(e){e.copy_||(e.copy_=yC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var jX=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...u){return o.produce(l,c=>r.call(this,c,...u))}}typeof r!="function"&&Er(6),n!==void 0&&typeof n!="function"&&Er(7);let i;if(Qi(t)){const a=xP(this),o=wC(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?SC(a):_C(a)}return yP(a,n),SP(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===LA&&(i=void 0),this.autoFreeze_&&OA(i,!0),n){const a=[],o=[];yu("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Er(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,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){Qi(e)||Er(8),Ki(e)&&(e=mV(e));const t=xP(this),r=wC(e,void 0);return r[En].isManual_=!0,_C(t),r}finishDraft(e,t){const r=e&&e[En];(!r||!r.isManual_)&&Er(9);const{scope_:n}=r;return yP(n,t),SP(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=yu("Patches").applyPatches_;return Ki(e)?n(e,t):this.produce(e,i=>n(i,t))}};function wC(e,t){const r=cv(e)?yu("MapSet").proxyMap_(e,t):fv(e)?yu("MapSet").proxySet_(e,t):HX(e,t);return(t?t.scope_:vV()).drafts_.push(r),r}function mV(e){return Ki(e)||Er(10,e),yV(e)}function yV(e){if(!Qi(e)||h1(e))return e;const t=e[En];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=yC(e,t.scope_.immer_.useStrictShallowCopy_)}else r=yC(e,!0);return mp(r,(n,i)=>{pV(r,n,yV(i))}),t&&(t.finalized_=!1),r}function UX(){const t="replace",r="add",n="remove";function i(d,h,p,v){switch(d.type_){case 0:case 2:return o(d,h,p,v);case 1:return a(d,h,p,v);case 3:return s(d,h,p,v)}}function a(d,h,p,v){let{base_:g,assigned_:m}=d,y=d.copy_;y.length<g.length&&([g,y]=[y,g],[p,v]=[v,p]);for(let x=0;x<g.length;x++)if(m[x]&&y[x]!==g[x]){const S=h.concat([x]);p.push({op:t,path:S,value:f(y[x])}),v.push({op:t,path:S,value:f(g[x])})}for(let x=g.length;x<y.length;x++){const S=h.concat([x]);p.push({op:r,path:S,value:f(y[x])})}for(let x=y.length-1;g.length<=x;--x){const S=h.concat([x]);v.push({op:n,path:S})}}function o(d,h,p,v){const{base_:g,copy_:m}=d;mp(d.assigned_,(y,x)=>{const S=AS(g,y),b=AS(m,y),_=x?yp(g,y)?t:r:n;if(S===b&&_===t)return;const w=h.concat(y);p.push(_===n?{op:_,path:w}:{op:_,path:w,value:b}),v.push(_===r?{op:n,path:w}:_===n?{op:r,path:w,value:f(S)}:{op:t,path:w,value:f(S)})})}function s(d,h,p,v){let{base_:g,copy_:m}=d,y=0;g.forEach(x=>{if(!m.has(x)){const S=h.concat([y]);p.push({op:n,path:S,value:x}),v.unshift({op:r,path:S,value:x})}y++}),y=0,m.forEach(x=>{if(!g.has(x)){const S=h.concat([y]);p.push({op:r,path:S,value:x}),v.unshift({op:n,path:S,value:x})}y++})}function l(d,h,p,v){p.push({op:t,path:[],value:h===LA?void 0:h}),v.push({op:t,path:[],value:d})}function u(d,h){return h.forEach(p=>{const{path:v,op:g}=p;let m=d;for(let b=0;b<v.length-1;b++){const _=mu(m);let w=v[b];typeof w!="string"&&typeof w!="number"&&(w=""+w),(_===0||_===1)&&(w==="__proto__"||w==="constructor")&&Er(19),typeof m=="function"&&w==="prototype"&&Er(19),m=AS(m,w),typeof m!="object"&&Er(18,v.join("/"))}const y=mu(m),x=c(p.value),S=v[v.length-1];switch(g){case t:switch(y){case 2:return m.set(S,x);case 3:Er(16);default:return m[S]=x}case r:switch(y){case 1:return S==="-"?m.push(x):m.splice(S,0,x);case 2:return m.set(S,x);case 3:return m.add(x);default:return m[S]=x}case n:switch(y){case 1:return m.splice(S,1);case 2:return m.delete(S);case 3:return m.delete(p.value);default:return delete m[S]}default:Er(17,g)}}),d}function c(d){if(!Qi(d))return d;if(Array.isArray(d))return d.map(c);if(cv(d))return new Map(Array.from(d.entries()).map(([p,v])=>[p,c(v)]));if(fv(d))return new Set(Array.from(d).map(c));const h=Object.create(gu(d));for(const p in d)h[p]=c(d[p]);return yp(d,kh)&&(h[kh]=d[kh]),h}function f(d){return Ki(d)?c(d):d}VX("Patches",{applyPatches_:u,generatePatches_:i,generateReplacementPatches_:l})}var Kn=new jX,dv=Kn.produce,xV=Kn.produceWithPatches.bind(Kn);Kn.setAutoFreeze.bind(Kn);Kn.setUseStrictShallowCopy.bind(Kn);var bP=Kn.applyPatches.bind(Kn);Kn.createDraft.bind(Kn);Kn.finishDraft.bind(Kn);function YX(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function XX(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function qX(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 wP=e=>Array.isArray(e)?e:[e];function ZX(e){const t=Array.isArray(e[0])?e[0]:e;return qX(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function KX(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var QX=class{constructor(e){this.value=e}deref(){return this.value}},JX=typeof WeakRef<"u"?WeakRef:QX,eq=0,CP=1;function dg(){return{s:eq,v:void 0,o:null,p:null}}function _p(e,t={}){let r=dg();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let s=r;const{length:l}=arguments;for(let d=0,h=l;d<h;d++){const p=arguments[d];if(typeof p=="function"||typeof p=="object"&&p!==null){let v=s.o;v===null&&(s.o=v=new WeakMap);const g=v.get(p);g===void 0?(s=dg(),v.set(p,s)):s=g}else{let v=s.p;v===null&&(s.p=v=new Map);const g=v.get(p);g===void 0?(s=dg(),v.set(p,s)):s=g}}const u=s;let c;if(s.s===CP)c=s.v;else if(c=e.apply(null,arguments),a++,n){const d=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;d!=null&&n(d,c)&&(c=d,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new JX(c):c}return u.s=CP,u.v=c,c}return o.clearCache=()=>{r=dg(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function SV(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),YX(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=_p,argsMemoizeOptions:p=[],devModeChecks:v={}}=c,g=wP(d),m=wP(p),y=ZX(i),x=f(function(){return a++,u.apply(null,arguments)},...g),S=h(function(){o++;const _=KX(y,arguments);return s=x.apply(null,_),s},...m);return Object.assign(S,{resultFunc:u,memoizedResultFunc:x,dependencies:y,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var zA=SV(_p),tq=Object.assign((e,t=zA)=>{XX(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(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>tq});function _V(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var rq=_V(),nq=_V,iq=(...e)=>{const t=SV(...e),r=Object.assign((...n)=>{const i=t(...n),a=(o,...s)=>i(Ki(o)?mV(o):o,...s);return Object.assign(a,i),a},{withTypes:()=>r});return r};iq(_p);var aq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zy:zy.apply(null,arguments)},oq=e=>e&&typeof e.match=="function";function on(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Yr(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=>dV(n)&&n.type===e,r}var bV=class rh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,rh.prototype)}static get[Symbol.species](){return rh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new rh(...t[0].concat(this)):new rh(...t.concat(this))}};function TP(e){return Qi(e)?dv(e,()=>{}):e}function AP(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(Yr(10));const n=r.insert(t,e);return e.set(t,n),n}function sq(e){return typeof e=="boolean"}var lq=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new bV;return r&&(sq(r)?o.push(rq):o.push(nq(r.extraArgument))),o},Vc="RTK_autoBatch",pd=()=>e=>({payload:e,meta:{[Vc]:!0}}),wV=e=>t=>{setTimeout(t,e)},uq=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wV(10),cq=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?uq:e.type==="callback"?e.queueNotification:wV(e.timeout),u=()=>{o=!1,a&&(a=!1,s.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[Vc]),a=!i,a&&(o||(o=!0,l(u))),n.dispatch(c)}finally{i=!0}}})},fq=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new bV(e);return n&&i.push(cq(typeof n=="object"?n:void 0)),i},dq=!0;function CV(e){const t=lq(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(Na(r))s=d1(r);else throw new Error(Yr(1));let l;typeof n=="function"?l=n(t):l=t();let u=zy;i&&(u=aq({trace:!dq,...typeof i=="object"&&i}));const c=OX(...l),f=fq(c);let d=typeof o=="function"?o(f):f();const h=u(...d);return fV(s,a,h)}function TV(e){const t={},r=[];let n;const i={addCase(a,o){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(Yr(28));if(s in t)throw new Error(Yr(29));return t[s]=o,i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function hq(e){return typeof e=="function"}function pq(e,t){let[r,n,i]=TV(t),a;if(hq(e))a=()=>TP(e());else{const s=TP(e);a=()=>s}function o(s=a(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(Ki(c)){const h=f(c,l);return h===void 0?c:h}else{if(Qi(c))return dv(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw new Error(Yr(9))}return d}}return c},s)}return o.getInitialState=a,o}var vq="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",BA=(e=21)=>{let t="",r=e;for(;r--;)t+=vq[Math.random()*64|0];return t},AV=(e,t)=>oq(e)?e.match(t):e(t);function xo(...e){return t=>e.some(r=>AV(r,t))}function Ih(...e){return t=>e.every(r=>AV(r,t))}function p1(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 hv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function FA(...e){return e.length===0?t=>p1(t,["pending"]):hv(e)?xo(...e.map(t=>t.pending)):FA()(e[0])}function xf(...e){return e.length===0?t=>p1(t,["rejected"]):hv(e)?xo(...e.map(t=>t.rejected)):xf()(e[0])}function v1(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Ih(xf(...e),t):hv(e)?Ih(xf(...e),t):v1()(e[0])}function Ds(...e){return e.length===0?t=>p1(t,["fulfilled"]):hv(e)?xo(...e.map(t=>t.fulfilled)):Ds()(e[0])}function CC(...e){return e.length===0?t=>p1(t,["pending","fulfilled","rejected"]):hv(e)?xo(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):CC()(e[0])}var gq=["name","message","stack","code"],IS=class{constructor(e,t){Kx(this,"_type");this.payload=e,this.meta=t}},MP=class{constructor(e,t){Kx(this,"_type");this.payload=e,this.meta=t}},mq=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of gq)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},kP=(()=>{function e(t,r,n){const i=on(t+"/fulfilled",(l,u,c,f)=>({payload:l,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),a=on(t+"/pending",(l,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:l,requestStatus:"pending"}})),o=on(t+"/rejected",(l,u,c,f,d)=>({payload:f,error:(n&&n.serializeError||mq)(l||"Rejected"),meta:{...d||{},arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,c,f)=>{const d=n!=null&&n.idGenerator?n.idGenerator(l):BA(),h=new AbortController;let p,v;function g(y){v=y,h.abort()}const m=async function(){var S,b;let y;try{let _=(S=n==null?void 0:n.condition)==null?void 0:S.call(n,l,{getState:c,extra:f});if(xq(_)&&(_=await _),_===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const w=new Promise((C,T)=>{p=()=>{T({name:"AbortError",message:v||"Aborted"})},h.signal.addEventListener("abort",p)});u(a(d,l,(b=n==null?void 0:n.getPendingMeta)==null?void 0:b.call(n,{requestId:d,arg:l},{getState:c,extra:f}))),y=await Promise.race([w,Promise.resolve(r(l,{dispatch:u,getState:c,extra:f,requestId:d,signal:h.signal,abort:g,rejectWithValue:(C,T)=>new IS(C,T),fulfillWithValue:(C,T)=>new MP(C,T)})).then(C=>{if(C instanceof IS)throw C;return C instanceof MP?i(C.payload,d,l,C.meta):i(C,d,l)})])}catch(_){y=_ instanceof IS?o(null,d,l,_.payload,_.meta):o(_,d,l)}finally{p&&h.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||u(y),y}();return Object.assign(m,{abort:g,requestId:d,arg:l,unwrap(){return m.then(yq)}})}}return Object.assign(s,{pending:a,rejected:o,fulfilled:i,settled:xo(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function yq(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function xq(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sq=Symbol.for("rtk-slice-createasyncthunk");function _q(e,t){return`${e}/${t}`}function bq({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Sq];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(Yr(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Cq()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,S){const b=typeof x=="string"?x:x.type;if(!b)throw new Error(Yr(12));if(b in u.sliceCaseReducersByType)throw new Error(Yr(13));return u.sliceCaseReducersByType[b]=S,c},addMatcher(x,S){return u.sliceMatchers.push({matcher:x,reducer:S}),c},exposeAction(x,S){return u.actionCreators[x]=S,c},exposeCaseReducer(x,S){return u.sliceCaseReducersByName[x]=S,c}};l.forEach(x=>{const S=s[x],b={reducerName:x,type:_q(a,x),createNotation:typeof i.reducers=="function"};Aq(S)?kq(b,S,c,t):Tq(b,S,c)});function f(){const[x={},S=[],b=void 0]=typeof i.extraReducers=="function"?TV(i.extraReducers):[i.extraReducers],_={...x,...u.sliceCaseReducersByType};return pq(i.initialState,w=>{for(let C in _)w.addCase(C,_[C]);for(let C of u.sliceMatchers)w.addMatcher(C.matcher,C.reducer);for(let C of S)w.addMatcher(C.matcher,C.reducer);b&&w.addDefaultCase(b)})}const d=x=>x,h=new Map;let p;function v(x,S){return p||(p=f()),p(x,S)}function g(){return p||(p=f()),p.getInitialState()}function m(x,S=!1){function b(w){let C=w[x];return typeof C>"u"&&S&&(C=g()),C}function _(w=d){const C=AP(h,S,{insert:()=>new WeakMap});return AP(C,w,{insert:()=>{const T={};for(const[A,M]of Object.entries(i.selectors??{}))T[A]=wq(M,w,g,S);return T}})}return{reducerPath:x,getSelectors:_,get selectors(){return _(b)},selectSlice:b}}const y={name:a,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:g,...m(o),injectInto(x,{reducerPath:S,...b}={}){const _=S??o;return x.inject({reducerPath:_,reducer:v},b),{...y,...m(_,!0)}}};return y}}function wq(e,t,r,n){function i(a,...o){let s=t(a);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return i.unwrapped=e,i}var hi=bq();function Cq(){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 Tq({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Mq(n))throw new Error(Yr(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?on(e,o):on(e))}function Aq(e){return e._reducerDefinitionType==="asyncThunk"}function Mq(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kq({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Yr(18));const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:u,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:o||hg,pending:s||hg,rejected:l||hg,settled:u||hg})}function hg(){}var Iq=(e,t)=>{if(typeof e!="function")throw new Error(Yr(32))},VA="listenerMiddleware",Dq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=on(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Yr(21));return Iq(a),{predicate:i,type:t,effect:a}},Pq=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Dq(e);return{id:BA(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Yr(22))}}},{withTypes:()=>Pq}),Rq=Object.assign(on(`${VA}/add`),{withTypes:()=>Rq});on(`${VA}/removeAll`);var Eq=Object.assign(on(`${VA}/remove`),{withTypes:()=>Eq});function Yr(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 MV={exports:{}},kV={};/**
|
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 pv=N;function Lq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oq=typeof Object.is=="function"?Object.is:Lq,Nq=pv.useSyncExternalStore,zq=pv.useRef,Bq=pv.useEffect,Fq=pv.useMemo,Vq=pv.useDebugValue;kV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=zq(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Fq(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,Oq(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=Nq(e,a[0],a[1]);return Bq(function(){o.hasValue=!0,o.value=s},[s]),Vq(s),s};MV.exports=kV;var $q=MV.exports,ut="default"in Jh?Hi:Jh,IP=Symbol.for("react-redux-context"),DP=typeof globalThis<"u"?globalThis:{};function Gq(){if(!ut.createContext)return{};const e=DP[IP]??(DP[IP]=new Map);let t=e.get(ut.createContext);return t||(t=ut.createContext(null),e.set(ut.createContext,t)),t}var So=Gq(),IV=()=>{throw new Error("uSES not initialized!")};function $A(e=So){return function(){return ut.useContext(e)}}var DV=$A(),PV=IV,Hq=e=>{PV=e},Wq=(e,t)=>e===t;function jq(e=So){const t=e===So?DV:$A(e),r=(n,i={})=>{const{equalityFn:a=Wq,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();ut.useRef(!0);const d=ut.useCallback({[n.name](p){return n(p)}}[n.name],[n,c,o.stabilityCheck]),h=PV(l.addNestedSub,s.getState,u||s.getState,d,a);return ut.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var RV=jq(),Uq=Symbol.for("react.element"),Yq=Symbol.for("react.portal"),Xq=Symbol.for("react.fragment"),qq=Symbol.for("react.strict_mode"),Zq=Symbol.for("react.profiler"),Kq=Symbol.for("react.provider"),Qq=Symbol.for("react.context"),Jq=Symbol.for("react.server_context"),EV=Symbol.for("react.forward_ref"),eZ=Symbol.for("react.suspense"),tZ=Symbol.for("react.suspense_list"),GA=Symbol.for("react.memo"),rZ=Symbol.for("react.lazy"),nZ=EV,iZ=GA;function aZ(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case Uq:{const r=e.type;switch(r){case Xq:case Zq:case qq:case eZ:case tZ:return r;default:{const n=r&&r.$$typeof;switch(n){case Jq:case Qq:case EV:case rZ:case GA:case Kq:return n;default:return t}}}}case Yq:return t}}}function oZ(e){return aZ(e)===GA}function sZ(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,u,c,f,d;function h(y,x){return l=y,u=x,c=e(l,u),f=t(n,u),d=r(c,f,u),s=!0,d}function p(){return c=e(l,u),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function v(){return e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function g(){const y=e(l,u),x=!o(y,c);return c=y,x&&(d=r(c,f,u)),d}function m(y,x){const S=!a(x,u),b=!i(y,l,x,u);return l=y,u=x,S&&b?p():S?v():b?g():d}return function(x,S){return s?m(x,S):h(x,S)}}function lZ(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return sZ(a,o,s,e,i)}function uZ(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function TC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function PP(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function LV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=PP(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=PP(u),u=a(s,l)),u},a}}function HA(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function cZ(e){return e&&typeof e=="object"?TC(t=>uZ(e,t)):e?typeof e=="function"?LV(e):HA(e,"mapDispatchToProps"):TC(t=>({dispatch:t}))}function fZ(e){return e?typeof e=="function"?LV(e):HA(e,"mapStateToProps"):TC(()=>({}))}function dZ(e,t,r){return{...r,...e,...t}}function hZ(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function pZ(e){return e?typeof e=="function"?hZ(e):HA(e,"mergeProps"):()=>dZ}function OV(e){e()}function vZ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){OV(()=>{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 RP={notify(){},get:()=>[]};function NV(e,t){let r,n=RP,i=0,a=!1;function o(v){c();const g=n.subscribe(v);let m=!1;return()=>{m||(m=!0,g(),f())}}function s(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return a}function c(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=vZ())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=RP)}function d(){a||(a=!0,c())}function h(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return p}var gZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mZ=typeof navigator<"u"&&navigator.product==="ReactNative",Vy=gZ||mZ?ut.useLayoutEffect:ut.useEffect;function EP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function ws(e,t){if(EP(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])||!EP(e[r[i]],t[r[i]]))return!1;return!0}var yZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},SZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_Z={[nZ]:SZ,[iZ]:zV};function LP(e){return oZ(e)?zV:_Z[e.$$typeof]||yZ}var bZ=Object.defineProperty,wZ=Object.getOwnPropertyNames,OP=Object.getOwnPropertySymbols,CZ=Object.getOwnPropertyDescriptor,TZ=Object.getPrototypeOf,NP=Object.prototype;function AC(e,t){if(typeof t!="string"){if(NP){const a=TZ(t);a&&a!==NP&&AC(e,a)}let r=wZ(t);OP&&(r=r.concat(OP(t)));const n=LP(e),i=LP(t);for(let a=0;a<r.length;++a){const o=r[a];if(!xZ[o]&&!(i&&i[o])&&!(n&&n[o])){const s=CZ(t,o);try{bZ(e,o,s)}catch{}}}}return e}var BV=IV,AZ=e=>{BV=e},MZ=[null,null];function kZ(e,t,r){Vy(()=>e(...t),r)}function IZ(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function DZ(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,m;try{g=n(v,i.current)}catch(y){m=y,d=y}m||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function PZ(e,t){return e===t}function RZ(e,t,r,{pure:n,areStatesEqual:i=PZ,areOwnPropsEqual:a=ws,areStatePropsEqual:o=ws,areMergedPropsEqual:s=ws,forwardRef:l=!1,context:u=So}={}){const c=u,f=fZ(e),d=cZ(t),h=pZ(r),p=!!e;return g=>{const m=g.displayName||g.name||"Component",y=`Connect(${m})`,x={shouldHandleStateChanges:p,displayName:y,wrappedComponentName:m,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,T,A]=ut.useMemo(()=>{const{reactReduxForwardedRef:ee,...me}=w;return[w.context,ee,me]},[w]),M=ut.useMemo(()=>{let ee=c;return C!=null&&C.Consumer,ee},[C,c]),k=ut.useContext(M),I=!!w.store&&!!w.store.getState&&!!w.store.dispatch,P=!!k&&!!k.store,E=I?w.store:k.store,z=P?k.getServerState:E.getState,$=ut.useMemo(()=>lZ(E.dispatch,x),[E]),[O,V]=ut.useMemo(()=>{if(!p)return MZ;const ee=NV(E,I?void 0:k.subscription),me=ee.notifyNestedSubs.bind(ee);return[ee,me]},[E,I,k]),L=ut.useMemo(()=>I?k:{...k,subscription:O},[I,k,O]),G=ut.useRef(void 0),W=ut.useRef(A),B=ut.useRef(void 0),X=ut.useRef(!1),te=ut.useRef(!1),U=ut.useRef(void 0);Vy(()=>(te.current=!0,()=>{te.current=!1}),[]);const re=ut.useMemo(()=>()=>B.current&&A===W.current?B.current:$(E.getState(),A),[E,A]),Q=ut.useMemo(()=>me=>O?DZ(p,E,O,$,W,G,X,te,B,V,me):()=>{},[O]);kZ(IZ,[W,G,X,A,B,V]);let ae;try{ae=BV(Q,re,z?()=>$(z(),A):re)}catch(ee){throw U.current&&(ee.message+=`
|
49
|
-
The error may be correlated with this previous error:
|
50
|
-
${U.current.stack}
|
51
|
-
|
52
|
-
`),ee}Vy(()=>{U.current=void 0,B.current=void 0,G.current=ae});const se=ut.useMemo(()=>ut.createElement(g,{...ae,ref:T}),[T,g,ae]);return ut.useMemo(()=>p?ut.createElement(M.Provider,{value:L},se):se,[M,se,L])}const _=ut.memo(S);if(_.WrappedComponent=g,_.displayName=S.displayName=y,l){const C=ut.forwardRef(function(A,M){return ut.createElement(_,{...A,reactReduxForwardedRef:M})});return C.displayName=y,C.WrappedComponent=g,AC(C,g)}return AC(_,g)}}var Nn=RZ;function EZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const o=ut.useMemo(()=>{const u=NV(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,n,i,a]),s=ut.useMemo(()=>e.getState(),[e]);Vy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||So;return ut.createElement(l.Provider,{value:o},r)}var zP=EZ;function FV(e=So){const t=e===So?DV:$A(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var VV=FV();function LZ(e=So){const t=e===So?VV:FV(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var $V=LZ(),OZ=OV;Hq($q.useSyncExternalStoreWithSelector);AZ(N.useSyncExternalStore);function GV(e,t,r){return t&&(Array.isArray(t)?t.map(n=>GV(e,n,r)):typeof t=="object"?WA(t,r):t)}const WA=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:GV(e,i,t)}),{}),HV=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),NZ=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),$c=e=>WA(e,HV),BP=e=>WA(e,NZ),WV=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),zZ=e=>Object.fromEntries(new URLSearchParams(e).entries()),BZ=(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"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},FP=!!window.authArgs&&$c(window.authArgs),bp={black:"#000",white:"#fff"},Jo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Wu={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},wl={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ju={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uu={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},FZ={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},vd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},VZ={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 F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F.apply(this,arguments)}function Rl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function jV(e){if(!Rl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=jV(e[r])}),t}function Pn(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Rl(e)&&Rl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Rl(t[i])&&i in e&&Rl(e[i])?n[i]=Pn(e[i],t[i],r):r.clone?n[i]=Rl(t[i])?jV(t[i]):t[i]:n[i]=t[i])}),n}function Ps(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Pt={};/**
|
53
|
-
* @license React
|
54
|
-
* react-is.production.min.js
|
55
|
-
*
|
56
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
57
|
-
*
|
58
|
-
* This source code is licensed under the MIT license found in the
|
59
|
-
* LICENSE file in the root directory of this source tree.
|
60
|
-
*/var jA=Symbol.for("react.element"),UA=Symbol.for("react.portal"),g1=Symbol.for("react.fragment"),m1=Symbol.for("react.strict_mode"),y1=Symbol.for("react.profiler"),x1=Symbol.for("react.provider"),S1=Symbol.for("react.context"),$Z=Symbol.for("react.server_context"),_1=Symbol.for("react.forward_ref"),b1=Symbol.for("react.suspense"),w1=Symbol.for("react.suspense_list"),C1=Symbol.for("react.memo"),T1=Symbol.for("react.lazy"),GZ=Symbol.for("react.offscreen"),UV;UV=Symbol.for("react.module.reference");function Mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jA:switch(e=e.type,e){case g1:case y1:case m1:case b1:case w1:return e;default:switch(e=e&&e.$$typeof,e){case $Z:case S1:case _1:case T1:case C1:case x1:return e;default:return t}}case UA:return t}}}Pt.ContextConsumer=S1;Pt.ContextProvider=x1;Pt.Element=jA;Pt.ForwardRef=_1;Pt.Fragment=g1;Pt.Lazy=T1;Pt.Memo=C1;Pt.Portal=UA;Pt.Profiler=y1;Pt.StrictMode=m1;Pt.Suspense=b1;Pt.SuspenseList=w1;Pt.isAsyncMode=function(){return!1};Pt.isConcurrentMode=function(){return!1};Pt.isContextConsumer=function(e){return Mi(e)===S1};Pt.isContextProvider=function(e){return Mi(e)===x1};Pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jA};Pt.isForwardRef=function(e){return Mi(e)===_1};Pt.isFragment=function(e){return Mi(e)===g1};Pt.isLazy=function(e){return Mi(e)===T1};Pt.isMemo=function(e){return Mi(e)===C1};Pt.isPortal=function(e){return Mi(e)===UA};Pt.isProfiler=function(e){return Mi(e)===y1};Pt.isStrictMode=function(e){return Mi(e)===m1};Pt.isSuspense=function(e){return Mi(e)===b1};Pt.isSuspenseList=function(e){return Mi(e)===w1};Pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===g1||e===y1||e===m1||e===b1||e===w1||e===GZ||typeof e=="object"&&e!==null&&(e.$$typeof===T1||e.$$typeof===C1||e.$$typeof===x1||e.$$typeof===S1||e.$$typeof===_1||e.$$typeof===UV||e.getModuleId!==void 0)};Pt.typeOf=Mi;function xe(e){if(typeof e!="string")throw new Error(Ps(7));return e.charAt(0).toUpperCase()+e.slice(1)}function MC(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function vv(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function HZ(e,t){return()=>null}function Dh(e,t){return N.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function sn(e){return e&&e.ownerDocument||document}function za(e){return sn(e).defaultView||window}function WZ(e,t){return()=>null}function $y(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const _o=typeof window<"u"?N.useLayoutEffect:N.useEffect;let VP=0;function jZ(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(VP+=1,r(`mui-${VP}`))},[t]),n}const $P=Jh.useId;function YV(e){if($P!==void 0){const t=$P();return e??t}return jZ(e)}function UZ(e,t,r,n,i){return null}function wp({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=N.useRef(e!==void 0),[a,o]=N.useState(t),s=i?e:a,l=N.useCallback(u=>{i||o(u)},[]);return[s,l]}function wa(e){const t=N.useRef(e);return _o(()=>{t.current=e}),N.useCallback((...r)=>(0,t.current)(...r),[])}function Tr(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{$y(r,t)})},e)}let A1=!0,kC=!1,GP;const YZ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function XZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&YZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function qZ(e){e.metaKey||e.altKey||e.ctrlKey||(A1=!0)}function DS(){A1=!1}function ZZ(){this.visibilityState==="hidden"&&kC&&(A1=!0)}function KZ(e){e.addEventListener("keydown",qZ,!0),e.addEventListener("mousedown",DS,!0),e.addEventListener("pointerdown",DS,!0),e.addEventListener("touchstart",DS,!0),e.addEventListener("visibilitychange",ZZ,!0)}function QZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return A1||XZ(t)}function YA(){const e=N.useCallback(i=>{i!=null&&KZ(i.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(kC=!0,window.clearTimeout(GP),GP=window.setTimeout(()=>{kC=!1},100),t.current=!1,!0):!1}function n(i){return QZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function XV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Yu;function qV(){if(Yu)return Yu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Yu="reverse",e.scrollLeft>0?Yu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Yu="negative")),document.body.removeChild(e),Yu}function JZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(qV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function XA(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=XA(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ve(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const HP=e=>e,eK=()=>{let e=HP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=HP}}},qA=eK(),tK={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 Be(e,t,r="Mui"){const n=tK[t];return n?`${r}-${n}`:`${qA.generate(e)}-${t}`}function $e(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Be(e,i,r)}),n}const xu="$$material";function ge(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function ZV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var rK=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nK=ZV(function(e){return rK.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function iK(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 aK(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 oK=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),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(aK(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=iK(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Wr="-ms-",Gy="-moz-",gt="-webkit-",KV="comm",ZA="rule",KA="decl",sK="@import",QV="@keyframes",lK="@layer",uK=Math.abs,M1=String.fromCharCode,cK=Object.assign;function fK(e,t){return Rr(e,0)^45?(((t<<2^Rr(e,0))<<2^Rr(e,1))<<2^Rr(e,2))<<2^Rr(e,3):0}function JV(e){return e.trim()}function dK(e,t){return(e=t.exec(e))?e[0]:e}function mt(e,t,r){return e.replace(t,r)}function IC(e,t){return e.indexOf(t)}function Rr(e,t){return e.charCodeAt(t)|0}function Cp(e,t,r){return e.slice(t,r)}function ga(e){return e.length}function QA(e){return e.length}function pg(e,t){return t.push(e),e}function hK(e,t){return e.map(t).join("")}var k1=1,Sf=1,e$=0,Ln=0,lr=0,Ff="";function I1(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:k1,column:Sf,length:o,return:""}}function gd(e,t){return cK(I1("",null,null,"",null,null,0),e,{length:-e.length},t)}function pK(){return lr}function vK(){return lr=Ln>0?Rr(Ff,--Ln):0,Sf--,lr===10&&(Sf=1,k1--),lr}function Un(){return lr=Ln<e$?Rr(Ff,Ln++):0,Sf++,lr===10&&(Sf=1,k1++),lr}function Pa(){return Rr(Ff,Ln)}function Vm(){return Ln}function gv(e,t){return Cp(Ff,e,t)}function Tp(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 t$(e){return k1=Sf=1,e$=ga(Ff=e),Ln=0,[]}function r$(e){return Ff="",e}function $m(e){return JV(gv(Ln-1,DC(e===91?e+2:e===40?e+1:e)))}function gK(e){for(;(lr=Pa())&&lr<33;)Un();return Tp(e)>2||Tp(lr)>3?"":" "}function mK(e,t){for(;--t&&Un()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return gv(e,Vm()+(t<6&&Pa()==32&&Un()==32))}function DC(e){for(;Un();)switch(lr){case e:return Ln;case 34:case 39:e!==34&&e!==39&&DC(lr);break;case 40:e===41&&DC(e);break;case 92:Un();break}return Ln}function yK(e,t){for(;Un()&&e+lr!==57;)if(e+lr===84&&Pa()===47)break;return"/*"+gv(t,Ln-1)+"*"+M1(e===47?e:Un())}function xK(e){for(;!Tp(Pa());)Un();return gv(e,Ln)}function SK(e){return r$(Gm("",null,null,null,[""],e=t$(e),0,[0],e))}function Gm(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,b=a,_=n,w=x;g;)switch(p=y,y=Un()){case 40:if(p!=108&&Rr(w,f-1)==58){IC(w+=mt($m(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=$m(y);break;case 9:case 10:case 13:case 32:w+=gK(p);break;case 92:w+=mK(Vm()-1,7);continue;case 47:switch(Pa()){case 42:case 47:pg(_K(yK(Un(),Vm()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ga(w)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:m==-1&&(w=mt(w,/\f/g,"")),h>0&&ga(w)-f&&pg(h>32?jP(w+";",n,r,f-1):jP(mt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(pg(_=WP(w,t,r,u,c,i,s,x,S=[],b=[],f),a),y===123)if(c===0)Gm(w,t,_,_,S,a,f,s,b);else switch(d===99&&Rr(w,3)===110?100:d){case 100:case 108:case 109:case 115:Gm(e,_,_,n&&pg(WP(e,_,_,0,0,i,s,x,i,S=[],f),b),i,b,f,s,n?S:b);break;default:Gm(w,_,_,_,[""],b,0,s,b)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ga(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&vK()==125)continue}switch(w+=M1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ga(w)-1)*m,m=1;break;case 64:Pa()===45&&(w+=$m(Un())),d=Pa(),c=f=ga(x=w+=xK(Vm())),y++;break;case 45:p===45&&ga(w)==2&&(v=0)}}return a}function WP(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=QA(d),p=0,v=0,g=0;p<n;++p)for(var m=0,y=Cp(e,f+1,f=uK(v=o[p])),x=e;m<h;++m)(x=JV(v>0?d[m]+" "+y:mt(y,/&\f/g,d[m])))&&(l[g++]=x);return I1(e,t,r,i===0?ZA:s,l,u,c)}function _K(e,t,r){return I1(e,t,r,KV,M1(pK()),Cp(e,2,-2),0)}function jP(e,t,r,n){return I1(e,t,r,KA,Cp(e,0,n),Cp(e,n+1,-1),n)}function Jc(e,t){for(var r="",n=QA(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function bK(e,t,r,n){switch(e.type){case lK:if(e.children.length)break;case sK:case KA:return e.return=e.return||e.value;case KV:return"";case QV:return e.return=e.value+"{"+Jc(e.children,n)+"}";case ZA:e.value=e.props.join(",")}return ga(r=Jc(e.children,n))?e.return=e.value+"{"+r+"}":""}function wK(e){var t=QA(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function CK(e){return function(t){t.root||(t=t.return)&&e(t)}}var TK=function(t,r,n){for(var i=0,a=0;i=a,a=Pa(),i===38&&a===12&&(r[n]=1),!Tp(a);)Un();return gv(t,Ln)},AK=function(t,r){var n=-1,i=44;do switch(Tp(i)){case 0:i===38&&Pa()===12&&(r[n]=1),t[n]+=TK(Ln-1,r,n);break;case 2:t[n]+=$m(i);break;case 4:if(i===44){t[++n]=Pa()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=M1(i)}while(i=Un());return t},MK=function(t,r){return r$(AK(t$(t),r))},UP=new WeakMap,kK=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&&!UP.get(n))&&!i){UP.set(t,!0);for(var a=[],o=MK(r,a),s=n.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},IK=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function n$(e,t){switch(fK(e,t)){case 5103:return gt+"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 gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Gy+e+Wr+e+e;case 6828:case 4268:return gt+e+Wr+e+e;case 6165:return gt+e+Wr+"flex-"+e+e;case 5187:return gt+e+mt(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+Wr+"flex-$1$2")+e;case 5443:return gt+e+Wr+"flex-item-"+mt(e,/flex-|-self/,"")+e;case 4675:return gt+e+Wr+"flex-line-pack"+mt(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+Wr+mt(e,"shrink","negative")+e;case 5292:return gt+e+Wr+mt(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+mt(e,"-grow","")+gt+e+Wr+mt(e,"grow","positive")+e;case 4554:return gt+mt(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return mt(mt(mt(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return mt(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return mt(mt(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+Wr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return mt(e,/(.+)-inline(.+)/,gt+"$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(ga(e)-1-t>6)switch(Rr(e,t+1)){case 109:if(Rr(e,t+4)!==45)break;case 102:return mt(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Gy+(Rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~IC(e,"stretch")?n$(mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rr(e,t+1)!==115)break;case 6444:switch(Rr(e,ga(e)-3-(~IC(e,"!important")&&10))){case 107:return mt(e,":",":"+gt)+e;case 101:return mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(Rr(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(Rr(e,t+11)){case 114:return gt+e+Wr+mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+Wr+mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+Wr+mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+Wr+e+e}return e}var DK=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case KA:t.return=n$(t.value,t.length);break;case QV:return Jc([gd(t,{value:mt(t.value,"@","@"+gt)})],i);case ZA:if(t.length)return hK(t.props,function(a){switch(dK(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jc([gd(t,{props:[mt(a,/:(read-\w+)/,":"+Gy+"$1")]})],i);case"::placeholder":return Jc([gd(t,{props:[mt(a,/:(plac\w+)/,":"+gt+"input-$1")]}),gd(t,{props:[mt(a,/:(plac\w+)/,":"+Gy+"$1")]}),gd(t,{props:[mt(a,/:(plac\w+)/,Wr+"input-$1")]})],i)}return""})}},PK=[DK],RK=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(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||PK,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),m=1;m<g.length;m++)a[g[m]]=!0;s.push(v)});var l,u=[kK,IK];{var c,f=[bK,CK(function(v){c.insert(v)})],d=wK(u.concat(i,f)),h=function(g){return Jc(SK(g),d)};l=function(g,m,y,x){c=y,h(g?g+"{"+m.styles+"}":m.styles),x&&(p.inserted[m.name]=!0)}}var p={key:r,sheet:new oK({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return p.sheet.hydrate(s),p},i$={exports:{}},kt={};/** @license React v16.13.1
|
61
|
-
* react-is.production.min.js
|
62
|
-
*
|
63
|
-
* Copyright (c) Facebook, Inc. and its 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 Ar=typeof Symbol=="function"&&Symbol.for,JA=Ar?Symbol.for("react.element"):60103,eM=Ar?Symbol.for("react.portal"):60106,D1=Ar?Symbol.for("react.fragment"):60107,P1=Ar?Symbol.for("react.strict_mode"):60108,R1=Ar?Symbol.for("react.profiler"):60114,E1=Ar?Symbol.for("react.provider"):60109,L1=Ar?Symbol.for("react.context"):60110,tM=Ar?Symbol.for("react.async_mode"):60111,O1=Ar?Symbol.for("react.concurrent_mode"):60111,N1=Ar?Symbol.for("react.forward_ref"):60112,z1=Ar?Symbol.for("react.suspense"):60113,EK=Ar?Symbol.for("react.suspense_list"):60120,B1=Ar?Symbol.for("react.memo"):60115,F1=Ar?Symbol.for("react.lazy"):60116,LK=Ar?Symbol.for("react.block"):60121,OK=Ar?Symbol.for("react.fundamental"):60117,NK=Ar?Symbol.for("react.responder"):60118,zK=Ar?Symbol.for("react.scope"):60119;function ei(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JA:switch(e=e.type,e){case tM:case O1:case D1:case R1:case P1:case z1:return e;default:switch(e=e&&e.$$typeof,e){case L1:case N1:case F1:case B1:case E1:return e;default:return t}}case eM:return t}}}function a$(e){return ei(e)===O1}kt.AsyncMode=tM;kt.ConcurrentMode=O1;kt.ContextConsumer=L1;kt.ContextProvider=E1;kt.Element=JA;kt.ForwardRef=N1;kt.Fragment=D1;kt.Lazy=F1;kt.Memo=B1;kt.Portal=eM;kt.Profiler=R1;kt.StrictMode=P1;kt.Suspense=z1;kt.isAsyncMode=function(e){return a$(e)||ei(e)===tM};kt.isConcurrentMode=a$;kt.isContextConsumer=function(e){return ei(e)===L1};kt.isContextProvider=function(e){return ei(e)===E1};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JA};kt.isForwardRef=function(e){return ei(e)===N1};kt.isFragment=function(e){return ei(e)===D1};kt.isLazy=function(e){return ei(e)===F1};kt.isMemo=function(e){return ei(e)===B1};kt.isPortal=function(e){return ei(e)===eM};kt.isProfiler=function(e){return ei(e)===R1};kt.isStrictMode=function(e){return ei(e)===P1};kt.isSuspense=function(e){return ei(e)===z1};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===D1||e===O1||e===R1||e===P1||e===z1||e===EK||typeof e=="object"&&e!==null&&(e.$$typeof===F1||e.$$typeof===B1||e.$$typeof===E1||e.$$typeof===L1||e.$$typeof===N1||e.$$typeof===OK||e.$$typeof===NK||e.$$typeof===zK||e.$$typeof===LK)};kt.typeOf=ei;i$.exports=kt;var BK=i$.exports,o$=BK,FK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},VK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s$={};s$[o$.ForwardRef]=FK;s$[o$.Memo]=VK;var $K=!0;function GK(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var l$=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||$K===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},u$=function(t,r,n){l$(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function HK(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 WK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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},jK=/[A-Z]|^ms/g,UK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c$=function(t){return t.charCodeAt(1)===45},YP=function(t){return t!=null&&typeof t!="boolean"},PS=ZV(function(e){return c$(e)?e:e.replace(jK,"-$&").toLowerCase()}),XP=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(UK,function(n,i,a){return ma={name:i,styles:a,next:ma},i})}return WK[t]!==1&&!c$(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ap(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ma={name:r.name,styles:r.styles,next:ma},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ma={name:n.name,styles:n.styles,next:ma},n=n.next;var i=r.styles+";";return i}return YK(e,t,r)}case"function":{if(e!==void 0){var a=ma,o=r(e);return ma=a,Ap(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function YK(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ap(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object")t!=null&&t[o]!==void 0?n+=a+"{"+t[o]+"}":YP(o)&&(n+=PS(a)+":"+XP(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)YP(o[s])&&(n+=PS(a)+":"+XP(a,o[s])+";");else{var l=Ap(e,t,o);switch(a){case"animation":case"animationName":{n+=PS(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var qP=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ma,rM=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";ma=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=Ap(n,r,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=Ap(n,r,t[s]),i&&(a+=o[s]);qP.lastIndex=0;for(var l="",u;(u=qP.exec(a))!==null;)l+="-"+u[1];var c=HK(a)+l;return{name:c,styles:a,next:ma}},XK=function(t){return t()},f$=Jh.useInsertionEffect?Jh.useInsertionEffect:!1,qK=f$||XK,ZP=f$||N.useLayoutEffect,d$=N.createContext(typeof HTMLElement<"u"?RK({key:"css"}):null);d$.Provider;var h$=function(t){return N.forwardRef(function(r,n){var i=N.useContext(d$);return t(r,i,n)})},V1=N.createContext({}),ZK=h$(function(e,t){var r=e.styles,n=rM([r],void 0,N.useContext(V1)),i=N.useRef();return ZP(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),ZP(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&u$(t,n.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function KK(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return rM(t)}var nM=function(){var t=KK.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},QK=nK,JK=function(t){return t!=="theme"},KP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?QK:JK},QP=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},eQ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return l$(r,n,i),qK(function(){return u$(r,n,i)}),null},tQ=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=QP(t,r,n),l=s||KP(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;h<d;h++)f.push(c[h],c[0][h])}var p=h$(function(v,g,m){var y=u&&v.as||i,x="",S=[],b=v;if(v.theme==null){b={};for(var _ in v)b[_]=v[_];b.theme=N.useContext(V1)}typeof v.className=="string"?x=GK(g.registered,S,v.className):v.className!=null&&(x=v.className+" ");var w=rM(f.concat(S),g.registered,b);x+=g.key+"-"+w.name,o!==void 0&&(x+=" "+o);var C=u&&s===void 0?KP(y):l,T={};for(var A in v)u&&A==="as"||C(A)&&(T[A]=v[A]);return T.className=x,T.ref=m,N.createElement(N.Fragment,null,N.createElement(eQ,{cache:g,serialized:w,isStringTag:typeof y=="string"}),N.createElement(y,T))});return p.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=f,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+o}}),p.withComponent=function(v,g){return e(v,F({},r,g,{shouldForwardProp:QP(p,g,!0)})).apply(void 0,f)},p}},rQ=["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"],PC=tQ.bind();rQ.forEach(function(e){PC[e]=PC(e)});function nQ(e){return e==null||Object.keys(e).length===0}function iQ(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(nQ(i)?r:i):t;return R.jsx(ZK,{styles:n})}function p$(e,t){return PC(e,t)}const aQ=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},oQ=["values","unit","step"],sQ=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)=>F({},r,{[n.key]:n.val}),{})};function lQ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ge(e,oQ),a=sQ(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?l(o[h]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return F({keys:o,values:a,up:s,down:l,between:u,only:c,not:f,unit:r},i)}const uQ={borderRadius:4};function Ph(e,t){return t?Pn(e,t,{clone:!1}):e}const iM={xs:0,sm:600,md:900,lg:1200,xl:1536},JP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${iM[e]}px)`};function Ji(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||JP;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||JP;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||iM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function v$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function g$(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function cQ(e,...t){const r=v$(e),n=[r,...t].reduce((i,a)=>Pn(i,a),{});return g$(Object.keys(r),n)}function fQ(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function RS({values:e,breakpoints:t,base:r}){const n=r||fQ(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function _f(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Hy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=_f(e,r)||n,t&&(i=t(i,n,e)),i}function bt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=_f(l,n)||{};return Ji(o,s,f=>{let d=Hy(u,i,f);return f===d&&typeof f=="string"&&(d=Hy(u,i,`${t}${f==="default"?"":xe(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function dQ(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const hQ={m:"margin",p:"padding"},pQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vQ=dQ(e=>{if(e.length>2)if(eR[e])e=eR[e];else return[e];const[t,r]=e.split(""),n=hQ[t],i=pQ[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),aM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...aM,...oM];function mv(e,t,r,n){var i;const a=(i=_f(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function sM(e){return mv(e,"spacing",8)}function Su(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function gQ(e,t){return r=>e.reduce((n,i)=>(n[i]=Su(t,r),n),{})}function mQ(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=vQ(r),a=gQ(i,n),o=e[r];return Ji(e,o,a)}function m$(e,t){const r=sM(e.theme);return Object.keys(e).map(n=>mQ(e,t,n,r)).reduce(Ph,{})}function Zt(e){return m$(e,aM)}Zt.propTypes={};Zt.filterProps=aM;function Kt(e){return m$(e,oM)}Kt.propTypes={};Kt.filterProps=oM;function yQ(e=8){if(e.mui)return e;const t=sM({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function $1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Ph(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function xa(e){return typeof e!="number"?e:`${e}px solid`}const xQ=bt({prop:"border",themeKey:"borders",transform:xa}),SQ=bt({prop:"borderTop",themeKey:"borders",transform:xa}),_Q=bt({prop:"borderRight",themeKey:"borders",transform:xa}),bQ=bt({prop:"borderBottom",themeKey:"borders",transform:xa}),wQ=bt({prop:"borderLeft",themeKey:"borders",transform:xa}),CQ=bt({prop:"borderColor",themeKey:"palette"}),TQ=bt({prop:"borderTopColor",themeKey:"palette"}),AQ=bt({prop:"borderRightColor",themeKey:"palette"}),MQ=bt({prop:"borderBottomColor",themeKey:"palette"}),kQ=bt({prop:"borderLeftColor",themeKey:"palette"}),G1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=mv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Su(t,n)});return Ji(e,e.borderRadius,r)}return null};G1.propTypes={};G1.filterProps=["borderRadius"];$1(xQ,SQ,_Q,bQ,wQ,CQ,TQ,AQ,MQ,kQ,G1);const H1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=mv(e.theme,"spacing",8),r=n=>({gap:Su(t,n)});return Ji(e,e.gap,r)}return null};H1.propTypes={};H1.filterProps=["gap"];const W1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=mv(e.theme,"spacing",8),r=n=>({columnGap:Su(t,n)});return Ji(e,e.columnGap,r)}return null};W1.propTypes={};W1.filterProps=["columnGap"];const j1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=mv(e.theme,"spacing",8),r=n=>({rowGap:Su(t,n)});return Ji(e,e.rowGap,r)}return null};j1.propTypes={};j1.filterProps=["rowGap"];const IQ=bt({prop:"gridColumn"}),DQ=bt({prop:"gridRow"}),PQ=bt({prop:"gridAutoFlow"}),RQ=bt({prop:"gridAutoColumns"}),EQ=bt({prop:"gridAutoRows"}),LQ=bt({prop:"gridTemplateColumns"}),OQ=bt({prop:"gridTemplateRows"}),NQ=bt({prop:"gridTemplateAreas"}),zQ=bt({prop:"gridArea"});$1(H1,W1,j1,IQ,DQ,PQ,RQ,EQ,LQ,OQ,NQ,zQ);function ef(e,t){return t==="grey"?t:e}const BQ=bt({prop:"color",themeKey:"palette",transform:ef}),FQ=bt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ef}),VQ=bt({prop:"backgroundColor",themeKey:"palette",transform:ef});$1(BQ,FQ,VQ);function Vn(e){return e<=1&&e!==0?`${e*100}%`:e}const $Q=bt({prop:"width",transform:Vn}),lM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||iM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Vn(r)}};return Ji(e,e.maxWidth,t)}return null};lM.filterProps=["maxWidth"];const GQ=bt({prop:"minWidth",transform:Vn}),HQ=bt({prop:"height",transform:Vn}),WQ=bt({prop:"maxHeight",transform:Vn}),jQ=bt({prop:"minHeight",transform:Vn});bt({prop:"size",cssProperty:"width",transform:Vn});bt({prop:"size",cssProperty:"height",transform:Vn});const UQ=bt({prop:"boxSizing"});$1($Q,lM,GQ,HQ,WQ,jQ,UQ);const U1={border:{themeKey:"borders",transform:xa},borderTop:{themeKey:"borders",transform:xa},borderRight:{themeKey:"borders",transform:xa},borderBottom:{themeKey:"borders",transform:xa},borderLeft:{themeKey:"borders",transform:xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:G1},color:{themeKey:"palette",transform:ef},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ef},backgroundColor:{themeKey:"palette",transform:ef},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},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:H1},rowGap:{style:j1},columnGap:{style:W1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:lM},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function YQ(...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 XQ(e,t){return typeof e=="function"?e(t):e}function qQ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=_f(i,u)||{};return f?f(o):Ji(o,n,p=>{let v=Hy(d,c,p);return p===v&&typeof p=="string"&&(v=Hy(d,c,`${r}${p==="default"?"":xe(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:U1;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=v$(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=XQ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Ph(d,e(h,p,a,o));else{const v=Ji({theme:a},p,g=>({[h]:g}));YQ(v,p)?d[h]=t({sx:p,theme:a}):d=Ph(d,v)}else d=Ph(d,e(h,p,a,o))}),g$(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const yv=qQ();yv.filterProps=["sx"];const ZQ=["breakpoints","palette","spacing","shape"];function xv(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ge(e,ZQ),s=lQ(r),l=yQ(i);let u=Pn({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},uQ,a)},o);return u=t.reduce((c,f)=>Pn(c,f),u),u.unstable_sxConfig=F({},U1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return yv({sx:f,theme:this})},u}function KQ(e){return Object.keys(e).length===0}function y$(e=null){const t=N.useContext(V1);return!t||KQ(t)?e:t}const QQ=xv();function Y1(e=QQ){return y$(e)}function JQ({styles:e,themeId:t,defaultTheme:r={}}){const n=Y1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(iQ,{styles:i})}const eJ=["sx"],tJ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:U1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function uM(e){const{sx:t}=e,r=ge(e,eJ),{systemProps:n,otherProps:i}=tJ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Rl(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function x$(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=x$(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ye(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=x$(e))&&(n&&(n+=" "),n+=t);return n}const rJ=["className","component"];function nJ(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=p$("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(yv);return N.forwardRef(function(l,u){const c=Y1(r),f=uM(l),{className:d,component:h="div"}=f,p=ge(f,rJ);return R.jsx(a,F({as:h,ref:u,className:ye(d,i?i(n):n),theme:t&&c[t]||c},p))})}const iJ=["variant"];function tR(e){return e.length===0}function S$(e){const{variant:t}=e,r=ge(e,iJ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=tR(n)?e[i]:xe(e[i]):n+=`${tR(n)?i:xe(i)}${xe(e[i].toString())}`}),n}const aJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oJ(e){return Object.keys(e).length===0}function sJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const lJ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,uJ=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=S$(i.props);n[a]=i.style}),n},cJ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[S$(l.props)])}),o};function Rh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fJ=xv(),dJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function md({defaultTheme:e,theme:t,themeId:r}){return oJ(t)?e:t[r]||t}function hJ(e){return e?(t,r)=>r[e]:null}function _$(e={}){const{themeId:t,defaultTheme:r=fJ,rootShouldForwardProp:n=Rh,slotShouldForwardProp:i=Rh}=e,a=o=>yv(F({},o,{theme:md(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{aQ(o,S=>S.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=hJ(dJ(u))}=s,h=ge(s,aJ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Rh;u==="Root"||u==="root"?m=n:u?m=i:sJ(o)&&(m=void 0);const y=p$(o,F({shouldForwardProp:m,label:g},h)),x=(S,...b)=>{const _=b?b.map(A=>typeof A=="function"&&A.__emotion_real!==A?M=>A(F({},M,{theme:md(F({},M,{defaultTheme:r,themeId:t}))})):A):[];let w=S;l&&d&&_.push(A=>{const M=md(F({},A,{defaultTheme:r,themeId:t})),k=lJ(l,M);if(k){const I={};return Object.entries(k).forEach(([P,E])=>{I[P]=typeof E=="function"?E(F({},A,{theme:M})):E}),d(A,I)}return null}),l&&!p&&_.push(A=>{const M=md(F({},A,{defaultTheme:r,themeId:t}));return cJ(A,uJ(l,M),M,l)}),v||_.push(a);const C=_.length-b.length;if(Array.isArray(S)&&C>0){const A=new Array(C).fill("");w=[...S,...A],w.raw=[...S.raw,...A]}else typeof S=="function"&&S.__emotion_real!==S&&(w=A=>S(F({},A,{theme:md(F({},A,{defaultTheme:r,themeId:t}))})));const T=y(w,..._);return o.muiName&&(T.muiName=o.muiName),T};return y.withConfig&&(x.withConfig=y.withConfig),x}}const b$=_$();function pJ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:XA(t.components[r].defaultProps,n)}function cM({props:e,name:t,defaultTheme:r,themeId:n}){let i=Y1(r);return n&&(i=i[n]||i),pJ({theme:i,name:t,props:e})}function fM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function vJ(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 _u(e){if(e.type)return e;if(e.charAt(0)==="#")return _u(vJ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ps(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"].indexOf(i)===-1)throw new Error(Ps(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function X1(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function gJ(e){e=_u(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),X1({type:s,values:l})}function rR(e){e=_u(e);let t=e.type==="hsl"||e.type==="hsla"?_u(gJ(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 mJ(e,t){const r=rR(e),n=rR(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function nr(e,t){return e=_u(e),t=fM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,X1(e)}function Mp(e,t){if(e=_u(e),t=fM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return X1(e)}function kp(e,t){if(e=_u(e),t=fM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return X1(e)}const w$=N.createContext(null);function C$(){return N.useContext(w$)}const yJ=typeof Symbol=="function"&&Symbol.for,xJ=yJ?Symbol.for("mui.nested"):"__THEME_NESTED__";function SJ(e,t){return typeof t=="function"?t(e):F({},e,t)}function _J(e){const{children:t,theme:r}=e,n=C$(),i=N.useMemo(()=>{const a=n===null?r:SJ(n,r);return a!=null&&(a[xJ]=n!==null),a},[r,n]);return R.jsx(w$.Provider,{value:i,children:t})}const nR={};function iR(e,t,r,n=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function bJ(e){const{children:t,theme:r,themeId:n}=e,i=y$(nR),a=C$()||nR,o=iR(n,i,r),s=iR(n,a,r,!0);return R.jsx(_J,{theme:s,children:R.jsx(V1.Provider,{value:o,children:t})})}const wJ=["className","component","disableGutters","fixed","maxWidth","classes"],CJ=xv(),TJ=b$("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),AJ=e=>cM({props:e,name:"MuiContainer",defaultTheme:CJ}),MJ=(e,t)=>{const r=l=>Be(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${xe(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ve(s,r,n)};function kJ(e={}){const{createStyledComponent:t=TJ,useThemeProps:r=AJ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>F({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return N.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=ge(u,wJ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=MJ(g,n);return R.jsx(i,F({as:f,ownerState:g,className:ye(m.root,c),ref:l},v))})}const IJ=["component","direction","spacing","divider","children","className","useFlexGap"],DJ=xv(),PJ=b$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function RJ(e){return cM({props:e,name:"MuiStack",defaultTheme:DJ})}function EJ(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const LJ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],OJ=({ownerState:e,theme:t})=>{let r=F({display:"flex",flexDirection:"column"},Ji({theme:t},RS({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=sM(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=RS({values:e.direction,base:i}),o=RS({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=Pn(r,Ji({theme:t},o,(l,u)=>e.useFlexGap?{gap:Su(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${LJ(u?a[u]:e.direction)}`]:Su(n,l)}}))}return r=cQ(t.breakpoints,r),r};function NJ(e={}){const{createStyledComponent:t=PJ,useThemeProps:r=RJ,componentName:n="MuiStack"}=e,i=()=>Ve({root:["root"]},l=>Be(n,l),{}),a=t(OJ);return N.forwardRef(function(l,u){const c=r(l),f=uM(c),{component:d="div",direction:h="column",spacing:p=0,divider:v,children:g,className:m,useFlexGap:y=!1}=f,x=ge(f,IJ),S={direction:h,spacing:p,useFlexGap:y},b=i();return R.jsx(a,F({as:d,ownerState:S,ref:u,className:ye(b.root,m)},x,{children:v?EJ(g,v):g}))})}function zJ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const BJ=["mode","contrastThreshold","tonalOffset"],aR={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:bp.white,default:bp.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}},ES={text:{primary:bp.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:bp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function oR(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=kp(e.main,i):t==="dark"&&(e.dark=Mp(e.main,a)))}function FJ(e="light"){return e==="dark"?{main:wl[200],light:wl[50],dark:wl[400]}:{main:wl[700],light:wl[400],dark:wl[800]}}function VJ(e="light"){return e==="dark"?{main:Wu[200],light:Wu[50],dark:Wu[400]}:{main:Wu[500],light:Wu[300],dark:Wu[700]}}function $J(e="light"){return e==="dark"?{main:Jo[500],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function GJ(e="light"){return e==="dark"?{main:ju[400],light:ju[300],dark:ju[700]}:{main:ju[700],light:ju[500],dark:ju[900]}}function HJ(e="light"){return e==="dark"?{main:Uu[400],light:Uu[300],dark:Uu[700]}:{main:Uu[800],light:Uu[500],dark:Uu[900]}}function WJ(e="light"){return e==="dark"?{main:vd[400],light:vd[300],dark:vd[700]}:{main:"#ed6c02",light:vd[500],dark:vd[900]}}function jJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ge(e,BJ),a=e.primary||FJ(t),o=e.secondary||VJ(t),s=e.error||$J(t),l=e.info||GJ(t),u=e.success||HJ(t),c=e.warning||WJ(t);function f(v){return mJ(v,ES.text.primary)>=r?ES.text.primary:aR.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Ps(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Ps(12,g?` (${g})`:"",JSON.stringify(v.main)));return oR(v,"light",y,n),oR(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:ES,light:aR};return Pn(F({common:F({},bp),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:VZ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const UJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function YJ(e){return Math.round(e*1e5)/1e5}const sR={textTransform:"uppercase"},lR='"Roboto", "Helvetica", "Arial", sans-serif';function XJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=lR,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ge(r,UJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,b)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===lR?{letterSpacing:`${YJ(S/y)}em`}:{},b,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,sR),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,sR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const qJ=.2,ZJ=.14,KJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ZJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KJ})`].join(",")}const QJ=["none",Gt(0,2,1,-1,0,1,1,0,0,1,3,0),Gt(0,3,1,-2,0,2,2,0,0,1,5,0),Gt(0,3,3,-2,0,3,4,0,0,1,8,0),Gt(0,2,4,-1,0,4,5,0,0,1,10,0),Gt(0,3,5,-1,0,5,8,0,0,1,14,0),Gt(0,3,5,-1,0,6,10,0,0,1,18,0),Gt(0,4,5,-2,0,7,10,1,0,2,16,1),Gt(0,5,5,-3,0,8,10,1,0,3,14,2),Gt(0,5,6,-3,0,9,12,1,0,3,16,2),Gt(0,6,6,-3,0,10,14,1,0,4,18,3),Gt(0,6,7,-4,0,11,15,1,0,4,20,3),Gt(0,7,8,-4,0,12,17,2,0,5,22,4),Gt(0,7,8,-4,0,13,19,2,0,5,24,4),Gt(0,7,9,-4,0,14,21,2,0,5,26,4),Gt(0,8,9,-5,0,15,22,2,0,6,28,5),Gt(0,8,10,-5,0,16,24,2,0,6,30,5),Gt(0,8,11,-5,0,17,26,2,0,6,32,5),Gt(0,9,11,-5,0,18,28,2,0,7,34,6),Gt(0,9,12,-6,0,19,29,2,0,7,36,6),Gt(0,10,13,-6,0,20,31,3,0,8,38,7),Gt(0,10,13,-6,0,21,33,3,0,8,40,7),Gt(0,10,14,-6,0,22,35,3,0,8,42,7),Gt(0,11,14,-7,0,23,36,3,0,9,44,8),Gt(0,11,15,-7,0,24,38,3,0,9,46,8)],JJ=["duration","easing","delay"],eee={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)"},T$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uR(e){return`${Math.round(e)}ms`}function tee(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ree(e){const t=F({},eee,e.easing),r=F({},T$,e.duration);return F({getAutoHeightDuration:tee,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ge(a,JJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:uR(o)} ${s} ${typeof l=="string"?l:uR(l)}`).join(",")}},e,{easing:t,duration:r})}const nee={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iee=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ge(e,iee);if(e.vars)throw new Error(Ps(18));const s=jJ(n),l=xv(e);let u=Pn(l,{mixins:zJ(l.breakpoints,r),palette:s,shadows:QJ.slice(),typography:XJ(s,a),transitions:ree(i),zIndex:F({},nee)});return u=Pn(u,o),u=t.reduce((c,f)=>Pn(c,f),u),u.unstable_sxConfig=F({},U1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return yv({sx:f,theme:this})},u}const q1=dM();function Vf(){const e=Y1(q1);return e[xu]||e}function Ge({props:e,name:t}){return cM({props:e,name:t,defaultTheme:q1,themeId:xu})}const ja=e=>Rh(e)&&e!=="classes",aee=Rh,ue=_$({themeId:xu,defaultTheme:q1,rootShouldForwardProp:ja}),oee=["theme"];function A$(e){let{theme:t}=e,r=ge(e,oee);const n=t[xu];return R.jsx(bJ,F({},r,{themeId:n?xu:void 0,theme:n||t}))}const cR=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function see(e){return Be("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lee=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],uee=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return Ve(i,see,n)},cee=ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),RC=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=ge(n,lee),p=N.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=uee(v);return R.jsxs(cee,F({as:s,className:ye(m.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?R.jsx("title",{children:f}):null]}))});RC.muiName="SvgIcon";function ki(e,t){function r(n,i){return R.jsx(RC,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=RC.muiName,N.memo(N.forwardRef(r))}const fee={configure:e=>{qA.configure(e)}},dee=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:MC,createSvgIcon:ki,debounce:vv,deprecatedPropType:HZ,isMuiElement:Dh,ownerDocument:sn,ownerWindow:za,requirePropFactory:WZ,setRef:$y,unstable_ClassNameGenerator:fee,unstable_useEnhancedEffect:_o,unstable_useId:YV,unsupportedProp:UZ,useControlled:wp,useEventCallback:wa,useForkRef:Tr,useIsFocusVisible:YA},Symbol.toStringTag,{value:"Module"}));function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},EC(e,t)}function M$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,EC(e,t)}const fR={disabled:!1},Wy=Hi.createContext(null);var hee=function(t){return t.scrollTop},nh="unmounted",Cl="exited",Tl="entering",Sc="entered",LC="exiting",ra=function(e){M$(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=Cl,a.appearStatus=Tl):l=Sc:n.unmountOnExit||n.mountOnEnter?l=nh:l=Cl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===nh?{status:Cl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Tl&&o!==Sc&&(a=Tl):(o===Tl||o===Sc)&&(a=LC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Tl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this);o&&hee(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cl&&this.setState({status:nh})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[fg.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||fR.disabled){this.safeSetState({status:Sc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Tl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Sc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:fg.findDOMNode(this);if(!a||fR.disabled){this.safeSetState({status:Cl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:LC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Cl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===nh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=ge(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Hi.createElement(Wy.Provider,{value:null},typeof o=="function"?o(i,s):Hi.cloneElement(Hi.Children.only(o),s))},t}(Hi.Component);ra.contextType=Wy;ra.propTypes={};function Xu(){}ra.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xu,onEntering:Xu,onEntered:Xu,onExit:Xu,onExiting:Xu,onExited:Xu};ra.UNMOUNTED=nh;ra.EXITED=Cl;ra.ENTERING=Tl;ra.ENTERED=Sc;ra.EXITING=LC;function pee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hM(e,t){var r=function(a){return t&&N.isValidElement(a)?t(a):a},n=Object.create(null);return e&&N.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function vee(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;o<n[l].length;o++){var u=n[l][o];s[n[l][o]]=r(u)}s[l]=r(l)}for(o=0;o<i.length;o++)s[i[o]]=r(i[o]);return s}function Hl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function gee(e,t){return hM(e.children,function(r){return N.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Hl(r,"appear",e),enter:Hl(r,"enter",e),exit:Hl(r,"exit",e)})})}function mee(e,t,r){var n=hM(e.children),i=vee(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(N.isValidElement(o)){var s=a in t,l=a in n,u=t[a],c=N.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[a]=N.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Hl(o,"exit",e),enter:Hl(o,"enter",e)}):!l&&s&&!c?i[a]=N.cloneElement(o,{in:!1}):l&&s&&N.isValidElement(u)&&(i[a]=N.cloneElement(o,{onExited:r.bind(null,o),in:u.props.in,exit:Hl(o,"exit",e),enter:Hl(o,"enter",e)}))}}),i}var yee=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xee={component:"div",childFactory:function(t){return t}},pM=function(e){M$(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(pee(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}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,a){var o=a.children,s=a.handleExited,l=a.firstRender;return{children:l?gee(i,s):mee(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=hM(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var l=F({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=ge(i,["component","childFactory"]),l=this.state.contextValue,u=yee(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?Hi.createElement(Wy.Provider,{value:l},u):Hi.createElement(Wy.Provider,{value:l},Hi.createElement(a,s,u))},t}(Hi.Component);pM.propTypes={};pM.defaultProps=xee;const k$=e=>e.scrollTop;function bf(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function See(e){return Be("MuiCollapse",e)}$e("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _ee=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],bee=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ve(n,See,r)},wee=ue("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]}})(({theme:e,ownerState:t})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Cee=ue("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Tee=ue("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),I$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:m="vertical",style:y,timeout:x=T$.standard,TransitionComponent:S=ra}=n,b=ge(n,_ee),_=F({},n,{orientation:m,collapsedSize:s}),w=bee(_),C=Vf(),T=N.useRef(),A=N.useRef(null),M=N.useRef(),k=typeof s=="number"?`${s}px`:s,I=m==="horizontal",P=I?"width":"height";N.useEffect(()=>()=>{clearTimeout(T.current)},[]);const E=N.useRef(null),z=Tr(r,E),$=U=>re=>{if(U){const Q=E.current;re===void 0?U(Q):U(Q,re)}},O=()=>A.current?A.current[I?"clientWidth":"clientHeight"]:0,V=$((U,re)=>{A.current&&I&&(A.current.style.position="absolute"),U.style[P]=k,f&&f(U,re)}),L=$((U,re)=>{const Q=O();A.current&&I&&(A.current.style.position="");const{duration:ae,easing:se}=bf({style:y,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const K=C.transitions.getAutoHeightDuration(Q);U.style.transitionDuration=`${K}ms`,M.current=K}else U.style.transitionDuration=typeof ae=="string"?ae:`${ae}ms`;U.style[P]=`${Q}px`,U.style.transitionTimingFunction=se,h&&h(U,re)}),G=$((U,re)=>{U.style[P]="auto",d&&d(U,re)}),W=$(U=>{U.style[P]=`${O()}px`,p&&p(U)}),B=$(v),X=$(U=>{const re=O(),{duration:Q,easing:ae}=bf({style:y,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const se=C.transitions.getAutoHeightDuration(re);U.style.transitionDuration=`${se}ms`,M.current=se}else U.style.transitionDuration=typeof Q=="string"?Q:`${Q}ms`;U.style[P]=k,U.style.transitionTimingFunction=ae,g&&g(U)}),te=U=>{x==="auto"&&(T.current=setTimeout(U,M.current||0)),i&&i(E.current,U)};return R.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:W,onExited:B,onExiting:X,addEndListener:te,nodeRef:E,timeout:x==="auto"?null:x},b,{children:(U,re)=>R.jsx(wee,F({as:l,className:ye(w.root,o,{entered:w.entered,exited:!c&&k==="0px"&&w.hidden}[U]),style:F({[I?"minWidth":"minHeight"]:k},y),ownerState:F({},_,{state:U}),ref:z},re,{children:R.jsx(Cee,{ownerState:F({},_,{state:U}),className:w.wrapper,ref:A,children:R.jsx(Tee,{ownerState:F({},_,{state:U}),className:w.wrapperInner,children:a})})}))}))});I$.muiSupportAuto=!0;function Aee(e){return Be("MuiPaper",e)}$e("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 Mee=["className","component","elevation","square","variant"],kee=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ve(a,Aee,i)},Iee=ue("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}`]]}})(({theme:e,ownerState:t})=>{var r;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${nr("#fff",cR(t.elevation))}, ${nr("#fff",cR(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Hs=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ge(n,Mee),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=kee(c);return R.jsx(Iee,F({as:a,ownerState:c,className:ye(f.root,i),ref:r},u))}),D$=N.createContext({});function Dee(e){return Be("MuiAccordion",e)}const vg=$e("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Pee=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Ree=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ve({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},Dee,t)},Eee=ue(Hs,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${vg.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({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"}},[`&.${vg.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${vg.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!t.square&&{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}}},!t.disableGutters&&{[`&.${vg.expanded}`]:{margin:"16px 0"}})),vM=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=I$,TransitionProps:h}=n,p=ge(n,Pee),[v,g]=wp({controlled:u,default:o,name:"Accordion",state:"expanded"}),m=N.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[y,...x]=N.Children.toArray(i),S=N.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:m}),[v,s,l,m]),b=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),_=Ree(b);return R.jsxs(Eee,F({className:ye(_.root,a),ref:r,ownerState:b,square:f},p,{children:[R.jsx(D$.Provider,{value:S,children:y}),R.jsx(d,F({in:v,timeout:"auto"},h,{children:R.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:_.region,children:x})}))]}))});function Lee(e){return Be("MuiAccordionDetails",e)}$e("MuiAccordionDetails",["root"]);const Oee=["className"],Nee=e=>{const{classes:t}=e;return Ve({root:["root"]},Lee,t)},zee=ue("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),gM=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ge(n,Oee),o=n,s=Nee(o);return R.jsx(zee,F({className:ye(s.root,i),ref:r,ownerState:o},a))});function Bee(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=N.useState(!1),d=ye(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=ye(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),N.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),R.jsx("span",{className:d,style:h,children:R.jsx("span",{className:p})})}const ci=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Fee=["center","classes","className"];let Z1=e=>e,dR,hR,pR,vR;const OC=550,Vee=80,$ee=nM(dR||(dR=Z1`
|
68
|
-
0% {
|
69
|
-
transform: scale(0);
|
70
|
-
opacity: 0.1;
|
71
|
-
}
|
72
|
-
|
73
|
-
100% {
|
74
|
-
transform: scale(1);
|
75
|
-
opacity: 0.3;
|
76
|
-
}
|
77
|
-
`)),Gee=nM(hR||(hR=Z1`
|
78
|
-
0% {
|
79
|
-
opacity: 1;
|
80
|
-
}
|
81
|
-
|
82
|
-
100% {
|
83
|
-
opacity: 0;
|
84
|
-
}
|
85
|
-
`)),Hee=nM(pR||(pR=Z1`
|
86
|
-
0% {
|
87
|
-
transform: scale(1);
|
88
|
-
}
|
89
|
-
|
90
|
-
50% {
|
91
|
-
transform: scale(0.92);
|
92
|
-
}
|
93
|
-
|
94
|
-
100% {
|
95
|
-
transform: scale(1);
|
96
|
-
}
|
97
|
-
`)),Wee=ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jee=ue(Bee,{name:"MuiTouchRipple",slot:"Ripple"})(vR||(vR=Z1`
|
98
|
-
opacity: 0;
|
99
|
-
position: absolute;
|
100
|
-
|
101
|
-
&.${0} {
|
102
|
-
opacity: 0.3;
|
103
|
-
transform: scale(1);
|
104
|
-
animation-name: ${0};
|
105
|
-
animation-duration: ${0}ms;
|
106
|
-
animation-timing-function: ${0};
|
107
|
-
}
|
108
|
-
|
109
|
-
&.${0} {
|
110
|
-
animation-duration: ${0}ms;
|
111
|
-
}
|
112
|
-
|
113
|
-
& .${0} {
|
114
|
-
opacity: 1;
|
115
|
-
display: block;
|
116
|
-
width: 100%;
|
117
|
-
height: 100%;
|
118
|
-
border-radius: 50%;
|
119
|
-
background-color: currentColor;
|
120
|
-
}
|
121
|
-
|
122
|
-
& .${0} {
|
123
|
-
opacity: 0;
|
124
|
-
animation-name: ${0};
|
125
|
-
animation-duration: ${0}ms;
|
126
|
-
animation-timing-function: ${0};
|
127
|
-
}
|
128
|
-
|
129
|
-
& .${0} {
|
130
|
-
position: absolute;
|
131
|
-
/* @noflip */
|
132
|
-
left: 0px;
|
133
|
-
top: 0;
|
134
|
-
animation-name: ${0};
|
135
|
-
animation-duration: 2500ms;
|
136
|
-
animation-timing-function: ${0};
|
137
|
-
animation-iteration-count: infinite;
|
138
|
-
animation-delay: 200ms;
|
139
|
-
}
|
140
|
-
`),ci.rippleVisible,$ee,OC,({theme:e})=>e.transitions.easing.easeInOut,ci.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ci.child,ci.childLeaving,Gee,OC,({theme:e})=>e.transitions.easing.easeInOut,ci.childPulsate,Hee,({theme:e})=>e.transitions.easing.easeInOut),Uee=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ge(n,Fee),[l,u]=N.useState([]),c=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=N.useRef(!1),h=N.useRef(0),p=N.useRef(null),v=N.useRef(null);N.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=N.useCallback(S=>{const{pulsate:b,rippleX:_,rippleY:w,rippleSize:C,cb:T}=S;u(A=>[...A,R.jsx(jee,{classes:{ripple:ye(a.ripple,ci.ripple),rippleVisible:ye(a.rippleVisible,ci.rippleVisible),ripplePulsate:ye(a.ripplePulsate,ci.ripplePulsate),child:ye(a.child,ci.child),childLeaving:ye(a.childLeaving,ci.childLeaving),childPulsate:ye(a.childPulsate,ci.childPulsate)},timeout:OC,pulsate:b,rippleX:_,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=T},[a]),m=N.useCallback((S={},b={},_=()=>{})=>{const{pulsate:w=!1,center:C=i||b.pulsate,fakeElement:T=!1}=b;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const A=T?null:v.current,M=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,P;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:E,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(E-M.left),I=Math.round(z-M.top)}if(C)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const E=Math.max(Math.abs((A?A.clientWidth:0)-k),k)*2+2,z=Math.max(Math.abs((A?A.clientHeight:0)-I),I)*2+2;P=Math.sqrt(E**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:_})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},Vee)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:_})},[i,g]),y=N.useCallback(()=>{m({},{pulsate:!0})},[m]),x=N.useCallback((S,b)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,b)});return}p.current=null,u(_=>_.length>0?_.slice(1):_),f.current=b},[]);return N.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),R.jsx(Wee,F({className:ye(ci.root,a.root,o),ref:v},s,{children:R.jsx(pM,{component:null,exit:!0,children:l})}))});function Yee(e){return Be("MuiButtonBase",e)}const Xee=$e("MuiButtonBase",["root","disabled","focusVisible"]),qee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Zee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ve({root:["root",t&&"disabled",r&&"focusVisible"]},Yee,i);return r&&n&&(o.root+=` ${n}`),o},Kee=ue("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Xee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pu=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:b,onMouseDown:_,onMouseLeave:w,onMouseUp:C,onTouchEnd:T,onTouchMove:A,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:P,type:E}=n,z=ge(n,qee),$=N.useRef(null),O=N.useRef(null),V=Tr(O,P),{isFocusVisibleRef:L,onFocus:G,onBlur:W,ref:B}=YA(),[X,te]=N.useState(!1);u&&X&&te(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{te(!0),$.current.focus()}}),[]);const[U,re]=N.useState(!1);N.useEffect(()=>{re(!0)},[]);const Q=U&&!c&&!u;N.useEffect(()=>{X&&d&&!c&&U&&O.current.pulsate()},[c,d,X,U]);function ae(he,$t,Sr=f){return wa(Me=>($t&&$t(Me),!Sr&&O.current&&O.current[he](Me),!0))}const se=ae("start",_),K=ae("stop",g),ee=ae("stop",m),me=ae("stop",C),ve=ae("stop",he=>{X&&he.preventDefault(),w&&w(he)}),Le=ae("start",M),tt=ae("stop",T),Ke=ae("stop",A),ht=ae("stop",he=>{W(he),L.current===!1&&te(!1),p&&p(he)},!1),pt=wa(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(te(!0),x&&x(he)),y&&y(he)}),Bt=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},nt=N.useRef(!1),kr=wa(he=>{d&&!nt.current&&X&&O.current&&he.key===" "&&(nt.current=!0,O.current.stop(he,()=>{O.current.start(he)})),he.target===he.currentTarget&&Bt()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&Bt()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),jt=wa(he=>{d&&he.key===" "&&O.current&&X&&!he.defaultPrevented&&(nt.current=!1,O.current.stop(he,()=>{O.current.pulsate(he)})),b&&b(he),v&&he.target===he.currentTarget&&Bt()&&he.key===" "&&!he.defaultPrevented&&v(he)});let It=l;It==="button"&&(z.href||z.to)&&(It=h);const Z={};It==="button"?(Z.type=E===void 0?"button":E,Z.disabled=u):(!z.href&&!z.to&&(Z.role="button"),u&&(Z["aria-disabled"]=u));const ce=Tr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:X}),Te=Zee(Re);return R.jsxs(Kee,F({as:It,className:ye(Te.root,s),ownerState:Re,onBlur:ht,onClick:v,onContextMenu:K,onFocus:pt,onKeyDown:kr,onKeyUp:jt,onMouseDown:se,onMouseLeave:ve,onMouseUp:me,onDragLeave:ee,onTouchEnd:tt,onTouchMove:Ke,onTouchStart:Le,ref:ce,tabIndex:u?-1:k,type:E},Z,z,{children:[o,Q?R.jsx(Uee,F({ref:V,center:a},I)):null]}))});function Qee(e){return Be("MuiAccordionSummary",e)}const Gc=$e("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Jee=["children","className","expandIcon","focusVisibleClassName","onClick"],ete=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ve({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Qee,t)},tte=ue(Pu,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Gc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Gc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Gc.expanded}`]:{minHeight:64}})}),rte=ue("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Gc.expanded}`]:{margin:"20px 0"}})),nte=ue("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Gc.expanded}`]:{transform:"rotate(180deg)"}})),mM=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ge(n,Jee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=N.useContext(D$),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=ete(v);return R.jsxs(tte,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:ye(g.root,a),focusVisibleClassName:ye(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[R.jsx(rte,{className:g.content,ownerState:v,children:i}),o&&R.jsx(nte,{className:g.expandIconWrapper,ownerState:v,children:o})]}))});function ite(e){return Be("MuiAlert",e)}const gR=$e("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function ate(e){return Be("MuiIconButton",e)}const ote=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ste=["edge","children","className","color","disabled","disableFocusRipple","size"],lte=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(a)}`]};return Ve(o,ate,t)},ute=ue(Pu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ote.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Sv=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=ge(n,ste),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=lte(d);return R.jsx(ute,F({className:ye(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),cte=ki(R.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"}),"SuccessOutlined"),fte=ki(R.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),dte=ki(R.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"}),"ErrorOutline"),hte=ki(R.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"}),"InfoOutlined"),pte=ki(R.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"}),"Close"),vte=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],gte=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${xe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ve(a,ite,i)},mte=ue(Hs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Mp:kp,n=e.palette.mode==="light"?kp:Mp,i=t.color||t.severity;return F({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${gR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${gR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&F({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),yte=ue("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xte=ue("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),mR=ue("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yR={success:R.jsx(cte,{fontSize:"inherit"}),warning:R.jsx(fte,{fontSize:"inherit"}),error:R.jsx(dte,{fontSize:"inherit"}),info:R.jsx(hte,{fontSize:"inherit"})},Ste=N.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ge({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:p,components:v={},componentsProps:g={},icon:m,iconMapping:y=yR,onClose:x,role:S="alert",severity:b="success",slotProps:_={},slots:w={},variant:C="standard"}=u,T=ge(u,vte),A=F({},u,{color:p,severity:b,variant:C}),M=gte(A),k=(n=(i=w.closeButton)!=null?i:v.CloseButton)!=null?n:Sv,I=(a=(o=w.closeIcon)!=null?o:v.CloseIcon)!=null?a:pte,P=(s=_.closeButton)!=null?s:g.closeButton,E=(l=_.closeIcon)!=null?l:g.closeIcon;return R.jsxs(mte,F({role:S,elevation:0,ownerState:A,className:ye(M.root,d),ref:r},T,{children:[m!==!1?R.jsx(yte,{ownerState:A,className:M.icon,children:m||y[b]||yR[b]}):null,R.jsx(xte,{ownerState:A,className:M.message,children:f}),c!=null?R.jsx(mR,{ownerState:A,className:M.action,children:c}):null,c==null&&x?R.jsx(mR,{ownerState:A,className:M.action,children:R.jsx(k,F({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},P,{children:R.jsx(I,F({fontSize:"small"},E))}))}):null]}))});function _te(e){return Be("MuiTypography",e)}$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bte=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wte=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ve(s,_te,o)},Cte=ue("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${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),xR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tte={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ate=e=>Tte[e]||e,ot=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),i=Ate(n.color),a=uM(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=xR}=a,p=ge(a,bte),v=F({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||xR[d])||"span",m=wte(v);return R.jsx(Cte,F({as:g,ref:r,ownerState:v,className:ye(m.root,s)},p))});function Mte(e){return Be("MuiAppBar",e)}$e("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const kte=["className","color","enableColorOnDark","position"],Ite=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return Ve(i,Mte,n)},gg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Dte=ue(Hs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&F({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Pte=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ge(n,kte),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Ite(u);return R.jsx(Dte,F({square:!0,component:"header",ownerState:u,elevation:4,className:ye(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function wf(e){return typeof e=="string"}function Rte(e,t,r){return e===void 0||wf(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function P$(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 Ete(e,t,r){return typeof e=="function"?e(t,r):e}function SR(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 Lte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=ye(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=P$(F({},i,n)),s=SR(n),l=SR(i),u=t(o),c=ye(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=F({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=F({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const Ote=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ba(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ge(e,Ote),s=a?{}:Ete(n,i),{props:l,internalRef:u}=Lte(F({},o,{externalSlotProps:s})),c=Tr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Rte(r,F({},l,{ref:c}),i)}const Nte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zte(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 Bte(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 Fte(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Bte(e))}function Vte(e){const t=[],r=[];return Array.from(e.querySelectorAll(Nte)).forEach((n,i)=>{const a=zte(n);a===-1||!Fte(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,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 $te(){return!0}function Gte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Vte,isEnabled:o=$te,open:s}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),f=N.useRef(null),d=N.useRef(null),h=N.useRef(!1),p=N.useRef(null),v=Tr(t.ref,p),g=N.useRef(null);N.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),N.useEffect(()=>{if(!s||!p.current)return;const x=sn(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),N.useEffect(()=>{if(!s||!p.current)return;const x=sn(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},b=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var T,A;const M=!!((T=g.current)!=null&&T.shiftKey&&((A=g.current)==null?void 0:A.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",b),x.addEventListener("keydown",S,!0);const _=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(_),x.removeEventListener("focusin",b),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return R.jsxs(N.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:v,onFocus:m}),R.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function Hte(e){return typeof e=="function"?e():e}const Wte=N.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=N.useState(null),l=Tr(N.isValidElement(n)?n.ref:null,r);if(_o(()=>{a||s(Hte(i)||document.body)},[i,a]),_o(()=>{if(o&&!a)return $y(r,o),()=>{$y(r,null)}},[r,o,a]),a){if(N.isValidElement(n)){const u={ref:l};return N.cloneElement(n,u)}return R.jsx(N.Fragment,{children:n})}return R.jsx(N.Fragment,{children:o&&f1.createPortal(n,o)})});function jte(e){const t=sn(e);return t.body===e?za(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Eh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _R(e){return parseInt(za(e).getComputedStyle(e).paddingRight,10)||0}function Ute(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function bR(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Ute(o);s&&l&&Eh(o,i)})}function LS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Yte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(jte(n)){const o=XV(sn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${_R(n)+o}px`;const s=sn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${_R(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=sn(n).body;else{const o=n.parentElement,s=za(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function Xte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class qte{constructor(){this.containers=void 0,this.modals=void 0,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&&Eh(t.modalRef,!1);const i=Xte(r);bR(r,t.mount,t.modalRef,i,!0);const a=LS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=LS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Yte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=LS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Eh(t.modalRef,r),bR(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Eh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Zte(e){return typeof e=="function"?e():e}function Kte(e){return e?e.props.hasOwnProperty("in"):!1}const Qte=new qte;function Jte(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Qte,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=N.useRef({}),h=N.useRef(null),p=N.useRef(null),v=Tr(p,f),[g,m]=N.useState(!c),y=Kte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>sn(h.current),b=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),_=()=>{i.mount(b(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=wa(()=>{const z=Zte(t)||S().body;i.add(b(),z),p.current&&_()}),C=N.useCallback(()=>i.isTopModal(b()),[i]),T=wa(z=>{h.current=z,z&&(c&&C()?_():p.current&&Eh(p.current,x))}),A=N.useCallback(()=>{i.remove(b(),x)},[x,i]);N.useEffect(()=>()=>{A()},[A]),N.useEffect(()=>{c?w():(!y||!a)&&A()},[c,A,y,a,w]);const M=z=>$=>{var O;(O=z.onKeyDown)==null||O.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},k=z=>$=>{var O;(O=z.onClick)==null||O.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=P$(e);delete $.onTransitionEnter,delete $.onTransitionExited;const O=F({},$,z);return F({role:"presentation"},O,{onKeyDown:M(O),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:k($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&A()};return{onEnter:MC(z,l==null?void 0:l.props.onEnter),onExited:MC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:T,isTopModal:C,exited:g,hasTransition:y}}const ere=["onChange","maxRows","minRows","style","value"];function mg(e){return parseInt(e,10)||0}const tre={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const rre=N.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ge(t,ere),{current:u}=N.useRef(s!=null),c=N.useRef(null),f=Tr(r,c),d=N.useRef(null),h=N.useRef(0),[p,v]=N.useState({outerHeightStyle:0}),g=N.useCallback(()=>{const b=c.current,w=za(b).getComputedStyle(b);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=b.value||t.placeholder||"x",C.value.slice(-1)===`
|
141
|
-
`&&(C.value+=" ");const T=w.boxSizing,A=mg(w.paddingBottom)+mg(w.paddingTop),M=mg(w.borderBottomWidth)+mg(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let P=k;a&&(P=Math.max(Number(a)*I,P)),i&&(P=Math.min(Number(i)*I,P)),P=Math.max(P,I);const E=P+(T==="border-box"?A+M:0),z=Math.abs(P-k)<=1;return{outerHeightStyle:E,overflow:z}},[i,a,t.placeholder]),m=(b,_)=>{const{outerHeightStyle:w,overflow:C}=_;return h.current<20&&(w>0&&Math.abs((b.outerHeightStyle||0)-w)>1||b.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):b},y=N.useCallback(()=>{const b=g();wR(b)||v(_=>m(_,b))},[g]),x=()=>{const b=g();wR(b)||f1.flushSync(()=>{v(_=>m(_,b))})};N.useEffect(()=>{const b=()=>{h.current=0,c.current&&x()},_=vv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,T=za(C);return T.addEventListener("resize",_),typeof ResizeObserver<"u"&&(w=new ResizeObserver(b),w.observe(C)),()=>{_.clear(),T.removeEventListener("resize",_),w&&w.disconnect()}}),_o(()=>{y()}),N.useEffect(()=>{h.current=0},[s]);const S=b=>{h.current=0,u||y(),n&&n(b)};return R.jsxs(N.Fragment,{children:[R.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},tre.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Ws({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 yM=N.createContext(void 0);function Po(){return N.useContext(yM)}function R$(e){return R.jsx(JQ,F({},e,{defaultTheme:q1,themeId:xu}))}function CR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function jy(e,t=!1){return e&&(CR(e.value)&&e.value!==""||t&&CR(e.defaultValue)&&e.defaultValue!=="")}function nre(e){return e.startAdornment}function ire(e){return Be("MuiInputBase",e)}const Cf=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),are=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],K1=(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${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Q1=(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]},ore=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${xe(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Ve(v,ire,t)},J1=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:K1})(({theme:e,ownerState:t})=>F({},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",[`&.${Cf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ex=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return F({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Cf.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Cf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),sre=R.jsx(R$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lre=N.forwardRef(function(t,r){var n;const i=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:b,multiline:_=!1,name:w,onBlur:C,onChange:T,onClick:A,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:P,readOnly:E,renderSuffix:z,rows:$,slotProps:O={},slots:V={},startAdornment:L,type:G="text",value:W}=i,B=ge(i,are),X=y.value!=null?y.value:W,{current:te}=N.useRef(X!=null),U=N.useRef(),re=N.useCallback(Te=>{},[]),Q=Tr(U,x,y.ref,re),[ae,se]=N.useState(!1),K=Po(),ee=Ws({props:i,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=K?K.focused:ae,N.useEffect(()=>{!K&&d&&ae&&(se(!1),C&&C())},[K,d,ae,C]);const me=K&&K.onFilled,ve=K&&K.onEmpty,Le=N.useCallback(Te=>{jy(Te)?me&&me():ve&&ve()},[me,ve]);_o(()=>{te&&Le({value:X})},[X,Le,te]);const tt=Te=>{if(ee.disabled){Te.stopPropagation();return}M&&M(Te),y.onFocus&&y.onFocus(Te),K&&K.onFocus?K.onFocus(Te):se(!0)},Ke=Te=>{C&&C(Te),y.onBlur&&y.onBlur(Te),K&&K.onBlur?K.onBlur(Te):se(!1)},ht=(Te,...he)=>{if(!te){const $t=Te.target||U.current;if($t==null)throw new Error(Ps(1));Le({value:$t.value})}y.onChange&&y.onChange(Te,...he),T&&T(Te,...he)};N.useEffect(()=>{Le(U.current)},[]);const pt=Te=>{U.current&&Te.currentTarget===Te.target&&U.current.focus(),A&&A(Te)};let Bt=m,nt=y;_&&Bt==="input"&&($?nt=F({type:void 0,minRows:$,maxRows:$},nt):nt=F({type:void 0,maxRows:S,minRows:b},nt),Bt=rre);const kr=Te=>{Le(Te.animationName==="mui-auto-fill-cancel"?U.current:{value:"x"})};N.useEffect(()=>{K&&K.setAdornedStart(!!L)},[K,L]);const jt=F({},i,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:p,error:ee.error,focused:ee.focused,formControl:K,fullWidth:v,hiddenLabel:ee.hiddenLabel,multiline:_,size:ee.size,startAdornment:L,type:G}),It=ore(jt),Z=V.root||u.Root||J1,ce=O.root||c.root||{},Re=V.input||u.Input||ex;return nt=F({},nt,(n=O.input)!=null?n:c.input),R.jsxs(N.Fragment,{children:[!h&&sre,R.jsxs(Z,F({},ce,!wf(Z)&&{ownerState:F({},jt,ce.ownerState)},{ref:r,onClick:pt},B,{className:ye(It.root,ce.className,l,E&&"MuiInputBase-readOnly"),children:[L,R.jsx(yM.Provider,{value:null,children:R.jsx(Re,F({ownerState:jt,"aria-invalid":ee.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:ee.disabled,id:g,onAnimationStart:kr,name:w,placeholder:P,readOnly:E,required:ee.required,rows:$,value:X,onKeyDown:k,onKeyUp:I,type:G},nt,!wf(Re)&&{as:Bt,ownerState:F({},jt,nt.ownerState)},{ref:Q,className:ye(It.input,nt.className,E&&"MuiInputBase-readOnly"),onBlur:Ke,onChange:ht,onFocus:tt}))}),p,z?z(F({},ee,{startAdornment:L})):null]}))]})}),xM=lre;function ure(e){return Be("MuiInput",e)}const yd=F({},Cf,$e("MuiInput",["root","underline","input"]));function cre(e){return Be("MuiOutlinedInput",e)}const zo=F({},Cf,$e("MuiOutlinedInput",["root","notchedOutline","input"]));function fre(e){return Be("MuiFilledInput",e)}const Xs=F({},Cf,$e("MuiFilledInput",["root","underline","input"])),dre=ki(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),hre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pre={entering:{opacity:1},entered:{opacity:1}},vre=N.forwardRef(function(t,r){const n=Vf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=ra}=t,x=ge(t,hre),S=N.useRef(null),b=Tr(S,s.ref,r),_=P=>E=>{if(P){const z=S.current;E===void 0?P(z):P(z,E)}},w=_(d),C=_((P,E)=>{k$(P);const z=bf({style:g,timeout:m,easing:l},{mode:"enter"});P.style.webkitTransition=n.transitions.create("opacity",z),P.style.transition=n.transitions.create("opacity",z),c&&c(P,E)}),T=_(f),A=_(v),M=_(P=>{const E=bf({style:g,timeout:m,easing:l},{mode:"exit"});P.style.webkitTransition=n.transitions.create("opacity",E),P.style.transition=n.transitions.create("opacity",E),h&&h(P)}),k=_(p),I=P=>{a&&a(S.current,P)};return R.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:T,onEntering:w,onExit:M,onExited:k,onExiting:A,addEndListener:I,timeout:m},x,{children:(P,E)=>N.cloneElement(s,F({style:F({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},pre[P],g,s.props.style),ref:b},E))}))});function gre(e){return Be("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const mre=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yre=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},gre,t)},xre=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"},e.invisible&&{backgroundColor:"transparent"})),Sre=N.forwardRef(function(t,r){var n,i,a;const o=Ge({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=vre,transitionDuration:m}=o,y=ge(o,mre),x=F({},o,{component:u,invisible:d}),S=yre(x),b=(n=p.root)!=null?n:f.root;return R.jsx(g,F({in:h,timeout:m},y,{children:R.jsx(xre,F({"aria-hidden":!0},b,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:ye(S.root,l,b==null?void 0:b.className),ownerState:F({},x,b==null?void 0:b.ownerState),classes:S,ref:r,children:s}))}))}),_re=dM(),Ct=nJ({themeId:xu,defaultTheme:_re,defaultClassName:"MuiBox-root",generateClassName:qA.generate});function bre(e){return Be("MuiButton",e)}const yg=$e("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),wre=N.createContext({}),Cre=N.createContext(void 0),Tre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Are=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(i)}`,`${a}Size${xe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(i)}`],endIcon:["endIcon",`iconSize${xe(i)}`]},l=Ve(s,bre,o);return F({},o,l)},E$=e=>F({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Mre=ue(Pu,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return F({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yg.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yg.disabled}`]:F({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${nr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yg.disabled}`]:{boxShadow:"none"}}),kre=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},E$(e))),Ire=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},E$(e))),Ua=N.forwardRef(function(t,r){const n=N.useContext(wre),i=N.useContext(Cre),a=XA(n,t),o=Ge({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,b=ge(o,Tre),_=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=Are(_),C=y&&R.jsx(kre,{className:w.startIcon,ownerState:_,children:y}),T=p&&R.jsx(Ire,{className:w.endIcon,ownerState:_,children:p}),A=i||"";return R.jsxs(Mre,F({ownerState:_,className:ye(n.className,w.root,c,A),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ye(w.focusVisible,v),ref:r,type:x},b,{classes:w,children:[C,s,T]}))});function Dre(e){return Be("PrivateSwitchBase",e)}$e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Pre=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Rre=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${xe(i)}`],input:["input"]};return Ve(a,Dre,t)},Ere=ue(Pu)(({ownerState:e})=>F({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Lre=ue("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),L$=N.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:b,type:_,value:w}=t,C=ge(t,Pre),[T,A]=wp({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=Po(),k=V=>{y&&y(V),M&&M.onFocus&&M.onFocus(V)},I=V=>{g&&g(V),M&&M.onBlur&&M.onBlur(V)},P=V=>{if(V.nativeEvent.defaultPrevented)return;const L=V.target.checked;A(L),m&&m(V,L)};let E=l;M&&typeof E>"u"&&(E=M.disabled);const z=_==="checkbox"||_==="radio",$=F({},t,{checked:T,disabled:E,disableFocusRipple:u,edge:c}),O=Rre($);return R.jsxs(Ere,F({component:"span",className:ye(O.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:$,ref:r},C,{children:[R.jsx(Lre,F({autoFocus:n,checked:i,defaultChecked:s,className:O.input,disabled:E,id:z?d:void 0,name:v,onChange:P,readOnly:x,ref:p,required:S,ownerState:$,tabIndex:b,type:_},_==="checkbox"&&w===void 0?{}:{value:w},h)),T?a:f]}))}),Ore=ki(R.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"}),"CheckBoxOutlineBlank"),Nre=ki(R.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"}),"CheckBox"),zre=ki(R.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"}),"IndeterminateCheckBox");function Bre(e){return Be("MuiCheckbox",e)}const OS=$e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Fre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Vre=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=Ve(a,Bre,t);return F({},t,o)},$re=ue(L$,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${OS.checked}, &.${OS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${OS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Gre=R.jsx(Nre,{}),Hre=R.jsx(Ore,{}),Wre=R.jsx(zre,{}),NC=N.forwardRef(function(t,r){var n,i;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Gre,color:s="primary",icon:l=Hre,indeterminate:u=!1,indeterminateIcon:c=Wre,inputProps:f,size:d="medium",className:h}=a,p=ge(a,Fre),v=u?c:l,g=u?c:o,m=F({},a,{color:s,indeterminate:u,size:d}),y=Vre(m);return R.jsx($re,F({type:"checkbox",inputProps:F({"data-indeterminate":u},f),icon:N.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:N.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:ye(y.root,h)},p,{classes:y}))}),_v=kJ({createStyledComponent:ue("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ge({props:e,name:"MuiContainer"})}),jre=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Ure=e=>F({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}}),Yre=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=F({html:jre(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},Ure(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function O$(e){const t=Ge({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(N.Fragment,{children:[R.jsx(R$,{styles:i=>Yre(i,n)}),r]})}function Xre(e){return Be("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const qre=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Zre=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Xre,n)},Kre=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Qre=ue(Sre,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),N$=N.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ge({name:"MuiModal",props:t}),{BackdropComponent:c=Qre,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:b=!1,disablePortal:_=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:T=!1,keepMounted:A=!1,onBackdropClick:M,open:k,slotProps:I,slots:P}=u,E=ge(u,qre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:b,disablePortal:_,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:T,keepMounted:A}),{getRootProps:$,getBackdropProps:O,getTransitionProps:V,portalRef:L,isTopModal:G,exited:W,hasTransition:B}=Jte(F({},z,{rootRef:r})),X=F({},z,{exited:W}),te=Zre(X),U={};if(p.props.tabIndex===void 0&&(U.tabIndex="-1"),B){const{onEnter:me,onExited:ve}=V();U.onEnter=me,U.onExited=ve}const re=(n=(i=P==null?void 0:P.root)!=null?i:m.Root)!=null?n:Kre,Q=(a=(o=P==null?void 0:P.backdrop)!=null?o:m.Backdrop)!=null?a:c,ae=(s=I==null?void 0:I.root)!=null?s:y.root,se=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,K=Ba({elementType:re,externalSlotProps:ae,externalForwardedProps:E,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:X,className:ye(d,ae==null?void 0:ae.className,te==null?void 0:te.root,!X.open&&X.exited&&(te==null?void 0:te.hidden))}),ee=Ba({elementType:Q,externalSlotProps:se,additionalProps:f,getSlotProps:me=>O(F({},me,{onClick:ve=>{M&&M(ve),me!=null&&me.onClick&&me.onClick(ve)}})),className:ye(se==null?void 0:se.className,f==null?void 0:f.className,te==null?void 0:te.backdrop),ownerState:X});return!A&&!k&&(!B||W)?null:R.jsx(Wte,{ref:L,container:v,disablePortal:_,children:R.jsxs(re,F({},K,{children:[!T&&c?R.jsx(Q,F({},ee)):null,R.jsx(Gte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:N.cloneElement(p,U)})]}))})});function Jre(e){return Be("MuiDivider",e)}$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const ene=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],tne=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ve({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},Jre,n)},rne=ue("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]}})(({theme:e,ownerState:t})=>F({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:nr(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),nne=ue("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),_c=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=ge(n,ene),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=tne(v);return R.jsx(rne,F({as:s,className:ye(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?R.jsx(nne,{className:g.wrapper,ownerState:v,children:a}):null}))});_c.muiSkipListHighlight=!0;const ine=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ane=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},fre,t);return F({},t,i)},one=ue(J1,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...K1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return F({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Xs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Xs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,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"},[`&.${Xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xs.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})`:i}`,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(.${Xs.disabled}, .${Xs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),sne=ue(ex,{name:"MuiFilledInput",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>F({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),SM=N.forwardRef(function(t,r){var n,i,a,o;const s=Ge({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=ge(s,ine),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=ane(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?Pn(h??u,x):x,b=(n=(i=p.root)!=null?i:l.Root)!=null?n:one,_=(a=(o=p.input)!=null?o:l.Input)!=null?a:sne;return R.jsx(xM,F({slots:{root:b,input:_},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});SM.muiName="Input";function lne(e){return Be("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const une=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],cne=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return Ve(i,lne,t)},fne=ue("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),z$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=ge(n,une),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=cne(y),[S,b]=N.useState(()=>{let I=!1;return i&&N.Children.forEach(i,P=>{if(!Dh(P,["Input","Select"]))return;const E=Dh(P,["Select"])?P.props.input:P;E&&nre(E.props)&&(I=!0)}),I}),[_,w]=N.useState(()=>{let I=!1;return i&&N.Children.forEach(i,P=>{Dh(P,["Input","Select"])&&(jy(P.props,!0)||jy(P.props.inputProps,!0))&&(I=!0)}),I}),[C,T]=N.useState(!1);l&&C&&T(!1);const A=c!==void 0&&!l?c:C;let M;const k=N.useMemo(()=>({adornedStart:S,setAdornedStart:b,color:o,disabled:l,error:u,filled:_,focused:A,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{T(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{T(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,_,A,f,d,M,p,v,g]);return R.jsx(yM.Provider,{value:k,children:R.jsx(fne,F({as:s,ownerState:y,className:ye(x.root,a),ref:r},m,{children:i}))})}),B$=NJ({createStyledComponent:ue("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})});function dne(e){return Be("MuiFormControlLabel",e)}const ih=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),hne=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],pne=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ve(o,dne,t)},vne=ue("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ih.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>F({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ih.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ih.label}`]:{[`&.${ih.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),gne=ue("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ih.error}`]:{color:(e.vars||e).palette.error.main}})),F$=N.forwardRef(function(t,r){var n,i;const a=Ge({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=ge(a,hne),g=Po(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof l.props[T]>"u"&&typeof a[T]<"u"&&(x[T]=a[T])});const S=Ws({props:a,muiFormControl:g,states:["error"]}),b=F({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),_=pne(b),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==ot&&!c&&(C=R.jsx(ot,F({component:"span"},w,{className:ye(_.label,w==null?void 0:w.className),children:C}))),R.jsxs(vne,F({className:ye(_.root,o),ownerState:b,ref:r},v,{children:[N.cloneElement(l,x),y?R.jsxs(B$,{direction:"row",alignItems:"center",children:[C,R.jsxs(gne,{ownerState:b,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):C]}))});function mne(e){return Be("MuiFormGroup",e)}$e("MuiFormGroup",["root","row","error"]);const yne=["className","row"],xne=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},mne,t)},Sne=ue("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>F({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),V$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=ge(n,yne),s=Po(),l=Ws({props:n,muiFormControl:s,states:["error"]}),u=F({},n,{row:a,error:l.error}),c=xne(u);return R.jsx(Sne,F({className:ye(c.root,i),ownerState:u,ref:r},o))});function _ne(e){return Be("MuiFormHelperText",e)}const TR=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var AR;const bne=["children","className","component","disabled","error","filled","focused","margin","required","variant"],wne=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ve(u,_ne,t)},Cne=ue("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${TR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${TR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Tne=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ge(n,bne),l=Po(),u=Ws({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=wne(c);return R.jsx(Cne,F({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:i===" "?AR||(AR=R.jsx("span",{className:"notranslate",children:""})):i}))});function Ane(e){return Be("MuiFormLabel",e)}const Lh=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mne=["children","className","color","component","disabled","error","filled","focused","required"],kne=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${xe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ve(l,Ane,t)},Ine=ue("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Lh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),Dne=ue("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),Pne=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ge(n,Mne),l=Po(),u=Ws({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=kne(c);return R.jsxs(Ine,F({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[i,u.required&&R.jsxs(Dne,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Rne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zC(e){return`scale(${e}, ${e**2})`}const Ene={entering:{opacity:1,transform:zC(1)},entered:{opacity:1,transform:"none"}},NS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$$=N.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=ra}=t,m=ge(t,Rne),y=N.useRef(),x=N.useRef(),S=Vf(),b=N.useRef(null),_=Tr(b,a.ref,r),w=E=>z=>{if(E){const $=b.current;z===void 0?E($):E($,z)}},C=w(c),T=w((E,z)=>{k$(E);const{duration:$,delay:O,easing:V}=bf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(E.clientHeight),x.current=L):L=$,E.style.transition=[S.transitions.create("opacity",{duration:L,delay:O}),S.transitions.create("transform",{duration:NS?L:L*.666,delay:O,easing:V})].join(","),l&&l(E,z)}),A=w(u),M=w(h),k=w(E=>{const{duration:z,delay:$,easing:O}=bf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(E.clientHeight),x.current=V):V=z,E.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:NS?V:V*.666,delay:NS?$:$||V*.333,easing:O})].join(","),E.style.opacity=0,E.style.transform=zC(.75),f&&f(E)}),I=w(d),P=E=>{v==="auto"&&(y.current=setTimeout(E,x.current||0)),n&&n(b.current,E)};return N.useEffect(()=>()=>{clearTimeout(y.current)},[]),R.jsx(g,F({appear:i,in:s,nodeRef:b,onEnter:T,onEntered:A,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:P,timeout:v==="auto"?null:v},m,{children:(E,z)=>N.cloneElement(a,F({style:F({opacity:0,transform:zC(.75),visibility:E==="exited"&&!s?"hidden":void 0},Ene[E],p,a.props.style),ref:_},z))}))});$$.muiSupportAuto=!0;const Lne=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],One=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},ure,t);return F({},t,i)},Nne=ue(J1,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...K1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),F({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${yd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yd.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yd.disabled}, .${yd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${yd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),zne=ue(ex,{name:"MuiInput",slot:"Input",overridesResolver:Q1})({}),_M=N.forwardRef(function(t,r){var n,i,a,o;const s=Ge({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=ge(s,Lne),y=One(s),S={root:{ownerState:{disableUnderline:l}}},b=p??c?Pn(p??c,S):S,_=(n=(i=v.root)!=null?i:u.Root)!=null?n:Nne,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:zne;return R.jsx(xM,F({slots:{root:_,input:w},slotProps:b,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});_M.muiName="Input";function Bne(e){return Be("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fne=["disableAnimation","margin","shrink","variant","className"],Vne=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,o],asterisk:[s&&"asterisk"]},u=Ve(l,Bne,t);return F({},t,u)},$ne=ue(Pne,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lh.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>F({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&F({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&F({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&F({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),bM=N.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ge(n,Fne),l=Po();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Ws({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Vne(f);return R.jsx($ne,F({"data-shrink":u,ownerState:f,ref:r,className:ye(d.root,o)},s,{classes:d}))});function Gne(e){return Be("MuiLink",e)}const Hne=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),G$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wne=e=>G$[e]||e,jne=({theme:e,ownerState:t})=>{const r=Wne(t.color),n=_f(e,`palette.${r}`,!1)||t.color,i=_f(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:nr(n,.4)},Une=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Yne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ve(a,Gne,t)},Xne=ue(ot,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:jne({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${Hne.focusVisible}`]:{outline:"auto"}})),_n=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=ge(n,Une),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=YA(),[y,x]=N.useState(!1),S=Tr(r,m),b=T=>{v(T),p.current===!1&&x(!1),s&&s(T)},_=T=>{g(T),p.current===!0&&x(!0),l&&l(T)},w=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=Yne(w);return R.jsx(Xne,F({color:a,className:ye(C.root,i),classes:u,component:o,onBlur:b,onFocus:_,ref:S,ownerState:w,variant:f,sx:[...Object.keys(G$).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),Oh=N.createContext({});function qne(e){return Be("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Zne=["children","className","component","dense","disablePadding","subheader"],Kne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ve({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},qne,t)},Qne=ue("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]}})(({ownerState:e})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),H$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ge(n,Zne),f=N.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=Kne(d);return R.jsx(Oh.Provider,{value:f,children:R.jsxs(Qne,F({as:o,className:ye(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})});function Jne(e){return Be("MuiListItem",e)}const bc=$e("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),eie=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function tie(e){return Be("MuiListItemSecondaryAction",e)}$e("MuiListItemSecondaryAction",["root","disableGutters"]);const rie=["className"],nie=e=>{const{disableGutters:t,classes:r}=e;return Ve({root:["root",t&&"disableGutters"]},tie,r)},iie=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),W$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ge(n,rie),o=N.useContext(Oh),s=F({},n,{disableGutters:o.disableGutters}),l=nie(s);return R.jsx(iie,F({className:ye(l.root,i),ownerState:s,ref:r},a))});W$.muiName="ListItemSecondaryAction";const aie=["className"],oie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],sie=(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.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},lie=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ve({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Jne,n)},uie=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:sie})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${eie.root}`]:{paddingRight:48}},{[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),cie=ue("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),qu=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:b=!1,slotProps:_={},slots:w={}}=n,C=ge(n.ContainerProps,aie),T=ge(n,oie),A=N.useContext(Oh),M=N.useMemo(()=>({dense:p||A.dense||!1,alignItems:i,disableGutters:g}),[i,A.dense,p,g]),k=N.useRef(null);_o(()=>{a&&k.current&&k.current.focus()},[a]);const I=N.Children.toArray(s),P=I.length&&Dh(I[I.length-1],["ListItemSecondaryAction"]),E=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:P,selected:b}),z=lie(E),$=Tr(k,r),O=w.root||c.Root||uie,V=_.root||f.root||{},L=F({className:ye(z.root,V.className,l),disabled:v},T);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=ye(bc.focusVisible,x),G=Pu),P?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),R.jsx(Oh.Provider,{value:M,children:R.jsxs(cie,F({as:d,className:ye(z.container,h),ref:$,ownerState:E},C,{children:[R.jsx(O,F({},V,!wf(O)&&{as:G,ownerState:F({},E,V.ownerState)},L,{children:I})),I.pop()]}))})):R.jsx(Oh.Provider,{value:M,children:R.jsxs(O,F({},V,{as:G,ref:$},!wf(O)&&{ownerState:F({},E,V.ownerState)},L,{children:[I,S&&R.jsx(W$,{children:S})]}))})}),fie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function MR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function j$(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.indexOf(t.keys.join(""))===0}function xd(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!j$(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const die=N.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=ge(t,fie),h=N.useRef(null),p=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_o(()=>{i&&h.current.focus()},[i]),N.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const b=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&b){const _=`${XV(sn(x))}px`;h.current.style[S.direction==="rtl"?"paddingLeft":"paddingRight"]=_,h.current.style.width=`calc(100% + ${_})`}return h.current}}),[]);const v=x=>{const S=h.current,b=x.key,_=sn(S).activeElement;if(b==="ArrowDown")x.preventDefault(),xd(S,_,u,l,zS);else if(b==="ArrowUp")x.preventDefault(),xd(S,_,u,l,MR);else if(b==="Home")x.preventDefault(),xd(S,null,u,l,zS);else if(b==="End")x.preventDefault(),xd(S,null,u,l,MR);else if(b.length===1){const w=p.current,C=b.toLowerCase(),T=performance.now();w.keys.length>0&&(T-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=T,w.keys.push(C);const A=_&&!w.repeating&&j$(_,w);w.previousKeyMatched&&(A||xd(S,_,!1,l,zS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Tr(h,r);let m=-1;N.Children.forEach(o,(x,S)=>{if(!N.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=N.Children.map(o,(x,S)=>{if(S===m){const b={};return a&&(b.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(b.tabIndex=0),N.cloneElement(x,b)}return x});return R.jsx(H$,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))});function hie(e){return Be("MuiPopover",e)}$e("MuiPopover",["root","paper"]);const pie=["onEntering"],vie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gie=["slotProps"];function kR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function IR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function DR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function BS(e){return typeof e=="function"?e():e}const mie=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},hie,t)},yie=ue(N$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U$=ue(Hs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Y$=N.forwardRef(function(t,r){var n,i,a;const o=Ge({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:_=$$,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:T=!1}=o,A=ge(o.TransitionProps,pie),M=ge(o,vie),k=(n=S==null?void 0:S.paper)!=null?n:y,I=N.useRef(),P=Tr(I,k.ref),E=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:b,TransitionComponent:_,transitionDuration:w,TransitionProps:A}),z=mie(E),$=N.useCallback(()=>{if(f==="anchorPosition")return c;const me=BS(l),Le=(me&&me.nodeType===1?me:sn(I.current).body).getBoundingClientRect();return{top:Le.top+kR(Le,u.vertical),left:Le.left+IR(Le,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),O=N.useCallback(me=>({vertical:kR(me,b.vertical),horizontal:IR(me,b.horizontal)}),[b.horizontal,b.vertical]),V=N.useCallback(me=>{const ve={width:me.offsetWidth,height:me.offsetHeight},Le=O(ve);if(f==="none")return{top:null,left:null,transformOrigin:DR(Le)};const tt=$();let Ke=tt.top-Le.vertical,ht=tt.left-Le.horizontal;const pt=Ke+ve.height,Bt=ht+ve.width,nt=za(BS(l)),kr=nt.innerHeight-g,jt=nt.innerWidth-g;if(g!==null&&Ke<g){const It=Ke-g;Ke-=It,Le.vertical+=It}else if(g!==null&&pt>kr){const It=pt-kr;Ke-=It,Le.vertical+=It}if(g!==null&&ht<g){const It=ht-g;ht-=It,Le.horizontal+=It}else if(Bt>jt){const It=Bt-jt;ht-=It,Le.horizontal+=It}return{top:`${Math.round(Ke)}px`,left:`${Math.round(ht)}px`,transformOrigin:DR(Le)}},[l,f,$,O,g]),[L,G]=N.useState(m),W=N.useCallback(()=>{const me=I.current;if(!me)return;const ve=V(me);ve.top!==null&&(me.style.top=ve.top),ve.left!==null&&(me.style.left=ve.left),me.style.transformOrigin=ve.transformOrigin,G(!0)},[V]);N.useEffect(()=>(T&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[l,T,W]);const B=(me,ve)=>{C&&C(me,ve),W()},X=()=>{G(!1)};N.useEffect(()=>{m&&W()}),N.useImperativeHandle(s,()=>m?{updatePosition:()=>{W()}}:null,[m,W]),N.useEffect(()=>{if(!m)return;const me=vv(()=>{W()}),ve=za(l);return ve.addEventListener("resize",me),()=>{me.clear(),ve.removeEventListener("resize",me)}},[l,m,W]);let te=w;w==="auto"&&!_.muiSupportAuto&&(te=void 0);const U=p||(l?sn(BS(l)).body:void 0),re=(i=x==null?void 0:x.root)!=null?i:yie,Q=(a=x==null?void 0:x.paper)!=null?a:U$,ae=Ba({elementType:Q,externalSlotProps:F({},k,{style:L?k.style:F({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:P},ownerState:E,className:ye(z.paper,k==null?void 0:k.className)}),se=Ba({elementType:re,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:U,open:m},ownerState:E,className:ye(z.root,h)}),{slotProps:K}=se,ee=ge(se,gie);return R.jsx(re,F({},ee,!wf(re)&&{slotProps:K,disableScrollLock:T},{children:R.jsx(_,F({appear:!0,in:m,onEntering:B,onExited:X,timeout:te},A,{children:R.jsx(Q,F({},ae,{children:d}))}))}))});function xie(e){return Be("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Sie=["onEntering"],_ie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],bie={vertical:"top",horizontal:"right"},wie={vertical:"top",horizontal:"left"},Cie=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},xie,t)},Tie=ue(Y$,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Aie=ue(U$,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mie=ue(die,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kie=N.forwardRef(function(t,r){var n,i;const a=Ge({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=ge(a.TransitionProps,Sie),b=ge(a,_ie),_=Vf(),w=_.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),T=Cie(C),A=o&&!u&&d,M=N.useRef(null),k=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,_),g&&g(V,L)},I=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let P=-1;N.Children.map(s,(V,L)=>{N.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||P===-1)&&(P=L))});const E=(n=y.paper)!=null?n:Aie,z=(i=x.paper)!=null?i:h,$=Ba({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[T.root,l]}),O=Ba({elementType:E,externalSlotProps:z,ownerState:C,className:T.paper});return R.jsx(Tie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?bie:wie,slots:{paper:E,root:y.root},slotProps:{root:$,paper:O},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:k},S),ownerState:C},b,{classes:p,children:R.jsx(Mie,F({onKeyDown:I,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:A,variant:m},c,{className:ye(T.list,c.className),children:s}))}))});function Iie(e){return Be("MuiNativeSelect",e)}const wM=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Die=["className","disabled","error","IconComponent","inputRef","variant"],Pie=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return Ve(s,Iie,t)},X$=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${wM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Rie=ue("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ja,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${wM.multiple}`]:t.multiple}]}})(X$),q$=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Eie=ue("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(q$),Lie=N.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ge(t,Die),c=F({},t,{disabled:i,variant:l,error:a}),f=Pie(c);return R.jsxs(N.Fragment,{children:[R.jsx(Rie,F({ownerState:c,className:ye(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:R.jsx(Eie,{as:o,ownerState:c,className:f.icon})]})});var PR;const Oie=["children","classes","className","label","notched"],Nie=ue("fieldset")({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%"}),zie=ue("legend")(({ownerState:e,theme:t})=>F({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&F({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Bie(e){const{className:t,label:r,notched:n}=e,i=ge(e,Oie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return R.jsx(Nie,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:R.jsx(zie,{ownerState:o,children:a?R.jsx("span",{children:r}):PR||(PR=R.jsx("span",{className:"notranslate",children:""}))})}))}const Fie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Vie=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cre,t);return F({},t,n)},$ie=ue(J1,{shouldForwardProp:e=>ja(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:K1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${zo.focused} .${zo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zo.error} .${zo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zo.disabled} .${zo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Gie=ue(Bie,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Hie=ue(ex,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>F({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),CM=N.forwardRef(function(t,r){var n,i,a,o,s;const l=Ge({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=ge(l,Fie),y=Vie(l),x=Po(),S=Ws({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b=F({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),_=(n=(i=v.root)!=null?i:u.Root)!=null?n:$ie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Hie;return R.jsx(xM,F({slots:{root:_,input:w},renderSuffix:C=>R.jsx(Gie,{ownerState:b,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=R.jsxs(N.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:F({},y,{notchedOutline:null})}))});CM.muiName="Input";function Wie(e){return Be("MuiSelect",e)}const Sd=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var RR;const jie=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Uie=ue("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Sd.select}`]:t.select},{[`&.${Sd.select}`]:t[r.variant]},{[`&.${Sd.error}`]:t.error},{[`&.${Sd.multiple}`]:t.multiple}]}})(X$,{[`&.${Sd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Yie=ue("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(q$),Xie=ue("input",{shouldForwardProp:e=>aee(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ER(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qie(e){return e==null||typeof e=="string"&&!e.trim()}const Zie=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ve(s,Wie,t)},Kie=N.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:b,onChange:_,onClose:w,onFocus:C,onOpen:T,open:A,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:P,value:E,variant:z="standard"}=t,$=ge(t,jie),[O,V]=wp({controlled:E,default:f,name:"Select"}),[L,G]=wp({controlled:A,default:c,name:"Select"}),W=N.useRef(null),B=N.useRef(null),[X,te]=N.useState(null),{current:U}=N.useRef(A!=null),[re,Q]=N.useState(),ae=Tr(r,g),se=N.useCallback(Me=>{B.current=Me,Me&&te(Me)},[]),K=X==null?void 0:X.parentNode;N.useImperativeHandle(ae,()=>({focus:()=>{B.current.focus()},node:W.current,value:O}),[O]),N.useEffect(()=>{c&&L&&X&&!U&&(Q(s?null:K.clientWidth),B.current.focus())},[X,s]),N.useEffect(()=>{o&&B.current.focus()},[o]),N.useEffect(()=>{if(!m)return;const Me=sn(B.current).getElementById(m);if(Me){const lt=()=>{getSelection().isCollapsed&&B.current.focus()};return Me.addEventListener("click",lt),()=>{Me.removeEventListener("click",lt)}}},[m]);const ee=(Me,lt)=>{Me?T&&T(lt):w&&w(lt),U||(Q(s?null:K.clientWidth),G(Me))},me=Me=>{Me.button===0&&(Me.preventDefault(),B.current.focus(),ee(!0,Me))},ve=Me=>{ee(!1,Me)},Le=N.Children.toArray(l),tt=Me=>{const lt=Le.find(Rt=>Rt.props.value===Me.target.value);lt!==void 0&&(V(lt.props.value),_&&_(Me,lt))},Ke=Me=>lt=>{let Rt;if(lt.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(O)?O.slice():[];const pe=O.indexOf(Me.props.value);pe===-1?Rt.push(Me.props.value):Rt.splice(pe,1)}else Rt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(lt),O!==Rt&&(V(Rt),_)){const pe=lt.nativeEvent||lt,Pe=new pe.constructor(pe.type,pe);Object.defineProperty(Pe,"target",{writable:!0,value:{value:Rt,name:S}}),_(Pe,Me)}x||ee(!1,lt)}},ht=Me=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Me.key)!==-1&&(Me.preventDefault(),ee(!0,Me))},pt=X!==null&&L,Bt=Me=>{!pt&&b&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:O,name:S}}),b(Me))};delete $["aria-invalid"];let nt,kr;const jt=[];let It=!1;(jy({value:O})||h)&&(k?nt=k(O):It=!0);const Z=Le.map(Me=>{if(!N.isValidElement(Me))return null;let lt;if(x){if(!Array.isArray(O))throw new Error(Ps(2));lt=O.some(Rt=>ER(Rt,Me.props.value)),lt&&It&&jt.push(Me.props.children)}else lt=ER(O,Me.props.value),lt&&It&&(kr=Me.props.children);return N.cloneElement(Me,{"aria-selected":lt?"true":"false",onClick:Ke(Me),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(Rt)},role:"option",selected:lt,value:void 0,"data-value":Me.props.value})});It&&(x?jt.length===0?nt=null:nt=jt.reduce((Me,lt,Rt)=>(Me.push(lt),Rt<jt.length-1&&Me.push(", "),Me),[]):nt=kr);let ce=re;!s&&U&&X&&(ce=K.clientWidth);let Re;typeof P<"u"?Re=P:Re=d?null:0;const Te=I.id||(S?`mui-component-select-${S}`:void 0),he=F({},t,{variant:z,value:O,open:pt,error:p}),$t=Zie(he),Sr=F({},y.PaperProps,(n=y.slotProps)==null?void 0:n.paper);return R.jsxs(N.Fragment,{children:[R.jsx(Uie,F({ref:se,tabIndex:Re,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":pt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[m,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:ht,onMouseDown:d||M?null:me,onBlur:Bt,onFocus:C},I,{ownerState:he,className:ye(I.className,$t.select,u),id:Te,children:qie(nt)?RR||(RR=R.jsx("span",{className:"notranslate",children:""})):nt})),R.jsx(Xie,F({"aria-invalid":p,value:Array.isArray(O)?O.join(","):O,name:S,ref:W,"aria-hidden":!0,onChange:tt,tabIndex:-1,disabled:d,className:$t.nativeInput,autoFocus:o,ownerState:he},$)),R.jsx(Yie,{as:v,className:$t.icon,ownerState:he}),R.jsx(kie,F({id:`menu-${S||""}`,anchorEl:K,open:pt,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:F({"aria-labelledby":m,role:"listbox",disableListWrap:!0},y.MenuListProps),slotProps:{paper:F({},Sr,{style:F({minWidth:ce},Sr!=null?Sr.style:null)})},children:Z}))]})}),Qie=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Jie=["root"],eae=e=>{const{classes:t}=e;return t},TM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ja(e)&&e!=="variant",slot:"Root"},tae=ue(_M,TM)(""),rae=ue(CM,TM)(""),nae=ue(SM,TM)(""),AM=N.forwardRef(function(t,r){const n=Ge({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=dre,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:b,renderValue:_,SelectDisplayProps:w,variant:C="outlined"}=n,T=ge(n,Qie),A=y?Lie:Kie,M=Po(),k=Ws({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,P=F({},n,{variant:I,classes:o}),E=eae(P),z=ge(E,Jie),$=d||{standard:R.jsx(tae,{ownerState:P}),outlined:R.jsx(rae,{label:p,ownerState:P}),filled:R.jsx(nae,{ownerState:P})}[I],O=Tr(r,$.ref);return R.jsx(N.Fragment,{children:N.cloneElement($,F({inputComponent:A,inputProps:F({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:b,renderValue:_,SelectDisplayProps:F({id:f},w)},h,{classes:h?Pn(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:O,className:ye($.props.className,s,E.root)},!d&&{variant:I},T))})});AM.muiName="Select";function iae(e){return Be("MuiSwitch",e)}const Jr=$e("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),aae=["className","color","edge","size","sx"],oae=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ve(s,iae,t);return F({},t,l)},sae=ue("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({ownerState:e})=>F({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Jr.thumb}`]:{width:16,height:16},[`& .${Jr.switchBase}`]:{padding:4,[`&.${Jr.checked}`]:{transform:"translateX(16px)"}}})),lae=ue(L$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Jr.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({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}),[`&.${Jr.checked}`]:{transform:"translateX(20px)"},[`&.${Jr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Jr.checked} + .${Jr.track}`]:{opacity:.5},[`&.${Jr.disabled} + .${Jr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Jr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>F({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Jr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?kp(e.palette[t.color].main,.62):Mp(e.palette[t.color].main,.55)}`}},[`&.${Jr.checked} + .${Jr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),uae=ue("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({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}`})),cae=ue("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),fae=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=ge(n,aae),c=F({},n,{color:a,edge:o,size:s}),f=oae(c),d=R.jsx(cae,{className:f.thumb,ownerState:c});return R.jsxs(sae,{className:ye(f.root,i),sx:l,ownerState:c,children:[R.jsx(lae,F({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:F({},f,{root:f.switchBase})})),R.jsx(uae,{className:f.track,ownerState:c})]})});function dae(e){return Be("MuiTab",e)}const qs=$e("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),hae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],pae=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ve(u,dae,t)},vae=ue(Pu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${qs.iconWrapper}`]:F({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${qs.selected}`]:{opacity:1},[`&.${qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${qs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${qs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),gae=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=ge(n,hae),b=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),_=pae(b),w=l&&f&&N.isValidElement(l)?N.cloneElement(l,{className:ye(_.iconWrapper,l.props.className)}):l,C=A=>{!v&&d&&d(A,y),h&&h(A)},T=A=>{g&&!v&&d&&d(A,y),p&&p(A)};return R.jsxs(vae,F({focusRipple:!o,className:ye(_.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:T,ownerState:b,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?R.jsxs(N.Fragment,{children:[w,f]}):R.jsxs(N.Fragment,{children:[f,w]}),c]}))}),Z$=N.createContext();function mae(e){return Be("MuiTable",e)}$e("MuiTable",["root","stickyHeader"]);const yae=["className","component","padding","size","stickyHeader"],xae=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},mae,t)},Sae=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),LR="table",K$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:i,component:a=LR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ge(n,yae),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=xae(c),d=N.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return R.jsx(Z$.Provider,{value:d,children:R.jsx(Sae,F({as:a,role:a===LR?null:"table",ref:r,className:ye(f.root,i),ownerState:c},u))})}),tx=N.createContext();function _ae(e){return Be("MuiTableBody",e)}$e("MuiTableBody",["root"]);const bae=["className","component"],wae=e=>{const{classes:t}=e;return Ve({root:["root"]},_ae,t)},Cae=ue("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Tae={variant:"body"},OR="tbody",Q$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:i,component:a=OR}=n,o=ge(n,bae),s=F({},n,{component:a}),l=wae(s);return R.jsx(tx.Provider,{value:Tae,children:R.jsx(Cae,F({className:ye(l.root,i),as:a,ref:r,role:a===OR?null:"rowgroup",ownerState:s},o))})});function Aae(e){return Be("MuiTableCell",e)}const Mae=$e("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),kae=["align","className","component","padding","scope","size","sortDirection","variant"],Iae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(a)}`]};return Ve(s,Aae,t)},Dae=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
142
|
-
${e.palette.mode==="light"?kp(nr(e.palette.divider,1),.88):Mp(nr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Mae.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),El=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ge(n,kae),h=N.useContext(Z$),p=N.useContext(tx),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=F({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=Iae(x);let b=null;return c&&(b=c==="asc"?"ascending":"descending"),R.jsx(Dae,F({as:g,ref:r,className:ye(S.root,a),"aria-sort":b,scope:m,ownerState:x},d))});function Pae(e){return Be("MuiTableContainer",e)}$e("MuiTableContainer",["root"]);const Rae=["className","component"],Eae=e=>{const{classes:t}=e;return Ve({root:["root"]},Pae,t)},Lae=ue("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),J$=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ge(n,Rae),s=F({},n,{component:a}),l=Eae(s);return R.jsx(Lae,F({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))});function Oae(e){return Be("MuiTableHead",e)}$e("MuiTableHead",["root"]);const Nae=["className","component"],zae=e=>{const{classes:t}=e;return Ve({root:["root"]},Oae,t)},Bae=ue("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Fae={variant:"head"},NR="thead",eG=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:i,component:a=NR}=n,o=ge(n,Nae),s=F({},n,{component:a}),l=zae(s);return R.jsx(tx.Provider,{value:Fae,children:R.jsx(Bae,F({as:a,className:ye(l.root,i),ref:r,role:a===NR?null:"rowgroup",ownerState:s},o))})});function Vae(e){return Be("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const $ae=["className","component","disableGutters","variant"],Gae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},Vae,t)},Hae=ue("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>F({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Wae=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ge(n,$ae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Gae(u);return R.jsx(Hae,F({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),jae=ki(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Uae=ki(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Yae(e){return Be("MuiTableRow",e)}const zR=$e("MuiTableRow",["root","selected","hover","head","footer"]),Xae=["className","component","hover","selected"],qae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ve({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Yae,t)},Zae=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(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}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),BR="tr",Uy=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:i,component:a=BR,hover:o=!1,selected:s=!1}=n,l=ge(n,Xae),u=N.useContext(tx),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=qae(c);return R.jsx(Zae,F({as:a,ref:r,className:ye(f.root,i),role:a===BR?null:"row",ownerState:c},l))});function Kae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Qae(e,t,r,n={},i=()=>{}){const{ease:a=Kae,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Jae=["onChange"],eoe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function toe(e){const{onChange:t}=e,r=ge(e,Jae),n=N.useRef(),i=N.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return _o(()=>{const o=vv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=za(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),N.useEffect(()=>{a(),t(n.current)},[t]),R.jsx("div",F({style:eoe,ref:i},r))}function roe(e){return Be("MuiTabScrollButton",e)}const noe=$e("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ioe=["className","slots","slotProps","direction","orientation","disabled"],aoe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},roe,t)},ooe=ue(Pu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${noe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),soe=N.forwardRef(function(t,r){var n,i;const a=Ge({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ge(a,ioe),d=Vf().direction==="rtl",h=F({isRtl:d},a),p=aoe(h),v=(n=s.StartScrollButtonIcon)!=null?n:jae,g=(i=s.EndScrollButtonIcon)!=null?i:Uae,m=Ba({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ba({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return R.jsx(ooe,F({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?R.jsx(v,F({},m)):R.jsx(g,F({},y))}))});function loe(e){return Be("MuiTabs",e)}const FS=$e("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),uoe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],FR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,VR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},coe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ve({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},loe,l)},foe=ue("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${FS.scrollButtons}`]:t.scrollButtons},{[`& .${FS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${FS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),doe=ue("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]}})(({ownerState:e})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),hoe=ue("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),poe=ue("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),voe=ue(toe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$R={},goe=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),i=Vf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=soe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:b={},TabIndicatorProps:_={},TabScrollButtonProps:w={},textColor:C="primary",value:T,variant:A="standard",visibleScrollbar:M=!1}=n,k=ge(n,uoe),I=A==="scrollable",P=g==="vertical",E=P?"scrollTop":"scrollLeft",z=P?"top":"left",$=P?"bottom":"right",O=P?"clientHeight":"clientWidth",V=P?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:P,scrollButtons:y,textColor:C,variant:A,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!P,scrollableY:I&&P,centered:u&&!I,scrollButtonsHideMobile:!h}),G=coe(L),W=Ba({elementType:S.StartScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:L}),B=Ba({elementType:S.EndScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:L}),[X,te]=N.useState(!1),[U,re]=N.useState($R),[Q,ae]=N.useState(!1),[se,K]=N.useState(!1),[ee,me]=N.useState(!1),[ve,Le]=N.useState({overflow:"hidden",scrollbarWidth:0}),tt=new Map,Ke=N.useRef(null),ht=N.useRef(null),pt=()=>{const pe=Ke.current;let Pe;if(pe){const St=pe.getBoundingClientRect();Pe={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:JZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:St.top,bottom:St.bottom,left:St.left,right:St.right}}let Xe;if(pe&&T!==!1){const St=ht.current.children;if(St.length>0){const Fr=St[tt.get(T)];Xe=Fr?Fr.getBoundingClientRect():null}}return{tabsMeta:Pe,tabMeta:Xe}},Bt=wa(()=>{const{tabsMeta:pe,tabMeta:Pe}=pt();let Xe=0,St;if(P)St="top",Pe&&pe&&(Xe=Pe.top-pe.top+pe.scrollTop);else if(St=a?"right":"left",Pe&&pe){const Oo=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;Xe=(a?-1:1)*(Pe[St]-pe[St]+Oo)}const Fr={[St]:Xe,[V]:Pe?Pe[V]:0};if(isNaN(U[St])||isNaN(U[V]))re(Fr);else{const Oo=Math.abs(U[St]-Fr[St]),Yv=Math.abs(U[V]-Fr[V]);(Oo>=1||Yv>=1)&&re(Fr)}}),nt=(pe,{animation:Pe=!0}={})=>{Pe?Qae(E,Ke.current,pe,{duration:i.transitions.duration.standard}):Ke.current[E]=pe},kr=pe=>{let Pe=Ke.current[E];P?Pe+=pe:(Pe+=pe*(a?-1:1),Pe*=a&&qV()==="reverse"?-1:1),nt(Pe)},jt=()=>{const pe=Ke.current[O];let Pe=0;const Xe=Array.from(ht.current.children);for(let St=0;St<Xe.length;St+=1){const Fr=Xe[St];if(Pe+Fr[O]>pe){St===0&&(Pe=pe);break}Pe+=Fr[O]}return Pe},It=()=>{kr(-1*jt())},Z=()=>{kr(jt())},ce=N.useCallback(pe=>{Le({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=I?R.jsx(voe,{onChange:ce,className:ye(G.scrollableX,G.hideScrollbar)}):null;const Xe=I&&(y==="auto"&&(Q||se)||y===!0);return pe.scrollButtonStart=Xe?R.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:g,direction:a?"right":"left",onClick:It,disabled:!Q},w,{className:ye(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=Xe?R.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:Z,disabled:!se},w,{className:ye(G.scrollButtons,w.className)})):null,pe},Te=wa(pe=>{const{tabsMeta:Pe,tabMeta:Xe}=pt();if(!(!Xe||!Pe)){if(Xe[z]<Pe[z]){const St=Pe[E]+(Xe[z]-Pe[z]);nt(St,{animation:pe})}else if(Xe[$]>Pe[$]){const St=Pe[E]+(Xe[$]-Pe[$]);nt(St,{animation:pe})}}}),he=wa(()=>{I&&y!==!1&&me(!ee)});N.useEffect(()=>{const pe=vv(()=>{Ke.current&&Bt()}),Pe=za(Ke.current);Pe.addEventListener("resize",pe);let Xe;return typeof ResizeObserver<"u"&&(Xe=new ResizeObserver(pe),Array.from(ht.current.children).forEach(St=>{Xe.observe(St)})),()=>{pe.clear(),Pe.removeEventListener("resize",pe),Xe&&Xe.disconnect()}},[Bt]),N.useEffect(()=>{const pe=Array.from(ht.current.children),Pe=pe.length;if(typeof IntersectionObserver<"u"&&Pe>0&&I&&y!==!1){const Xe=pe[0],St=pe[Pe-1],Fr={root:Ke.current,threshold:.99},Oo=Zx=>{ae(!Zx[0].isIntersecting)},Yv=new IntersectionObserver(Oo,Fr);Yv.observe(Xe);const JU=Zx=>{K(!Zx[0].isIntersecting)},sD=new IntersectionObserver(JU,Fr);return sD.observe(St),()=>{Yv.disconnect(),sD.disconnect()}}},[I,y,ee,c==null?void 0:c.length]),N.useEffect(()=>{te(!0)},[]),N.useEffect(()=>{Bt()}),N.useEffect(()=>{Te($R!==U)},[Te,U]),N.useImperativeHandle(l,()=>({updateIndicator:Bt,updateScrollButtons:he}),[Bt,he]);const $t=R.jsx(poe,F({},_,{className:ye(G.indicator,_.className),ownerState:L,style:F({},U,_.style)}));let Sr=0;const Me=N.Children.map(c,pe=>{if(!N.isValidElement(pe))return null;const Pe=pe.props.value===void 0?Sr:pe.props.value;tt.set(Pe,Sr);const Xe=Pe===T;return Sr+=1,N.cloneElement(pe,F({fullWidth:A==="fullWidth",indicator:Xe&&!X&&$t,selected:Xe,selectionFollowsFocus:x,onChange:v,textColor:C,value:Pe},Sr===1&&T===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),lt=pe=>{const Pe=ht.current,Xe=sn(Pe).activeElement;if(Xe.getAttribute("role")!=="tab")return;let Fr=g==="horizontal"?"ArrowLeft":"ArrowUp",Oo=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Fr="ArrowRight",Oo="ArrowLeft"),pe.key){case Fr:pe.preventDefault(),xg(Pe,Xe,VR);break;case Oo:pe.preventDefault(),xg(Pe,Xe,FR);break;case"Home":pe.preventDefault(),xg(Pe,null,FR);break;case"End":pe.preventDefault(),xg(Pe,null,VR);break}},Rt=Re();return R.jsxs(foe,F({className:ye(G.root,f),ownerState:L,ref:r,as:d},k,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,R.jsxs(doe,{className:G.scroller,ownerState:L,style:{overflow:ve.overflow,[P?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-ve.scrollbarWidth},ref:Ke,children:[R.jsx(hoe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:lt,ref:ht,role:"tablist",children:Me}),X&&$t]}),Rt.scrollButtonEnd]}))});function moe(e){return Be("MuiTextField",e)}$e("MuiTextField",["root"]);const yoe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],xoe={standard:_M,filled:SM,outlined:CM},Soe=e=>{const{classes:t}=e;return Ve({root:["root"]},moe,t)},_oe=ue(z$,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ca=N.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:b,minRows:_,multiline:w=!1,name:C,onBlur:T,onChange:A,onFocus:M,placeholder:k,required:I=!1,rows:P,select:E=!1,SelectProps:z,type:$,value:O,variant:V="outlined"}=n,L=ge(n,yoe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:E,variant:V}),W=Soe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),E&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const X=YV(v),te=p&&X?`${X}-helper-text`:void 0,U=S&&X?`${X}-label`:void 0,re=xoe[V],Q=R.jsx(re,F({"aria-describedby":te,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:P,maxRows:b,minRows:_,type:$,value:O,id:X,inputRef:x,onBlur:T,onChange:A,onFocus:M,placeholder:k,inputProps:m},B,y));return R.jsxs(_oe,F({className:ye(W.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&R.jsx(bM,F({htmlFor:X,id:U},g,{children:S})),E?R.jsx(AM,F({"aria-describedby":te,id:X,labelId:U,value:O,input:Q},z,{children:o})):Q,p&&R.jsx(Tne,F({id:te},d,{children:p}))]}))}),tG=""+new URL("logo-D7qLhWk4.png",import.meta.url).href;var MM={},rG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rG);var Ru=rG.exports,VS={};const boe=n7(dee);var GR;function Eu(){return GR||(GR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=boe}(VS)),VS}var woe=Ru;Object.defineProperty(MM,"__esModule",{value:!0});var nG=MM.default=void 0,Coe=woe(Eu()),Toe=R,Aoe=(0,Coe.default)((0,Toe.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 12 20 8.69zM12 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 6z"}),"Brightness4");nG=MM.default=Aoe;var kM={},Moe=Ru;Object.defineProperty(kM,"__esModule",{value:!0});var iG=kM.default=void 0,koe=Moe(Eu()),Ioe=R,Doe=(0,koe.default)((0,Ioe.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 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");iG=kM.default=Doe;const Ra={DARK:"dark",LIGHT:"light"},Poe=localStorage.theme===Ra.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ra.DARK:Ra.LIGHT,Ya=RV,Roe=$V;function Wl(e,t){const r=Roe();return N.useCallback(n=>{r(e(n))},[e,r])}const Eoe={isDarkMode:!1},aG=hi({name:"theme",initialState:Eoe,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Loe=aG.actions,oG=aG.reducer;function sG(){const e=Ya(({theme:{isDarkMode:n}})=>n),t=Wl(Loe.setIsDarkMode);N.useEffect(()=>{t(Poe===Ra.DARK)},[]);const r=()=>{localStorage.theme=e?Ra.LIGHT:Ra.DARK,t(!e)};return R.jsx(Sv,{color:"inherit",onClick:r,children:e?R.jsx(iG,{}):R.jsx(nG,{})})}const Ooe=e=>dM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function lG(){const e=Ya(({theme:{isDarkMode:r}})=>r);return N.useMemo(()=>Ooe(e?Ra.DARK:Ra.LIGHT),[e])}function Noe({authProviders:e,error:t,usernamePasswordCallback:r}){const n=lG();return R.jsxs(A$,{theme:n,children:[R.jsx(O$,{}),R.jsx(Ct,{sx:{position:"absolute",top:4,right:4},children:R.jsx(sG,{})}),R.jsxs(Ct,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[R.jsxs(Ct,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:[R.jsx("img",{height:"52",src:tG,width:"52"}),R.jsx(ot,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),r&&R.jsx("form",{action:r,children:R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[R.jsx(Ca,{label:"Username",name:"username"}),R.jsx(Ca,{label:"Password",name:"password",type:"password"}),t&&R.jsx(Ste,{severity:"error",children:t}),R.jsx(Ua,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&R.jsx(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:i,callbackUrl:a,iconUrl:o},s)=>R.jsxs(Sv,{href:a,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[R.jsx("img",{height:"32",src:o}),R.jsx(ot,{height:"32",variant:"button",children:i})]},`auth-provider-${s}`))})]})]})}var IM={},zoe=Ru;Object.defineProperty(IM,"__esModule",{value:!0});var uG=IM.default=void 0,Boe=zoe(Eu()),Foe=R,Voe=(0,Boe.default)((0,Foe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");uG=IM.default=Voe;function rx({open:e,onClose:t,children:r}){return R.jsx(N$,{onClose:t,open:e,children:R.jsxs(Ct,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[R.jsx(Sv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:R.jsx(uG,{})}),r]})})}function $oe(){const[e,t]=N.useState(!1),r=Ya(({swarm:n})=>n.version);return R.jsxs(R.Fragment,{children:[R.jsx(Ct,{sx:{display:"flex",justifyContent:"flex-end"},children:R.jsx(Ua,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),R.jsxs(rx,{onClose:()=>t(!1),open:e,children:[R.jsxs("div",{children:[R.jsx(ot,{component:"h2",mb:1,variant:"h4",children:"About"}),R.jsxs(ot,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",R.jsx(_n,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),R.jsxs(ot,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",R.jsx(_n,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",R.jsx(_n,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),R.jsxs(ot,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",R.jsx(_n,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),R.jsxs("div",{children:[R.jsx(ot,{component:"h2",mb:1,variant:"h4",children:"Version"}),R.jsx(_n,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),R.jsxs("div",{children:[R.jsx(ot,{component:"h2",mb:1,variant:"h4",children:"Links"}),R.jsx(ot,{component:"p",variant:"subtitle1",children:R.jsx(_n,{href:"https://github.com/locustio/locust",children:"GitHub"})}),R.jsx(ot,{component:"p",variant:"subtitle1",children:R.jsx(_n,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function Goe(){return R.jsx(_v,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:R.jsx($oe,{})})}const Ll=e=>Array.isArray(e)?e.length:Object.keys(e).length,Hoe=e=>Ll(e)===0;function Woe(e,t){return{...e,...t}}const joe=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},nx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Si={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ea=window.templateArgs?$c(window.templateArgs):{};var ZF;Ea.isReport&&{...Ea,charts:(ZF=Ea.history)==null||ZF.reduce((e,{currentResponseTimePercentiles:t,...r})=>nx(e,{...t,...r}),{})};function Uoe({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return R.jsxs(Ct,{sx:{display:"flex",columnGap:2},children:[R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(ot,{variant:"button",children:"Host"}),R.jsx(ot,{children:r})]}),R.jsx(_c,{flexItem:!0,orientation:"vertical"}),R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(ot,{variant:"button",children:"Status"}),R.jsx(ot,{variant:"button",children:t})]}),(t===Si.RUNNING||t===Si.SPAWNING)&&R.jsxs(R.Fragment,{children:[R.jsx(_c,{flexItem:!0,orientation:"vertical"}),R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(ot,{variant:"button",children:"Users"}),R.jsx(ot,{variant:"button",children:a})]})]}),e&&R.jsxs(R.Fragment,{children:[R.jsx(_c,{flexItem:!0,orientation:"vertical"}),R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(ot,{variant:"button",children:"Workers"}),R.jsx(ot,{variant:"button",children:o})]})]}),R.jsx(_c,{flexItem:!0,orientation:"vertical"}),R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(ot,{variant:"button",children:"RPS"}),R.jsx(ot,{variant:"button",children:n})]}),R.jsx(_c,{flexItem:!0,orientation:"vertical"}),R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(ot,{variant:"button",children:"Failures"}),R.jsx(ot,{variant:"button",children:`${i}%`})]})]})}const Yoe=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Xoe=Nn(Yoe)(Uoe),qoe="input, select, textarea",Zoe=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 DM({children:e,onSubmit:t}){const r=N.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(qoe)].reduce((o,s)=>({...o,[s.name]:Zoe(s)}),{});t(a)},[t]);return R.jsx("form",{onSubmit:r,children:e})}var cG=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(cG||{});function Koe(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function Qoe(e){return new RegExp("(^|:)//").test(e)}var Joe=e=>e.replace(/\/$/,""),ese=e=>e.replace(/^\//,"");function tse(e,t){if(!e)return t;if(!t)return e;if(Qoe(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Joe(e),t=ese(t),`${e}${r}${t}`}var HR=e=>[].concat(...e);function rse(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function nse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var WR=Na;function fG(e,t){if(e===t||!(WR(e)&&WR(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 a=Array.isArray(t)?[]:{};for(const o of r)a[o]=fG(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var jR=(...e)=>fetch(...e),ise=e=>e.status>=200&&e.status<=299,ase=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function UR(e){if(!Na(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function ose({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=jR,paramsSerializer:n,isJsonContentType:i=ase,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===jR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:p,getState:v,extra:g,endpoint:m,forced:y,type:x}=h;let S,{url:b,headers:_=new Headers(c.headers),params:w=void 0,responseHandler:C=l??"json",validateStatus:T=u??ise,timeout:A=s,...M}=typeof d=="string"?{url:d}:d,k={...c,signal:p,...M};_=new Headers(UR(_)),k.headers=await t(_,{getState:v,extra:g,endpoint:m,forced:y,type:x})||_;const I=W=>typeof W=="object"&&(Na(W)||Array.isArray(W)||typeof W.toJSON=="function");if(!k.headers.has("content-type")&&I(k.body)&&k.headers.set("content-type",a),I(k.body)&&i(k.headers)&&(k.body=JSON.stringify(k.body,o)),w){const W=~b.indexOf("?")?"&":"?",B=n?n(w):new URLSearchParams(UR(w));b+=W+B}b=tse(e,b);const P=new Request(b,k);S={request:new Request(b,k)};let z,$=!1,O=A&&setTimeout(()=>{$=!0,h.abort()},A);try{z=await r(P)}catch(W){return{error:{status:$?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(W)},meta:S}}finally{O&&clearTimeout(O)}const V=z.clone();S.response=V;let L,G="";try{let W;if(await Promise.all([f(z,C).then(B=>L=B,B=>W=B),V.text().then(B=>G=B,()=>{})]),W)throw W}catch(W){return{error:{status:"PARSING_ERROR",originalStatus:z.status,data:G,error:String(W)},meta:S}}return T(z,L)?{data:L,meta:S}:{error:{status:z.status,data:L},meta:S}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const p=await d.text();return p.length?JSON.parse(p):null}return d.text()}}var YR=class{constructor(e,t=void 0){this.value=e,this.meta=t}},PM=on("__rtkq/focused"),dG=on("__rtkq/unfocused"),RM=on("__rtkq/online"),hG=on("__rtkq/offline");function pG(e){return e.type==="query"}function sse(e){return e.type==="mutation"}function EM(e,t,r,n,i,a){return lse(e)?e(t,r,n,i).map(BC).map(a):Array.isArray(e)?e.map(BC).map(a):[]}function lse(e){return typeof e=="function"}function BC(e){return typeof e=="string"?{type:e}:e}function XR(e){return e!=null}function tf(e){let t=0;for(const r in e)t++;return t}function use(e,t){return e.catch(t)}var Ip=Symbol("forceQueryFn"),FC=e=>typeof e[Ip]=="function";function cse({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:p,buildInitiateMutation:v,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(g,m){return y=>{var b;const x=i.endpointDefinitions[g],S=e({queryArgs:m,endpointDefinition:x,endpointName:g});return(b=a.get(y))==null?void 0:b[S]}}function f(g,m){return y=>{var x;return(x=o.get(y))==null?void 0:x[m]}}function d(){return g=>Object.values(a.get(g)||{}).filter(XR)}function h(){return g=>Object.values(o.get(g)||{}).filter(XR)}function p(g,m){const y=(x,{subscribe:S=!0,forceRefetch:b,subscriptionOptions:_,[Ip]:w,...C}={})=>(T,A)=>{var W;const M=e({queryArgs:x,endpointDefinition:m,endpointName:g}),k=t({...C,type:"query",subscribe:S,forceRefetch:b,subscriptionOptions:_,endpointName:g,originalArgs:x,queryCacheKey:M,[Ip]:w}),I=n.endpoints[g].select(x),P=T(k),E=I(A()),{requestId:z,abort:$}=P,O=E.requestId!==z,V=(W=a.get(T))==null?void 0:W[M],L=()=>I(A()),G=Object.assign(w?P.then(L):O&&!V?Promise.resolve(E):Promise.all([V,P]).then(L),{arg:x,requestId:z,subscriptionOptions:_,queryCacheKey:M,abort:$,async unwrap(){const B=await G;if(B.isError)throw B.error;return B.data},refetch:()=>T(y(x,{subscribe:!1,forceRefetch:!0})),unsubscribe(){S&&T(s({queryCacheKey:M,requestId:z}))},updateSubscriptionOptions(B){G.subscriptionOptions=B,T(u({endpointName:g,requestId:z,queryCacheKey:M,options:B}))}});if(!V&&!O&&!w){const B=a.get(T)||{};B[M]=G,a.set(T,B),G.then(()=>{delete B[M],tf(B)||a.delete(T)})}return G};return y}function v(g){return(m,{track:y=!0,fixedCacheKey:x}={})=>(S,b)=>{const _=r({type:"mutation",endpointName:g,originalArgs:m,track:y,fixedCacheKey:x}),w=S(_),{requestId:C,abort:T,unwrap:A}=w,M=use(w.unwrap().then(E=>({data:E})),E=>({error:E})),k=()=>{S(l({requestId:C,fixedCacheKey:x}))},I=Object.assign(M,{arg:w.arg,requestId:C,abort:T,unwrap:A,reset:k}),P=o.get(S)||{};return o.set(S,P),P[C]=I,I.then(()=>{delete P[C],tf(P)||o.delete(S)}),x&&(P[x]=I,I.then(()=>{P[x]===I&&(delete P[x],tf(P)||o.delete(S))})),I}}}function qR(e){return e}function fse({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(y,x,S,b)=>(_,w)=>{const C=r[y],T=n({queryArgs:x,endpointDefinition:C,endpointName:y});if(_(i.internalActions.queryResultPatched({queryCacheKey:T,patches:S})),!b)return;const A=i.endpoints[y].select(x)(w()),M=EM(C.providesTags,A.data,void 0,x,{},a);_(i.internalActions.updateProvidedBy({queryCacheKey:T,providedTags:M}))},s=(y,x,S,b=!0)=>(_,w)=>{const T=i.endpoints[y].select(x)(w());let A={patches:[],inversePatches:[],undo:()=>_(i.util.patchQueryData(y,x,A.inversePatches,b))};if(T.status==="uninitialized")return A;let M;if("data"in T)if(Qi(T.data)){const[k,I,P]=xV(T.data,S);A.patches.push(...I),A.inversePatches.push(...P),M=k}else M=S(T.data),A.patches.push({op:"replace",path:[],value:M}),A.inversePatches.push({op:"replace",path:[],value:T.data});return A.patches.length===0||_(i.util.patchQueryData(y,x,A.patches,b)),A},l=(y,x,S)=>b=>b(i.endpoints[y].initiate(x,{subscribe:!1,forceRefetch:!0,[Ip]:()=>({data:S})})),u=async(y,{signal:x,abort:S,rejectWithValue:b,fulfillWithValue:_,dispatch:w,getState:C,extra:T})=>{const A=r[y.endpointName];try{let M=qR,k;const I={signal:x,abort:S,dispatch:w,getState:C,extra:T,endpoint:y.endpointName,type:y.type,forced:y.type==="query"?c(y,C()):void 0},P=y.type==="query"?y[Ip]:void 0;if(P?k=P():A.query?(k=await t(A.query(y.originalArgs),I,A.extraOptions),A.transformResponse&&(M=A.transformResponse)):k=await A.queryFn(y.originalArgs,I,A.extraOptions,E=>t(E,I,A.extraOptions)),typeof process<"u",k.error)throw new YR(k.error,k.meta);return _(await M(k.data,k.meta,y.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:k.meta,[Vc]:!0})}catch(M){let k=M;if(k instanceof YR){let I=qR;A.query&&A.transformErrorResponse&&(I=A.transformErrorResponse);try{return b(await I(k.value,k.meta,y.originalArgs),{baseQueryMeta:k.meta,[Vc]:!0})}catch(P){k=P}}throw typeof process<"u",console.error(k),k}};function c(y,x){var C,T,A;const S=(T=(C=x[e])==null?void 0:C.queries)==null?void 0:T[y.queryCacheKey],b=(A=x[e])==null?void 0:A.config.refetchOnMountOrArgChange,_=S==null?void 0:S.fulfilledTimeStamp,w=y.forceRefetch??(y.subscribe&&b);return w?w===!0||(Number(new Date)-Number(_))/1e3>=w:!1}const f=kP(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Vc]:!0}},condition(y,{getState:x}){var A,M,k;const S=x(),b=(M=(A=S[e])==null?void 0:A.queries)==null?void 0:M[y.queryCacheKey],_=b==null?void 0:b.fulfilledTimeStamp,w=y.originalArgs,C=b==null?void 0:b.originalArgs,T=r[y.endpointName];return FC(y)?!0:(b==null?void 0:b.status)==="pending"?!1:c(y,S)||pG(T)&&((k=T==null?void 0:T.forceRefetch)!=null&&k.call(T,{currentArg:w,previousArg:C,endpointState:b,state:S}))?!0:!_},dispatchConditionRejection:!0}),d=kP(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Vc]:!0}}}),h=y=>"force"in y,p=y=>"ifOlderThan"in y,v=(y,x,S)=>(b,_)=>{const w=h(S)&&S.force,C=p(S)&&S.ifOlderThan,T=(M=!0)=>{const k={forceRefetch:M,isPrefetch:!0};return i.endpoints[y].initiate(x,k)},A=i.endpoints[y].select(x)(_());if(w)b(T());else if(C){const M=A==null?void 0:A.fulfilledTimeStamp;if(!M){b(T());return}(Number(new Date)-Number(new Date(M)))/1e3>=C&&b(T())}else b(T(!1))};function g(y){return x=>{var S,b;return((b=(S=x==null?void 0:x.meta)==null?void 0:S.arg)==null?void 0:b.endpointName)===y}}function m(y,x){return{matchPending:Ih(FA(y),g(x)),matchFulfilled:Ih(Ds(y),g(x)),matchRejected:Ih(xf(y),g(x))}}return{queryThunk:f,mutationThunk:d,prefetch:v,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:m}}function vG(e,t,r,n){return EM(r[e.meta.arg.endpointName][t],Ds(e)?e.payload:void 0,v1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){const n=e[t];n&&r(n)}function Dp(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function ZR(e,t,r){const n=e[Dp(t)];n&&r(n)}var _d={};function dse({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=on(`${e}/resetApiState`),c=hi({name:`${e}/queries`,initialState:_d,reducers:{removeQueryResult:{reducer(x,{payload:{queryCacheKey:S}}){delete x[S]},prepare:pd()},queryResultPatched:{reducer(x,{payload:{queryCacheKey:S,patches:b}}){Sg(x,S,_=>{_.data=bP(_.data,b.concat())})},prepare:pd()}},extraReducers(x){x.addCase(t.pending,(S,{meta:b,meta:{arg:_}})=>{var C;const w=FC(_);S[C=_.queryCacheKey]??(S[C]={status:"uninitialized",endpointName:_.endpointName}),Sg(S,_.queryCacheKey,T=>{T.status="pending",T.requestId=w&&T.requestId?T.requestId:b.requestId,_.originalArgs!==void 0&&(T.originalArgs=_.originalArgs),T.startedTimeStamp=b.startedTimeStamp})}).addCase(t.fulfilled,(S,{meta:b,payload:_})=>{Sg(S,b.arg.queryCacheKey,w=>{if(w.requestId!==b.requestId&&!FC(b.arg))return;const{merge:C}=n[b.arg.endpointName];if(w.status="fulfilled",C)if(w.data!==void 0){const{fulfilledTimeStamp:T,arg:A,baseQueryMeta:M,requestId:k}=b;let I=dv(w.data,P=>C(P,_,{arg:A.originalArgs,baseQueryMeta:M,fulfilledTimeStamp:T,requestId:k}));w.data=I}else w.data=_;else w.data=n[b.arg.endpointName].structuralSharing??!0?fG(Ki(w.data)?zX(w.data):w.data,_):_;delete w.error,w.fulfilledTimeStamp=b.fulfilledTimeStamp})}).addCase(t.rejected,(S,{meta:{condition:b,arg:_,requestId:w},error:C,payload:T})=>{Sg(S,_.queryCacheKey,A=>{if(!b){if(A.requestId!==w)return;A.status="rejected",A.error=T??C}})}).addMatcher(o,(S,b)=>{const{queries:_}=a(b);for(const[w,C]of Object.entries(_))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&(S[w]=C)})}}),f=hi({name:`${e}/mutations`,initialState:_d,reducers:{removeMutationResult:{reducer(x,{payload:S}){const b=Dp(S);b in x&&delete x[b]},prepare:pd()}},extraReducers(x){x.addCase(r.pending,(S,{meta:b,meta:{requestId:_,arg:w,startedTimeStamp:C}})=>{w.track&&(S[Dp(b)]={requestId:_,status:"pending",endpointName:w.endpointName,startedTimeStamp:C})}).addCase(r.fulfilled,(S,{payload:b,meta:_})=>{_.arg.track&&ZR(S,_,w=>{w.requestId===_.requestId&&(w.status="fulfilled",w.data=b,w.fulfilledTimeStamp=_.fulfilledTimeStamp)})}).addCase(r.rejected,(S,{payload:b,error:_,meta:w})=>{w.arg.track&&ZR(S,w,C=>{C.requestId===w.requestId&&(C.status="rejected",C.error=b??_)})}).addMatcher(o,(S,b)=>{const{mutations:_}=a(b);for(const[w,C]of Object.entries(_))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&w!==(C==null?void 0:C.requestId)&&(S[w]=C)})}}),d=hi({name:`${e}/invalidation`,initialState:_d,reducers:{updateProvidedBy:{reducer(x,S){var w,C;const{queryCacheKey:b,providedTags:_}=S.payload;for(const T of Object.values(x))for(const A of Object.values(T)){const M=A.indexOf(b);M!==-1&&A.splice(M,1)}for(const{type:T,id:A}of _){const M=(w=x[T]??(x[T]={}))[C=A||"__internal_without_id"]??(w[C]=[]);M.includes(b)||M.push(b)}},prepare:pd()}},extraReducers(x){x.addCase(c.actions.removeQueryResult,(S,{payload:{queryCacheKey:b}})=>{for(const _ of Object.values(S))for(const w of Object.values(_)){const C=w.indexOf(b);C!==-1&&w.splice(C,1)}}).addMatcher(o,(S,b)=>{var w,C;const{provided:_}=a(b);for(const[T,A]of Object.entries(_))for(const[M,k]of Object.entries(A)){const I=(w=S[T]??(S[T]={}))[C=M||"__internal_without_id"]??(w[C]=[]);for(const P of k)I.includes(P)||I.push(P)}}).addMatcher(xo(Ds(t),v1(t)),(S,b)=>{const _=vG(b,"providesTags",n,s),{queryCacheKey:w}=b.meta.arg;d.caseReducers.updateProvidedBy(S,d.actions.updateProvidedBy({queryCacheKey:w,providedTags:_}))})}}),h=hi({name:`${e}/subscriptions`,initialState:_d,reducers:{updateSubscriptionOptions(x,S){},unsubscribeQueryResult(x,S){},internal_getRTKQSubscriptions(){}}}),p=hi({name:`${e}/internalSubscriptions`,initialState:_d,reducers:{subscriptionsUpdated:{reducer(x,S){return bP(x,S.payload)},prepare:pd()}}}),v=hi({name:`${e}/config`,initialState:{online:rse(),focused:nse(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(x,{payload:S}){x.middlewareRegistered=x.middlewareRegistered==="conflict"||i!==S?"conflict":!0}},extraReducers:x=>{x.addCase(RM,S=>{S.online=!0}).addCase(hG,S=>{S.online=!1}).addCase(PM,S=>{S.focused=!0}).addCase(dG,S=>{S.focused=!1}).addMatcher(o,S=>({...S}))}}),g=d1({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:p.reducer,config:v.reducer}),m=(x,S)=>g(u.match(S)?void 0:x,S),y={...v.actions,...c.actions,...h.actions,...p.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:m,actions:y}}var jl=Symbol.for("RTKQ/skipToken"),gG={status:"uninitialized"},KR=dv(gG,()=>{}),QR=dv(gG,()=>{});function hse({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>KR,i=f=>QR;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...Koe(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const p=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===jl?n:m=>{var y,x;return((x=(y=o(m))==null?void 0:y.queries)==null?void 0:x[p])??KR},a)}}function l(){return f=>{let d;return typeof f=="object"?d=Dp(f)??jl:d=f,r(d===jl?i:v=>{var g,m;return((m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])??QR},a)}}function u(f,d){const h=f[t],p=new Set;for(const v of d.map(BC)){const g=h.provided[v.type];if(!g)continue;let m=(v.id!==void 0?g[v.id]:HR(Object.values(g)))??[];for(const y of m)p.add(y)}return HR(Array.from(p.values()).map(v=>{const g=h.queries[v];return g?[{queryCacheKey:v,endpointName:g.endpointName,originalArgs:g.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var Zu=WeakMap?new WeakMap:void 0,JR=({endpointName:e,queryArgs:t})=>{let r="";const n=Zu==null?void 0:Zu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=Na(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));Na(t)&&(Zu==null||Zu.set(t,i)),r=i}return`${e}(${r})`};function pse(...e){return function(r){const n=_p(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=JR;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:JR({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:BA(),extractRehydrationInfo:n,hasRehydrationInfo:_p(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Yr(39));typeof process<"u";continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function vse(e){for(let t in e)return!1;return!0}var gse=2147483647/1e3-1,mse=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=xo(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!vse(h)}const u={},c=(d,h,p)=>{var v;if(s(d)){const g=h.getState()[e],{queryCacheKey:m}=o.match(d)?d.payload:d.meta.arg;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(d))for(const[g,m]of Object.entries(u))m&&clearTimeout(m),delete u[g];if(n.hasRehydrationInfo(d)){const g=h.getState()[e],{queries:m}=n.extractRehydrationInfo(d);for(const[y,x]of Object.entries(m))f(y,x==null?void 0:x.endpointName,h,g.config)}};function f(d,h,p,v){const g=n.endpointDefinitions[h],m=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(m===1/0)return;const y=Math.max(0,Math.min(m,gse));if(!l(d)){const x=u[d];x&&clearTimeout(x),u[d]=setTimeout(()=>{l(d)||p.dispatch(a({queryCacheKey:d})),delete u[d]},y*1e3)}}return c},yse=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=xo(Ds(n),v1(n)),f=xo(Ds(n,i),xf(n,i));let d=[];const h=(g,m)=>{c(g)?v(vG(g,"invalidatesTags",r,o),m):f(g)?v([],m):a.util.invalidateTags.match(g)&&v(EM(g.payload,void 0,void 0,void 0,void 0,o),m)};function p(g){var m,y;for(const x in g.queries)if(((m=g.queries[x])==null?void 0:m.status)==="pending")return!0;for(const x in g.mutations)if(((y=g.mutations[x])==null?void 0:y.status)==="pending")return!0;return!1}function v(g,m){const y=m.getState(),x=y[e];if(d.push(...g),x.config.invalidationBehavior==="delayed"&&p(x))return;const S=d;if(d=[],S.length===0)return;const b=a.util.selectInvalidatedBy(y,S);t.batch(()=>{const _=Array.from(b.values());for(const{queryCacheKey:w}of _){const C=x.queries[w],T=l.currentSubscriptions[w]??{};C&&(tf(T)===0?m.dispatch(u({queryCacheKey:w})):C.status!=="uninitialized"&&m.dispatch(s(C,w)))}})}return h},xse=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const p=h.getState()[e],v=p.queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:y}=f(g);if(!Number.isFinite(m))return;const x=a[d];x!=null&&x.timeout&&(clearTimeout(x.timeout),x.timeout=void 0);const S=Date.now()+m;a[d]={nextPollTimestamp:S,pollingInterval:m,timeout:setTimeout(()=>{(p.config.focused||!y)&&h.dispatch(n(v,d)),s({queryCacheKey:d},h)},m)}}function l({queryCacheKey:d},h){const v=h.getState()[e].queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m}=f(g);if(!Number.isFinite(m)){u(d);return}const y=a[d],x=Date.now()+m;(!y||x<y.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,p=Number.POSITIVE_INFINITY;for(let v in d)d[v].pollingInterval&&(p=Math.min(d[v].pollingInterval,p),h=d[v].skipPollingIfUnfocused||h);return{lowestPollingInterval:p,skipPollingIfUnfocused:h}}return o},Sse=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{PM.match(l)&&s(u,"refetchOnFocus"),RM.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const p=f[h],v=d[h];if(!v||!p)continue;(Object.values(v).some(m=>m[u]===!0)||Object.values(v).every(m=>m[u]===void 0)&&c.config[u])&&(tf(v)===0?l.dispatch(a({queryCacheKey:h})):p.status!=="uninitialized"&&l.dispatch(n(p,h)))}})}return o},eE=new Error("Promise never resolved before cacheEntryRemoved."),_se=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=CC(n),s=CC(i),l=Ds(n,i),u={},c=(h,p,v)=>{const g=f(h);if(n.pending.match(h)){const m=v[t].queries[g],y=p.getState()[t].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(i.pending.match(h))p.getState()[t].mutations[g]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId);else if(l(h)){const m=u[g];m!=null&&m.valueResolved&&(m.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const m=u[g];m&&(delete u[g],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[m,y]of Object.entries(u))delete u[m],y.cacheEntryRemoved()};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?Dp(h.payload):""}function d(h,p,v,g,m){const y=r.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(!x)return;let S={};const b=new Promise(M=>{S.cacheEntryRemoved=M}),_=Promise.race([new Promise(M=>{S.valueResolved=M}),b.then(()=>{throw eE})]);_.catch(()=>{}),u[v]=S;const w=e.endpoints[h].select(y.type==="query"?p:v),C=g.dispatch((M,k,I)=>I),T={...g,getCacheEntry:()=>w(g.getState()),requestId:m,extra:C,updateCachedData:y.type==="query"?M=>g.dispatch(e.util.updateQueryData(h,p,M)):void 0,cacheDataLoaded:_,cacheEntryRemoved:b},A=x(p,T);Promise.resolve(A).catch(M=>{if(M!==eE)throw M})}return c},bse=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=FA(r,n),a=xf(r,n),o=Ds(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:p,originalArgs:v}}=u.meta,g=t.endpointDefinitions[p],m=g==null?void 0:g.onQueryStarted;if(m){const y={},x=new Promise((w,C)=>{y.resolve=w,y.reject=C});x.catch(()=>{}),s[h]=y;const S=e.endpoints[p].select(g.type==="query"?v:h),b=c.dispatch((w,C,T)=>T),_={...c,getCacheEntry:()=>S(c.getState()),requestId:h,extra:b,updateCachedData:g.type==="query"?w=>c.dispatch(e.util.updateQueryData(p,v,w)):void 0,queryFulfilled:x};m(v,_)}}else if(o(u)){const{requestId:h,baseQueryMeta:p}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:p}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:p,baseQueryMeta:v}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!p,meta:v}),delete s[h]}}},wse=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Cse=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,p)=>{var g,m,y;if(o.match(p)){const{queryCacheKey:x,requestId:S,options:b}=p.payload;return(g=h==null?void 0:h[x])!=null&&g[S]&&(h[x][S]=b),!0}if(s.match(p)){const{queryCacheKey:x,requestId:S}=p.payload;return h[x]&&delete h[x][S],!0}if(e.internalActions.removeQueryResult.match(p))return delete h[p.payload.queryCacheKey],!0;if(t.pending.match(p)){const{meta:{arg:x,requestId:S}}=p,b=h[m=x.queryCacheKey]??(h[m]={});return b[`${S}_running`]={},x.subscribe&&(b[S]=x.subscriptionOptions??b[S]??{}),!0}let v=!1;if(t.fulfilled.match(p)||t.rejected.match(p)){const x=h[p.meta.arg.queryCacheKey]||{},S=`${p.meta.requestId}_running`;v||(v=!!x[S]),delete x[S]}if(t.rejected.match(p)){const{meta:{condition:x,arg:S,requestId:b}}=p;if(x&&S.subscribe){const _=h[y=S.queryCacheKey]??(h[y]={});_[b]=S.subscriptionOptions??_[b]??{},v=!0}}return v},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const v=u()[h]??{};return tf(v)},isRequestSubscribed:(h,p)=>{var g;const v=u();return!!((g=v==null?void 0:v[h])!=null&&g[p])}};return(h,p)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const v=l(r.currentSubscriptions,h);let g=!0;if(v){a||(a=setTimeout(()=>{const x=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,S]=xV(i,()=>x);p.next(e.internalActions.subscriptionsUpdated(S)),i=x,a=null},500));const m=typeof h.type=="string"&&!!h.type.startsWith(n),y=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;g=!m&&!y}return[g,!1]}};function Tse(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:on(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[wse,mse,yse,xse,_se,bse];return{middleware:f=>{let d=!1;const p={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},v=l.map(y=>y(p)),g=Cse(p),m=Sse(p);return y=>x=>{if(!dV(x))return y(x);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const S={...f,next:y},b=f.getState(),[_,w]=g(x,S,b);let C;if(_?C=y(x):C=w,f.getState()[t]&&(m(x,S,b),s(x)||i.hasRehydrationInfo(x)))for(let T of v)T(x,S,b);return C}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Bo(e,...t){return Object.assign(e,...t)}var tE=Symbol(),Ase=({createSelector:e=zA}={})=>({name:tE,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){UX();const d=O=>(typeof process<"u",O);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:RM,onOffline:hG,onFocus:PM,onFocusLost:dG},util:{}});const{queryThunk:h,mutationThunk:p,patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,buildMatchThunkActions:x}=fse({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:S,actions:b}=dse({context:f,queryThunk:h,mutationThunk:p,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Bo(t.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:b.resetApiState}),Bo(t.internalActions,b);const{middleware:_,actions:w}=Tse({reducerPath:i,context:f,queryThunk:h,mutationThunk:p,api:t,assertTagType:d});Bo(t.util,w),Bo(t,{reducer:S,middleware:_});const{buildQuerySelector:C,buildMutationSelector:T,selectInvalidatedBy:A,selectCachedArgsForQuery:M}=hse({serializeQueryArgs:a,reducerPath:i,createSelector:e});Bo(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:M});const{buildInitiateQuery:k,buildInitiateMutation:I,getRunningMutationThunk:P,getRunningMutationsThunk:E,getRunningQueriesThunk:z,getRunningQueryThunk:$}=cse({queryThunk:h,mutationThunk:p,api:t,serializeQueryArgs:a,context:f});return Bo(t.util,{getRunningMutationThunk:P,getRunningMutationsThunk:E,getRunningQueryThunk:$,getRunningQueriesThunk:z}),{name:tE,injectEndpoint(O,V){var G;const L=t;(G=L.endpoints)[O]??(G[O]={}),pG(V)?Bo(L.endpoints[O],{name:O,select:C(O,V),initiate:k(O,V)},x(h,O)):sse(V)&&Bo(L.endpoints[O],{name:O,select:T(),initiate:I(O)},x(p,O))}}}});function Mse(e){return e.type==="query"}function kse(e){return e.type==="mutation"}function _g(e,...t){return Object.assign(e,...t)}function $S(e){return e.replace(e[0],e[0].toUpperCase())}var Ku=WeakMap?new WeakMap:void 0,Ise=({endpointName:e,queryArgs:t})=>{let r="";const n=Ku==null?void 0:Ku.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=Na(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));Na(t)&&(Ku==null||Ku.set(t,i)),r=i}return`${e}(${r})`},GS=Symbol();function rE(e,t,r,n){const i=N.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=N.useRef(i);return N.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function HS(e){const t=N.useRef(e);return N.useEffect(()=>{ws(t.current,e)||(t.current=e)},[e]),ws(t.current,e)?t.current:e}var Dse=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pse=Dse(),Rse=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ese=Rse(),Lse=()=>Pse||Ese?N.useLayoutEffect:N.useEffect,Ose=Lse(),Nse=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:cG.pending}:e;function zse({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?p=>p():N.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(p,v,g){if(v!=null&&v.endpointName&&p.isUninitialized){const{endpointName:_}=v,w=l.endpointDefinitions[_];s({queryArgs:v.originalArgs,endpointDefinition:w,endpointName:_})===s({queryArgs:g,endpointDefinition:w,endpointName:_})&&(v=void 0)}let m=p.isSuccess?p.data:v==null?void 0:v.data;m===void 0&&(m=p.data);const y=m!==void 0,x=p.isLoading,S=(!v||v.isLoading||v.isUninitialized)&&!y&&x,b=p.isSuccess||x&&y;return{...p,data:m,currentData:p.data,isFetching:x,isLoading:S,isSuccess:b}}function f(p,v){const g=r(),m=HS(v);return N.useCallback((y,x)=>g(e.util.prefetch(p,y,{...m,...x})),[p,g,m])}function d(p){const v=(y,{refetchOnReconnect:x,refetchOnFocus:S,refetchOnMountOrArgChange:b,skip:_=!1,pollingInterval:w=0,skipPollingIfUnfocused:C=!1}={})=>{const{initiate:T}=e.endpoints[p],A=r(),M=N.useRef(void 0);if(!M.current){const L=A(e.internalActions.internal_getRTKQSubscriptions());M.current=L}const k=rE(_?jl:y,Ise,l.endpointDefinitions[p],p),I=HS({refetchOnReconnect:x,refetchOnFocus:S,pollingInterval:w,skipPollingIfUnfocused:C}),P=N.useRef(!1),E=N.useRef(void 0);let{queryCacheKey:z,requestId:$}=E.current||{},O=!1;z&&$&&(O=M.current.isRequestSubscribed(z,$));const V=!O&&P.current;return u(()=>{P.current=O}),u(()=>{V&&(E.current=void 0)},[V]),u(()=>{var W;const L=E.current;if(typeof process<"u",k===jl){L==null||L.unsubscribe(),E.current=void 0;return}const G=(W=E.current)==null?void 0:W.subscriptionOptions;if(!L||L.arg!==k){L==null||L.unsubscribe();const B=A(T(k,{subscriptionOptions:I,forceRefetch:b}));E.current=B}else I!==G&&L.updateSubscriptionOptions(I)},[A,T,b,k,I,V]),N.useEffect(()=>()=>{var L;(L=E.current)==null||L.unsubscribe(),E.current=void 0},[]),N.useMemo(()=>({refetch:()=>{var L;if(!E.current)throw new Error(Yr(38));return(L=E.current)==null?void 0:L.refetch()}}),[])},g=({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S=0,skipPollingIfUnfocused:b=!1}={})=>{const{initiate:_}=e.endpoints[p],w=r(),[C,T]=N.useState(GS),A=N.useRef(void 0),M=HS({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S,skipPollingIfUnfocused:b});u(()=>{var E,z;const P=(E=A.current)==null?void 0:E.subscriptionOptions;M!==P&&((z=A.current)==null||z.updateSubscriptionOptions(M))},[M]);const k=N.useRef(M);u(()=>{k.current=M},[M]);const I=N.useCallback(function(P,E=!1){let z;return t(()=>{var $;($=A.current)==null||$.unsubscribe(),A.current=z=w(_(P,{subscriptionOptions:k.current,forceRefetch:!E})),T(P)}),z},[w,_]);return N.useEffect(()=>()=>{var P;(P=A==null?void 0:A.current)==null||P.unsubscribe()},[]),N.useEffect(()=>{C!==GS&&!A.current&&I(C,!0)},[C,I]),N.useMemo(()=>[I,C],[I,C])},m=(y,{skip:x=!1,selectFromResult:S}={})=>{const{select:b}=e.endpoints[p],_=rE(x?jl:y,s,l.endpointDefinitions[p],p),w=N.useRef(void 0),C=N.useMemo(()=>o([b(_),(I,P)=>P,I=>_],c,{memoizeOptions:{resultEqualityCheck:ws}}),[b,_]),T=N.useMemo(()=>S?o([C],S,{devModeChecks:{identityFunctionCheck:"never"}}):C,[C,S]),A=n(I=>T(I,w.current),ws),M=i(),k=C(M.getState(),w.current);return Ose(()=>{w.current=k},[k]),A};return{useQueryState:m,useQuerySubscription:v,useLazyQuerySubscription:g,useLazyQuery(y){const[x,S]=g(y),b=m(S,{...y,skip:S===GS}),_=N.useMemo(()=>({lastArg:S}),[S]);return N.useMemo(()=>[x,b,_],[x,b,_])},useQuery(y,x){const S=v(y,x),b=m(y,{selectFromResult:y===jl||x!=null&&x.skip?void 0:Nse,...x}),{data:_,status:w,isLoading:C,isSuccess:T,isError:A,error:M}=b;return N.useDebugValue({data:_,status:w,isLoading:C,isSuccess:T,isError:A,error:M}),N.useMemo(()=>({...b,...S}),[b,S])}}}function h(p){return({selectFromResult:v,fixedCacheKey:g}={})=>{const{select:m,initiate:y}=e.endpoints[p],x=r(),[S,b]=N.useState();N.useEffect(()=>()=>{S!=null&&S.arg.fixedCacheKey||S==null||S.reset()},[S]);const _=N.useCallback(function(G){const W=x(y(G,{fixedCacheKey:g}));return b(W),W},[x,y,g]),{requestId:w}=S||{},C=N.useMemo(()=>m({fixedCacheKey:g,requestId:S==null?void 0:S.requestId}),[g,S,m]),T=N.useMemo(()=>v?o([C],v):C,[v,C]),A=n(T,ws),M=g==null?S==null?void 0:S.arg.originalArgs:void 0,k=N.useCallback(()=>{t(()=>{S&&b(void 0),g&&x(e.internalActions.removeMutationResult({requestId:w,fixedCacheKey:g}))})},[x,g,S,w]),{endpointName:I,data:P,status:E,isLoading:z,isSuccess:$,isError:O,error:V}=A;N.useDebugValue({endpointName:I,data:P,status:E,isLoading:z,isSuccess:$,isError:O,error:V});const L=N.useMemo(()=>({...A,originalArgs:M,reset:k}),[A,M,k]);return N.useMemo(()=>[_,L],[_,L])}}}var Bse=Symbol(),Fse=({batch:e=OZ,hooks:t={useDispatch:$V,useSelector:RV,useStore:VV},createSelector:r=zA,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Bse,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=zse({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return _g(l,{usePrefetch:f}),_g(s,{batch:e}),{injectEndpoint(d,h){if(Mse(h)){const{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}=u(d);_g(l.endpoints[d],{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}),a[`use${$S(d)}Query`]=p,a[`useLazy${$S(d)}Query`]=v}else if(kse(h)){const p=c(d);_g(l.endpoints[d],{useMutation:p}),a[`use${$S(d)}Mutation`]=p}}}}}),Vse=pse(Ase(),Fse());const Yy=Vse({baseQuery:ose(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:$c}),getTasks:e.query({query:()=>"tasks",transformResponse:$c}),getExceptions:e.query({query:()=>"exceptions",transformResponse:$c}),getLogs:e.query({query:()=>"logs",transformResponse:$c}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:joe(BP(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:BP(t)})})})}),{useGetStatsQuery:$se,useGetTasksQuery:Gse,useGetExceptionsQuery:Hse,useGetLogsQuery:Wse,useStartSwarmMutation:mG,useUpdateUserSettingsMutation:jse}=Yy;function Use({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=mG(),i=a=>{e(),n(a)};return R.jsxs(_v,{maxWidth:"md",sx:{my:2},children:[R.jsx(ot,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),R.jsx(DM,{onSubmit:i,children:R.jsxs(Ct,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[R.jsx(Ca,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),R.jsx(Ca,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),R.jsx(Ua,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const Yse=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),Xse=Nn(Yse)(Use);function qse(){const[e,t]=N.useState(!1);return R.jsxs(R.Fragment,{children:[R.jsx(Ua,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),R.jsx(rx,{onClose:()=>t(!1),open:e,children:R.jsx(Xse,{onSubmit:()=>t(!1)})})]})}var LM={},Zse=Ru;Object.defineProperty(LM,"__esModule",{value:!0});var ix=LM.default=void 0,Kse=Zse(Eu()),Qse=R,Jse=(0,Kse.default)((0,Qse.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");ix=LM.default=Jse;function OM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return R.jsxs(z$,{sx:a,children:[R.jsx(bM,{htmlFor:t,shrink:!0,children:e}),R.jsx(AM,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>R.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function ele({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=WV(e),o=n?`${a} (${n})`:a;return r?R.jsx(OM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?R.jsx(F$,{control:R.jsx(NC,{defaultChecked:t}),label:o,name:e}):R.jsx(Ca,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function tle({extraOptions:e}){return R.jsxs(vM,{children:[R.jsx(mM,{expandIcon:R.jsx(ix,{}),children:R.jsx(ot,{children:"Custom parameters"})}),R.jsx(gM,{children:R.jsx(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>R.jsx(ele,{label:t,...r},`valid-parameter-${n}`))})})]})}var NM={},rle=Ru;Object.defineProperty(NM,"__esModule",{value:!0});var yG=NM.default=void 0,nle=rle(Eu()),ile=R,ale=(0,nle.default)((0,ile.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-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");yG=NM.default=ale;function bv(e,{payload:t}){return Woe(e,t)}const ole=Ea,xG=hi({name:"swarm",initialState:ole,reducers:{setSwarm:bv}}),zM=xG.actions,sle=xG.reducer;function lle({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return R.jsx(DM,{onSubmit:r,children:R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[R.jsx(ot,{children:`${t.userClassName} Settings`}),R.jsx(OM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>R.jsx(Ca,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:WV(a),name:a},`user-to-edit-${a}`)),R.jsx(Ua,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function ule({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=N.useState(!1),[l,u]=N.useState(),[c]=jse(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return R.jsxs(R.Fragment,{children:[R.jsx(Ct,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:R.jsxs(Ct,{sx:{maxHeight:"30vh",overflow:"auto"},children:[R.jsx(bM,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),R.jsx(V$,{children:R.jsx(J$,{component:Hs,children:R.jsxs(K$,{children:[R.jsx(eG,{children:R.jsx(Uy,{children:R.jsx(El,{colSpan:4,padding:"checkbox",children:R.jsx(NC,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),R.jsx(Q$,{children:Object.entries(a).map(([g,m])=>R.jsxs(Uy,{hover:!0,children:[R.jsx(El,{onClick:d(g),padding:"checkbox",children:R.jsx(NC,{checked:r.includes(g)})}),R.jsx(El,{children:g}),R.jsx(El,{children:R.jsx(ot,{variant:"subtitle2",children:m.host})}),R.jsx(El,{align:"right",children:R.jsx(Sv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:R.jsx(yG,{})})})]},`user-class-${g}`))})]})})})]})}),R.jsx(rx,{onClose:()=>s(!1),open:o,children:l&&R.jsx(lle,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const cle={setSwarm:zM.setSwarm},fle=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),dle=Nn(fle,cle)(ule);function hle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=mG(),[d,h]=N.useState(t),p=v=>{l({state:Si.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return R.jsxs(_v,{maxWidth:"md",sx:{my:2},children:[R.jsx(ot,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&R.jsx(Ct,{marginBottom:2,marginTop:2,children:R.jsx(dle,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),R.jsx(DM,{onSubmit:p,children:R.jsxs(Ct,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&R.jsx(OM,{label:"Shape Class",name:"shapeClass",options:e}),R.jsx(Ca,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),R.jsx(Ca,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),R.jsx(Ca,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),R.jsxs(vM,{children:[R.jsx(mM,{expandIcon:R.jsx(ix,{}),children:R.jsx(ot,{children:"Advanced options"})}),R.jsx(gM,{children:R.jsx(Ca,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Hoe(n)&&R.jsx(tle,{extraOptions:n}),R.jsx(Ua,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const ple=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),vle={setSwarm:zM.setSwarm},SG=Nn(ple,vle)(hle);function gle(){const[e,t]=N.useState(!1);return R.jsxs(R.Fragment,{children:[R.jsx(Ua,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),R.jsx(rx,{onClose:()=>t(!1),open:e,children:R.jsx(SG,{})})]})}function mle(){const e=()=>{fetch("stats/reset")};return R.jsx(Ua,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function yle(){const[e,t]=N.useState(!1);N.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return R.jsx(Ua,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function xle(){const e=Ya(({swarm:t})=>t.state);return e===Si.READY?null:R.jsxs(Ct,{sx:{display:"flex",columnGap:2},children:[e===Si.STOPPED?R.jsx(gle,{}):R.jsxs(R.Fragment,{children:[R.jsx(qse,{}),R.jsx(yle,{})]}),R.jsx(mle,{})]})}function Sle(){return R.jsx(Pte,{position:"static",children:R.jsx(_v,{maxWidth:"xl",children:R.jsxs(Wae,{sx:{display:"flex",justifyContent:"space-between"},children:[R.jsxs(_n,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[R.jsx("img",{height:"52",src:tG,width:"52"}),R.jsx(ot,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),R.jsxs(Ct,{sx:{display:"flex",columnGap:6},children:[R.jsx(Xoe,{}),R.jsx(xle,{}),R.jsx(sG,{})]})]})})})}function _le({children:e}){return R.jsxs(R.Fragment,{children:[R.jsxs(Ct,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[R.jsx(Sle,{}),R.jsx("main",{children:e})]}),R.jsx(Goe,{})]})}const _G=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),bG="logViewer";function ah(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=N.useRef(e);N.useEffect(()=>{i.current=e},[e]),N.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const ble={},wG=hi({name:"notification",initialState:ble,reducers:{setNotification:bv}}),CG=wG.actions,wle=wG.reducer;function Cle(e,{key:t,shouldNotify:r}){const n=Wl(CG.setNotification),i=Ya(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;N.useEffect(()=>{Ll(e)>0&&Ll(e)<localStorage[a]&&(localStorage[a]=Ll(e)),Ll(e)>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=Ll(e))},[e])}const Tle={master:[],workers:{}},TG=hi({name:"logViewer",initialState:Tle,reducers:{setLogs:bv}}),Ale=TG.actions,Mle=TG.reducer,AG=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?AG(r):r),[]);function kle(){const e=Ya(({swarm:l})=>l),t=Wl(Ale.setLogs),{data:r,refetch:n}=Wse(),i=r||{master:[],workers:{}},a=N.useMemo(()=>AG(Object.values(i.workers)),[i.workers]),o=[...i.master,...a],s=N.useCallback(()=>o.slice(localStorage.logViewer).some(_G),[i]);return ah(n,5e3,{shouldRunInterval:e.state===Si.SPAWNING||e.state==Si.RUNNING}),Cle(o,{key:bG,shouldNotify:s}),N.useEffect(()=>{t(i)},[i]),i}var BM={},Ile=Ru;Object.defineProperty(BM,"__esModule",{value:!0});var FM=BM.default=void 0,Dle=Ile(Eu()),nE=R,Ple=(0,Dle.default)([(0,nE.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,nE.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");FM=BM.default=Ple;function Rle(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Ele=/[ \t\n\f\r]/g;function Lle(e){return typeof e=="object"?e.type==="text"?iE(e.value):!1:iE(e)}function iE(e){return e.replace(Ele,"")===""}class wv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}wv.prototype.property={};wv.prototype.normal={};wv.prototype.space=null;function MG(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new wv(r,n,t)}function VC(e){return e.toLowerCase()}class Ii{constructor(t,r){this.property=t,this.attribute=r}}Ii.prototype.space=null;Ii.prototype.boolean=!1;Ii.prototype.booleanish=!1;Ii.prototype.overloadedBoolean=!1;Ii.prototype.number=!1;Ii.prototype.commaSeparated=!1;Ii.prototype.spaceSeparated=!1;Ii.prototype.commaOrSpaceSeparated=!1;Ii.prototype.mustUseProperty=!1;Ii.prototype.defined=!1;let Ole=0;const Qe=Lu(),sr=Lu(),kG=Lu(),oe=Lu(),Lt=Lu(),rf=Lu(),Bn=Lu();function Lu(){return 2**++Ole}const $C=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:sr,commaOrSpaceSeparated:Bn,commaSeparated:rf,number:oe,overloadedBoolean:kG,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),WS=Object.keys($C);class VM extends Ii{constructor(t,r,n,i){let a=-1;if(super(t,r),aE(this,"space",i),typeof n=="number")for(;++a<WS.length;){const o=WS[a];aE(this,WS[a],(n&$C[o])===$C[o])}}}VM.prototype.defined=!0;function aE(e,t,r){r&&(e[t]=r)}const Nle={}.hasOwnProperty;function $f(e){const t={},r={};let n;for(n in e.properties)if(Nle.call(e.properties,n)){const i=e.properties[n],a=new VM(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[VC(n)]=n,r[VC(a.attribute)]=n}return new wv(t,r,e.space)}const IG=$f({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),DG=$f({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function PG(e,t){return t in e?e[t]:t}function RG(e,t){return PG(e,t.toLowerCase())}const EG=$f({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:RG,properties:{xmlns:null,xmlnsXLink:null}}),LG=$f({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:Lt,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:oe,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:Lt,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:sr,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),zle=$f({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:RG,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rf,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Lt,autoFocus:Qe,autoPlay:Qe,blocking:Lt,capture:Qe,charSet:null,checked:Qe,cite:null,className:Lt,cols:oe,colSpan:null,content:null,contentEditable:sr,controls:Qe,controlsList:Lt,coords:oe|rf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:kG,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Lt,height:oe,hidden:Qe,high:oe,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Qe,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:oe,pattern:null,ping:Lt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Lt,required:Qe,reversed:Qe,rows:oe,rowSpan:oe,sandbox:Lt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:sr,width:oe,wrap:null,align:null,aLink:null,archive:Lt,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:oe,security:null,unselectable:null}}),Ble=$f({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:PG,properties:{about:Bn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:Lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rf,g2:rf,glyphName:rf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:Bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bn,rev:Bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bn,requiredFeatures:Bn,requiredFonts:Bn,requiredFormats:Bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:Bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Fle=/^data[-\w.:]+$/i,oE=/-[a-z]/g,Vle=/[A-Z]/g;function $le(e,t){const r=VC(t);let n=t,i=Ii;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Fle.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(oE,Hle);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!oE.test(a)){let o=a.replace(Vle,Gle);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=VM}return new i(n,t)}function Gle(e){return"-"+e.toLowerCase()}function Hle(e){return e.charAt(1).toUpperCase()}const Wle={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jle=MG([DG,IG,EG,LG,zle],"html"),OG=MG([DG,IG,EG,LG,Ble],"svg");function Ule(e){return e.join(" ").trim()}var $M={exports:{}},sE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Yle=/\n/g,Xle=/^\s*/,qle=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Zle=/^:\s*/,Kle=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Qle=/^[;\s]*/,Jle=/^\s+|\s+$/g,eue=`
|
143
|
-
`,lE="/",uE="*",Ol="",tue="comment",rue="declaration",nue=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(Yle);v&&(r+=v.length);var g=p.lastIndexOf(eue);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Xle)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(lE!=e.charAt(0)||uE!=e.charAt(1))){for(var v=2;Ol!=e.charAt(v)&&(uE!=e.charAt(v)||lE!=e.charAt(v+1));)++v;if(v+=2,Ol===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:tue,comment:g})}}function d(){var p=a(),v=l(qle);if(v){if(f(),!l(Zle))return s("property missing ':'");var g=l(Kle),m=p({type:rue,property:cE(v[0].replace(sE,Ol)),value:g?cE(g[0].replace(sE,Ol)):Ol});return l(Qle),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function cE(e){return e?e.replace(Jle,Ol):Ol}var iue=nue;function NG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=iue(e),a=typeof t=="function",o,s,l=0,u=i.length;l<u;l++)n=i[l],o=n.property,s=n.value,a?t(o,s,n):s&&(r||(r={}),r[o]=s);return r}$M.exports=NG;$M.exports.default=NG;var aue=$M.exports;const oue=X0(aue),zG=BG("end"),GM=BG("start");function BG(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function sue(e){const t=GM(e),r=zG(e);if(t&&r)return{start:t,end:r}}function Nh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fE(e.position):"start"in e||"end"in e?fE(e):"line"in e||"column"in e?GC(e):""}function GC(e){return dE(e&&e.line)+":"+dE(e&&e.column)}function fE(e){return GC(e&&e.start)+"-"+GC(e&&e.end)}function dE(e){return e&&typeof e=="number"?e:1}class gn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Nh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}gn.prototype.file="";gn.prototype.name="";gn.prototype.reason="";gn.prototype.message="";gn.prototype.stack="";gn.prototype.column=void 0;gn.prototype.line=void 0;gn.prototype.ancestors=void 0;gn.prototype.cause=void 0;gn.prototype.fatal=void 0;gn.prototype.place=void 0;gn.prototype.ruleId=void 0;gn.prototype.source=void 0;const HM={}.hasOwnProperty,lue=new Map,uue=/[A-Z]/g,cue=/-([a-z])/g,fue=new Set(["table","tbody","thead","tfoot","tr"]),due=new Set(["td","th"]);function hue(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=vue(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=pue(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?OG:jle,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=FG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function FG(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=OG,e.schema=i),e.ancestors.push(t);let a=gue(e,t);const o=mue(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&fue.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Lle(l):!0})),HM.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function pue(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function vue(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=GM(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function gue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:lue;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=FG(e,a,o);s!==void 0&&r.push(s)}return r}function mue(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&HM.call(r.properties,i)){const o=yue(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&due.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function yue(e,t,r,n){const i=$le(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Rle(n):Ule(n)),i.property==="style"){let a=typeof n=="object"?n:xue(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=Sue(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Wle[i.property]||i.property:i.attribute,n]}}function xue(e,t,r){const n={};try{oue(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new gn("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(cue,bue)),n[s]=o}}function Sue(e){const t={};let r;for(r in e)HM.call(e,r)&&(t[_ue(r)]=e[r]);return t}function _ue(e){let t=e.replace(uue,wue);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function bue(e,t){return t.toUpperCase()}function wue(e){return"-"+e.toLowerCase()}const jS={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Cue={};function Tue(e,t){const r=Cue,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return VG(e,n,i)}function VG(e,t,r){if(Aue(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hE(e.children,t,r)}return Array.isArray(e)?hE(e,t,r):""}function hE(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=VG(e[i],t,r);return n.join("")}function Aue(e){return!!(e&&typeof e=="object")}const pE=document.createElement("i");function WM(e){const t="&"+e+";";pE.innerHTML=t;const r=pE.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Fa(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function pi(e,t){return e.length>0?(Fa(e,e.length,0,t),e):t}const vE={}.hasOwnProperty;function Mue(e){const t={};let r=-1;for(;++r<e.length;)kue(t,e[r]);return t}function kue(e,t){let r;for(r in t){const i=(vE.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){vE.call(i,o)||(i[o]=[]);const s=a[o];Iue(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Iue(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Fa(e,0,0,n)}function $G(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function nf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Due=js(new RegExp("\\p{P}","u")),Sa=js(/[A-Za-z]/),Hn=js(/[\dA-Za-z]/),Pue=js(/[#-'*+\--9=?A-Z^-~]/);function HC(e){return e!==null&&(e<32||e===127)}const WC=js(/\d/),Rue=js(/[\dA-Fa-f]/),GG=js(/[!-/:-@[-`{-~]/);function We(e){return e!==null&&e<-2}function Rn(e){return e!==null&&(e<0||e===32)}function yt(e){return e===-2||e===-1||e===32}function Eue(e){return GG(e)||Due(e)}const Lue=js(/\s/);function js(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gf(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Hn(e.charCodeAt(r+1))&&Hn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return yt(l)?(e.enter(r),s(l)):t(l)}function s(l){return yt(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const Oue={tokenize:Nue};function Nue(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Nt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return We(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const zue={tokenize:Bue},gE={tokenize:Fue};function Bue(e){const t=this,r=[];let n=0,i,a,o;return s;function s(x){if(n<r.length){const S=r[n];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(x)}return u(x)}function l(x){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const S=t.events.length;let b=S,_;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){_=t.events[b][1].end;break}m(n);let w=S;for(;w<t.events.length;)t.events[w][1].end=Object.assign({},_),w++;return Fa(t.events,b+1,0,t.events.slice(S)),t.events.length=w,u(x)}return s(x)}function u(x){if(n===r.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return p(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gE,c,f)(x)}function c(x){return i&&y(),m(n),d(x)}function f(x){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(x)}function d(x){return t.containerState={},e.attempt(gE,h,p)(x)}function h(x){return n++,r.push([t.currentConstruct,t.containerState]),d(x)}function p(x){if(x===null){i&&y(),m(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(x)}function v(x){if(x===null){g(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return We(x)?(e.consume(x),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(x),v)}function g(x,S){const b=t.sliceStream(x);if(S&&b.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(b),t.parser.lazy[x.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<o&&(!i.events[_][1].end||i.events[_][1].end.offset>o))return;const w=t.events.length;let C=w,T,A;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(T){A=t.events[C][1].end;break}T=!0}for(m(n),_=w;_<t.events.length;)t.events[_][1].end=Object.assign({},A),_++;Fa(t.events,C+1,0,t.events.slice(w)),t.events.length=_}}function m(x){let S=r.length;for(;S-- >x;){const b=r[S];t.containerState=b[1],b[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Fue(e,t,r){return Nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mE(e){if(e===null||Rn(e)||Lue(e))return 1;if(Eue(e))return 2}function jM(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const jC={name:"attention",tokenize:$ue,resolveAll:Vue};function Vue(e,t){let r=-1,n,i,a,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);yE(f,-l),yE(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=pi(u,jM(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Fa(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function $ue(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=mE(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=mE(l),f=!c||c===2&&i||r.includes(l),d=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function yE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gue={name:"autolink",tokenize:Hue};function Hue(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return Sa(h)?(e.consume(h),o):u(h)}function o(h){return h===43||h===45||h===46||Hn(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Hn(h))&&n++<32?(e.consume(h),s):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||HC(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Pue(h)?(e.consume(h),u):r(h)}function c(h){return Hn(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Hn(h))&&n++<63){const p=h===45?d:f;return e.consume(h),p}return r(h)}}const ax={tokenize:Wue,partial:!0};function Wue(e,t,r){return n;function n(a){return yt(a)?Nt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||We(a)?t(a):r(a)}}const HG={name:"blockQuote",tokenize:jue,continuation:{tokenize:Uue},exit:Yue};function jue(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return yt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Uue(e,t,r){const n=this;return i;function i(o){return yt(o)?Nt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(HG,t,r)(o)}}function Yue(e){e.exit("blockQuote")}const WG={name:"characterEscape",tokenize:Xue};function Xue(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return GG(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const jG={name:"characterReference",tokenize:que};function que(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Hn,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Rue,c):(e.enter("characterReferenceValue"),a=7,o=WC,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Hn&&!WM(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const xE={tokenize:Kue,partial:!0},SE={name:"codeFenced",tokenize:Zue,concrete:!0};function Zue(e,t,r){const n=this,i={tokenize:b,partial:!0};let a=0,o=0,s;return l;function l(_){return u(_)}function u(_){const w=n.events[n.events.length-1];return a=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,s=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(_)}function c(_){return _===s?(o++,e.consume(_),c):o<3?r(_):(e.exit("codeFencedFenceSequence"),yt(_)?Nt(e,f,"whitespace")(_):f(_))}function f(_){return _===null||We(_)?(e.exit("codeFencedFence"),n.interrupt?t(_):e.check(xE,v,S)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(_))}function d(_){return _===null||We(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(_)):yt(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nt(e,h,"whitespace")(_)):_===96&&_===s?r(_):(e.consume(_),d)}function h(_){return _===null||We(_)?f(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||We(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(_)):_===96&&_===s?r(_):(e.consume(_),p)}function v(_){return e.attempt(i,S,g)(_)}function g(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),m}function m(_){return a>0&&yt(_)?Nt(e,y,"linePrefix",a+1)(_):y(_)}function y(_){return _===null||We(_)?e.check(xE,v,S)(_):(e.enter("codeFlowValue"),x(_))}function x(_){return _===null||We(_)?(e.exit("codeFlowValue"),y(_)):(e.consume(_),x)}function S(_){return e.exit("codeFenced"),t(_)}function b(_,w,C){let T=0;return A;function A(E){return _.enter("lineEnding"),_.consume(E),_.exit("lineEnding"),M}function M(E){return _.enter("codeFencedFence"),yt(E)?Nt(_,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):k(E)}function k(E){return E===s?(_.enter("codeFencedFenceSequence"),I(E)):C(E)}function I(E){return E===s?(T++,_.consume(E),I):T>=o?(_.exit("codeFencedFenceSequence"),yt(E)?Nt(_,P,"whitespace")(E):P(E)):C(E)}function P(E){return E===null||We(E)?(_.exit("codeFencedFence"),w(E)):C(E)}}}function Kue(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const US={name:"codeIndented",tokenize:Jue},Que={tokenize:ece,partial:!0};function Jue(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Nt(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):We(u)?e.attempt(Que,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||We(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function ece(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):We(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Nt(e,a,"linePrefix",5)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):We(o)?i(o):r(o)}}const tce={name:"codeText",tokenize:ice,resolve:rce,previous:nce};function rce(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function nce(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ice(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):We(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||We(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function UG(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,ace(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),Fa(e,i,r-i+1,s))}}return!u}function ace(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,d=-1,h=r,p=0,v=0;const g=[v];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(v=d+1,g.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const m=s.slice(g[d],g[d+1]),y=a.pop();l.unshift([y,y+m.length-1]),Fa(e,y,2,m)}for(d=-1;++d<l.length;)u[p+l[d][0]]=p+l[d][1],p+=l[d][1]-l[d][0]-1;return u}const oce={tokenize:uce,resolve:lce},sce={tokenize:cce,partial:!0};function lce(e){return UG(e),e}function uce(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):We(s)?e.check(sce,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function cce(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Nt(e,a,"linePrefix")}function a(o){if(o===null||We(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function YG(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||HC(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||We(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||Rn(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c<u&&m===40?(e.consume(m),c++,v):m===41?(e.consume(m),c--,v):m===null||m===32||m===40||HC(m)?r(m):(e.consume(m),m===92?g:v)}function g(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function XG(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):We(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||We(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!yt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function qG(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):We(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||We(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function zh(e,t){let r;return n;function n(i){return We(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):yt(i)?Nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const fce={name:"definition",tokenize:hce},dce={tokenize:pce,partial:!0};function hce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return XG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=nf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Rn(h)?zh(e,u)(h):u(h)}function u(h){return YG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(dce,f,f)(h)}function f(h){return yt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||We(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function pce(e,t,r){return n;function n(s){return Rn(s)?zh(e,i)(s):r(s)}function i(s){return qG(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return yt(s)?Nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||We(s)?t(s):r(s)}}const vce={name:"hardBreakEscape",tokenize:gce};function gce(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return We(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const mce={name:"headingAtx",tokenize:xce,resolve:yce};function yce(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Fa(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function xce(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||Rn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||We(c)?(e.exit("atxHeading"),t(c)):yt(c)?Nt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Rn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Sce=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_E=["pre","script","style","textarea"],_ce={name:"htmlFlow",tokenize:Tce,resolveTo:Cce,concrete:!0},bce={tokenize:Mce,partial:!0},wce={tokenize:Ace,partial:!0};function Cce(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Tce(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:L):Sa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):Sa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const X="CDATA[";return B===X.charCodeAt(s++)?(e.consume(B),s===X.length?n.interrupt?t:k:p):r(B)}function v(B){return Sa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||Rn(B)){const X=B===47,te=o.toLowerCase();return!X&&!a&&_E.includes(te)?(i=1,n.interrupt?t(B):k(B)):Sce.includes(o.toLowerCase())?(i=6,X?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Hn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return yt(B)?(e.consume(B),y):A(B)}function x(B){return B===47?(e.consume(B),A):B===58||B===95||Sa(B)?(e.consume(B),S):yt(B)?(e.consume(B),x):A(B)}function S(B){return B===45||B===46||B===58||B===95||Hn(B)?(e.consume(B),S):b(B)}function b(B){return B===61?(e.consume(B),_):yt(B)?(e.consume(B),b):x(B)}function _(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):yt(B)?(e.consume(B),_):C(B)}function w(B){return B===l?(e.consume(B),l=null,T):B===null||We(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Rn(B)?b(B):(e.consume(B),C)}function T(B){return B===47||B===62||yt(B)?x(B):r(B)}function A(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||We(B)?k(B):yt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):We(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(bce,W,I)(B)):B===null||We(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(wce,P,W)(B)}function P(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),E}function E(B){return B===null||We(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),L):k(B)}function $(B){return B===47?(e.consume(B),o="",O):k(B)}function O(B){if(B===62){const X=o.toLowerCase();return _E.includes(X)?(e.consume(B),G):k(B)}return Sa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),O):k(B)}function V(B){return B===93?(e.consume(B),L):k(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):k(B)}function G(B){return B===null||We(B)?(e.exit("htmlFlowData"),W(B)):(e.consume(B),G)}function W(B){return e.exit("htmlFlow"),t(B)}}function Ace(e,t,r){const n=this;return i;function i(o){return We(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function Mce(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ax,t,r)}}const kce={name:"htmlText",tokenize:Ice};function Ice(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),b):L===63?(e.consume(L),x):Sa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):Sa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):We(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):We(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):We(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):We(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function b(L){return Sa(L)?(e.consume(L),_):r(L)}function _(L){return L===45||Hn(L)?(e.consume(L),_):w(L)}function w(L){return We(L)?(o=w,$(L)):yt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Hn(L)?(e.consume(L),C):L===47||L===62||Rn(L)?T(L):r(L)}function T(L){return L===47?(e.consume(L),z):L===58||L===95||Sa(L)?(e.consume(L),A):We(L)?(o=T,$(L)):yt(L)?(e.consume(L),T):z(L)}function A(L){return L===45||L===46||L===58||L===95||Hn(L)?(e.consume(L),A):M(L)}function M(L){return L===61?(e.consume(L),k):We(L)?(o=M,$(L)):yt(L)?(e.consume(L),M):T(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,I):We(L)?(o=k,$(L)):yt(L)?(e.consume(L),k):(e.consume(L),P)}function I(L){return L===i?(e.consume(L),i=void 0,E):L===null?r(L):We(L)?(o=I,$(L)):(e.consume(L),I)}function P(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||Rn(L)?T(L):(e.consume(L),P)}function E(L){return L===47||L===62||Rn(L)?T(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),O}function O(L){return yt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const UM={name:"labelEnd",tokenize:Oce,resolveTo:Lce,resolveAll:Ece},Dce={tokenize:Nce},Pce={tokenize:zce},Rce={tokenize:Bce};function Ece(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function Lce(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=pi(s,e.slice(a+1,a+n+3)),s=pi(s,[["enter",c,t]]),s=pi(s,jM(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=pi(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=pi(s,e.slice(o+1)),s=pi(s,[["exit",l,t]]),Fa(e,a,e.length,s),e}function Oce(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?f(d):(o=n.parser.defined.includes(nf(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(Dce,c,o?c:f)(d):d===91?e.attempt(Pce,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt(Rce,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function Nce(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Rn(f)?zh(e,a)(f):a(f)}function a(f){return f===41?c(f):YG(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Rn(f)?zh(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?qG(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Rn(f)?zh(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function zce(e,t,r){const n=this;return i;function i(s){return XG.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(nf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function Bce(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Fce={name:"labelStartImage",tokenize:Vce,resolveAll:UM.resolveAll};function Vce(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const $ce={name:"labelStartLink",tokenize:Gce,resolveAll:UM.resolveAll};function Gce(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const YS={name:"lineEnding",tokenize:Hce};function Hce(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Nt(e,t,"linePrefix")}}const Hm={name:"thematicBreak",tokenize:Wce};function Wce(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||We(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),yt(u)?Nt(e,s,"whitespace")(u):s(u))}}const Sn={name:"list",tokenize:Yce,continuation:{tokenize:Xce},exit:Zce},jce={tokenize:Kce,partial:!0},Uce={tokenize:qce,partial:!0};function Yce(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:WC(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Hm,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return WC(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(ax,n.interrupt?r:c,e.attempt(jce,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return yt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Xce(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ax,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!yt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Uce,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(Sn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function qce(e,t,r){const n=this;return Nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Zce(e){e.exit(this.containerState.type)}function Kce(e,t,r){const n=this;return Nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!yt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const bE={name:"setextUnderline",tokenize:Jce,resolveTo:Qce};function Qce(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function Jce(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),yt(u)?Nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||We(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const efe={tokenize:tfe};function tfe(e){const t=this,r=e.attempt(ax,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(oce,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const rfe={resolveAll:KG()},nfe=ZG("string"),ife=ZG("text");function ZG(e){return{tokenize:t,resolveAll:KG(e==="text"?afe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function KG(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function afe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function ofe(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:y,enter:x,exit:S,attempt:w(b),check:w(_),interrupt:w(_,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:d,now:p,defineSkip:v,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(M){return o=pi(o,M),g(),o[o.length-1]!==null?[]:(C(t,0),u.events=jM(a,u.events,u),u.events)}function d(M,k){return lfe(h(M),k)}function h(M){return sfe(o,M)}function p(){const{line:M,column:k,offset:I,_index:P,_bufferIndex:E}=n;return{line:M,column:k,offset:I,_index:P,_bufferIndex:E}}function v(M){i[M.line]=M.column,A()}function g(){let M;for(;n._index<o.length;){const k=o[n._index];if(typeof k=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<k.length;)m(k.charCodeAt(n._bufferIndex));else m(k)}}function m(M){c=c(M)}function y(M){We(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,A()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=M}function x(M,k){const I=k||{};return I.type=M,I.start=p(),u.events.push(["enter",I,u]),s.push(I),I}function S(M){const k=s.pop();return k.end=p(),u.events.push(["exit",k,u]),k}function b(M,k){C(M,k.from)}function _(M,k){k.restore()}function w(M,k){return I;function I(P,E,z){let $,O,V,L;return Array.isArray(P)?W(P):"tokenize"in P?W([P]):G(P);function G(U){return re;function re(Q){const ae=Q!==null&&U[Q],se=Q!==null&&U.null,K=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(se)?se:se?[se]:[]];return W(K)(Q)}}function W(U){return $=U,O=0,U.length===0?z:B(U[O])}function B(U){return re;function re(Q){return L=T(),V=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?te():U.tokenize.call(k?Object.assign(Object.create(u),k):u,l,X,te)(Q)}}function X(U){return M(V,L),E}function te(U){return L.restore(),++O<$.length?B($[O]):z}}}function C(M,k){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&Fa(u.events,k,u.events.length-k,M.resolve(u.events.slice(k),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function T(){const M=p(),k=u.previous,I=u.currentConstruct,P=u.events.length,E=Array.from(s);return{restore:z,from:P};function z(){n=M,u.previous=k,u.currentConstruct=I,u.events.length=P,s=E,A()}}function A(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function sfe(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function lfe(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
144
|
-
`;break}case-3:{o=`\r
|
145
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const ufe={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:HG},cfe={91:fce},ffe={[-2]:US,[-1]:US,32:US},dfe={35:mce,42:Hm,45:[bE,Hm],60:_ce,61:bE,95:Hm,96:SE,126:SE},hfe={38:jG,92:WG},pfe={[-5]:YS,[-4]:YS,[-3]:YS,33:Fce,38:jG,42:jC,60:[Gue,kce],91:$ce,92:[vce,WG],93:UM,95:jC,96:tce},vfe={null:[jC,rfe]},gfe={null:[42,95]},mfe={null:[]},yfe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gfe,contentInitial:cfe,disable:mfe,document:ufe,flow:dfe,flowInitial:ffe,insideSpan:vfe,string:hfe,text:pfe},Symbol.toStringTag,{value:"Module"}));function xfe(e){const r=Mue([yfe,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(Oue),document:i(zue),flow:i(efe),string:i(nfe),text:i(ife)};return n;function i(a){return o;function o(s){return ofe(n,a,s)}}}function Sfe(e){for(;!UG(e););return e}const wE=/[\0\t\n\r]/g;function _fe(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(wE.lastIndex=f,u=wE.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const bfe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wfe(e){return e.replace(bfe,Cfe)}function Cfe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return $G(r.slice(a?2:1),a?16:10)}return WM(r)||e}const QG={}.hasOwnProperty;function Tfe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Afe(r)(Sfe(xfe(r).document().write(_fe()(e,t,!0))))}function Afe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ht),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ve),blockQuote:a(ae),characterEscape:T,characterReference:T,codeFenced:a(se),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(se,o),codeText:a(K,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ee),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(me),hardBreakEscape:a(Le),hardBreakTrailing:a(Le),htmlFlow:a(tt,o),htmlFlowData:T,htmlText:a(tt,o),htmlTextData:T,image:a(Ke),label:o,link:a(ht),listItem:a(Bt),listItemValue:d,listOrdered:a(pt,f),listUnordered:a(pt),paragraph:a(nt),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ve),strong:a(kr),thematicBreak:a(It)},exit:{atxHeading:l(),atxHeadingSequence:b,autolink:l(),autolinkEmail:Q,autolinkProtocol:re,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:U,codeFenced:l(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:l(m),codeText:l(E),codeTextData:A,data:A,definition:l(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(I),htmlFlowData:A,htmlText:l(P),htmlTextData:A,image:l($),label:V,labelText:O,lineEnding:M,link:l(z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:L,resourceTitleString:G,resource:W,setextHeading:l(C),setextHeadingLineSequence:w,setextHeadingText:_,strong:l(),thematicBreak:l()}};JG(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(Z){let ce={type:"root",children:[]};const Re={stack:[ce],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},Te=[];let he=-1;for(;++he<Z.length;)if(Z[he][1].type==="listOrdered"||Z[he][1].type==="listUnordered")if(Z[he][0]==="enter")Te.push(he);else{const $t=Te.pop();he=i(Z,$t,he)}for(he=-1;++he<Z.length;){const $t=t[Z[he][0]];QG.call($t,Z[he][1].type)&&$t[Z[he][1].type].call(Object.assign({sliceSerialize:Z[he][2].sliceSerialize},Re),Z[he][1])}if(Re.tokenStack.length>0){const $t=Re.tokenStack[Re.tokenStack.length-1];($t[1]||CE).call(Re,void 0,$t[0])}for(ce.position={start:Fo(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Fo(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)ce=t.transforms[he](ce)||ce;return ce}function i(Z,ce,Re){let Te=ce-1,he=-1,$t=!1,Sr,Me,lt,Rt;for(;++Te<=Re;){const pe=Z[Te];switch(pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pe[0]==="enter"?he++:he--,Rt=void 0;break}case"lineEndingBlank":{pe[0]==="enter"&&(Sr&&!Rt&&!he&&!lt&&(lt=Te),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!he&&pe[0]==="enter"&&pe[1].type==="listItemPrefix"||he===-1&&pe[0]==="exit"&&(pe[1].type==="listUnordered"||pe[1].type==="listOrdered")){if(Sr){let Pe=Te;for(Me=void 0;Pe--;){const Xe=Z[Pe];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Me&&(Z[Me][1].type="lineEndingBlank",$t=!0),Xe[1].type="lineEnding",Me=Pe}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}lt&&(!Me||lt<Me)&&(Sr._spread=!0),Sr.end=Object.assign({},Me?Z[Me][1].start:pe[1].end),Z.splice(Me||Te,0,["exit",Sr,pe[2]]),Te++,Re++}if(pe[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},pe[1].start),end:void 0};Sr=Pe,Z.splice(Te,0,["enter",Pe,pe[2]]),Te++,Re++,lt=void 0,Rt=!0}}}return Z[ce][1]._spread=$t,Re}function a(Z,ce){return Re;function Re(Te){s.call(this,Z(Te),Te),ce&&ce.call(this,Te)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(Z,ce,Re){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ce,Re]),Z.position={start:Fo(ce.start),end:void 0}}function l(Z){return ce;function ce(Re){Z&&Z.call(this,Re),u.call(this,Re)}}function u(Z,ce){const Re=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==Z.type&&(ce?ce.call(this,Z,Te[0]):(Te[1]||CE).call(this,Z,Te[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Nh({start:Z.start,end:Z.end})+"): it’s not open");Re.position.end=Fo(Z.end)}function c(){return Tue(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(Z){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function h(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=Z}function p(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=Z}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.value=Z.replace(/(\r?\n|\r)$/g,"")}function y(Z){const ce=this.resume(),Re=this.stack[this.stack.length-1];Re.label=ce,Re.identifier=nf(this.sliceSerialize(Z)).toLowerCase()}function x(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.title=Z}function S(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.url=Z}function b(Z){const ce=this.stack[this.stack.length-1];if(!ce.depth){const Re=this.sliceSerialize(Z).length;ce.depth=Re}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function w(Z){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function T(Z){const Re=this.stack[this.stack.length-1].children;let Te=Re[Re.length-1];(!Te||Te.type!=="text")&&(Te=jt(),Te.position={start:Fo(Z.start),end:void 0},Re.push(Te)),this.stack.push(Te)}function A(Z){const ce=this.stack.pop();ce.value+=this.sliceSerialize(Z),ce.position.end=Fo(Z.end)}function M(Z){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=ce.children[ce.children.length-1];Re.position.end=Fo(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ce.type)&&(T.call(this,Z),A.call(this,Z))}function k(){this.data.atHardBreak=!0}function I(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.value=Z}function P(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.value=Z}function E(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.value=Z}function z(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ce,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function $(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ce,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function O(Z){const ce=this.sliceSerialize(Z),Re=this.stack[this.stack.length-2];Re.label=wfe(ce),Re.identifier=nf(ce).toLowerCase()}function V(){const Z=this.stack[this.stack.length-1],ce=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const Te=Z.children;Re.children=Te}else Re.alt=ce}function L(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.url=Z}function G(){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.title=Z}function W(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function X(Z){const ce=this.resume(),Re=this.stack[this.stack.length-1];Re.label=ce,Re.identifier=nf(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function te(Z){this.data.characterReferenceType=Z.type}function U(Z){const ce=this.sliceSerialize(Z),Re=this.data.characterReferenceType;let Te;Re?(Te=$G(ce,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=WM(ce);const he=this.stack.pop();he.value+=Te,he.position.end=Fo(Z.end)}function re(Z){A.call(this,Z);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(Z)}function Q(Z){A.call(this,Z);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(Z)}function ae(){return{type:"blockquote",children:[]}}function se(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function ee(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Le(){return{type:"break"}}function tt(){return{type:"html",value:""}}function Ke(){return{type:"image",title:null,url:"",alt:null}}function ht(){return{type:"link",title:null,url:"",children:[]}}function pt(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Bt(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function nt(){return{type:"paragraph",children:[]}}function kr(){return{type:"strong",children:[]}}function jt(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function Fo(e){return{line:e.line,column:e.column,offset:e.offset}}function JG(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?JG(e,n):Mfe(e,n)}}function Mfe(e,t){let r;for(r in t)if(QG.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function CE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nh({start:t.start,end:t.end})+") is still open")}function kfe(e){const t=this;t.parser=r;function r(n){return Tfe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ife(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Dfe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
146
|
-
`}]}function Pfe(e,t){const r=t.value?t.value+`
|
147
|
-
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Rfe(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Efe(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lfe(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Gf(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Ofe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Nfe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function e6(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function zfe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return e6(e,t);const i={src:Gf(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Bfe(e,t){const r={src:Gf(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Ffe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Vfe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return e6(e,t);const i={href:Gf(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function $fe(e,t){const r={href:Gf(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gfe(e,t,r){const n=e.all(t),i=r?Hfe(r):t6(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const c=n[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
148
|
-
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
149
|
-
`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function Hfe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=t6(r[n])}return t}function t6(e){const t=e.spread;return t??e.children.length>1}function Wfe(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const o=n[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function jfe(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ufe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Yfe(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Xfe(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=GM(t.children[1]),l=zG(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function qfe(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const f=t.children[l],d={},h=o?o[l]:void 0;h&&(d.align=h);let p={type:"element",tagName:a,properties:d,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Zfe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const TE=9,AE=32;function Kfe(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(ME(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(ME(t.slice(i),i>0,!1)),a.join("")}function ME(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===TE||a===AE;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===TE||a===AE;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Qfe(e,t){const r={type:"text",value:Kfe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Jfe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const ede={blockquote:Ife,break:Dfe,code:Pfe,delete:Rfe,emphasis:Efe,footnoteReference:Lfe,heading:Ofe,html:Nfe,imageReference:zfe,image:Bfe,inlineCode:Ffe,linkReference:Vfe,link:$fe,listItem:Gfe,list:Wfe,paragraph:jfe,root:Ufe,strong:Yfe,table:Xfe,tableCell:Zfe,tableRow:qfe,text:Qfe,thematicBreak:Jfe,toml:bg,yaml:bg,definition:bg,footnoteDefinition:bg};function bg(){}const r6=-1,ox=0,Xy=1,qy=2,YM=3,XM=4,qM=5,ZM=6,n6=7,i6=8,kE=typeof self=="object"?self:globalThis,tde=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case ox:case r6:return r(o,i);case Xy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case qy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case YM:return r(new Date(o),i);case XM:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case qM:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case ZM:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case n6:{const{name:s,message:l}=o;return r(new kE[s](l),i)}case i6:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new kE[a](o),i)};return n},IE=e=>tde(new Map,e)(0),Qu="",{toString:rde}={},{keys:nde}=Object,bd=e=>{const t=typeof e;if(t!=="object"||!e)return[ox,t];const r=rde.call(e).slice(8,-1);switch(r){case"Array":return[Xy,Qu];case"Object":return[qy,Qu];case"Date":return[YM,Qu];case"RegExp":return[XM,Qu];case"Map":return[qM,Qu];case"Set":return[ZM,Qu]}return r.includes("Array")?[Xy,r]:r.includes("Error")?[n6,r]:[qy,r]},wg=([e,t])=>e===ox&&(t==="function"||t==="symbol"),ide=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=bd(o);switch(s){case ox:{let c=o;switch(l){case"bigint":s=i6,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([r6],o)}return i([s,c],o)}case Xy:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case qy:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of nde(o))(e||!wg(bd(o[d])))&&c.push([a(d),a(o[d])]);return f}case YM:return i([s,o.toISOString()],o);case XM:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case qM:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(wg(bd(d))||wg(bd(h))))&&c.push([a(d),a(h)]);return f}case ZM:{const c=[],f=i([s,c],o);for(const d of o)(e||!wg(bd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},DE=(e,{json:t,lossy:r}={})=>{const n=[];return ide(!(t||r),!!t,new Map,n)(e),n},Zy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?IE(DE(e,t)):structuredClone(e):(e,t)=>IE(DE(e,t));function ade(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function ode(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||ade,n=e.options.footnoteBackLabel||ode,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=Gf(f.toLowerCase());let h=0;const p=[],v=e.footnoteCounts.get(f);for(;v!==void 0&&++h<=v;){p.length>0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Zy(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
150
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
151
|
-
`}]}}const a6=function(e){if(e==null)return fde;if(typeof e=="function")return sx(e);if(typeof e=="object")return Array.isArray(e)?lde(e):ude(e);if(typeof e=="string")return cde(e);throw new Error("Expected function, string, or object as test")};function lde(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=a6(e[r]);return sx(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ude(e){const t=e;return sx(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function cde(e){return sx(t);function t(r){return r&&r.type===e}}function sx(e){return t;function t(r,n,i){return!!(dde(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function fde(){return!0}function dde(e){return e!==null&&typeof e=="object"&&"type"in e}const o6=[],hde=!0,PE=!1,pde="skip";function vde(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=a6(i),o=n?-1:1;s(e,void 0,[])();function s(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=o6,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=gde(r(l,c)),h[0]===PE))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==pde)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v<m.children.length;){const y=m.children[v];if(p=s(y,v,g)(),p[0]===PE)return p;v=typeof p[1]=="number"?p[1]:v+o}}return h}}}function gde(e){return Array.isArray(e)?e:typeof e=="number"?[hde,e]:e==null?o6:[e]}function s6(e,t,r,n){let i,a,o;typeof t=="function"&&typeof r!="function"?(a=void 0,o=t,i=r):(a=t,o=r,i=n),vde(e,a,s,i);function s(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const UC={}.hasOwnProperty,mde={};function yde(e,t){const r=t||mde,n=new Map,i=new Map,a=new Map,o={...ede,...r.handlers},s={all:u,applyData:Sde,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:r,patch:xde,wrap:bde};return s6(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?n:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),s;function l(c,f){const d=c.type,h=s.handlers[d];if(UC.call(s.handlers,d)&&h)return h(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in c){const{children:v,...g}=c,m=Zy(g);return m.children=s.all(c),m}return Zy(c)}return(s.options.unknownHandler||_de)(s,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const p=s.one(d[h],c);if(p){if(h&&d[h-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=RE(p.value)),!Array.isArray(p)&&p.type==="element")){const v=p.children[0];v&&v.type==="text"&&(v.value=RE(v.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function xde(e,t){e.position&&(t.position=sue(e))}function Sde(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,Zy(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function _de(e,t){const r=t.data||{},n="value"in t&&!(UC.call(r,"hProperties")||UC.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bde(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
152
|
-
`});++n<e.length;)n&&r.push({type:"text",value:`
|
153
|
-
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
154
|
-
`}),r}function RE(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function EE(e,t){const r=yde(e,t),n=r.one(e,void 0),i=sde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
155
|
-
`},i),a}function wde(e,t){return e&&"run"in e?async function(r,n){const i=EE(r,t);await e.run(i,n)}:function(r){return EE(r,t||e)}}function LE(e){if(e)throw e}var Wm=Object.prototype.hasOwnProperty,l6=Object.prototype.toString,OE=Object.defineProperty,NE=Object.getOwnPropertyDescriptor,zE=function(t){return typeof Array.isArray=="function"?Array.isArray(t):l6.call(t)==="[object Array]"},BE=function(t){if(!t||l6.call(t)!=="[object Object]")return!1;var r=Wm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Wm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Wm.call(t,i)},FE=function(t,r){OE&&r.name==="__proto__"?OE(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},VE=function(t,r){if(r==="__proto__")if(Wm.call(t,r)){if(NE)return NE(t,r).value}else return;return t[r]},Cde=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=VE(s,r),i=VE(t,r),s!==i&&(c&&i&&(BE(i)||(a=zE(i)))?(a?(a=!1,o=n&&zE(n)?n:[]):o=n&&BE(n)?n:{},FE(s,{name:r,newValue:e(c,o,i)})):typeof i<"u"&&FE(s,{name:r,newValue:i}));return s};const XS=X0(Cde);function YC(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 Tde(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const c=e[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Ade(c,s)(...u):o(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Ade(e,t){let r;return n;function n(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const pa={basename:Mde,dirname:kde,extname:Ide,join:Dde,sep:"/"};function Mde(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cv(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function kde(e){if(Cv(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ide(e){Cv(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function Dde(...e){let t=-1,r;for(;++t<e.length;)Cv(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Pde(r)}function Pde(e){Cv(e);const t=e.codePointAt(0)===47;let r=Rde(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Rde(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function Cv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ede={cwd:Lde};function Lde(){return"/"}function XC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ode(e){if(typeof e=="string")e=new URL(e);else if(!XC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Nde(e)}function Nde(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const qS=["history","path","basename","stem","extname","dirname"];class u6{constructor(t){let r;t?XC(t)?r={path:t}:typeof t=="string"||zde(t)?r={value:t}:r=t:r={},this.cwd=Ede.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<qS.length;){const a=qS[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)qS.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?pa.basename(this.path):void 0}set basename(t){KS(t,"basename"),ZS(t,"basename"),this.path=pa.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pa.dirname(this.path):void 0}set dirname(t){$E(this.basename,"dirname"),this.path=pa.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pa.extname(this.path):void 0}set extname(t){if(ZS(t,"extname"),$E(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pa.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){XC(t)&&(t=Ode(t)),KS(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pa.basename(this.path,this.extname):void 0}set stem(t){KS(t,"stem"),ZS(t,"stem"),this.path=pa.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new gn(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ZS(e,t){if(e&&e.includes(pa.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pa.sep+"`")}function KS(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $E(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function zde(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bde=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,n);const o=Object.getOwnPropertyNames(i);for(const s of o){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(a,s,l)}return a},Fde={}.hasOwnProperty;class KM extends Bde{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Tde()}copy(){const t=new KM;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(XS(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(e_("data",this.frozen),this.namespace[t]=r,this):Fde.call(this.namespace,t)&&this.namespace[t]||void 0:t?(e_("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Cg(t),n=this.parser||this.Parser;return QS("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),QS("process",this.parser||this.Parser),JS("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=Cg(t),l=n.parse(s);n.run(l,s,function(c,f,d){if(c||!f||!d)return u(c);const h=f,p=n.stringify(h,d);Gde(p)?d.value=p:d.result=p,u(c,d)});function u(c,f){c||!f?o(c):a?a(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),QS("processSync",this.parser||this.Parser),JS("processSync",this.compiler||this.Compiler),this.process(t,i),HE("processSync","process",r),n;function i(a,o){r=!0,LE(a),n=o}}run(t,r,n){GE(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const l=Cg(r);i.run(t,l,u);function u(c,f,d){const h=f||t;c?s(c):o?o(h):n(void 0,h,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),HE("runSync","run",n),i;function a(o,s){LE(o),i=s,n=!0}}stringify(t,r){this.freeze();const n=Cg(r),i=this.compiler||this.Compiler;return JS("stringify",i),GE(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(e_("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=XS(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<n.length;)if(n[f][0]===u){d=f;break}if(d===-1)n.push([u,...c]);else if(c.length>0){let[h,...p]=c;const v=n[d][1];YC(v)&&YC(h)&&(h=XS(!0,v,h)),n[d]=[u,h,...p]}}}}const Vde=new KM().freeze();function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function e_(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function GE(e){if(!YC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HE(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Cg(e){return $de(e)?e:new u6(e)}function $de(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Gde(e){return typeof e=="string"||Hde(e)}function Hde(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Wde="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",WE=[],jE={allowDangerousHtml:!0},jde=/^(https?|ircs?|mailto|xmpp)$/i,Ude=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yde(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||WE,l=e.remarkPlugins||WE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jE}:jE,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Xde,h=Vde().use(kfe).use(l).use(wde,u).use(s),p=new u6;typeof n=="string"&&(p.value=n);for(const y of Ude)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Wde+y.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),s6(g,m),hue(g,{Fragment:R.Fragment,components:a,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function m(y,x,S){if(y.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let b;for(b in jS)if(Object.hasOwn(jS,b)&&Object.hasOwn(y.properties,b)){const _=y.properties[b],w=jS[b];(w===null||w.includes(y.tagName))&&(y.properties[b]=d(String(_||""),b,y))}}if(y.type==="element"){let b=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!b&&r&&typeof x=="number"&&(b=!r(y,x,S)),b&&S&&typeof x=="number")return f&&y.children?S.children.splice(x,1,...y.children):S.children.splice(x,1),x}}}function Xde(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||r>-1&&t>r||n>-1&&t>n||jde.test(e.slice(0,t))?e:""}function qde(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return a<o?r*-1:a>o?r*1:0}}function Zde(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=N.useState(e),[a,o]=N.useState(!1),s=N.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(qde(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=N.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return N.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const oh=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Kde({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?oh(e,r):n?R.jsx(Yde,{skipHtml:!1,children:e}):e}function Tv({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=Zde(e,{hasTotalRow:r,defaultSortKey:n});return R.jsx(J$,{component:Hs,sx:{overflowX:"visible"},children:R.jsxs(K$,{children:[R.jsx(eG,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:R.jsx(Uy,{children:t.map(({title:s,key:l})=>R.jsx(El,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),R.jsx(Q$,{children:a.map((s,l)=>R.jsx(Uy,{children:t.map(({key:u,...c},f)=>R.jsx(El,{children:R.jsx(Kde,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}function Qde({rows:e,tableStructure:t}){return t?R.jsx(Tv,{rows:e,structure:t}):null}const Jde=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:HV(a),...o})):null,rows:i?i.data:[]}},ehe=Nn(Jde)(Qde),the=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function rhe({exceptions:e}){return R.jsx(Tv,{rows:e,structure:the})}const nhe=({ui:{exceptions:e}})=>({exceptions:e}),ihe=Nn(nhe)(rhe),ahe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function ohe({errors:e}){return R.jsx(Tv,{rows:e,structure:ahe})}const she=({ui:{errors:e}})=>({errors:e}),lhe=Nn(she)(ohe),uhe=e=>e.includes("CRITICAL")?Jo[900]:e.includes("ERROR")?Jo[700]:e.includes("WARNING")?FZ[900]:e.includes("DEBUG")?wl[700]:"text.primary";function c6({log:e}){return R.jsx(ot,{color:uhe(e),fontFamily:"monospace",variant:"body2",children:e})}function che({workerId:e,logs:t}){const[r,n]=N.useState(!1);return N.useEffect(()=>{t.some(_G)&&n(!0)},[t]),R.jsxs(vM,{children:[R.jsxs(mM,{expandIcon:R.jsx(ix,{}),onClick:()=>n(!1),children:[r&&R.jsx(FM,{color:"secondary"}),e]}),R.jsx(gM,{children:R.jsx(Hs,{elevation:3,sx:{p:2},children:t.map((i,a)=>R.jsx(c6,{log:i},`worker-${e}-log-${a}`))})})]})}function fhe(){const{master:e,workers:t}=Ya(({logViewer:r})=>r);return R.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[R.jsxs(Ct,{children:[R.jsx(ot,{sx:{mb:2},variant:"h5",children:"Master Logs"}),R.jsx(Hs,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>R.jsx(c6,{log:r},`master-log-${n}`))})]}),!!Ll(t)&&R.jsxs(Ct,{children:[R.jsx(ot,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>R.jsx(che,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function dhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Ya(({theme:{isDarkMode:n}})=>n);return R.jsxs(H$,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(qu,{children:R.jsx(_n,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&R.jsx(qu,{children:R.jsx(_n,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),R.jsx(qu,{children:R.jsx(_n,{href:"/stats/failures/csv",children:"Download failures CSV"})}),R.jsx(qu,{children:R.jsx(_n,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),R.jsx(qu,{children:R.jsx(_n,{href:`/stats/report?theme=${r?Ra.DARK:Ra.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>R.jsx(qu,{children:R.jsx(_n,{href:n,children:i})},`extended-csv-${a}`))]})}const hhe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),phe=Nn(hhe)(dhe);var QM={},vhe=Ru;Object.defineProperty(QM,"__esModule",{value:!0});var f6=QM.default=void 0,ghe=vhe(Eu()),mhe=R,yhe=(0,ghe.default)((0,mhe.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");f6=QM.default=yhe;function xhe({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=N.useState(null);return R.jsxs(B$,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[R.jsx(Ua,{onClick:o=>a(o.currentTarget),variant:"outlined",children:R.jsx(f6,{})}),R.jsx(Y$,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:R.jsx(V$,{sx:{p:2},children:e.map(({key:o,title:s})=>R.jsx(F$,{control:R.jsx(fae,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function She(e){const[t,r]=N.useState(e.map(o=>o.key));return{selectedColumns:t,addColumn:o=>{r([...t,o])},removeColumn:o=>{r(t.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>t.includes(s.key)))(e)}}const _he=Ea.percentilesToStatistics?Ea.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],bhe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},..._he,{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 whe({stats:e,tableStructure:t=bhe}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=She(t);return R.jsxs(R.Fragment,{children:[R.jsx(xhe,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),R.jsx(Tv,{hasTotalRow:!0,rows:e,structure:a})]})}const Che=({ui:{stats:e}})=>({stats:e}),The=Nn(Che)(whe);/*! *****************************************************************************
|
156
|
-
Copyright (c) Microsoft Corporation.
|
157
|
-
|
158
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
159
|
-
purpose with or without fee is hereby granted.
|
160
|
-
|
161
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
162
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
163
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
164
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
165
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
166
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
167
|
-
PERFORMANCE OF THIS SOFTWARE.
|
168
|
-
***************************************************************************** */var qC=function(e,t){return qC=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])},qC(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ahe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Mhe=function(){function e(){this.browser=new Ahe,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}(),je=new Mhe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(je.wxa=!0,je.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?je.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(je.node=!0,je.svgSupported=!0):khe(navigator.userAgent,je);function khe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(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 JM=12,d6="sans-serif",Rs=JM+"px "+d6,Ihe=20,Dhe=100,Phe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Rhe(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)-Ihe)/Dhe;t[n]=i}return t}var Ehe=Rhe(Phe),Es={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Es.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Rs),e.measureText(r);r=r||"",n=n||Rs;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||JM,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Ehe[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},h6=Va(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),p6=Va(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Hf=Object.prototype.toString,lx=Array.prototype,Lhe=lx.forEach,Ohe=lx.filter,ek=lx.slice,Nhe=lx.map,UE=(function(){}).constructor,Tg=UE?UE.prototype:null,tk="__proto__",zhe=2311;function v6(){return zhe++}function rk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Ce(e){if(e==null||typeof e!="object")return e;var t=e,r=Hf.call(e);if(r==="[object Array]"){if(!Bh(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Ce(e[n])}}else if(p6[r]){if(!Bh(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!h6[r]&&!Bh(e)&&!Tf(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==tk&&(t[o]=Ce(e[o]))}return t}function Oe(e,t,r){if(!be(t)||!be(e))return r?Ce(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==tk){var i=e[n],a=t[n];be(a)&&be(i)&&!Y(a)&&!Y(i)&&!Tf(a)&&!Tf(i)&&!YE(a)&&!YE(i)&&!Bh(a)&&!Bh(i)?Oe(i,a,r):(r||!(n in e))&&(e[n]=Ce(t[n]))}return e}function nk(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=Oe(r,e[n],t);return r}function j(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==tk&&(e[r]=t[r]);return e}function _e(e,t,r){for(var n=Ye(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function ze(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 Bhe(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 or(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 a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else _e(e,t,r)}function qr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Lhe)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 a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function q(e,t,r){if(!e)return[];if(!t)return ik(e);if(e.map&&e.map===Nhe)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Va(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function ft(e,t,r){if(!e)return[];if(!t)return ik(e);if(e.filter&&e.filter===Ohe)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Fhe(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function Ye(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 Vhe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(ek.call(arguments)))}}var le=Tg&&Se(Tg.bind)?Tg.call.bind(Tg.bind):Vhe;function De(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ek.call(arguments)))}}function Y(e){return Array.isArray?Array.isArray(e):Hf.call(e)==="[object Array]"}function Se(e){return typeof e=="function"}function ne(e){return typeof e=="string"}function ZC(e){return Hf.call(e)==="[object String]"}function et(e){return typeof e=="number"}function be(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function YE(e){return!!h6[Hf.call(e)]}function On(e){return!!p6[Hf.call(e)]}function Tf(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function ux(e){return e.colorStops!=null}function $he(e){return e.image!=null}function Ghe(e){return Hf.call(e)==="[object RegExp]"}function Pp(e){return e!==e}function wr(){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 Ie(e,t){return e??t}function La(e,t,r){return e??t??r}function ik(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ek.apply(e,t)}function ak(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 cn(e,t){if(!e)throw new Error(t)}function Wi(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var g6="__ec_primitive__";function Ky(e){e[g6]=!0}function Bh(e){return e[g6]}var Hhe=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 Ye(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),m6=typeof Map=="function";function Whe(){return m6?new Map:new Hhe}var jhe=function(){function e(t){var r=Y(t);this.data=Whe();var n=this;t instanceof e?t.each(i):t&&D(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}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 m6?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function de(e){return new jhe(e)}function Qy(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 cx(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&j(r,t),r}function y6(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function fe(e,t){return e.hasOwnProperty(t)}function er(){}var jm=180/Math.PI;/*! *****************************************************************************
|
169
|
-
Copyright (c) Microsoft Corporation.
|
170
|
-
|
171
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
172
|
-
purpose with or without fee is hereby granted.
|
173
|
-
|
174
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
175
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
176
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
177
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
178
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
179
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
180
|
-
PERFORMANCE OF THIS SOFTWARE.
|
181
|
-
***************************************************************************** */var KC=function(e,t){return KC=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])},KC(e,t)};function Dt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");KC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Ou(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function en(e,t){return e[0]=t[0],e[1]=t[1],e}function uo(e){return[e[0],e[1]]}function Uhe(e,t,r){return e[0]=t,e[1]=r,e}function XE(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function QC(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Ul(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function JC(e){return Math.sqrt(Yhe(e))}function Yhe(e){return e[0]*e[0]+e[1]*e[1]}function Um(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Wf(e,t){var r=JC(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function eT(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var os=eT;function Xhe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ru=Xhe;function Ym(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Or(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 ss(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function ls(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Ju=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),qhe=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 Ju(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Ju(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 Ju(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ju(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ju(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ju(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Di=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[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=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);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],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.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],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Zhe=Math.log(2);function tT(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Zhe);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&i||(f+=(h%2?-1:1)*e[r][d]*tT(e,t-1,c,u,i|p,a),h++)}return a[o]=f,f}function qE(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=tT(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*tT(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var ZE="___zrEVENTSAVED",t_=[];function Khe(e,t,r,n,i){return rT(t_,t,n,i,!0)&&rT(e,r,t_[0],t_[1])}function rT(e,t,r,n,i){if(t.getBoundingClientRect&&je.domSupported&&!x6(t)){var a=t[ZE]||(t[ZE]={}),o=Qhe(t,a),s=Jhe(o,a,i);if(s)return s(e,r,n),!0}return!1}function Qhe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Jhe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?qE(s,o):qE(o,s))}function x6(e){return e.nodeName.toUpperCase()==="CANVAS"}var epe=/([&<>"'])/g,tpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function wn(e){return e==null?"":(e+"").replace(epe,function(t,r){return tpe[r]})}var rpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,r_=[],npe=je.browser.firefox&&+je.browser.version.split(".")[0]<39;function nT(e,t,r,n){return r=r||{},n?KE(e,t,r):npe&&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):KE(e,t,r),r}function KE(e,t,r){if(je.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(x6(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(rT(r_,e,n,i)){r.zrX=r_[0],r.zrY=r_[1];return}}r.zrX=r.zrY=0}function ok(e){return e||window.event}function oi(e,t,r){if(t=ok(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&nT(e,o,t,r)}else{nT(e,t,t,r);var a=ipe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&rpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function ipe(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),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function iT(e,t,r,n){e.addEventListener(t,r,n)}function ape(e,t,r,n){e.removeEventListener(t,r,n)}var bo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function QE(e){return e.which===2||e.which===3}var ope=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 a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=nT(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in n_)if(n_.hasOwnProperty(r)){var n=n_[r](this._track,t);if(n)return n}},e}();function JE(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function spe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var n_={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 a=JE(n)/JE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=spe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Yn(){return[1,0,0,1,0,0]}function fx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function sk(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 co(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=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]=a,e[3]=o,e[4]=s,e[5]=l,e}function $a(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 Nu(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function lk(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 jf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function lpe(e){var t=Yn();return sk(t,e),t}var Ee=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 a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Ag=Math.min,Mg=Math.max,Zs=new Ee,Ks=new Ee,Qs=new Ee,Js=new Ee,wd=new Ee,Cd=new Ee,Ne=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=Ag(t.x,this.x),n=Ag(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Mg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Mg(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,a=Yn();return $a(a,a,[-r.x,-r.y]),lk(a,a,[n,i]),$a(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var h=1/0,p=0,v=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(f-o),x=Math.min(v,g),S=Math.min(m,y);a<l||u<i?x>p&&(p=x,v<g?Ee.set(Cd,-v,0):Ee.set(Cd,g,0)):x<h&&(h=x,v<g?Ee.set(wd,v,0):Ee.set(wd,-g,0)),s<c||f<o?S>p&&(p=S,m<y?Ee.set(Cd,0,-m):Ee.set(Cd,0,y)):x<h&&(h=x,m<y?Ee.set(wd,0,m):Ee.set(wd,0,-y))}return r&&Ee.copy(r,d?wd:Cd),d},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],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Zs.x=Qs.x=r.x,Zs.y=Js.y=r.y,Ks.x=Js.x=r.x+r.width,Ks.y=Qs.y=r.y+r.height,Zs.transform(n),Js.transform(n),Ks.transform(n),Qs.transform(n),t.x=Ag(Zs.x,Ks.x,Qs.x,Js.x),t.y=Ag(Zs.y,Ks.y,Qs.y,Js.y);var l=Mg(Zs.x,Ks.x,Qs.x,Js.x),u=Mg(Zs.y,Ks.y,Qs.y,Js.y);t.width=l-t.x,t.height=u-t.y},e}(),S6="silent";function upe(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:cpe}}function cpe(){bo(this.event)}var fpe=function(e){Dt(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}(Di),Td=function(){function e(t,r){this.x=t,this.y=r}return e}(),dpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],i_=new Ne(0,0,0,0),_6=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Td(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new qhe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(dpe,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,a=b6(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Td(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==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 Td(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 a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=upe(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Td(r,n);if(eL(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(i_.copy(d.getBoundingRect()),d.transform&&i_.applyTransform(d.transform),i_.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<v;m+=p){var y=r+g*Math.cos(m),x=n+g*Math.sin(m);if(eL(s,o,y,x,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new ope);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Td;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Di);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){_6.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=b6(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||os(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function hpe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?S6:!0}return!1}function eL(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=hpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==S6)){t.target=o;break}}}function b6(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var w6=32,Ad=7;function ppe(e){for(var t=0;e>=w6;)t|=e&1,e>>=1;return e+t}function tL(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++;vpe(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function vpe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function rL(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function a_(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function o_(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function gpe(e,t){var r=Ad,n,i,a=0,o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var p=n[h],v=i[h],g=n[h+1],m=i[h+1];i[h]=v+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=o_(e[g],e,p,v,0,t);p+=y,v-=y,v!==0&&(m=a_(e[p+v-1],e,g,m,m-1,t),m!==0&&(v<=m?f(p,v,g,m):d(p,v,g,m)))}function f(h,p,v,g){var m=0;for(m=0;m<p;m++)o[m]=e[h+m];var y=0,x=v,S=h;if(e[S++]=e[x++],--g===0){for(m=0;m<p;m++)e[S+m]=o[y+m];return}if(p===1){for(m=0;m<g;m++)e[S+m]=e[x+m];e[S+g]=o[y];return}for(var b=r,_,w,C;;){_=0,w=0,C=!1;do if(t(e[x],o[y])<0){if(e[S++]=e[x++],w++,_=0,--g===0){C=!0;break}}else if(e[S++]=o[y++],_++,w=0,--p===1){C=!0;break}while((_|w)<b);if(C)break;do{if(_=o_(e[x],o,y,p,0,t),_!==0){for(m=0;m<_;m++)e[S+m]=o[y+m];if(S+=_,y+=_,p-=_,p<=1){C=!0;break}}if(e[S++]=e[x++],--g===0){C=!0;break}if(w=a_(o[y],e,x,g,0,t),w!==0){for(m=0;m<w;m++)e[S+m]=e[x+m];if(S+=w,x+=w,g-=w,g===0){C=!0;break}}if(e[S++]=o[y++],--p===1){C=!0;break}b--}while(_>=Ad||w>=Ad);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(m=0;m<g;m++)e[S+m]=e[x+m];e[S+g]=o[y]}else{if(p===0)throw new Error;for(m=0;m<p;m++)e[S+m]=o[y+m]}}function d(h,p,v,g){var m=0;for(m=0;m<g;m++)o[m]=e[v+m];var y=h+p-1,x=g-1,S=v+g-1,b=0,_=0;if(e[S--]=e[y--],--p===0){for(b=S-(g-1),m=0;m<g;m++)e[b+m]=o[m];return}if(g===1){for(S-=p,y-=p,_=S+1,b=y+1,m=p-1;m>=0;m--)e[_+m]=e[b+m];e[S]=o[x];return}for(var w=r;;){var C=0,T=0,A=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],C++,T=0,--p===0){A=!0;break}}else if(e[S--]=o[x--],T++,C=0,--g===1){A=!0;break}while((C|T)<w);if(A)break;do{if(C=p-o_(o[x],e,h,p,p-1,t),C!==0){for(S-=C,y-=C,p-=C,_=S+1,b=y+1,m=C-1;m>=0;m--)e[_+m]=e[b+m];if(p===0){A=!0;break}}if(e[S--]=o[x--],--g===1){A=!0;break}if(T=g-a_(e[y],o,0,g,g-1,t),T!==0){for(S-=T,x-=T,g-=T,_=S+1,b=x+1,m=0;m<T;m++)e[_+m]=o[b+m];if(g<=1){A=!0;break}}if(e[S--]=e[y--],--p===0){A=!0;break}w--}while(C>=Ad||T>=Ad);if(A)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,y-=p,_=S+1,b=y+1,m=p-1;m>=0;m--)e[_+m]=e[b+m];e[S]=o[x]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;m<g;m++)e[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Xm(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<w6){a=tL(e,r,n,t),rL(e,r,n,r+a,t);return}var o=gpe(e,t),s=ppe(i);do{if(a=tL(e,r,n,t),a<s){var l=i;l>s&&(l=s),rL(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var $n=1,sh=2,wc=4,nL=!1;function s_(){nL||(nL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function iL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var mpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=iL}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,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Xm(n,iL)},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 a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=$n),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(s_(),c.z=0),isNaN(c.z2)&&(s_(),c.z2=0),isNaN(c.zlevel)&&(s_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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=ze(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}(),Jy;Jy=je.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Fh={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-Fh.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?Fh.bounceIn(e*2)*.5:Fh.bounceOut(e*2-1)*.5+.5}},kg=Math.pow,Cs=Math.sqrt,e0=1e-8,C6=1e-4,aL=Cs(3),Ig=1/3,_a=Ou(),vi=Ou(),af=Ou();function us(e){return e>-e0&&e<e0}function T6(e){return e>e0||e<-e0}function hr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function oL(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function t0(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(us(c)&&us(f))if(us(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(us(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m)}else if(v>0){var y=Cs(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-kg(-x,Ig):x=kg(x,Ig),S<0?S=-kg(-S,Ig):S=kg(S,Ig);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var b=(2*c*s-3*o*f)/(2*Cs(c*c*c)),_=Math.acos(b)/3,w=Cs(c),C=Math.cos(_),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+aL*Math.sin(_)))/(3*o),T=(-s+w*(C-aL*Math.sin(_)))/(3*o);p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m),T>=0&&T<=1&&(a[h++]=T)}}return h}function A6(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(us(o)){if(T6(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(us(c))i[0]=-a/(2*o);else if(c>0){var f=Cs(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Ls(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function M6(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;_a[0]=l,_a[1]=u;for(var y=0;y<1;y+=.05)vi[0]=hr(e,r,i,o,y),vi[1]=hr(t,n,a,s,y),g=ru(_a,vi),g<h&&(f=y,h=g);h=1/0;for(var x=0;x<32&&!(d<C6);x++)p=f-d,v=f+d,vi[0]=hr(e,r,i,o,p),vi[1]=hr(t,n,a,s,p),g=ru(vi,_a),p>=0&&g<h?(f=p,h=g):(af[0]=hr(e,r,i,o,v),af[1]=hr(t,n,a,s,v),m=ru(af,_a),v<=1&&m<h?(f=v,h=m):d*=.5);return c&&(c[0]=hr(e,r,i,o,f),c[1]=hr(t,n,a,s,f)),Cs(h)}function ype(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,v=hr(e,r,i,o,p),g=hr(t,n,a,s,p),m=v-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=v,c=g}return f}function br(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function aT(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function xpe(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(us(a)){if(T6(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(us(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Cs(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function k6(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Rp(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function I6(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;_a[0]=o,_a[1]=s;for(var d=0;d<1;d+=.05){vi[0]=br(e,r,i,d),vi[1]=br(t,n,a,d);var h=ru(_a,vi);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<C6);p++){var v=u-c,g=u+c;vi[0]=br(e,r,i,v),vi[1]=br(t,n,a,v);var h=ru(vi,_a);if(v>=0&&h<f)u=v,f=h;else{af[0]=br(e,r,i,g),af[1]=br(t,n,a,g);var m=ru(af,_a);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=br(e,r,i,u),l[1]=br(t,n,a,u)),Cs(f)}function Spe(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=br(e,r,i,d),p=br(t,n,a,d),v=h-s,g=p-l;u+=Math.sqrt(v*v+g*g),s=h,l=p}return u}var _pe=/cubic-bezier\(([0-9,\.e ]+)\)/;function uk(e){var t=e&&_pe.exec(e);if(t){var r=t[1].split(","),n=+Wi(r[0]),i=+Wi(r[1]),a=+Wi(r[2]),o=+Wi(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:t0(0,n,a,1,l,s)&&hr(0,i,o,1,s[0])}}}var bpe=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||er,this.ondestroy=t.ondestroy||er,this.onrestart=t.onrestart||er,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,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===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=Se(t)?t:Fh[t]||uk(t)},e}(),D6=function(){function e(t){this.value=t}return e}(),wpe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new D6(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}(),Av=function(){function e(t){this._list=new wpe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new D6(r),s.key=t,n.insertEntry(s),i[t]=s}return a},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}(),sL={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 Xi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Cpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ep(e){return e<0?0:e>1?1:e}function l_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Xi(parseFloat(t)/100*255):Xi(parseInt(t,10))}function nu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ep(parseFloat(t)/100):Ep(parseFloat(t))}function u_(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 cs(e,t,r){return e+(t-e)*r}function ai(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function oT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var P6=new Av(20),Dg=null;function ec(e,t){Dg&&oT(Dg,t),Dg=P6.put(e,Dg||t.slice())}function Xn(e,t){if(e){t=t||[];var r=P6.get(e);if(r)return oT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in sL)return oT(t,sL[n]),ec(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ai(t,0,0,0,1);return}return ai(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ec(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ai(t,0,0,0,1);return}return ai(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ec(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ai(t,+u[0],+u[1],+u[2],1):ai(t,0,0,0,1);c=nu(u.pop());case"rgb":if(u.length>=3)return ai(t,l_(u[0]),l_(u[1]),l_(u[2]),u.length===3?c:nu(u[3])),ec(e,t),t;ai(t,0,0,0,1);return;case"hsla":if(u.length!==4){ai(t,0,0,0,1);return}return u[3]=nu(u[3]),sT(u,t),ec(e,t),t;case"hsl":if(u.length!==3){ai(t,0,0,0,1);return}return sT(u,t),ec(e,t),t;default:return}}ai(t,0,0,0,1)}}function sT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=nu(e[1]),i=nu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ai(t,Xi(u_(o,a,r+1/3)*255),Xi(u_(o,a,r)*255),Xi(u_(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Tpe(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function lT(e,t){var r=Xn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return fo(r,r.length===4?"rgba":"rgb")}}function c_(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Xi(cs(o[0],s[0],l)),r[1]=Xi(cs(o[1],s[1],l)),r[2]=Xi(cs(o[2],s[2],l)),r[3]=Ep(cs(o[3],s[3],l)),r}}function Ape(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Xn(t[i]),s=Xn(t[a]),l=n-i,u=fo([Xi(cs(o[0],s[0],l)),Xi(cs(o[1],s[1],l)),Xi(cs(o[2],s[2],l)),Ep(cs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Vh(e,t,r,n){var i=Xn(e);if(e)return i=Tpe(i),t!=null&&(i[0]=Cpe(t)),r!=null&&(i[1]=nu(r)),n!=null&&(i[2]=nu(n)),fo(sT(i),"rgba")}function r0(e,t){var r=Xn(e);if(r&&t!=null)return r[3]=Ep(t),fo(r,"rgba")}function fo(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 n0(e,t){var r=Xn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var lL=new Av(100);function uT(e){if(ne(e)){var t=lL.get(e);return t||(t=lT(e,-.1),lL.put(e,t)),t}else if(ux(e)){var r=j({},e);return r.colorStops=q(e.colorStops,function(n){return{offset:n.offset,color:lT(n.color,-.1)}}),r}return e}var i0=Math.round;function Lp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Xn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var uL=1e-4;function fs(e){return e<uL&&e>-uL}function Pg(e){return i0(e*1e3)/1e3}function cT(e){return i0(e*1e4)/1e4}function Mpe(e){return"matrix("+Pg(e[0])+","+Pg(e[1])+","+Pg(e[2])+","+Pg(e[3])+","+cT(e[4])+","+cT(e[5])+")"}var kpe={left:"start",right:"end",center:"middle",middle:"middle"};function Ipe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Dpe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Ppe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function R6(e){return e&&!!e.image}function Rpe(e){return e&&!!e.svgElement}function ck(e){return R6(e)||Rpe(e)}function E6(e){return e.type==="linear"}function L6(e){return e.type==="radial"}function O6(e){return e&&(e.type==="linear"||e.type==="radial")}function dx(e){return"url(#"+e+")"}function N6(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function z6(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*jm,i=Ie(e.scaleX,1),a=Ie(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+i0(o*jm)+"deg, "+i0(s*jm)+"deg)"),l.join(" ")}var Epe=function(){return je.hasGlobalWindow&&Se(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}}(),fT=Array.prototype.slice;function to(e,t,r){return(t-e)*r+e}function f_(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=to(t[a],r[a],n);return e}function Lpe(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=to(t[o][s],r[o][s],n)}return e}function Rg(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function cL(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Ope(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Npe(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:fT.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function $h(e){if(qr(e)){var t=e.length;if(qr(e[0])){for(var r=[],n=0;n<t;n++)r.push(fT.call(e[n]));return r}return fT.call(e)}return e}function qm(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 zpe(e){return qr(e&&e[0])?2:1}var Eg=0,Zm=1,B6=2,lh=3,dT=4,hT=5,fL=6;function dL(e){return e===dT||e===hT}function Lg(e){return e===Zm||e===B6}var Md=[0,0,0,0],Bpe=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,a=i.length,o=!1,s=fL,l=r;if(qr(r)){var u=zpe(r);s=u,(u===1&&!et(r[0])||u===2&&!et(r[0][0]))&&(o=!0)}else if(et(r)&&!Pp(r))s=Eg;else if(ne(r))if(!isNaN(+r))s=Eg;else{var c=Xn(r);c&&(l=c,s=lh)}else if(ux(r)){var f=j({},l);f.colorStops=q(r.colorStops,function(h){return{offset:h.offset,color:Xn(h.color)}}),E6(r)?s=dT:L6(r)&&(s=hT),l=f}a===0?this.valType=s:(s!==this.valType||s===fL)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Se(n)?n:Fh[n]||uk(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Lg(i),u=dL(i),c=0;c<a;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==a-1?Npe(d,h,i):u&&Ope(d.colorStops,h.colorStops))}if(!s&&i!==hT&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<a;c++)i===Eg?n[c].additiveValue=n[c].value-p:i===lh?n[c].additiveValue=Rg([],n[c].value,p,-1):Lg(i)&&(n[c].additiveValue=i===Zm?Rg([],n[c].value,p,-1):cL([],n[c].value,p,-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",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===lh,c,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var v=d(f+1,s-1);for(c=v;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?Md:t[l];if((Lg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Lg(a))a===Zm?f_(y,h[i],p[i],m):Lpe(y,h[i],p[i],m);else if(dL(a)){var x=h[i],S=p[i],b=a===dT;t[l]={type:b?"linear":"radial",x:to(x.x,S.x,m),y:to(x.y,S.y,m),colorStops:q(x.colorStops,function(w,C){var T=S.colorStops[C];return{offset:to(w.offset,T.offset,m),color:qm(f_([],w.color,T.color,m))}}),global:S.global},b?(t[l].x2=to(x.x2,S.x2,m),t[l].y2=to(x.y2,S.y2,m)):t[l].r=to(x.r,S.r,m)}else if(u)f_(y,h[i],p[i],m),n||(t[l]=qm(y));else{var _=to(h[i],p[i],m);n?this._additiveValue=_:t[l]=_}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Eg?t[n]=t[n]+i:r===lh?(Xn(t[n],Md),Rg(Md,Md,i,1),t[n]=qm(Md)):r===Zm?Rg(t[n],t[n],i,1):r===B6&&cL(t[n],t[n],i,1)},e}(),fk=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){rk("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,Ye(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Bpe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===lh&&u&&(u=qm(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,$h(u),i),this._trackKeys.push(s)}l.addKeyframe(t,$h(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 a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new bpe({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.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 q(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,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].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 a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=$h(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Ye(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Hc(){return new Date().getTime()}var Fpe=function(e){Dt(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=Hc()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}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&&(Jy(n),!r._paused&&r.update())}Jy(n)},t.prototype.start=function(){this._running||(this._time=Hc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Hc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Hc()-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 fk(r,n.loop);return this.addAnimator(i),i},t}(Di),Vpe=300,d_=je.domSupported,h_=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=q(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),hL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pL=!1;function pT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function $pe(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 p_(e){e&&(e.zrByTouch=!0)}function Gpe(e,t){return oi(e.dom,new Hpe(e,t),!0)}function F6(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 Hpe=function(){function e(t,r){this.stopPropagation=er,this.stopImmediatePropagation=er,this.preventDefault=er,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=oi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=oi(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=oi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=oi(this.dom,e);var t=e.toElement||e.relatedTarget;F6(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){pL=!0,e=oi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){pL||(e=oi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=oi(this.dom,e),p_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),zi.mousemove.call(this,e),zi.mousedown.call(this,e)},touchmove:function(e){e=oi(this.dom,e),p_(e),this.handler.processGesture(e,"change"),zi.mousemove.call(this,e)},touchend:function(e){e=oi(this.dom,e),p_(e),this.handler.processGesture(e,"end"),zi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Vpe&&zi.click.call(this,e)},pointerdown:function(e){zi.mousedown.call(this,e)},pointermove:function(e){pT(e)||zi.mousemove.call(this,e)},pointerup:function(e){zi.mouseup.call(this,e)},pointerout:function(e){pT(e)||zi.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){zi[e]=function(t){t=oi(this.dom,t),this.trigger(e,t)}});var vT={pointermove:function(e){pT(e)||vT.mousemove.call(this,e)},pointerup:function(e){vT.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 Wpe(e,t){var r=t.domHandlers;je.pointerEventsSupported?D(h_.pointer,function(n){Km(t,n,function(i){r[n].call(e,i)})}):(je.touchEventsSupported&&D(h_.touch,function(n){Km(t,n,function(i){r[n].call(e,i),$pe(t)})}),D(h_.mouse,function(n){Km(t,n,function(i){i=ok(i),t.touching||r[n].call(e,i)})}))}function jpe(e,t){je.pointerEventsSupported?D(hL.pointer,r):je.touchEventsSupported||D(hL.mouse,r);function r(n){function i(a){a=ok(a),F6(e,a.target)||(a=Gpe(e,a),t.domHandlers[n].call(e,a))}Km(t,n,i,{capture:!0})}}function Km(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,iT(e.domTarget,t,r,n)}function v_(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&ape(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var vL=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Upe=function(e){Dt(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 vL(r,zi),d_&&(i._globalHandlerScope=new vL(document,vT)),Wpe(i,i._localHandlerScope),i}return t.prototype.dispose=function(){v_(this._localHandlerScope),d_&&v_(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,d_&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?jpe(this,n):v_(n)}},t}(Di),V6=1;je.hasGlobalWindow&&(V6=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var a0=V6,gT=.4,mT="#333",yT="#ccc",Ype="#eee",gL=fx,mL=5e-5;function el(e){return e>mL||e<-mL}var tl=[],tc=[],g_=Yn(),m_=Math.abs,oo=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 el(this.rotation)||el(this.x)||el(this.y)||el(this.scaleX-1)||el(this.scaleY-1)||el(this.skewX)||el(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(gL(n),this.invTransform=null);return}n=n||Yn(),r?this.getLocalTransform(n):gL(n),t&&(r?co(n,t,n):sk(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(tl);var n=tl[0]<0?-1:1,i=tl[1]<0?-1:1,a=((tl[0]-n)*r+n)/tl[0]||0,o=((tl[1]-i)*r+i)/tl[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Yn(),jf(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]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,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||Yn(),co(tc,t.invTransform,r),r=tc);var n=this.originX,i=this.originY;(n||i)&&(g_[4]=n,g_[5]=i,co(tc,r,g_),tc[4]-=n,tc[5]-=i,r=tc),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&&Or(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Or(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&m_(t[0]-1)>1e-10&&m_(t[3]-1)>1e-10?Math.sqrt(m_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){$6(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Nu(r,r,u),r[4]+=n+c,r[5]+=i+f,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}(),Ga=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $6(e,t){for(var r=0;r<Ga.length;r++){var n=Ga[r];e[n]=t[n]}}var yL={};function qn(e,t){t=t||Rs;var r=yL[t];r||(r=yL[t]=new Av(500));var n=r.get(e);return n==null&&(n=Es.measureText(e,t).width,r.put(e,n)),n}function xL(e,t,r,n){var i=qn(e,t),a=hx(t),o=uh(0,i,r),s=Cc(0,a,n),l=new Ne(o,s,i,a);return l}function Mv(e,t,r,n){var i=((e||"")+"").split(`
|
182
|
-
`),a=i.length;if(a===1)return xL(i[0],t,r,n);for(var o=new Ne(0,0,0,0),s=0;s<i.length;s++){var l=xL(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function uh(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Cc(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function hx(e){return qn("国",e)}function ea(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function o0(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=ea(n[0],r.width),u+=ea(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var y_="__zr_normal__",x_=Ga.concat(["ignore"]),Xpe=Va(Ga,function(e,t){return e[t]=!0,e},{ignore:!1}),rc={},qpe=new Ne(0,0,0,0),px=function(){function e(t){this.id=v6(),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,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=qpe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(rc,n,c):o0(rc,n,c),a.x=rc.x,a.y=rc.y,o=rc.align,s=rc.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=ea(f[0],c.width),h=ea(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=$n,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()?yT:mT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Xn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,fo(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||{},j(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(be(t))for(var n=t,i=Ye(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}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],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==y_)){var o=i.targetName,s=o?r[o]: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,x_)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},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(y_,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===y_,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){rk("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n)}},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=ze(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(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&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 a=t[i];j(r,a),a.textConfig&&(n=n||{},j(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=j({},i?this.textConfig:n.textConfig),j(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<x_.length;c++){var f=x_[c],d=a&&Xpe[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(r||n)[p]:r||n)}u&&this._transitionState(t,l,o)},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 oo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),j(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|=$n;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,a=new fk(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ze(a,t);o>=0&&a.splice(o,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,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){S_(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){S_(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=S_(this,r,n,i),o=0;o<a.length;o++)a[o].__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=$n;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();or(px,Di);or(px,oo);function S_(e,t,r,n,i){r=r||{};var a=[];G6(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function __(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Zpe(e){return qr(e[0])}function Kpe(e,t,r){if(qr(t[r]))if(qr(e[r])||(e[r]=[]),On(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),__(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(Zpe(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?__(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else __(a,i,o);a.length=i.length}else e[r]=t[r]}function Qpe(e,t){return e===t||qr(e)&&qr(t)&&Jpe(e,t)}function Jpe(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 G6(e,t,r,n,i,a,o,s){for(var l=Ye(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!be(a),p=e.animators,v=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(be(y)&&!qr(y)&&!ux(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}G6(e,m,r[m],y,i,a&&a[m],o,s)}else v.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),v.push(m))}var x=v.length;if(!f&&x)for(var S=0;S<p.length;S++){var b=p[S];if(b.targetName===t){var _=b.stopTracks(v);if(_){var w=ze(p,b);p.splice(w,1)}}}if(i.force||(v=ft(v,function(M){return!Qpe(n[M],r[M])}),x=v.length),x>0||i.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},d&&(C={});for(var S=0;S<x;S++){var m=v[S];T[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){A={};for(var S=0;S<x;S++){var m=v[S];A[m]=$h(r[m]),Kpe(r,n,m)}}var b=new fk(r,!1,!1,f?ft(p,function(k){return k.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),d&&C&&b.whenWithKeys(0,C,v),A&&b.whenWithKeys(0,A,v),b.whenWithKeys(u??500,s?T:n,v).delay(c||0),e.addAnimator(b,t),o.push(b)}}var Ae=function(e){Dt(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,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),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,a=ze(i,r);return a<0?this:(i.splice(a,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 a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.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 Ne(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(Ne.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(px);Ae.prototype.type="group";/*!
|
183
|
-
* ZRender, a high performance 2d drawing library.
|
184
|
-
*
|
185
|
-
* Copyright (c) 2013, Baidu Inc.
|
186
|
-
* All rights reserved.
|
187
|
-
*
|
188
|
-
* LICENSE
|
189
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
190
|
-
*/var Qm={},H6={};function eve(e){delete H6[e]}function tve(e){if(!e)return!1;if(typeof e=="string")return n0(e,1)<gT;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=n0(t[i].color,1);return r/=n,r<gT}return!1}var rve=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 a=new mpe,o=n.renderer||"canvas";Qm[o]||(o=Ye(Qm)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Qm[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!je.node&&!je.worker&&!l?new Upe(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?je.touchEventsSupported:!!c,d=44,h;f&&(h=Ie(n.pointerSize,d)),this.handler=new _6(a,s,u,s.root,h),this.animation=new Fpe({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=tve(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=Hc();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Hc();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 Ae&&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,eve(this.id))},e}();function SL(e,t){var r=new rve(v6(),e,t);return H6[r.id]=r,r}function nve(e,t){Qm[e]=t}var xT;function ive(e){if(typeof xT=="function")return xT(e)}function ave(e){xT=e}var _L=1e-4,W6=20;function ove(e){return e.replace(/^\s+|\s+$/g,"")}function ct(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function J(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 ne(e)?ove(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Yt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),W6),e=(+e).toFixed(t),r?e:+e}function _i(e){return e.sort(function(t,r){return t-r}),e}function Ta(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 sve(e)}function sve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function j6(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function lve(e,t){var r=Va(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=q(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=q(i,function(h){return Math.floor(h)}),s=Va(o,function(h,p){return h+p},0),l=q(i,function(h,p){return h-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return q(o,function(h){return h/n})}function uve(e,t){var r=Math.max(Ta(e),Ta(t)),n=e+t;return r>W6?n:Yt(n,r)}var bL=9007199254740991;function U6(e){var t=Math.PI*2;return(e%t+t)%t}function Op(e){return e>-_L&&e<_L}var cve=/^(?:(\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(ne(e)){var t=cve.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 fve(e){return Math.pow(10,dk(e))}function dk(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 Y6(e,t){var r=dk(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function b_(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function wL(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function wo(e){var t=parseFloat(e);return t==e&&(t!==0||!ne(e)||e.indexOf("x")<=0)?t:NaN}function X6(e){return!isNaN(wo(e))}function q6(){return Math.round(Math.random()*9)}function Z6(e,t){return t===0?e:Z6(t,e%t)}function CL(e,t){return e==null?t:t==null?e:e*t/Z6(e,t)}function at(e){throw new Error(e)}function TL(e,t,r){return(t-e)*r+e}var K6="series\0",Q6="\0_ec_\0";function vt(e){return e instanceof Array?e:e==null?[]:[e]}function bu(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 a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var AL=["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 Uf(e){return be(e)&&!Y(e)&&!(e instanceof Date)?e.value:e}function dve(e){return be(e)&&!(e instanceof Array)}function J6(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=de();D(t,function(l,u){if(!be(l)){t[u]=null;return}});var s=hve(e,o,r);return(n||i)&&pve(s,e,o,t),n&&vve(s,t),n||i?gve(s,t,i):a&&mve(s,t),yve(s),s}function hve(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Np(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function pve(e,t,r,n){D(n,function(i,a){if(!(!i||i.id==null)){var o=Gh(i.id),s=r.get(o);if(s!=null){var l=e[s];cn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function vve(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Np(r)&&!Np(a)&&eH("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function gve(e,t,r){D(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Np(i.existing)||i.existing&&n.id!=null&&!eH("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function mve(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function yve(e){var t=de();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;cn(!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={})}),D(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(be(a)){if(o.name=a.name!=null?Gh(a.name):i?i.name:K6+n,i)o.id=Gh(i.id);else if(a.id!=null)o.id=Gh(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function eH(e,t,r){var n=cr(t[e],null),i=cr(r[e],null);return n!=null&&i!=null&&n===i}function Gh(e){return cr(e,"")}function cr(e,t){return e==null?t:ne(e)?e:et(e)||ZC(e)?e+"":t}function hk(e){var t=e.name;return!!(t&&t.indexOf(K6))}function Np(e){return e&&e.id!=null&&Gh(e.id).indexOf(Q6)===0}function xve(e){return Q6+e}function Sve(e,t,r){D(e,function(n){var i=n.newOption;be(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=_ve(t,i,n.existing,r))})}function _ve(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function bve(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=cr(o[u].seriesId,null);if(f==null)return;for(var d=vt(o[u].dataIndex),h=l&&l[f],p=0,v=d.length;p<v;p++){var g=d[p];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function wu(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ze(){var e="__ec_inner_"+wve++;return function(t){return t[e]||(t[e]={})}}var wve=q6();function Hh(e,t,r){var n=pk(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=kv(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function pk(e,t){var r;if(ne(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=de(),a={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ze(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ir={useDefault:!0,enableAll:!1,enableNone:!1},Cve={useDefault:!1,enableAll:!0,enableNone:!0};function kv(e,t,r,n){n=n||ir;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(cn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(cn(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function tH(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Tve(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Ave(e){return e==="auto"?je.domSupported?"html":"richText":e||"html"}function ST(e,t){var r=de(),n=[];return D(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function rH(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(et(n)){var o=TL(r||0,n,i);return Yt(o,a?Math.max(Ta(r||0),Ta(n)):t)}else{if(ne(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,p=u[f],o=TL(h,p,i);s[f]=Yt(o,a?Math.max(Ta(h),Ta(p)):t)}}return s}}var Mve=".",rl="___EC__COMPONENT__CONTAINER___",nH="___EC__EXTENDED_CLASS___";function Aa(e){var t={main:"",sub:""};if(e){var r=e.split(Mve);t.main=r[0]||"",t.sub=r[1]||""}return t}function kve(e){cn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Ive(e){return!!(e&&e[nH])}function vk(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Dve(n)?i=function(a){H(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Bhe(i,this)),j(i.prototype,r),i[nH]=!0,i.extend=this.extend,i.superCall=Eve,i.superApply=Lve,i.superClass=n,i}}function Dve(e){return Se(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function iH(e,t){e.extend=t.extend}var Pve=Math.round(Math.random()*10);function Rve(e){var t=["__\0is_clz",Pve++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Eve(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 Lve(e,t,r){return this.superClass.prototype[t].apply(e,r)}function vx(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){kve(i),n.prototype.type=i;var a=Aa(i);if(!a.sub)t[a.main]=n;else if(a.sub!==rl){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[rl]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Aa(n),a=[],o=t[i.main];return o&&o[rl]?D(o,function(s,l){l!==rl&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Aa(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Aa(n),a=t[i.main];return a&&a[rl]};function r(n){var i=t[n.main];return(!i||!i[rl])&&(i=t[n.main]={},i[rl]=!0),i}}function Cu(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,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ze(i,l)>=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Ove=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Nve=Cu(Ove),zve=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Nve(this,t,r)},e}(),_T=new Av(50);function Bve(e){if(typeof e=="string"){var t=_T.get(e);return t&&t.image}else return e}function gk(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=_T.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!gx(t)&&a.pending.push(o)):(t=Es.loadImage(e,ML,ML),t.__zrImageSrc=e,_T.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function ML(){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 gx(e){return e&&e.width&&e.height}var w_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fve(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
|
191
|
-
`);i=aH(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=oH(a[o],i);return a.join(`
|
192
|
-
`)}function aH(e,t,r,n){n=n||{};var i=j({},n);i.font=t,r=Ie(r,"..."),i.maxIterations=Ie(n.maxIterations,2);var a=i.minChar=Ie(n.minChar,0);i.cnCharWidth=qn("国",t);var o=i.ascCharWidth=qn("a",t);i.placeholder=Ie(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=qn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function oH(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=qn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Vve(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=qn(e,n)}return e===""&&(e=t.placeholder),e}function Vve(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function $ve(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=hx(i),s=Ie(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?sH(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
|
193
|
-
`):[];var d=f.length*s,h=Ie(t.height,d);if(d>h&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=aH(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=oH(f[g],v);for(var m=h,y=0,g=0;g<f.length;g++)y=Math.max(qn(f[g],i),y);c==null&&(c=y);var x=y;return n&&(m+=n[0]+n[2],x+=n[1]+n[3],c+=n[1]+n[3]),l&&(x=c),{lines:f,height:h,outerWidth:x,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:c}}var Gve=function(){function e(){}return e}(),kL=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Hve=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 Wve(e,t){var r=new Hve;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=w_.lastIndex=0,l;(l=w_.exec(e))!=null;){var u=l.index;u>s&&C_(r,e.substring(s,u),t,o),C_(r,l[2],t,o,l[1]),s=w_.lastIndex}s<e.length&&C_(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,p=a==="truncate",v=t.lineOverflow==="truncate";function g(O,V,L){O.width=V,O.lineHeight=L,f+=L,d=Math.max(d,V)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],x=0,S=0,b=0;b<y.tokens.length;b++){var _=y.tokens[b],w=_.styleName&&t.rich[_.styleName]||{},C=_.textPadding=w.padding,T=C?C[1]+C[3]:0,A=_.font=w.font||t.font;_.contentHeight=hx(A);var M=Ie(w.height,_.contentHeight);if(_.innerHeight=M,C&&(M+=C[0]+C[2]),_.height=M,_.lineHeight=La(w.lineHeight,t.lineHeight,M),_.align=w&&w.align||t.align,_.verticalAlign=w&&w.verticalAlign||"middle",v&&i!=null&&f+_.lineHeight>i){b>0?(y.tokens=y.tokens.slice(0,b),g(y,S,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var k=w.width,I=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")_.percentWidth=k,c.push(_),_.contentWidth=qn(_.text,A);else{if(I){var P=w.backgroundColor,E=P&&P.image;E&&(E=Bve(E),gx(E)&&(_.width=Math.max(_.width,E.width*M/E.height)))}var z=p&&n!=null?n-S:null;z!=null&&z<_.width?!I||z<T?(_.text="",_.width=_.contentWidth=0):(_.text=Fve(_.text,z-T,A,t.ellipsis,{minChar:t.truncateMinChar}),_.width=_.contentWidth=qn(_.text,A)):_.contentWidth=qn(_.text,A)}_.width+=T,S+=_.width,w&&(x=Math.max(x,_.lineHeight))}g(y,S,x)}r.outerWidth=r.width=Ie(n,d),r.outerHeight=r.height=Ie(i,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var _=c[m],$=_.percentWidth;_.width=parseInt($,10)/100*r.width}return r}function C_(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=ea(o.width,n.width)+h;s.length>0&&p+n.accumWidth>n.width&&(c=t.split(`
|
194
|
-
`),u=!0),n.accumWidth=p}else{var v=sH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(`
|
195
|
-
`);for(var g=0;g<c.length;g++){var m=c[g],y=new Gve;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:qn(m,l),!g&&!u){var x=(s[s.length-1]||(s[0]=new kL)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=y:(m||!S||a)&&x.push(y)}else s.push(new kL([y]))}}function jve(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Uve=Va(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Yve(e){return jve(e)?!!Uve[e]:!0}function sH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
196
|
-
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=qn(d,t),p=n?!1:!Yve(d);if(a.length?c+h>r:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var bT="__zr_style_"+Math.round(Math.random()*10),iu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},mx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};iu[bT]=!0;var IL=["z","z2","invisible"],Xve=["invisible"],Ai=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ye(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}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,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&qve(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&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),a=this.getBoundingRect();return a.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(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ne(0,0,0,0)),n?Ne.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ne(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:j(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=sh,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&sh)},t.prototype.styleUpdated=function(){this.__dirty&=~sh},t.prototype.createStyle=function(r){return cx(iu,r)},t.prototype.useStyle=function(r){r[bT]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[bT]},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,IL)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Ye(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var p=Ye(u),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?Xve:IL,d=0;d<v.length;d++){var h=v[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return j(r,n),r},t.prototype.getAnimationStyleProps=function(){return mx},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=$n|sh}(),t}(px),T_=new Ne(0,0,0,0),A_=new Ne(0,0,0,0);function qve(e,t,r){return T_.copy(e.getBoundingRect()),e.transform&&T_.applyTransform(e.transform),A_.width=t,A_.height=r,!T_.intersect(A_)}var Cn=Math.min,Tn=Math.max,M_=Math.sin,k_=Math.cos,nl=Math.PI*2,Og=Ou(),Ng=Ou(),zg=Ou();function yx(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=Cn(i,n[0]),a=Tn(a,n[0]),o=Cn(o,n[1]),s=Tn(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function DL(e,t,r,n,i,a){i[0]=Cn(e,r),i[1]=Cn(t,n),a[0]=Tn(e,r),a[1]=Tn(t,n)}var PL=[],RL=[];function Zve(e,t,r,n,i,a,o,s,l,u){var c=A6,f=hr,d=c(e,r,i,o,PL);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(e,r,i,o,PL[h]);l[0]=Cn(p,l[0]),u[0]=Tn(p,u[0])}d=c(t,n,a,s,RL);for(var h=0;h<d;h++){var v=f(t,n,a,s,RL[h]);l[1]=Cn(v,l[1]),u[1]=Tn(v,u[1])}l[0]=Cn(e,l[0]),u[0]=Tn(e,u[0]),l[0]=Cn(o,l[0]),u[0]=Tn(o,u[0]),l[1]=Cn(t,l[1]),u[1]=Tn(t,u[1]),l[1]=Cn(s,l[1]),u[1]=Tn(s,u[1])}function Kve(e,t,r,n,i,a,o,s){var l=k6,u=br,c=Tn(Cn(l(e,r,i),1),0),f=Tn(Cn(l(t,n,a),1),0),d=u(e,r,i,c),h=u(t,n,a,f);o[0]=Cn(e,i,d),o[1]=Cn(t,a,h),s[0]=Tn(e,i,d),s[1]=Tn(t,a,h)}function Qve(e,t,r,n,i,a,o,s,l){var u=ss,c=ls,f=Math.abs(i-a);if(f%nl<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Og[0]=k_(i)*r+e,Og[1]=M_(i)*n+t,Ng[0]=k_(a)*r+e,Ng[1]=M_(a)*n+t,u(s,Og,Ng),c(l,Og,Ng),i=i%nl,i<0&&(i=i+nl),a=a%nl,a<0&&(a=a+nl),i>a&&!o?a+=nl:i<a&&o&&(i+=nl),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(zg[0]=k_(h)*r+e,zg[1]=M_(h)*n+t,u(s,zg,s),c(l,zg,l))}var _t={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},il=[],al=[],oa=[],Vo=[],sa=[],la=[],I_=Math.min,D_=Math.max,ol=Math.cos,sl=Math.sin,Ka=Math.abs,wT=Math.PI,qo=wT*2,P_=typeof Float32Array<"u",kd=[];function R_(e){var t=Math.round(e/wT*1e8)/1e8;return t%2*wT}function mk(e,t){var r=R_(e[0]);r<0&&(r+=qo);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=qo?i=r+qo:t&&r-i>=qo?i=r-qo:!t&&r>i?i=r+(qo-R_(r-i)):t&&r<i&&(i=r-(qo-R_(i-r))),e[0]=r,e[1]=i}var Wa=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=Ka(n/a0/t)||0,this._uy=Ka(n/a0/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(_t.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=Ka(t-this._xi),i=Ka(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(_t.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(_t.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(_t.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,a,o){this._drawPendingPt(),kd[0]=i,kd[1]=a,mk(kd,o),i=kd[0],a=kd[1];var s=a-i;return this.addData(_t.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=ol(a)*n+t,this._yi=sl(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(_t.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(_t.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)&&P_&&(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,a=0;a<r;a++)n+=t[a].len();P_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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,P_&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){oa[0]=oa[1]=sa[0]=sa[1]=Number.MAX_VALUE,Vo[0]=Vo[1]=la[0]=la[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case _t.M:r=i=t[o++],n=a=t[o++],sa[0]=i,sa[1]=a,la[0]=i,la[1]=a;break;case _t.L:DL(r,n,t[o],t[o+1],sa,la),r=t[o++],n=t[o++];break;case _t.C:Zve(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],sa,la),r=t[o++],n=t[o++];break;case _t.Q:Kve(r,n,t[o++],t[o++],t[o],t[o+1],sa,la),r=t[o++],n=t[o++];break;case _t.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],p=t[o++]+h;o+=1;var v=!t[o++];l&&(i=ol(h)*f+u,a=sl(h)*d+c),Qve(u,c,f,d,h,p,v,sa,la),r=ol(p)*f+u,n=sl(p)*d+c;break;case _t.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];DL(i,a,i+g,a+m,sa,la);break;case _t.Z:r=i,n=a;break}ss(oa,oa,sa),ls(Vo,Vo,la)}return o===0&&(oa[0]=oa[1]=Vo[0]=Vo[1]=0),new Ne(oa[0],oa[1],Vo[0]-oa[0],Vo[1]-oa[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],p=d===1;p&&(a=t[d],o=t[d+1],s=a,l=o);var v=-1;switch(h){case _t.M:a=s=t[d++],o=l=t[d++];break;case _t.L:{var g=t[d++],m=t[d++],y=g-a,x=m-o;(Ka(y)>n||Ka(x)>i||d===r-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case _t.C:{var S=t[d++],b=t[d++],g=t[d++],m=t[d++],_=t[d++],w=t[d++];v=ype(a,o,S,b,g,m,_,w,10),a=_,o=w;break}case _t.Q:{var S=t[d++],b=t[d++],g=t[d++],m=t[d++];v=Spe(a,o,S,b,g,m,10),a=g,o=m;break}case _t.A:var C=t[d++],T=t[d++],A=t[d++],M=t[d++],k=t[d++],I=t[d++],P=I+k;d+=1,p&&(s=ol(k)*A+C,l=sl(k)*M+T),v=D_(A,M)*I_(qo,Math.abs(I)),a=ol(P)*A+C,o=sl(P)*M+T;break;case _t.R:{s=a=t[d++],l=o=t[d++];var E=t[d++],z=t[d++];v=E*2+z*2;break}case _t.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,m=0,y,x=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var _=0;_<o;){var w=n[_++],C=_===1;switch(C&&(u=n[_],c=n[_+1],s=u,l=c),w!==_t.L&&x>0&&(t.lineTo(S,b),x=0),w){case _t.M:s=u=n[_++],l=c=n[_++],t.moveTo(u,c);break;case _t.L:{f=n[_++],d=n[_++];var T=Ka(f-u),A=Ka(d-c);if(T>i||A>a){if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var I=T*T+A*A;I>x&&(S=f,b=d,x=I)}break}case _t.C:{var P=n[_++],E=n[_++],z=n[_++],$=n[_++],O=n[_++],V=n[_++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Ls(u,P,z,O,k,il),Ls(c,E,$,V,k,al),t.bezierCurveTo(il[1],al[1],il[2],al[2],il[3],al[3]);break e}g+=M}t.bezierCurveTo(P,E,z,$,O,V),u=O,c=V;break}case _t.Q:{var P=n[_++],E=n[_++],z=n[_++],$=n[_++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Rp(u,P,z,k,il),Rp(c,E,$,k,al),t.quadraticCurveTo(il[1],al[1],il[2],al[2]);break e}g+=M}t.quadraticCurveTo(P,E,z,$),u=z,c=$;break}case _t.A:var L=n[_++],G=n[_++],W=n[_++],B=n[_++],X=n[_++],te=n[_++],U=n[_++],re=!n[_++],Q=W>B?W:B,ae=Ka(W-B)>.001,se=X+te,K=!1;if(h){var M=p[m++];g+M>y&&(se=X+te*(y-g)/M,K=!0),g+=M}if(ae&&t.ellipse?t.ellipse(L,G,W,B,U,X,se,re):t.arc(L,G,Q,X,se,re),K)break e;C&&(s=ol(X)*W+L,l=sl(X)*B+G),u=ol(se)*W+L,c=sl(se)*B+G;break;case _t.R:s=u=n[_],l=c=n[_+1],f=n[_++],d=n[_++];var ee=n[_++],me=n[_++];if(h){var M=p[m++];if(g+M>y){var ve=y-g;t.moveTo(f,d),t.lineTo(f+I_(ve,ee),d),ve-=ee,ve>0&&t.lineTo(f+ee,d+I_(ve,me)),ve-=me,ve>0&&t.lineTo(f+D_(ee-ve,0),d+me),ve-=ee,ve>0&&t.lineTo(f,d+D_(me-ve,0));break e}g+=M}t.rect(f,d,ee,me);break;case _t.Z:if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=M}t.closePath(),u=s,c=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=_t,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function es(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Jve(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=M6(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function lH(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=I6(e,t,r,n,i,a,s,l,null);return c<=u/2}var EL=Math.PI*2;function Wn(e){return e%=EL,e<0&&(e+=EL),e}var Id=Math.PI*2;function ege(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%Id<1e-4)return!0;if(a){var f=n;n=Wn(i),i=Wn(f)}else n=Wn(n),i=Wn(i);n>i&&(i+=Id);var d=Math.atan2(l,s);return d<0&&(d+=Id),d>=n&&d<=i||d+Id>=n&&d+Id<=i}function ro(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var $o=Wa.CMD,ll=Math.PI*2,tge=1e-4;function rge(e,t){return Math.abs(e-t)<tge}var rn=[-1,-1,-1],li=[-1,-1];function nge(){var e=li[0];li[0]=li[1],li[1]=e}function ige(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=t0(t,n,a,s,u,rn);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,v=0;v<c;v++){var g=rn[v],m=g===0||g===1?.5:1,y=hr(e,r,i,o,g);y<l||(d<0&&(d=A6(t,n,a,s,li),li[1]<li[0]&&d>1&&nge(),h=hr(t,n,a,s,li[0]),d>1&&(p=hr(t,n,a,s,li[1]))),d===2?g<li[0]?f+=h<t?m:-m:g<li[1]?f+=p<h?m:-m:f+=s<p?m:-m:g<li[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function age(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=xpe(t,n,a,s,rn);if(l===0)return 0;var u=k6(t,n,a);if(u>=0&&u<=1){for(var c=0,f=br(t,n,a,u),d=0;d<l;d++){var h=rn[d]===0||rn[d]===1?.5:1,p=br(e,r,i,rn[d]);p<o||(rn[d]<u?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=rn[0]===0||rn[0]===1?.5:1,p=br(e,r,i,rn[0]);return p<o?0:a<t?h:-h}}function oge(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ll-1e-4){n=0,i=ll;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=ll,i+=ll);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=ll+v),(v>=n&&v<=i||v+ll>=n&&v+ll<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),d+=c)}}return d}function uH(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,p=0;p<o;){var v=a[p++],g=p===1;switch(v===$o.M&&p>1&&(r||(s+=ro(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case $o.M:c=a[p++],f=a[p++],l=c,u=f;break;case $o.L:if(r){if(es(l,u,a[p],a[p+1],t,n,i))return!0}else s+=ro(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case $o.C:if(r){if(Jve(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=ige(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case $o.Q:if(r){if(lH(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=age(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case $o.A:var m=a[p++],y=a[p++],x=a[p++],S=a[p++],b=a[p++],_=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(b)*x+m,h=Math.sin(b)*S+y,g?(c=d,f=h):s+=ro(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(ege(m,y,S,b,b+_,w,t,C,i))return!0}else s+=oge(m,y,S,b,b+_,w,C,i);l=Math.cos(b+_)*x+m,u=Math.sin(b+_)*S+y;break;case $o.R:c=l=a[p++],f=u=a[p++];var T=a[p++],A=a[p++];if(d=c+T,h=f+A,r){if(es(c,f,d,f,t,n,i)||es(d,f,d,h,t,n,i)||es(d,h,c,h,t,n,i)||es(c,h,c,f,t,n,i))return!0}else s+=ro(d,f,d,h,n,i),s+=ro(c,h,c,f,n,i);break;case $o.Z:if(r){if(es(l,u,c,f,t,n,i))return!0}else s+=ro(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!rge(u,f)&&(s+=ro(l,u,c,f,n,i)||0),s!==0}function sge(e,t,r){return uH(e,0,!1,t,r)}function lge(e,t,r,n){return uH(e,t,!0,r,n)}var s0=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},iu),uge={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},mx.style)},E_=Ga.concat(["invisible","culling","z","z2","zlevel","parent"]),He=function(e){Dt(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 a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<E_.length;++s)i[E_[s]]=this[E_[s]];i.__dirty|=$n}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Ye(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?j(this.style,s):this.useStyle(s):o==="shape"?j(this.shape,s):e.prototype.attrKV.call(this,o,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(ne(r)){var n=n0(r,0);return n>.5?mT:n>.2?Ype:yT}else if(r)return yT}return mT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ne(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=n0(r,0)<gT;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~wc},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 Wa(!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 a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.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,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),lge(s,l/u,r,n)))return!0}if(this.hasFill())return sge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wc,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:j(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wc)},t.prototype.createStyle=function(r){return cx(s0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=j({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=j({},i.shape),j(u,n.shape)):(u=j({},a?this.shape:i.shape),j(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=j({},this.shape);for(var c={},f=Ye(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return uge},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){Dt(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ce(r.style)},o.prototype.getDefaultShape=function(){return Ce(r.shape)},o}(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=$n|sh|wc}(),t}(Ai),cge=_e({strokeFirst:!0,font:Rs,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},s0),Af=function(e){Dt(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 cx(cge,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=Mv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ai);Af.prototype.type="tspan";var fge=_e({x:0,y:0},iu),dge={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},mx.style)};function hge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mr=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return cx(fge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=hge(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return dge},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ai);Mr.prototype.type="image";function pge(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),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+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,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 Wc=Math.round;function cH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Wc(n*2)===Wc(i*2)&&(e.x1=e.x2=Yl(n,s,!0)),Wc(a*2)===Wc(o*2)&&(e.y1=e.y2=Yl(a,s,!0))),e}}function fH(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;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+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Yl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Yl(e,t,r){if(!t)return e;var n=Wc(e*2);return(n+Wc(t))%2===0?n/2:(n+(r?1:-1))/2}var vge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),gge={},qe=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=fH(gge,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?pge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(He);qe.prototype.type="rect";var LL={fill:"#000"},OL=2,mge={style:_e({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},mx.style)},Je=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=LL,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,Sge(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 Ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||LL},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return j(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Ye(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},j(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return mge},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||Rs,i=r.padding,a=GL(r),o=$ve(a,r),s=L_(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,p=this._defaultStyle,v=r.x||0,g=r.y||0,m=r.align||p.align||"left",y=r.verticalAlign||p.verticalAlign||"top",x=v,S=Cc(g,o.contentHeight,y);if(s||i){var b=uh(v,c,m),_=Cc(g,u,y);s&&this._renderBackground(r,r,b,_,c,u)}S+=h/2,i&&(x=$L(v,m,i),y==="top"?S+=i[0]:y==="bottom"&&(S-=i[2]));for(var w=0,C=!1,T=VL("fill"in r?r.fill:(C=!0,p.fill)),A=FL("stroke"in r?r.stroke:!l&&(!p.autoStroke||C)?(w=OL,p.stroke):null),M=r.textShadowBlur>0,k=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<d.length;P++){var E=this._getOrCreateChild(Af),z=E.createStyle();E.useStyle(z),z.text=d[P],z.x=x,z.y=S,m&&(z.textAlign=m),z.textBaseline="middle",z.opacity=r.opacity,z.strokeFirst=!0,M&&(z.shadowBlur=r.textShadowBlur||0,z.shadowColor=r.textShadowColor||"transparent",z.shadowOffsetX=r.textShadowOffsetX||0,z.shadowOffsetY=r.textShadowOffsetY||0),z.stroke=A,z.fill=T,A&&(z.lineWidth=r.lineWidth||w,z.lineDash=r.lineDash,z.lineDashOffset=r.lineDashOffset||0),z.font=n,zL(z,r),S+=h,k&&E.setBoundingRect(new Ne(uh(z.x,r.width,z.textAlign),Cc(z.y,I,z.textBaseline),f,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=GL(r),i=Wve(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,p=uh(u,o,d),v=Cc(c,s,h),g=p,m=v;l&&(g+=l[3],m+=l[0]);var y=g+a;L_(r)&&this._renderBackground(r,r,p,v,o,s);for(var x=!!r.backgroundColor,S=0;S<i.lines.length;S++){for(var b=i.lines[S],_=b.tokens,w=_.length,C=b.lineHeight,T=b.width,A=0,M=g,k=y,I=w-1,P=void 0;A<w&&(P=_[A],!P.align||P.align==="left");)this._placeToken(P,r,C,m,M,"left",x),T-=P.width,M+=P.width,A++;for(;I>=0&&(P=_[I],P.align==="right");)this._placeToken(P,r,C,m,k,"right",x),T-=P.width,k-=P.width,I--;for(M+=(a-(M-g)-(y-k)-T)/2;A<=I;)P=_[A],this._placeToken(P,r,C,m,M+P.width/2,"center",x),M+=P.width,A++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&L_(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=$L(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Af),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=VL("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),b=FL("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=OL,m.stroke):null),_=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,_&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Rs,g.opacity=La(u.opacity,n.opacity,1),zL(g,u),b&&(g.lineWidth=La(u.lineWidth,n.lineWidth,x),g.lineDash=Ie(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(uh(g.x,w,g.textAlign),Cc(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(qe),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=Ie(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Mr),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ie(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=La(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return hH(r)&&(n=[r.fontStyle,r.fontWeight,dH(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Wi(n)||r.textFont||r.font},t}(Ai),yge={left:!0,right:1,center:1},xge={top:1,bottom:1,middle:1},NL=["fontStyle","fontWeight","fontSize","fontFamily"];function dH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?JM+"px":e+"px"}function zL(e,t){for(var r=0;r<NL.length;r++){var n=NL[r],i=t[n];i!=null&&(e[n]=i)}}function hH(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Sge(e){return BL(e),D(e.rich,BL),e}function BL(e){if(e){e.font=Je.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||yge[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||xge[r]?r:"top";var n=e.padding;n&&(e.padding=ak(e.padding))}}function FL(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function VL(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function $L(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function GL(e){var t=e.text;return t!=null&&(t+=""),t}function L_(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ke=Ze(),CT=function(e,t,r,n){if(n){var i=ke(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ke(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},HL=1,WL={},pH=Ze(),yk=Ze(),xk=0,Iv=1,xx=2,fn=["emphasis","blur","select"],zp=["normal","emphasis","blur","select"],Yf=10,_ge=9,au="highlight",Jm="downplay",Wh="select",ey="unselect",jh="toggleSelect";function nc(e){return e!=null&&e!=="none"}function Sx(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function vH(e){Sx(e,"emphasis",xx)}function gH(e){e.hoverState===xx&&Sx(e,"normal",xk)}function Sk(e){Sx(e,"blur",Iv)}function mH(e){e.hoverState===Iv&&Sx(e,"normal",xk)}function bge(e){e.selected=!0}function wge(e){e.selected=!1}function jL(e,t,r){t(e,r)}function Ro(e,t,r){jL(e,t,r),e.isGroup&&e.traverse(function(n){jL(n,t,r)})}function l0(e,t){switch(t){case"emphasis":e.hoverState=xx;break;case"normal":e.hoverState=xk;break;case"blur":e.hoverState=Iv;break;case"select":e.selected=!0}}function Cge(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Tge(e,t,r,n){var i=r&&ze(r,"select")>=0,a=!1;if(e instanceof He){var o=pH(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(nc(s)||nc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=j({},n),u=j({},u),u.fill=s):!nc(u.fill)&&nc(s)?(a=!0,n=j({},n),u=j({},u),u.fill=uT(s)):!nc(u.stroke)&&nc(l)&&(a||(n=j({},n),u=j({},u)),u.stroke=uT(l)),n.style=u}}if(n&&n.z2==null){a||(n=j({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Yf)}return n}function Age(e,t,r){if(r&&r.z2==null){r=j({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??_ge)}return r}function Mge(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Cge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=j({},r),o=j({opacity:n?i:a.opacity*.1},o),r.style=o),r}function O_(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Tge(this,e,t,r);if(e==="blur")return Mge(this,e,r);if(e==="select")return Age(this,e,r)}return r}function Tu(e){e.stateProxy=O_;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=O_),r&&(r.stateProxy=O_)}function UL(e,t){!_H(e,t)&&!e.__highByOuter&&Ro(e,vH)}function YL(e,t){!_H(e,t)&&!e.__highByOuter&&Ro(e,gH)}function Co(e,t){e.__highByOuter|=1<<(t||0),Ro(e,vH)}function To(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ro(e,gH)}function yH(e){Ro(e,Sk)}function _k(e){Ro(e,mH)}function xH(e){Ro(e,bge)}function SH(e){Ro(e,wge)}function _H(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function bH(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=yk(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){mH(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function TT(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&_k(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Sk(g)}),qr(t))a(u.getData(),t);else if(be(t))for(var p=Ye(t),v=0;v<p.length;v++)a(u.getData(p[v]),t[p[v]]);l.push(u),yk(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function AT(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){yk(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Sk(a)})}}}function kge(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=wu(i,t);a=(Y(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ke(o);TT(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&TT(n,c,f,r)}}}function bk(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ke(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Ige(e,t,r){var n=ke(e),i=bk(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&AT(n.componentMainType,n.componentIndex,r),D(a,function(s){return UL(s,t)})):(TT(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&AT(n.componentMainType,n.componentIndex,r),UL(e,t))}function Dge(e,t,r){bH(r);var n=ke(e),i=bk(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return YL(a,t)}):YL(e,t)}function Pge(e,t,r){if(kT(t)){var n=t.dataType,i=e.getData(n),a=wu(i,t);Y(a)||(a=[a]),e[t.type===jh?"toggleSelect":t.type===Wh?"select":"unselect"](a,n)}}function XL(e){var t=e.getAllData();D(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?xH(a):SH(a)})})}function Rge(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function ou(e,t,r){Xl(e,!0),Ro(e,Tu),MT(e,t,r)}function Ege(e){Xl(e,!1)}function Wt(e,t,r,n){n?Ege(e):ou(e,t,r)}function MT(e,t,r){var n=ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var qL=["emphasis","blur","select"],Lge={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i<qL.length;i++){var a=qL[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[Lge[r]]()}}function Xl(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 Bp(e){return!!(e&&e.__highDownDispatcher)}function Oge(e,t,r){var n=ke(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function Nge(e){var t=WL[e];return t==null&&HL<=32&&(t=WL[e]=HL++),t}function kT(e){var t=e.type;return t===Wh||t===ey||t===jh}function ZL(e){var t=e.type;return t===au||t===Jm}function zge(e){var t=pH(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 ic=Wa.CMD,Bge=[[],[],[]],KL=Math.sqrt,Fge=Math.atan2;function wH(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=ic.M,f=ic.C,d=ic.L,h=ic.R,p=ic.A,v=ic.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case v:a=2;break;case p:var g=t[4],m=t[5],y=KL(t[0]*t[0]+t[1]*t[1]),x=KL(t[2]*t[2]+t[3]*t[3]),S=Fge(-t[1]/x,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=x,r[o++]+=m,r[o++]*=y,r[o++]*=x,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Or(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Or(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=Bge[l];b[0]=r[o++],b[1]=r[o++],Or(b,b,t),r[s++]=b[0],r[s++]=b[1]}}e.increaseVersion()}}var N_=Math.sqrt,Bg=Math.sin,Fg=Math.cos,Dd=Math.PI;function QL(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function IT(e,t){return(e[0]*t[0]+e[1]*t[1])/(QL(e)*QL(t))}function JL(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(IT(e,t))}function eO(e,t,r,n,i,a,o,s,l,u,c){var f=l*(Dd/180),d=Fg(f)*(e-r)/2+Bg(f)*(t-n)/2,h=-1*Bg(f)*(e-r)/2+Fg(f)*(t-n)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=N_(p),s*=N_(p));var v=(i===a?-1:1)*N_((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+r)/2+Fg(f)*g-Bg(f)*m,x=(t+n)/2+Bg(f)*g+Fg(f)*m,S=JL([1,0],[(d-g)/o,(h-m)/s]),b=[(d-g)/o,(h-m)/s],_=[(-1*d-g)/o,(-1*h-m)/s],w=JL(b,_);if(IT(b,_)<=-1&&(w=Dd),IT(b,_)>=1&&(w=0),w<0){var C=Math.round(w/Dd*1e6)/1e6;w=Dd*2+C%2*Dd}c.addData(u,y,x,o,s,S,w,f,a)}var Vge=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$ge=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Gge(e){var t=new Wa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Wa.CMD,l=e.match(Vge);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match($ge)||[],p=h.length,v=0;v<p;v++)h[v]=parseFloat(h[v]);for(var g=0;g<p;){var m=void 0,y=void 0,x=void 0,S=void 0,b=void 0,_=void 0,w=void 0,C=r,T=n,A=void 0,M=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,A=t.len(),M=t.data,o===s.C&&(m+=r-M[A-4],y+=n-M[A-3]),d=s.C,C=h[g++],T=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,C,T,r,n);break;case"s":m=r,y=n,A=t.len(),M=t.data,o===s.C&&(m+=r-M[A-4],y+=n-M[A-3]),d=s.C,C=r+h[g++],T=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,C,T,r,n);break;case"Q":C=h[g++],T=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"q":C=h[g++]+r,T=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"T":m=r,y=n,A=t.len(),M=t.data,o===s.Q&&(m+=r-M[A-4],y+=n-M[A-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,A=t.len(),M=t.data,o===s.Q&&(m+=r-M[A-4],y+=n-M[A-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":x=h[g++],S=h[g++],b=h[g++],_=h[g++],w=h[g++],C=r,T=n,r=h[g++],n=h[g++],d=s.A,eO(C,T,r,n,_,w,x,S,b,d,t);break;case"a":x=h[g++],S=h[g++],b=h[g++],_=h[g++],w=h[g++],C=r,T=n,r+=h[g++],n+=h[g++],d=s.A,eO(C,T,r,n,_,w,x,S,b,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var CH=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(He);function TH(e){return e.setData!=null}function AH(e,t){var r=Gge(e),n=j({},t);return n.buildPath=function(i){if(TH(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){wH(r,i),this.dirtyShape()},n}function MH(e,t){return new CH(AH(e,t))}function Hge(e,t){var r=AH(e,t),n=function(i){Dt(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(CH);return n}function Wge(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new He(t);return o.createPathProxy(),o.buildPath=function(s){if(TH(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function wk(e,t){t=t||{};var r=new He;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?wH(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var jge=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Eo=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jge},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}(He);Eo.prototype.type="circle";var Uge=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),kH=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Uge},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(He);kH.prototype.type="ellipse";const Ck=kH;var IH=Math.PI,z_=IH*2,ul=Math.sin,ac=Math.cos,Yge=Math.acos,Gr=Math.atan2,tO=Math.abs,Uh=Math.sqrt,ch=Math.max,ua=Math.min,Ni=1e-4;function Xge(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<Ni))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function Vg(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Uh(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,p=r+c,v=n+f,g=(d+p)/2,m=(h+v)/2,y=p-d,x=v-h,S=y*y+x*x,b=i-a,_=d*v-p*h,w=(x<0?-1:1)*Uh(ch(0,b*b*S-_*_)),C=(_*x-y*w)/S,T=(-_*y-x*w)/S,A=(_*x+y*w)/S,M=(-_*y+x*w)/S,k=C-g,I=T-m,P=A-g,E=M-m;return k*k+I*I>P*P+E*E&&(C=A,T=M),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(i/b-1),y1:T*(i/b-1)}}function qge(e){var t;if(Y(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 Zge(e,t){var r,n=ch(t.r,0),i=ch(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=tO(u-l),p=h>z_&&h%z_;if(p>Ni&&(h=p),!(n>Ni))e.moveTo(c,f);else if(h>z_-Ni)e.moveTo(c+n*ac(l),f+n*ul(l)),e.arc(c,f,n,l,u,!d),i>Ni&&(e.moveTo(c+i*ac(u),f+i*ul(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,S=void 0,b=void 0,_=void 0,w=void 0,C=void 0,T=void 0,A=void 0,M=void 0,k=void 0,I=void 0,P=void 0,E=n*ac(l),z=n*ul(l),$=i*ac(u),O=i*ul(u),V=h>Ni;if(V){var L=t.cornerRadius;L&&(r=qge(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=tO(n-i)/2;if(x=ua(G,m),S=ua(G,y),b=ua(G,v),_=ua(G,g),T=w=ch(x,S),A=C=ch(b,_),(w>Ni||C>Ni)&&(M=n*ac(u),k=n*ul(u),I=i*ac(l),P=i*ul(l),h<IH)){var W=Xge(E,z,I,P,M,k,$,O);if(W){var B=E-W[0],X=z-W[1],te=M-W[0],U=k-W[1],re=1/ul(Yge((B*te+X*U)/(Uh(B*B+X*X)*Uh(te*te+U*U)))/2),Q=Uh(W[0]*W[0]+W[1]*W[1]);T=ua(w,(n-Q)/(re+1)),A=ua(C,(i-Q)/(re-1))}}}if(!V)e.moveTo(c+E,f+z);else if(T>Ni){var ae=ua(m,T),se=ua(y,T),K=Vg(I,P,E,z,n,ae,d),ee=Vg(M,k,$,O,n,se,d);e.moveTo(c+K.cx+K.x0,f+K.cy+K.y0),T<w&&ae===se?e.arc(c+K.cx,f+K.cy,T,Gr(K.y0,K.x0),Gr(ee.y0,ee.x0),!d):(ae>0&&e.arc(c+K.cx,f+K.cy,ae,Gr(K.y0,K.x0),Gr(K.y1,K.x1),!d),e.arc(c,f,n,Gr(K.cy+K.y1,K.cx+K.x1),Gr(ee.cy+ee.y1,ee.cx+ee.x1),!d),se>0&&e.arc(c+ee.cx,f+ee.cy,se,Gr(ee.y1,ee.x1),Gr(ee.y0,ee.x0),!d))}else e.moveTo(c+E,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ni)||!V)e.lineTo(c+$,f+O);else if(A>Ni){var ae=ua(v,A),se=ua(g,A),K=Vg($,O,M,k,i,-se,d),ee=Vg(E,z,I,P,i,-ae,d);e.lineTo(c+K.cx+K.x0,f+K.cy+K.y0),A<C&&ae===se?e.arc(c+K.cx,f+K.cy,A,Gr(K.y0,K.x0),Gr(ee.y0,ee.x0),!d):(se>0&&e.arc(c+K.cx,f+K.cy,se,Gr(K.y0,K.x0),Gr(K.y1,K.x1),!d),e.arc(c,f,i,Gr(K.cy+K.y1,K.cx+K.x1),Gr(ee.cy+ee.y1,ee.cx+ee.x1),d),ae>0&&e.arc(c+ee.cx,f+ee.cy,ae,Gr(ee.y1,ee.x1),Gr(ee.y0,ee.x0),!d))}else e.lineTo(c+$,f+O),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Kge=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}(),dn=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Kge},t.prototype.buildPath=function(r,n){Zge(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(He);dn.prototype.type="sector";var Qge=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),DH=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Qge},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(He);DH.prototype.type="ring";const _x=DH;function Jge(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)ss(c,c,e[d]),ls(f,f,e[d]);ss(c,c,n[0]),ls(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var p=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(uo(e[d]));continue}else l=e[d-1],u=e[d+1];Ul(a,u,l),Um(a,a,t);var v=eT(p,l),g=eT(p,u),m=v+g;m!==0&&(v/=m,g/=m),Um(o,a,-v),Um(s,a,g);var y=XE([],p,o),x=XE([],p,s);n&&(ls(y,y,c),ss(y,y,f),ls(x,x,c),ss(x,x,f)),i.push(y),i.push(x)}return r&&i.push(i.shift()),i}function PH(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=Jge(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var eme=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),hn=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eme},t.prototype.buildPath=function(r,n){PH(r,n,!0)},t}(He);hn.prototype.type="polygon";var tme=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),mn=function(e){Dt(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 tme},t.prototype.buildPath=function(r,n){PH(r,n,!1)},t}(He);mn.prototype.type="polyline";var rme={},nme=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),vr=function(e){Dt(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 nme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=cH(rme,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,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}(He);vr.prototype.type="line";var yn=[],ime=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 rO(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?oL:hr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?oL:hr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?aT:br)(e.x1,e.cpx1,e.x2,t),(r?aT:br)(e.y1,e.cpy1,e.y2,t)]}var Dv=function(e){Dt(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 ime},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(Rp(i,l,o,d,yn),l=yn[1],o=yn[2],Rp(a,u,s,d,yn),u=yn[1],s=yn[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Ls(i,l,c,o,d,yn),l=yn[1],c=yn[2],o=yn[3],Ls(a,u,f,s,d,yn),u=yn[1],f=yn[2],s=yn[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return rO(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=rO(this.shape,r,!0);return Wf(n,n)},t}(He);Dv.prototype.type="bezier-curve";var ame=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}(),bx=function(e){Dt(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 ame},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(He);bx.prototype.type="arc";var ome=function(e){Dt(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||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].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),He.prototype.getBoundingRect.call(this)},t}(He);const Tk=ome;var RH=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),Pv=function(e){Dt(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(RH),sme=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(RH);const EH=sme;var cl=[0,0],fl=[0,0],$g=new Ee,Gg=new Ee,lme=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ee;for(var n=0;n<2;n++)this._axes[n]=new Ee;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Ee.sub(i[0],n[1],n[0]),Ee.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return $g.set(1/0,1/0),Gg.set(0,0),!this._intersectCheckOneSide(this,t,$g,Gg,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,$g,Gg,i,-1)&&(n=!1,i)||i||Ee.copy(r,n?$g:Gg),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,cl),this._getProjMinMaxOnAxis(l,r._corners,fl),cl[1]<fl[0]||cl[0]>fl[1]){if(s=!1,a)return s;var c=Math.abs(fl[0]-cl[1]),f=Math.abs(cl[0]-fl[1]);Math.min(c,f)>i.len()&&(c<f?Ee.scale(i,u,-c*o):Ee.scale(i,u,f*o))}else if(n){var c=Math.abs(fl[0]-cl[1]),f=Math.abs(cl[0]-fl[1]);Math.min(c,f)<n.len()&&(c<f?Ee.scale(n,u,c*o):Ee.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const u0=lme;var ume=[],cme=function(e){Dt(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 Ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(ume)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Ai);const fme=cme;var LH=Ze();function Xf(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Ie(n.duration,200),c=Ie(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Se(f)&&(f=f(r,i)),Se(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Ak(e,t,r,n,i,a,o){var s=!1,l;Se(i)?(o=a,a=i,i=null):be(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Xf(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function rt(e,t,r,n,i,a){Ak("update",e,t,r,n,i,a)}function Et(e,t,r,n,i,a){Ak("enter",e,t,r,n,i,a)}function of(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 Os(e,t,r,n,i,a){of(e)||Ak("leave",e,t,r,n,i,a)}function nO(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Os(e,{style:{opacity:0}},t,r,n)}function Fp(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||nO(i,t,r,n)}):nO(e,t,r,n)}function ta(e){LH(e).oldStyle=e.style}function dme(e){return LH(e).oldStyle}var c0=Math.max,f0=Math.min,DT={};function hme(e){return He.extend(e)}var pme=Hge;function vme(e,t){return pme(e,t)}function na(e,t){DT[e]=t}function Mk(e){if(DT.hasOwnProperty(e))return DT[e]}function Cx(e,t,r,n){var i=MH(e,t);return r&&(n==="center"&&(r=NH(r,i.getBoundingRect())),zH(i,r)),i}function OH(e,t,r){var n=new Mr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(NH(t,a))}}});return n}function NH(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 a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var mi=Wge;function zH(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Mf(e,t){return cH(e,e,{lineWidth:t}),e}function gme(e){return fH(e.shape,e.shape,e.style),e}var ty=Yl;function su(e,t){for(var r=fx([]);e&&e!==t;)co(r,e.getLocalTransform(),r),e=e.parent;return r}function qi(e,t,r){return t&&!qr(t)&&(t=oo.getLocalTransform(t)),r&&(t=jf([],t)),Or([],e,t)}function Tx(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]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=qi(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function iO(e){return!e.isGroup}function mme(e){return e.shape!=null}function Rv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){iO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return mme(o)&&(s.shape=j({},o.shape)),s}var a=n(e);t.traverse(function(o){if(iO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),rt(o,l,r,ke(o).dataIndex)}}})}function BH(e,t){return q(e,function(r){var n=r[0];n=c0(n,t.x),n=f0(n,t.x+t.width);var i=r[1];return i=c0(i,t.y),i=f0(i,t.y+t.height),[n,i]})}function yme(e,t){var r=c0(e.x,t.x),n=f0(e.x+e.width,t.x+t.width),i=c0(e.y,t.y),a=f0(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Ev(e,t,r){var n=j({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),_e(i,r),new Mr(n)):Cx(e.replace("path://",""),n,r,"center")}function fh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(FH(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function FH(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=B_(c,f,l,u);if(xme(d))return!1;var h=e-i,p=t-a,v=B_(h,p,l,u)/d;if(v<0||v>1)return!1;var g=B_(h,p,c,f)/d;return!(g<0||g>1)}function B_(e,t,r,n){return e*n-r*t}function xme(e){return e<=1e-6&&e>=-1e-6}function qf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=ne(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(Ye(l),function(c){fe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:_e({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function aO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Us(e,t){if(e)if(Y(e))for(var r=0;r<e.length;r++)aO(e[r],t);else aO(e,t)}na("circle",Eo);na("ellipse",Ck);na("sector",dn);na("ring",_x);na("polygon",hn);na("polyline",mn);na("rect",qe);na("line",vr);na("bezierCurve",Dv);na("arc",bx);const zu=Object.freeze(Object.defineProperty({__proto__:null,Arc:bx,BezierCurve:Dv,BoundingRect:Ne,Circle:Eo,CompoundPath:Tk,Ellipse:Ck,Group:Ae,Image:Mr,IncrementalDisplayable:fme,Line:vr,LinearGradient:Pv,OrientedBoundingRect:u0,Path:He,Point:Ee,Polygon:hn,Polyline:mn,RadialGradient:EH,Rect:qe,Ring:_x,Sector:dn,Text:Je,applyTransform:qi,clipPointsByRect:BH,clipRectByRect:yme,createIcon:Ev,extendPath:vme,extendShape:hme,getShapeClass:Mk,getTransform:su,groupTransition:Rv,initProps:Et,isElementRemoved:of,lineLineIntersect:FH,linePolygonIntersect:fh,makeImage:OH,makePath:Cx,mergePath:mi,registerShape:na,removeElement:Os,removeElementWithFadeOut:Fp,resizePath:zH,setTooltipConfig:qf,subPixelOptimize:ty,subPixelOptimizeLine:Mf,subPixelOptimizeRect:gme,transformDirection:Tx,traverseElements:Us,updateProps:rt},Symbol.toStringTag,{value:"Module"}));var Ax={};function VH(e,t){for(var r=0;r<fn.length;r++){var n=fn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function PT(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Se(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<fn.length;u++){var c=fn[u],f=t[c];l[c]=Ie(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Br(e,t,r,n){r=r||Ax;for(var i=e instanceof Je,a=!1,o=0;o<zp.length;o++){var s=t[zp[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Je,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=PT(r,t),c=t.normal,f=!!c.getShallow("show"),d=Tt(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(d0(c,r,!1));for(var o=0;o<fn.length;o++){var h=fn[o],s=t[h];if(s){var p=l.ensureState(h),v=!!Ie(s.getShallow("show"),f);if(v!==f&&(p.ignore=!v),p.style=Tt(s,n&&n[h],r,!0,!i),p.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=d0(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(Zf(l).setLabelText=function(m){var y=PT(r,t,m);VH(l,y)})}else l&&(l.ignore=!0);e.dirty()}function yr(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<fn.length;n++){var i=fn[n];r[i]=e.getModel([i,t])}return r}function Tt(e,t,r,n,i){var a={};return Sme(a,e,r,n,i),t&&j(a,t),a}function d0(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Ie(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),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function Sme(e,t,r,n,i){r=r||Ax;var a=t.ecModel,o=a&&a.option.textStyle,s=_me(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);uO(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),uO(e,t,o,r,n,i,!0,!1)}function _me(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Ax).rich;if(r){t=t||{};for(var n=Ye(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var oO=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],sO=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lO=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function uO(e,t,r,n,i,a,o,s){r=!i&&r||Ax;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Ie(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Ie(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Ie(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var p=Ie(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var v=0;v<oO.length;v++){var g=oO[v],m=Ie(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var v=0;v<sO.length;v++){var g=sO[v],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var v=0;v<lO.length;v++){var g=lO[v],m=t.getShallow(g);m!=null&&(e[g]=m)}var x=t.getShallow("borderType");x!=null&&(e.borderDash=x),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function kk(e,t){var r=t&&t.getModel("textStyle");return Wi([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 Zf=Ze();function $H(e,t,r,n){if(e){var i=Zf(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function GH(e,t,r,n,i){var a=Zf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Ie(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=rH(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=PT({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);VH(e,d)}e.percent=0,(a.prevValue==null?Et:rt)(e,{percent:1},n,t,null,u)}var bme=["textStyle","color"],F_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],V_=new Je,wme=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(bme):null)},e.prototype.getFont=function(){return kk({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<F_.length;n++)r[F_[n]]=this.getShallow(F_[n]);return V_.useStyle(r),V_.update(),V_.getBoundingRect()},e}(),HH=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cme=Cu(HH),Tme=function(){function e(){}return e.prototype.getLineStyle=function(t){return Cme(this,t)},e}(),WH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ame=Cu(WH),Mme=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Ame(this,t,r)},e}(),st=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){Oe(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 a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,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(Ce(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(!je.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}();vk(st);Rve(st);or(st,Tme);or(st,Mme);or(st,zve);or(st,wme);var kme=Math.round(Math.random()*10);function Kf(e){return[e||"",kme++].join("_")}function Ime(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Aa(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Aa(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Dme(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(D(a,function(y){d[y]=!0});f.length;){var h=f.pop(),p=c[h],v=!!d[h];v&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),D(p.successor,v?m:g)}D(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return D(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),D(f,function(d){ze(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ze(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return D(a,function(l){ze(o,l)>=0&&s.push(l)}),s}}function Ys(e,t){return Oe(Oe({},e,!0),t,!0)}const Pme={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:". "}}}},Rme={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 h0="ZH",Ik="EN",sf=Ik,ry={},Dk={},jH=je.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||sf).toUpperCase();return e.indexOf(h0)>-1?h0:sf}():sf;function UH(e,t){e=e.toUpperCase(),Dk[e]=new st(t),ry[e]=t}function Eme(e){if(ne(e)){var t=ry[e.toUpperCase()]||{};return e===h0||e===Ik?Ce(t):Oe(Ce(t),Ce(ry[sf]),!1)}else return Oe(Ce(e),Ce(ry[sf]),!1)}function RT(e){return Dk[e]}function Lme(){return Dk[sf]}UH(Ik,Pme);UH(h0,Rme);var Pk=1e3,Rk=Pk*60,Yh=Rk*60,yi=Yh*24,cO=yi*365,dh={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}"},Hg="{yyyy}-{MM}-{dd}",fO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hg,hour:Hg+" "+dh.hour,minute:Hg+" "+dh.minute,second:Hg+" "+dh.second,millisecond:dh.none},$_=["year","month","day","hour","minute","second","millisecond"],YH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Go(e,t){return e+="","0000".substr(0,t-e.length)+e}function lf(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 Ome(e){return e===lf(e)}function Nme(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Mx(e,t,r,n){var i=Ha(e),a=i[Ek(r)](),o=i[uf(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[kx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Vp(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Dx(r)](),p=i[Px(r)](),v=c>=12?"pm":"am",g=v.toUpperCase(),m=n instanceof st?n:RT(n||jH)||Lme(),y=m.getModel("time"),x=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,v+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Go(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Go(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Go(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Go(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Go(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Go(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Go(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Go(p,3)).replace(/{S}/g,p+"")}function zme(e,t,r,n,i){var a=null;if(ne(r))a=r;else if(Se(r))a=r(e.value,t,{level:e.level});else{var o=j({},dh);if(e.level>0)for(var s=0;s<$_.length;++s)o[$_[s]]="{primary|"+o[$_[s]]+"}";var l=r?r.inherit===!1?r:_e(r,o):o,u=XH(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=YH.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return Mx(new Date(e.value),a,i,n)}function XH(e,t){var r=Ha(e),n=r[uf(t)]()+1,i=r[kx(t)](),a=r[Vp(t)](),o=r[Ix(t)](),s=r[Dx(t)](),l=r[Px(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function dO(e,t,r){var n=et(e)?Ha(e):e;switch(t=t||XH(e,r),t){case"year":return n[Ek(r)]();case"half-year":return n[uf(r)]()>=6?1:0;case"quarter":return Math.floor((n[uf(r)]()+1)/4);case"month":return n[uf(r)]();case"day":return n[kx(r)]();case"half-day":return n[Vp(r)]()/24;case"hour":return n[Vp(r)]();case"minute":return n[Ix(r)]();case"second":return n[Dx(r)]();case"millisecond":return n[Px(r)]()}}function Ek(e){return e?"getUTCFullYear":"getFullYear"}function uf(e){return e?"getUTCMonth":"getMonth"}function kx(e){return e?"getUTCDate":"getDate"}function Vp(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Dx(e){return e?"getUTCSeconds":"getSeconds"}function Px(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Bme(e){return e?"setUTCFullYear":"setFullYear"}function qH(e){return e?"setUTCMonth":"setMonth"}function ZH(e){return e?"setUTCDate":"setDate"}function KH(e){return e?"setUTCHours":"setHours"}function QH(e){return e?"setUTCMinutes":"setMinutes"}function JH(e){return e?"setUTCSeconds":"setSeconds"}function eW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function tW(e){if(!X6(e))return ne(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function rW(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 Qf=ak;function ET(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Wi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ha(e):e;if(isNaN(+l)){if(s)return"-"}else return Mx(l,n,r)}if(t==="ordinal")return ZC(e)?i(e):et(e)&&a(e)?e+"":"-";var u=wo(e);return a(u)?tW(u):ZC(e)?i(e):typeof e=="boolean"?e+"":"-"}var hO=["a","b","c","d","e","f","g"],G_=function(e,t){return"{"+e+(t??"")+"}"};function nW(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=hO[a];e=e.replace(G_(o),G_(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(G_(hO[l],s),r?wn(u):u)}return e}function Fme(e,t,r){return D(t,function(n,i){e=e.replace("{"+i+"}",n)}),e}function Vme(e,t){var r=ne(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="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:'+wn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wn(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Au(e,t){return t=t||"transparent",ne(e)?e:be(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function p0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ny=D,iW=["left","right","top","bottom","width","height"],ql=[["width","left","right"],["height","top","bottom"]];function Lk(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var lu=Lk;De(Lk,"vertical");De(Lk,"horizontal");function $me(e,t,r){var n=t.width,i=t.height,a=J(e.left,n),o=J(e.top,i),s=J(e.right,n),l=J(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Qf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function fr(e,t,r){r=Qf(r||0);var n=t.width,i=t.height,a=J(e.left,n),o=J(e.top,i),s=J(e.right,n),l=J(e.bottom,i),u=J(e.width,n),c=J(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function Rx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=fr(_e({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function Gme(e,t){return e[ql[t][0]]!=null||e[ql[t][1]]!=null&&e[ql[t][2]]!=null}function $p(e){var t=e.layoutMode||e.constructor.layoutMode;return be(t)?t:t?{type:t}:null}function Ns(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(ql[0],0),a=o(ql[1],1);u(ql[0],e,i),u(ql[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(ny(c,function(x){p[x]=e[x]}),ny(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m<c.length;m++){var y=c[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){ny(c,function(h){f[h]=d[h]})}}function Jf(e){return aW({},e)}function aW(e,t){return t&&e&&ny(iW,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Hme=Ze(),Ue=function(e){H(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Kf("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=$p(this),a=i?Jf(r):{},o=n.getTheme();Oe(r,o.get(this.mainType)),Oe(r,this.getDefaultOption()),i&&Ns(r,a,i)},t.prototype.mergeOption=function(r,n){Oe(this.option,r,!0);var i=$p(this);i&&Ns(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Ive(r))return r.defaultOption;var n=Hme(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return kv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!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}(st);iH(Ue,st);vx(Ue);Ime(Ue);Dme(Ue,Wme);function Wme(e){var t=[];return D(Ue.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=q(t,function(r){return Aa(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}var oW="";typeof navigator<"u"&&(oW=navigator.platform||"");var oc="rgba(0, 0, 0, 0.2)";const jme={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:oc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:oc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:oc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:oc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:oc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:oc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:oW.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 sW=de(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Pi="original",Zr="arrayRows",Ri="objectRows",Xa="keyedColumns",Ts="typedArray",lW="unknown",Oa="column",ed="row",Pr={Must:1,Might:2,Not:3},uW=Ze();function Ume(e){uW(e).datasetMap=de()}function cW(e,t,r){var n={},i=Nk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=uW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=be(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});D(e,function(v,g){var m=v.name,y=p(v);if(c==null){var x=d.valueWayDim;h(n[m],x,y),h(o,x,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var x=d.categoryWayDim;h(n[m],x,y),h(o,x,y),d.categoryWayDim+=y}});function h(v,g,m){for(var y=0;y<m;y++)v.push(g+y)}function p(v){var g=v.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Ok(e,t,r){var n={},i=Nk(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Ri||a===Xa)&&D(o,function(c,f){(be(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,p=Math.min(5,r);h<p;h++){var v=dW(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(v);var g=v===Pr.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Pr.Not)&&(c.n=h),m(c)&&d[c.n]!==Pr.Not)return c;g||(v===Pr.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Nk(e){var t=e.get("data",!0);if(!t)return kv(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ir).models[0]}function Yme(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:kv(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ir).models}function fW(e,t){return dW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function dW(e,t,r,n,i,a){var o,s=5;if(On(e))return Pr.Not;var l,u;if(n){var c=n[a];be(c)?(l=c.name,u=c.type):ne(c)&&(l=c)}if(u!=null)return u==="ordinal"?Pr.Must:Pr.Not;if(t===Zr){var f=e;if(r===ed){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=S(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[i+h];if(p&&(o=S(p[a]))!=null)return o}}else if(t===Ri){var v=e;if(!l)return Pr.Not;for(var h=0;h<v.length&&h<s;h++){var g=v[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Xa){var m=e;if(!l)return Pr.Not;var d=m[l];if(!d||On(d))return Pr.Not;for(var h=0;h<d.length&&h<s;h++)if((o=S(d[h]))!=null)return o}else if(t===Pi)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],x=Uf(g);if(!Y(x))return Pr.Not;if((o=S(x[a]))!=null)return o}function S(b){var _=ne(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return _?Pr.Might:Pr.Not;if(_&&b!=="-")return Pr.Must}return Pr.Not}var LT=de();function Xme(e,t){cn(LT.get(e)==null&&t),LT.set(e,t)}function qme(e,t,r){var n=LT.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var pO=Ze(),Zme=Ze(),zk=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=vt(this.get("color",!0)),a=this.get("colorLayer",!0);return hW(this,pO,i,a,t,r,n)},e.prototype.clearColorPalette=function(){Qme(this,pO)},e}();function OT(e,t,r,n){var i=vt(e.get(["aria","decal","decals"]));return hW(e,Zme,i,null,t,r,n)}function Kme(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 hW(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Kme(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Qme(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Wg,Pd,vO,gO="\0_ec_inner",Jme=1,Bk=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new st(a),this._locale=new st(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=xO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,xO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?vO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=de(),u=n&&n.replaceMergeMainTypeMap;Ume(this),D(r,function(f,d){f!=null&&(Ue.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ce(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){Ue.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Ue.topologicalTravel(s,Ue.getAllClassMainTypes(),c,this);function c(f){var d=qme(this,f,vt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=J6(h,d,p);Sve(v,f,Ue),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(v,function(S,b){var _=S.existing,w=S.newOption;if(!w)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var C=f==="series",T=Ue.getClass(f,S.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(x)return;x=!0}if(_&&_.constructor===T)_.name=S.keyInfo.name,_.mergeOption(w,this),_.optionUpdated(w,!1);else{var A=j({componentIndex:b},S.keyInfo);_=new T(w,this,this,A),j(_,A),S.brandNew&&(_.__requireNewView=!0),_.init(w,this,this),_.optionUpdated(null,!0)}}_?(g.push(_.option),m.push(_),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Wg(this)}this._seriesIndices||Wg(this)},t.prototype.getOption=function(){var r=Ce(this.option);return D(r,function(n,i){if(Ue.hasClass(i)){for(var a=vt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Np(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[gO],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 a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],D(vt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=mO("id",a,s):o!=null?l=mO("name",o,s):l=ft(s,function(u){return!!u}),yO(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):ft(this._componentsMap.get(i),function(u){return!!u});return l(yO(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?ft(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Se(r)){var o=n,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=ne(r)?a.get(r):be(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=cr(r,null);return ft(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 ft(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return ft(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Pd(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Pd(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Pd(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Pd(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=de(i)},t.prototype.restoreData=function(r){Wg(this);var n=this._componentsMap,i=[];n.each(function(a,o){Ue.hasClass(o)&&i.push(o)}),Ue.topologicalTravel(i,Ue.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&(a!=="series"||!eye(o,r))&&o.restoreData()})})},t.internalField=function(){Wg=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=de(n)},Pd=function(r){},vO=function(r,n){r.option={},r.option[gO]=Jme,r._componentsMap=de({series:[]}),r._componentsCount=de();var i=n.aria;be(i)&&i.enabled==null&&(i.enabled=!0),tye(n,r._theme.option),Oe(n,jme,!1),r._mergeOption(n,null)}}(),t}(st);function eye(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 tye(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,i){i==="colorLayer"&&r||Ue.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Oe(e[i],n,!1):Ce(n):e[i]==null&&(e[i]=n))})}function mO(e,t,r){if(Y(t)){var n=de();return D(t,function(a){if(a!=null){var o=cr(a,null);o!=null&&n.set(a,!0)}}),ft(r,function(a){return a&&n.get(a[e])})}else{var i=cr(t,null);return ft(r,function(a){return a&&i!=null&&a[e]===i})}}function yO(e,t){return t.hasOwnProperty("subType")?ft(e,function(r){return r&&r.subType===t.subType}):e}function xO(e){var t=de();return e&&D(vt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}or(Bk,zk);var rye=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pW=function(){function e(t){D(rye,function(r){this[r]=le(t[r],t)},this)}return e}(),H_={},Lv=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];D(H_,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){D(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){H_[t]=r},e.get=function(t){return H_[t]},e}(),nye=/^(min|max)?(.+)$/,iye=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(vt(t.series),function(o){o&&o.data&&On(o.data)&&Ky(o.data)}),D(vt(t.dataset),function(o){o&&o.source&&On(o.source)&&Ky(o.source)})),t=Ce(t);var i=this._optionBackup,a=aye(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Ce(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=Ce(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)oye(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!lye(o,this._currentMediaIndices)&&(s=q(o,function(c){return Ce(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function aye(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&Y(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),D(l,function(h){return d(h)}),D(n,function(h){return d(h.option)});function d(h){D(t,function(p){p(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function oye(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return D(e,function(a,o){var s=o.match(nye);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();sye(n[u],a,l)||(i=!1)}}),i}function sye(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function lye(e,t){return e.join(",")===t.join(",")}var Li=D,Gp=be,SO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function W_(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=SO.length;r<n;r++){var i=SO[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Oe(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Oe(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function jr(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,_e(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 hh(e){jr(e,"itemStyle"),jr(e,"lineStyle"),jr(e,"areaStyle"),jr(e,"label"),jr(e,"labelLine"),jr(e,"upperLabel"),jr(e,"edgeLabel")}function tr(e,t){var r=Gp(e)&&e[t],n=Gp(r)&&r.textStyle;if(n)for(var i=0,a=AL.length;i<a;i++){var o=AL[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function si(e){e&&(hh(e),tr(e,"label"),e.emphasis&&tr(e.emphasis,"label"))}function uye(e){if(Gp(e)){W_(e),hh(e),tr(e,"label"),tr(e,"upperLabel"),tr(e,"edgeLabel"),e.emphasis&&(tr(e.emphasis,"label"),tr(e.emphasis,"upperLabel"),tr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(W_(t),si(t));var r=e.markLine;r&&(W_(r),si(r));var n=e.markArea;n&&si(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!On(a))for(var o=0;o<a.length;o++)si(a[o]);D(e.categories,function(u){hh(u)})}if(i&&!On(i))for(var o=0;o<i.length;o++)si(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)si(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Y(l[o])?(si(l[o][0]),si(l[o][1])):si(l[o]);e.type==="gauge"?(tr(e,"axisLabel"),tr(e,"title"),tr(e,"detail")):e.type==="treemap"?(jr(e.breadcrumb,"itemStyle"),D(e.levels,function(u){hh(u)})):e.type==="tree"&&hh(e.leaves)}}function Qa(e){return Y(e)?e:e?[e]:[]}function _O(e){return(Y(e)?e[0]:e)||{}}function cye(e,t){Li(Qa(e.series),function(n){Gp(n)&&uye(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Li(r,function(n){Li(Qa(e[n]),function(i){i&&(tr(i,"axisLabel"),tr(i.axisPointer,"label"))})}),Li(Qa(e.parallel),function(n){var i=n&&n.parallelAxisDefault;tr(i,"axisLabel"),tr(i&&i.axisPointer,"label")}),Li(Qa(e.calendar),function(n){jr(n,"itemStyle"),tr(n,"dayLabel"),tr(n,"monthLabel"),tr(n,"yearLabel")}),Li(Qa(e.radar),function(n){tr(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)}),Li(Qa(e.geo),function(n){Gp(n)&&(si(n),Li(Qa(n.regions),function(i){si(i)}))}),Li(Qa(e.timeline),function(n){si(n),jr(n,"label"),jr(n,"itemStyle"),jr(n,"controlStyle",!0);var i=n.data;Y(i)&&D(i,function(a){be(a)&&(jr(a,"label"),jr(a,"itemStyle"))})}),Li(Qa(e.toolbox),function(n){jr(n,"iconStyle"),Li(n.feature,function(i){jr(i,"iconStyle")})}),tr(_O(e.axisPointer),"label"),tr(_O(e.tooltip).axisPointer,"label")}function fye(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 dye(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function bO(e){e&&D(hye,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var hye=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],pye=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],j_=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Rd(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<j_.length;r++){var n=j_[r][1],i=j_[r][0];t[n]!=null&&(t[i]=t[n])}}function wO(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function CO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function vye(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function vW(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&vW(e[r].children,t)}function gW(e,t){cye(e,t),e.series=vt(e.series),D(e.series,function(r){if(be(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),wO(r.label);var i=r.data;if(i&&!On(i))for(var a=0;a<i.length;a++)wO(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=fye(r,"pointer.color");o!=null&&dye(r,"itemStyle.color",o)}else if(n==="bar"){Rd(r),Rd(r.backgroundStyle),Rd(r.emphasis);var i=r.data;if(i&&!On(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Rd(i[a]),Rd(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),CO(r),vW(r.data,CO)}else n==="graph"||n==="sankey"?vye(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&_e(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),bO(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(pye,function(r){var n=e[r];n&&(Y(n)||(n=[n]),D(n,function(i){bO(i)}))})}function gye(e){var t=de();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(mye)}function mye(e){D(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var h,p;s?p=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var v=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=uve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Ex=function(){function e(t){this.data=t.data||(t.sourceFormat===Xa?{}:[]),this.sourceFormat=t.sourceFormat||lW,this.seriesLayoutBy=t.seriesLayoutBy||Oa,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&&fW(this,n)===Pr.Must&&(i.type="ordinal")}}return e}();function Fk(e){return e instanceof Ex}function NT(e,t,r){r=r||mW(e);var n=t.seriesLayoutBy,i=xye(e,r,n,t.sourceHeader,t.dimensions),a=new Ex({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ce(t)});return a}function Vk(e){return new Ex({data:e,sourceFormat:On(e)?Ts:Pi})}function yye(e){return new Ex({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Ce(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function mW(e){var t=lW;if(On(e))t=Ts;else if(Y(e)){e.length===0&&(t=Zr);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(Y(i)||On(i)){t=Zr;break}else if(be(i)){t=Ri;break}}}}else if(be(e)){for(var a in e)if(fe(e,a)&&qr(e[a])){t=Xa;break}}return t}function xye(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:TO(i),startIndex:o,dimensionsDetectedCount:a};if(t===Zr){var s=e;n==="auto"||n==null?AO(function(u){u!=null&&u!=="-"&&(ne(u)?o==null&&(o=1):o=0)},r,s,10):o=et(n)?n:n?1:0,!i&&o===1&&(i=[],AO(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ed?s.length:s[0]?s[0].length:null}else if(t===Ri)i||(i=Sye(e));else if(t===Xa)i||(i=[],D(e,function(u,c){i.push(c)}));else if(t===Pi){var l=Uf(e[0]);a=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:TO(i),dimensionsDetectedCount:a}}function Sye(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Ye(r)}function TO(e){if(e){var t=de();return q(e,function(r,n){r=be(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 a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function AO(e,t,r,n){if(t===ed)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function yW(e){var t=e.sourceFormat;return t===Ri||t===Xa}var dl,hl,pl,MO,kO,xW=function(){function e(t,r){var n=Fk(t)?t:Vk(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Ts&&(this._offset=0,this._dimSize=r,this._data=i),kO(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;kO=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=MO[$k(u,c)];if(j(o,h),u===Ts)o.getItem=r,o.count=i,o.fillStorage=n;else{var p=SW(u,c);o.getItem=le(p,null,s,f,d);var v=_W(u,c);o.count=le(v,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],p=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var x=c[y*f+d];m[o+y]=x,x<p&&(p=x),x>v&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};MO=(t={},t[Zr+"_"+Oa]={pure:!0,appendData:a},t[Zr+"_"+ed]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ri]={pure:!0,appendData:a},t[Xa]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Pi]={appendData:a},t[Ts]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),IO=function(e,t,r,n){return e[n]},_ye=(dl={},dl[Zr+"_"+Oa]=function(e,t,r,n){return e[n+t]},dl[Zr+"_"+ed]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},dl[Ri]=IO,dl[Xa]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},dl[Pi]=IO,dl);function SW(e,t){var r=_ye[$k(e,t)];return r}var DO=function(e,t,r){return e.length},bye=(hl={},hl[Zr+"_"+Oa]=function(e,t,r){return Math.max(0,e.length-t)},hl[Zr+"_"+ed]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},hl[Ri]=DO,hl[Xa]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},hl[Pi]=DO,hl);function _W(e,t){var r=bye[$k(e,t)];return r}var U_=function(e,t,r){return e[t]},wye=(pl={},pl[Zr]=U_,pl[Ri]=function(e,t,r){return e[r]},pl[Xa]=U_,pl[Pi]=function(e,t,r){var n=Uf(e);return n instanceof Array?n[t]:n},pl[Ts]=U_,pl);function bW(e){var t=wye[e];return t}function $k(e,t){return e===Zr?e+"_"+t:e}function kf(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return bW(a)(n,o,s)}else{var l=n;return a===Pi&&(l=Uf(n)),l}}}}var Cye=/\{@(.+?)\}/g,Lx=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&Y(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Se(a))return l.status=r,l.dimensionIndex=i,a(l);if(ne(a)){var c=nW(a,l);return c.replace(Cye,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var v=kf(s,t,p);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return kf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function PO(e){var t,r;return be(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Xh(e){return new Tye(e)}var Tye=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 a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<p)){var v=this._progress;if(Y(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],h,p,l,u);else this._doProgress(v,h,p,l,u)}this._dueIndex=p;var m=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=m}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,a){RO.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:RO.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),Y(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}(),RO=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function As(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!et(e)&&e!=null&&e!=="-"&&(e=+Ha(e)),e==null||e===""?NaN:Number(e))}var Aye=de({number:function(e){return parseFloat(e)},time:function(e){return+Ha(e)},trim:function(e){return ne(e)?Wi(e):e}});function wW(e){return Aye.get(e)}var CW={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Mye=function(){function e(t,r){if(!et(r)){var n="";at(n)}this._opFn=CW[t],this._rvalFloat=wo(r)}return e.prototype.evaluate=function(t){return et(t)?this._opFn(t,this._rvalFloat):this._opFn(wo(t),this._rvalFloat)},e}(),TW=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=et(t)?t:wo(t),i=et(r)?r:wo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=ne(t),l=ne(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),kye=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=wo(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=wo(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Iye(e,t){return e==="eq"||e==="ne"?new kye(e==="eq",t):fe(CW,e)?new Mye(e,t):null}var Dye=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 As(t,r)},e}();function Pye(e,t){var r=new Dye,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Oa&&at(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";fe(l,m)&&at(x),l[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=SW(i,Oa);t.__isBuiltIn&&(r.getRawDataItem=function(v){return f(n,a,s,v)},r.getRawData=le(Rye,null,e)),r.cloneRawData=le(Eye,null,e);var d=_W(i,Oa);r.count=le(d,null,n,a,s);var h=bW(i);r.retrieveValue=function(v,g){var m=f(n,a,s,v);return p(m,g)};var p=r.retrieveValueFromItem=function(v,g){if(v!=null){var m=s[g];if(m)return h(v,g,m.name)}};return r.getDimensionInfo=le(Lye,null,s,l),r.cloneAllDimensionInfo=le(Oye,null,s),r}function Rye(e){var t=e.sourceFormat;if(!Gk(t)){var r="";at(r)}return e.data}function Eye(e){var t=e.sourceFormat,r=e.data;if(!Gk(t)){var n="";at(n)}if(t===Zr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Ri){for(var i=[],a=0,o=r.length;a<o;a++)i.push(j({},r[a]));return i}}function Lye(e,t,r){if(r!=null){if(et(r)||!isNaN(r)&&!fe(t,r))return e[r];if(fe(t,r))return t[r]}}function Oye(e){return Ce(e)}var AW=de();function Nye(e){e=Ce(e);var t=e.type,r="";t||at(r);var n=t.split(":");n.length!==2&&at(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,AW.set(t,e)}function zye(e,t,r){var n=vt(e),i=n.length,a="";i||at(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Bye(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Bye(e,t,r,n){var i="";t.length||at(i),be(e)||at(i);var a=e.type,o=AW.get(a);o||at(i);var s=q(t,function(u){return Pye(u,o)}),l=vt(o.transform({upstream:s[0],upstreamList:s,config:Ce(e.config)}));return q(l,function(u,c){var f="";be(u)||at(f),u.data||at(f);var d=mW(u.data);Gk(d)||at(f);var h,p=t[0];if(p&&c===0&&!u.dimensions){var v=p.startIndex;v&&(u.data=p.data.slice(0,v).concat(u.data)),h={seriesLayoutBy:Oa,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:Oa,sourceHeader:0,dimensions:u.dimensions};return NT(u.data,h,null)})}function Gk(e){return e===Zr||e===Ri}var Ox="undefined",Fye=typeof Uint32Array===Ox?Array:Uint32Array,Vye=typeof Uint16Array===Ox?Array:Uint16Array,MW=typeof Int32Array===Ox?Array:Int32Array,EO=typeof Float64Array===Ox?Array:Float64Array,kW={float:EO,int:MW,ordinal:Array,number:Array,time:EO},Y_;function Ed(e){return e>65535?Fye:Vye}function sc(){return[1/0,-1/0]}function $ye(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function LO(e,t,r,n,i){var a=kW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var zT=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=de()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Y_[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],yW(i),this._dimensions=q(r,function(o){return{type:o.type,property:o.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,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new kW[r||"float"](this._rawCount),this._rawExtent[a]=sc(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=sc());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,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,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];LO(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<a;p++){var c=i[p],v=Y_.arrayRows.call(this,t[h]||f,c.property,h,p);n[p][d]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=q(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=sc()),LO(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var p=0;p<s;p++){var v=a[p],g=this._dimValueGetter(d,u[p],h,p);v[h]=g;var m=l[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!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 a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],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,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),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,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-a[d],p=Math.abs(h);p<=n&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},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 a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Ed(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ed(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var h=void 0,p=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var v=f[c][p];h=r(v,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][p];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=p)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Ye(t),a=i.length;if(!a)return this;var o=r.count(),s=Ed(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],h=r._chunks,p=!1;if(!r._indices){var v=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],b=t[i[1]][1],m=0;m<n;m++){var y=g[m],_=x[m];(y>=f&&y<=d||isNaN(y))&&(_>=S&&_<=b||isNaN(_))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m<o;m++){var w=r.getRawIndex(m),y=h[i[0]][w];(y>=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var C=!0,w=r.getRawIndex(m),T=0;T<a;T++){var A=i[T],y=h[A][w];(y<t[A][0]||y>t[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,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,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=sc();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=f;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var c=0;c<p.length;c++){var v=r[c],g=p[c],m=u[v],y=i[v];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Ed(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),m=(g+v)/2,y=0,x=v;x<g;x++){var S=this.getRawIndex(x),b=a[S];isNaN(b)||(y+=b)}y/=g-v;var _=p,w=Math.min(p+l,o),C=p-1,T=a[u];c=-1,d=_;for(var A=-1,M=0,x=_;x<w;x++){var S=this.getRawIndex(x),b=a[S];if(isNaN(b)){M++,A<0&&(A=S);continue}f=Math.abs((C-m)*(b-T)-(C-x)*(y-T)),f>c&&(c=f,d=S)}M>0&&M<w-_&&(h[s++]=Math.min(A,d),d=Math.max(A,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=sc(),d=new(Ed(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(p+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=sc();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},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,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Va(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?$ye(i[o]):i[o];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=Ce(this._extent),t._rawExtent=Ce(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,a){return As(r[a],this._dimensions[a])}Y_={arrayRows:t,objectRows:function(r,n,i,a){return As(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return As(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),IW=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,a;if(jg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=On(s)?Ts:Pi,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ie(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ie(f.sourceHeader,d.sourceHeader),v=Ie(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[NT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[NT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&NO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&NO(f),s.push(c),l.push(u._getVersionSign())}),n?o=zye(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[yye(s[0])]),{sourceList:o,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,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];jg(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new zT,s.initData(new xW(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(jg(t)){var r=Nk(t);return r?[r.getSourceManager()]:[]}else return q(Yme(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(jg(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function OO(e){var t=e.option.transform;t&&Ky(e.option.transform)}function jg(e){return e.mainType==="series"}function NO(e){throw new Error(e)}var DW="line-height:1";function PW(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+wn(n+"")+"px;color:"+wn(r)+";font-weight:"+wn(i+""),valueStyle:"font-size:"+wn(o+"")+"px;color:"+wn(a)+";font-weight:"+wn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Gye=[0,10,20,30],Hye=["",`
|
197
|
-
`,`
|
198
|
-
|
199
|
-
`,`
|
200
|
-
|
201
|
-
|
202
|
-
`];function xr(e,t){return t.type=e,t}function BT(e){return e.type==="section"}function RW(e){return BT(e)?Wye:jye}function EW(e){if(BT(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=EW(i);a>=t&&(t=a+ +(n&&(!a||BT(i)&&!i.noHeader)))}),t}return 0}function Wye(e,t,r,n){var i=t.noHeader,a=Uye(EW(t)),o=[],s=t.blocks||[];cn(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(fe(u,l)){var c=new TW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=RW(p)(g?j(j({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):FT(o.join(""),i?r:a.html);if(i)return f;var d=ET(t.header,"ordinal",e.useUTC),h=PW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?LW(e,d,h)+a.richText+f:FT('<div style="'+h+";"+DW+';">'+wn(d)+"</div>"+f,r)}function jye(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],q(S,function(b,_){return ET(b,Y(h)?h[_]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":ET(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),v=!s||!a,g=!s&&a,m=PW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":LW(e,d,y))+(o?"":qye(e,p,v,g,x)):FT((s?"":f)+(a?"":Yye(d,!s,y))+(o?"":Xye(p,v,g,x)),r)}}function zO(e,t,r,n,i,a){if(e){var o=RW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Uye(e){return{html:Gye[e],richText:Hye[e]}}function FT(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+DW+';">'+e+r+"</div>"}function Yye(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+wn(e)+"</span>"}function Xye(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Y(e)?e:[e],'<span style="'+a+";"+n+'">'+q(e,function(o){return wn(o)}).join(" ")+"</span>"}function LW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function qye(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function OW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Au(n)}function NW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var X_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=q6()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Vme({color:r,type:t,renderMode:n,markerId:i});return ne(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?D(r,function(a){return j(n,a)}):j(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function zW(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Y(s),u=OW(t,r),c,f,d,h;if(o>1||l&&!o){var p=Zye(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=kf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=hk(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Wi(x),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function Zye(e,t,r,n,i){var a=t.getData(),o=Va(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(kf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ho=Ze();function Ug(e,t){return e.getName(t)||e.getId(t)}var iy="__universalTransitionEnabled",Mt=function(e){H(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=Xh({count:Qye,reset:Jye}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ho(this).sourceManager=new IW(this);a.prepareSource();var o=this.getInitialData(r,i);FO(o,this),this.dataTask.context.data=o,Ho(this).dataBeforeProcessed=o,BO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=$p(this),a=i?Jf(r):{},o=this.subType;Ue.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),bu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ns(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=$p(this);i&&Ns(this.option,r,i);var a=Ho(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);FO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ho(this).dataBeforeProcessed=o,BO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!On(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&bu(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=VT(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Ho(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=VT(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ho(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return de(r)},t.prototype.getSourceManager=function(){return Ho(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ho(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 zW({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(je.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 a=this.ecModel,o=zk.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},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 a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Ug(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],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=Ye(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ug(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[iy])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){be(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=Ug(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=Ug(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Ue.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}(Ue);or(Mt,Lx);or(Mt,zk);iH(Mt,Ue);function BO(e){var t=e.name;hk(e)||(e.name=Kye(e)||t)}function Kye(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Qye(e){return e.model.getRawData().count()}function Jye(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),e0e}function e0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function FO(e,t){D(Qy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,De(t0e,t))})}function t0e(e,t){var r=VT(e);return r&&r.setOutputEnd((t||this).count()),t}function VT(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 zt=function(){function e(){this.group=new Ae,this.uid=Kf("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}();vk(zt);vx(zt);function td(){var e=Ze();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var BW=Ze(),r0e=td(),xt=function(){function e(){this.group=new Ae,this.uid=Kf("viewChart"),this.renderTask=Xh({plan:n0e,reset:i0e}),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 a=t.getData(i&&i.dataType);a&&$O(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&$O(a,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){Us(this.group,t)},e.markUpdateMethod=function(t,r){BW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function VO(e,t,r){e&&Bp(e)&&(t==="emphasis"?Co:To)(e,r)}function $O(e,t,r){var n=wu(e,t),i=t&&t.highlightKey!=null?Nge(t.highlightKey):null;n!=null?D(vt(n),function(a){VO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){VO(a,r,i)})}vk(xt);vx(xt);function n0e(e){return r0e(e.model)}function i0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&BW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),a0e[l]}var a0e={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)}}},v0="\0__throttleOriginMethod",GO="\0__throttleRate",HO="\0__throttleType";function Hk(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];n=new Date().getTime(),l=this,u=h;var v=c||t,g=c||r;c=null,s=n-(g?i:a)-v,clearTimeout(o),g?o=setTimeout(f,v):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function rd(e,t,r,n){var i=e[t];if(i){var a=i[v0]||i,o=i[HO],s=i[GO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Hk(a,r,n==="debounce"),i[v0]=a,i[HO]=n,i[GO]=r}return i}}function Hp(e,t){var r=e[t];r&&r[v0]&&(r.clear&&r.clear(),e[t]=r[v0])}var WO=Ze(),jO={itemStyle:Cu(WH,!0),lineStyle:Cu(HH,!0)},o0e={lineStyle:"stroke",itemStyle:"fill"};function FW(e,t){var r=e.visualStyleMapper||jO[t];return r||(console.warn("Unknown style type '"+t+"'."),jO.itemStyle)}function VW(e,t){var r=e.visualDrawType||o0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var s0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=FW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=VW(e,n),u=o[l],c=Se(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Se(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Se(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=j({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Ld=new st,l0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=FW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ld.option=l[n];var u=i(Ld),c=o.ensureUniqueItemVisual(s,"style");j(c,u),Ld.option.decal&&(o.setItemVisual(s,"decal",Ld.option.decal),Ld.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},u0e={performRawSeries:!0,overallReset:function(e){var t=de();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),WO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=WO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=VW(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},Yg=Math.PI;function c0e(e,t){t=t||{},_e(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 Ae,n=new qe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Je({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new qe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new bx({shape:{startAngle:-Yg/2,endAngle:-Yg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Yg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Yg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(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),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var $W=function(){function e(t,r,n,i){this._stageTaskMap=de(),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,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,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(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=de();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";cn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},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 a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||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 a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=de(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Xh({plan:v0e,reset:g0e,count:y0e}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Xh({reset:f0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=de(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";cn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Xh({reset:d0e,onDirty:p0e})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.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 Se(t)&&(t={overallReset:t,seriesType:x0e(t)}),t.uid=Kf("stageHandler"),r&&(t.visualType=r),t},e}();function f0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function d0e(e){return e.overallProgress&&h0e}function h0e(){this.agent.dirty(),this.getDownstream().dirty()}function p0e(){this.agent&&this.agent.dirty()}function v0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function g0e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=vt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?q(t,function(r,n){return GW(n)}):m0e}var m0e=GW(0);function GW(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function y0e(e){return e.data.count()}function x0e(e){g0=null;try{e(Wp,HW)}catch{}return g0}var Wp={},HW={},g0;WW(Wp,Bk);WW(HW,pW);Wp.eachSeriesByType=Wp.eachRawSeriesByType=function(e){g0=e};Wp.eachComponent=function(e){e.mainType==="series"&&e.subType&&(g0=e.subType)};function WW(e,t){for(var r in t.prototype)e[r]=er}var UO=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const S0e={color:UO,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],UO]};var Qr="#B9B8CE",YO="#100C2A",Xg=function(){return{axisLine:{lineStyle:{color:Qr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},XO=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],jW={darkMode:!0,color:XO,backgroundColor:YO,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Qr}},textStyle:{color:Qr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Qr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Qr},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:Qr}},timeline:{lineStyle:{color:Qr},label:{color:Qr},controlStyle:{color:Qr,borderColor:Qr}},calendar:{itemStyle:{color:YO},dayLabel:{color:Qr},monthLabel:{color:Qr},yearLabel:{color:Qr}},timeAxis:Xg(),logAxis:Xg(),valueAxis:Xg(),categoryAxis:Xg(),line:{symbol:"circle"},graph:{color:XO},gauge:{title:{color:Qr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Qr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};jW.categoryAxis.splitLine.show=!1;var _0e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(ne(t)){var a=Aa(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=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,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),$T=["symbol","symbolSize","symbolRotate","symbolOffset"],qO=$T.concat(["symbolKeepAspect"]),b0e={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={},a=!1,o=0;o<$T.length;o++){var s=$T[o],l=e.get(s);Se(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(j({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Ye(i);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v<u.length;v++){var g=u[v];f.setItemVisual(d,g,i[g](h,p))}}return{dataEach:a?c:null}}},w0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<qO.length;s++){var l=qO[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Wk(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 Ov(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 UW(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function YW(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=j({},i),o.dispatchAction(j(i,{type:n[1],seriesIndex:r(a,i)}))})})}function lc(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=wu(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Y(d)?f.getName(d[0]):f.getName(d),selected:ne(l)?l:j({},l)})}})}function C0e(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(lc("map","selectchanged",t,i,n),lc("pie","selectchanged",t,i,n)):n.fromAction==="select"?(lc("map","selected",t,i,n),lc("pie","selected",t,i,n)):n.fromAction==="unselect"&&(lc("map","unselected",t,i,n),lc("pie","unselected",t,i,n))})}function Zl(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var T0e=Math.round(Math.random()*9),A0e=typeof Object.defineProperty=="function",M0e=function(){function e(){this._id="__ec_inner_"+T0e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return A0e?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}(),k0e=He.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,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),I0e=He.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,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),D0e=He.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,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,p=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-p,r,n),e.bezierCurveTo(r,n-p,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),P0e=He.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,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),R0e={line:vr,rect:qe,roundRect:qe,square:qe,circle:Eo,diamond:I0e,pin:D0e,arrow:P0e,triangle:k0e},E0e={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 a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},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}},m0={};D(R0e,function(e,t){m0[t]=new e});var L0e=He.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=o0(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=m0[n];i||(n="rect",i=m0[n]),E0e[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function O0e(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 ar(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=OH(e.slice(8),new Ne(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Cx(e.slice(7),{},new Ne(t,r,n,i),o?"center":"cover"):l=new L0e({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=O0e,a&&l.setColor(a),l}function nd(e){return Y(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Bu(e,t){if(e!=null)return Y(e)||(e=[e,e]),[J(e[0],t[0])||0,J(Ie(e[1],e[0]),t[1])||0]}function Kl(e){return isFinite(e)}function N0e(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Kl(n)?n:0,i=Kl(i)?i:1,a=Kl(a)?a:0,o=Kl(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function z0e(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Kl(o)?o:.5,s=Kl(s)?s:.5,l=l>=0&&Kl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function GT(e,t,r){for(var n=t.type==="radial"?z0e(e,t,r):N0e(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function B0e(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 qg(e){return parseInt(e,10)}function jc(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||qg(s[n])||qg(e.style[n]))-(qg(s[a])||0)-(qg(s[o])||0)|0}function F0e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:et(e)?[e]:Y(e)?e:null}function jk(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&F0e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=q(r,function(a){return a/i}),n/=i)}return[r,n]}var V0e=new Wa(!0);function y0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ZO(e){return typeof e=="string"&&e!=="none"}function x0(e){var t=e.fill;return t!=null&&t!=="none"}function KO(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 QO(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 HT(e,t,r){var n=gk(t.image,t.__image,r);if(gx(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*jm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function $0e(e,t,r,n){var i,a=y0(r),o=x0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||V0e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,b=void 0,_=void 0;(p||v)&&(_=t.getBoundingRect()),p&&(y=f?GT(e,d,_):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?GT(e,h,_):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?HT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(b=f||!t.__canvasStrokePattern?HT(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(b?e.strokeStyle=b:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=jk(t),C=i[0],T=i[1]);var A=!0;(u||f&wc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&QO(e,r),o&&KO(e,r)):(o&&KO(e,r),a&&QO(e,r))),C&&e.setLineDash([])}function G0e(e,t,r){var n=t.__image=gk(r.image,t.__image,t,t.onload);if(!(!n||!gx(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function H0e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Rs,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=jk(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(y0(r)&&e.strokeText(i,r.x,r.y),x0(r)&&e.fillText(i,r.x,r.y)):(x0(r)&&e.fillText(i,r.x,r.y),y0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var JO=["shadowBlur","shadowOffsetX","shadowOffsetY"],eN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function XW(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){An(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?iu.opacity:o}(n||t.blend!==r.blend)&&(a||(An(e,i),a=!0),e.globalCompositeOperation=t.blend||iu.blend);for(var s=0;s<JO.length;s++){var l=JO[s];(n||t[l]!==r[l])&&(a||(An(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(An(e,i),a=!0),e.shadowColor=t.shadowColor||iu.shadowColor),a}function tN(e,t,r,n,i){var a=jp(t,i.inHover),o=n?null:r&&jp(r,i.inHover)||{};if(a===o)return!1;var s=XW(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(An(e,i),s=!0),ZO(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(An(e,i),s=!0),ZO(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(An(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(An(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<eN.length;c++){var f=eN[c],d=f[0];(n||a[d]!==o[d])&&(s||(An(e,i),s=!0),e[d]=a[d]||f[1])}return s}function W0e(e,t,r,n,i){return XW(e,jp(t,i.inHover),r&&jp(r,i.inHover),n,i)}function qW(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 j0e(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),qW(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function U0e(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 rN=1,nN=2,iN=3,aN=4;function Y0e(e){var t=x0(e),r=y0(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 An(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function jp(e,t){return t&&e.__hoverStyle||e.style}function ZW(e,t){Ql(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ql(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~$n,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||B0e(a,o))&&(o&&o.length&&(An(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(An(e,r),e.save(),j0e(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof He&&t.autoBatch&&Y0e(t.style);s||U0e(i,u.transform)?(An(e,r),qW(e,t)):c||An(e,r);var f=jp(t,r.inHover);t instanceof He?(r.lastDrawType!==rN&&(l=!0,r.lastDrawType=rN),tN(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),$0e(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Af?(r.lastDrawType!==iN&&(l=!0,r.lastDrawType=iN),tN(e,t,u,l,r),H0e(e,t,f)):t instanceof Mr?(r.lastDrawType!==nN&&(l=!0,r.lastDrawType=nN),W0e(e,t,u,l,r),G0e(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==aN&&(l=!0,r.lastDrawType=aN),X0e(e,t,r)),c&&n&&An(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function X0e(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ql(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ql(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var q_=new M0e,oN=new Av(100),sN=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function If(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&q_.delete(e);var a=q_.get(e);if(a)return a;var o=_e(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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,q_.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<sN.length;++d){var h=o[sN[d]];if(h!=null&&!Y(h)&&!ne(h)&&!et(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(i?"-svg":"");var v=oN.get(p);v&&(i?u.svgElement=v:u.image=v)}var g=QW(o.dashArrayX),m=q0e(o.dashArrayY),y=KW(o.symbol),x=Z0e(g),S=JW(m),b=!i&&Es.createCanvas(),_=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),C;b&&(b.width=w.width*r,b.height=w.height*r,C=b.getContext("2d")),A(),f&&oN.put(p,b||_),u.image=b,u.svgElement=_,u.svgWidth=w.width,u.svgHeight=w.height;function T(){for(var M=1,k=0,I=x.length;k<I;++k)M=CL(M,x[k]);for(var P=1,k=0,I=y.length;k<I;++k)P=CL(P,y[k].length);M*=P;var E=S*x.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var M=0,k=0;k<m.length;++k)M+=m[k];if(M<=0)return;for(var I=-S,P=0,E=0,z=0;I<w.height;){if(P%2===0){for(var $=E/2%y.length,O=0,V=0,L=0;O<w.width*2;){for(var G=0,k=0;k<g[z].length;++k)G+=g[z][k];if(G<=0)break;if(V%2===0){var W=(1-o.symbolSize)*.5,B=O+g[z][V]*W,X=I+m[P]*W,te=g[z][V]*o.symbolSize,U=m[P]*o.symbolSize,re=L/2%y[$].length;Q(B,X,te,U,y[$][re])}O+=g[z][V],++L,++V,V===g[z].length&&(V=0)}++z,z===g.length&&(z=0)}I+=m[P],++E,++P,P===m.length&&(P=0)}function Q(ae,se,K,ee,me){var ve=i?1:r,Le=ar(me,ae*ve,se*ve,K*ve,ee*ve,o.color,o.symbolKeepAspect);if(i){var tt=n.painter.renderOneToVNode(Le);tt&&_.children.push(tt)}else ZW(C,Le)}}}}function KW(e){if(!e||e.length===0)return[["rect"]];if(ne(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!ne(e[r])){t=!1;break}if(t)return KW([e]);for(var n=[],r=0;r<e.length;++r)ne(e[r])?n.push([e[r]]):n.push(e[r]);return n}function QW(e){if(!e||e.length===0)return[[0,0]];if(et(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!et(e[n])){r=!1;break}if(r)return QW([e]);for(var i=[],n=0;n<e.length;++n)if(et(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=q(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function q0e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(et(e)){var t=Math.ceil(e);return[t,t]}var r=q(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Z0e(e){return q(e,function(t){return JW(t)})}function JW(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function K0e(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=If(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=If(i,t)}}})}var Bi=new Di,ej={};function Q0e(e,t){ej[e]=t}function J0e(e){return ej[e]}var e1e=1,t1e=800,r1e=900,n1e=1e3,i1e=2e3,a1e=5e3,tj=1e3,o1e=1100,Uk=2e3,rj=3e3,s1e=4e3,Nx=4500,l1e=4600,u1e=5e3,c1e=6e3,nj=7e3,f1e={PROCESSOR:{FILTER:n1e,SERIES_FILTER:t1e,STATISTIC:a1e},VISUAL:{LAYOUT:tj,PROGRESSIVE_LAYOUT:o1e,GLOBAL:Uk,CHART:rj,POST_CHART_LAYOUT:l1e,COMPONENT:s1e,BRUSH:u1e,CHART_ITEM:Nx,ARIA:c1e,DECAL:nj}},Hr="__flagInMainProcess",xn="__pendingUpdate",Z_="__needsUpdateStatus",lN=/^[a-zA-Z0-9_]+$/,K_="__connectUpdateStatus",uN=0,d1e=1,h1e=2;function ij(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return oj(this,e,t)}}function aj(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return oj(this,e,t)}}function oj(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Di.prototype[t].apply(e,r)}var sj=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Di),lj=sj.prototype;lj.on=aj("on");lj.off=aj("off");var uc,Q_,Zg,Wo,J_,eb,tb,Od,Nd,cN,fN,rb,dN,Kg,hN,uj,ti,pN,S0=function(e){H(t,e);function t(r,n,i){var a=e.call(this,new _0e)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},ne(n)&&(n=cj[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&ave(function(d){var h=ke(d),p=h.dataIndex;if(p!=null){var v=de();return v.set("series_index",h.seriesIndex),v.set("data_index",p),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var u=a._zr=SL(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ie(i.useDirtyRect,l),useCoarsePointer:Ie(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Hk(le(u.flush,u),17),n=Ce(n),n&&gW(n,!0),a._theme=n,a._locale=Eme(i.locale||jH),a._coordSysMgr=new Lv;var c=a._api=hN(a);function f(d,h){return d.__prio-h.__prio}return Xm(b0,f),Xm(WT,f),a._scheduler=new $W(a,c,WT,b0),a._messageCenter=new sj,a._initEvents(),a.resize=le(a.resize,a),u.animation.on("frame",a._onframe,a),cN(u,a),fN(u,a),Ky(a),a}return t.prototype._onframe=function(){if(!this._disposed){pN(this);var r=this._scheduler;if(this[xn]){var n=this[xn].silent;this[Hr]=!0;try{uc(this),Wo.update.call(this,null,this[xn].updateParams)}catch(l){throw this[Hr]=!1,this[xn]=null,l}this._zr.flush(),this[Hr]=!1,this[xn]=null,Od.call(this,n),Nd.call(this,n)}else if(r.unfinished){var i=e1e,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),eb(this,a),r.performVisualTasks(a),Kg(this,this._model,o,"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[Hr]){if(this._disposed){this.id;return}var a,o,s;if(be(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Hr]=!0,!this._model||n){var l=new iye(this._api),u=this._theme,c=this._model=new Bk;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},jT);var f={seriesTransition:s,optionChanged:!0};if(i)this[xn]={silent:a,updateParams:f},this[Hr]=!1,this.getZr().wakeUp();else{try{uc(this),Wo.update.call(this,null,f)}catch(d){throw this[xn]=null,this[Hr]=!1,d}this._ssr||this._zr.flush(),this[xn]=null,this[Hr]=!1,Od.call(this,a),Nd.call(this,a)}}},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||je.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(je.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(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,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,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,a=Math.min,o=Math.max,s=1/0;if(YT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(cf,function(x,S){if(x.group===i){var b=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Ce(r)),_=x.getDom().getBoundingClientRect();l=a(_.left,l),u=a(_.top,u),c=o(_.right,c),f=o(_.bottom,f),d.push({dom:b,left:_.left,top:_.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Es.createCanvas(),m=SL(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(d,function(x){var S=x.left-l,b=x.top-u;y+='<g transform="translate('+S+","+b+')">'+x.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new qe({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(d,function(x){var S=new Mr({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return J_(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return J_(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Hh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Hh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Wk(s,l,n):Ov(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;D(p1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Zl(s,function(p){var v=ke(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=j({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(qh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),C0e(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&&tH(this.getDom(),Xk,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,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 cf[n.id]},t.prototype.resize=function(r){if(!this[Hr]){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"),a=r&&r.silent;this[xn]&&(a==null&&(a=this[xn].silent),i=!0,this[xn]=null),this[Hr]=!0;try{i&&uc(this),Wo.update.call(this,{type:"resize",animation:j({duration:0},r&&r.animation)})}catch(o){throw this[Hr]=!1,o}this[Hr]=!1,Od.call(this,a),Nd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(be(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!UT[r]){var i=UT[r](this._api,n),a=this._zr;this._loadingFX=i,a.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=j({},r);return n.type=qh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(be(n)||(n={silent:!!n}),!!_0[r.type]&&this._model){if(this[Hr]){this._pendingActions.push(r);return}var i=n.silent;tb.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&je.browser.weChat&&this._throttledZrFlush(),Od.call(this,i),Nd.call(this,i)}},t.prototype.updateLabelLayout=function(){Bi.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(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){uc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Q_(f,!0),Q_(f,!1),d.plan()},Q_=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;x<v.length;x++)v[x].__alive=!1;d?h.eachComponent(function(_,w){_!=="series"&&S(w)}):h.eachSeries(S);function S(_){var w=_.__requireNewView;_.__requireNewView=!1;var C="_ec_"+_.id+"_"+_.type,T=!w&&g[C];if(!T){var A=Aa(_.type),M=d?zt.getClass(A.main,A.sub):xt.getClass(A.sub);T=new M,T.init(h,y),g[C]=T,v.push(T),m.add(T.group)}_.__viewId=T.__id=C,T.__alive=!0,T.__model=_,T.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!d&&p.prepareView(T,_,h,y)}for(var x=0;x<v.length;){var b=v[x];b.__alive?x++:(!d&&b.renderTask.dispose(),m.remove(b.group),b.dispose(h,y),v.splice(x,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Zg=function(f,d,h,p,v){var g=f._model;if(g.setUpdatePayload(h),!p){D([].concat(f._componentsViews).concat(f._chartsViews),b);return}var m={};m[p+"Id"]=h[p+"Id"],m[p+"Index"]=h[p+"Index"],m[p+"Name"]=h[p+"Name"];var y={mainType:p,query:m};v&&(y.subType=v);var x=h.excludeSeriesId,S;x!=null&&(S=de(),D(vt(x),function(_){var w=cr(_,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(y,function(_){var w=S&&S.get(_.id)!=null;if(!w)if(ZL(h))if(_ instanceof Mt)h.type===au&&!h.notBlur&&!_.get(["emphasis","disabled"])&&kge(_,h,f._api);else{var C=bk(_.mainType,_.componentIndex,h.name,f._api),T=C.focusSelf,A=C.dispatchers;h.type===au&&T&&!h.notBlur&&AT(_.mainType,_.componentIndex,f._api),A&&D(A,function(M){h.type===au?Co(M):To(M)})}else kT(h)&&_ instanceof Mt&&(Pge(_,h,f._api),XL(_),ti(f))},f),g&&g.eachComponent(y,function(_){var w=S&&S.get(_.id)!=null;w||b(f[p==="series"?"_chartsMap":"_componentsMap"][_.__viewId])},f);function b(_){_&&_.__alive&&_[d]&&_[d](_.__model,g,f._api,h)}},Wo={prepareAndUpdate:function(f){uc(this),Wo.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,p),m.performDataProcessorTasks(h,f),eb(this,h),g.update(h,p),r(h),m.performVisualTasks(h,f),rb(this,h,p,f,d);var y=h.get("backgroundColor")||"transparent",x=h.get("darkMode");v.setBackgroundColor(y),x!=null&&x!=="auto"&&v.setDarkMode(x),Bi.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var v=[];h.eachComponent(function(m,y){if(m!=="series"){var x=d.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var S=x.updateTransform(y,h,p,f);S&&S.update&&v.push(x)}else v.push(x)}});var g=de();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var x=y.updateTransform(m,h,p,f);x&&x.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Kg(this,h,p,f,{},g),Bi.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),xt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),rb(this,d,this._api,f,{}),Bi.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),xt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,v){if(p!=="series"){var g=d.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,h,d._api,f)}}),h.eachSeries(function(p){var v=d._chartsMap[p.__viewId];v.updateVisual(p,h,d._api,f)}),Bi.trigger("afterupdate",h,this._api))},updateLayout:function(f){Wo.update.call(this,f)}},J_=function(f,d,h,p){if(f._disposed){f.id;return}for(var v=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=Hh(v,h),x=0;x<g.length;x++){var S=g[x];if(S[d]&&(m=S[d](v,y,p))!=null)return m}},eb=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(v){p.updateStreamModes(v,h[v.__viewId])})},tb=function(f,d){var h=this,p=this.getModel(),v=f.type,g=f.escapeConnect,m=_0[v],y=m.actionInfo,x=(y.update||"update").split(":"),S=x.pop(),b=x[0]!=null&&Aa(x[0]);this[Hr]=!0;var _=[f],w=!1;f.batch&&(w=!0,_=q(f.batch,function(P){return P=_e(j({},P),f),P.batch=null,P}));var C=[],T,A=kT(f),M=ZL(f);if(M&&bH(this._api),D(_,function(P){if(T=m.action(P,h._model,h._api),T=T||j({},P),T.type=y.event||T.type,C.push(T),M){var E=pk(f),z=E.queryOptionMap,$=E.mainTypeSpecified,O=$?z.keys()[0]:"series";Zg(h,S,P,O),ti(h)}else A?(Zg(h,S,P,"series"),ti(h)):b&&Zg(h,S,P,b.main,b.sub)}),S!=="none"&&!M&&!A&&!b)try{this[xn]?(uc(this),Wo.update.call(this,f),this[xn]=null):Wo[S].call(this,f)}catch(P){throw this[Hr]=!1,P}if(w?T={type:y.event||v,escapeConnect:g,batch:C}:T=C[0],this[Hr]=!1,!d){var k=this._messageCenter;if(k.trigger(T.type,T),A){var I={type:"selectchanged",escapeConnect:g,selected:Rge(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};k.trigger(I.type,I)}}},Od=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();tb.call(this,h,f)}},Nd=function(f){!f&&this.trigger("updated")},cN=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[xn]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},fN=function(f,d){f.on("mouseover",function(h){var p=h.target,v=Zl(p,Bp);v&&(Ige(v,h,d._api),ti(d))}).on("mouseout",function(h){var p=h.target,v=Zl(p,Bp);v&&(Dge(v,h,d._api),ti(d))}).on("click",function(h){var p=h.target,v=Zl(p,function(y){return ke(y).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",m=ke(v);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],p=!1;if(f.eachComponent(function(y,x){var S=x.get("zlevel")||0,b=x.get("z")||0,_=x.getZLevelKey();p=p||!!_,(y==="series"?h:d).push({zlevel:S,z:b,idx:x.componentIndex,type:y,key:_})}),p){var v=d.concat(h),g,m;Xm(v,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),D(v,function(y){var x=f.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,x.setZLevel(S)})}}rb=function(f,d,h,p,v){n(d),dN(f,d,h,p,v),D(f._chartsViews,function(g){g.__alive=!1}),Kg(f,d,h,p,v),D(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},dN=function(f,d,h,p,v,g){D(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,p),s(y,m),c(y,m)})},Kg=function(f,d,h,p,v,g){var m=f._scheduler;v=j(v||{},{updatedSeries:d.getSeries()}),Bi.trigger("series:beforeupdate",d,h,v);var y=!1;d.eachSeries(function(x){var S=f._chartsMap[x.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,p),u(x,S),g&&g.get(x.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!x.get("silent"),o(x,S),XL(x)}),m.unfinished=y||m.unfinished,Bi.trigger("series:layoutlabels",d,h,v),Bi.trigger("series:transition",d,h,v),d.eachSeries(function(x){var S=f._chartsMap[x.__viewId];s(x,S),c(x,S)}),a(f,d),Bi.trigger("series:afterupdate",d,h,v)},ti=function(f){f[Z_]=!0,f.getZr().wakeUp()},pN=function(f){f[Z_]&&(f.getZr().storage.traverse(function(d){of(d)||i(d)}),f[Z_]=!1)};function i(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var v=h[p];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===xx&&f.states.emphasis?d.push("emphasis"):f.hoverState===Iv&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,p=h.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!je.node&&!je.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x<y.length;x++)p=Math.max(l(y[x],d,h,p),p);else f.z=d,f.zlevel=h,p=Math.max(f.z2,p);if(v&&(v.z=d,v.zlevel=h,isFinite(p)&&(v.z2=p+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(h){if(!of(h)){var p=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),v=h.get("duration"),g=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(of(m))return;if(m instanceof He&&zge(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}hN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){Co(p,v),ti(f)},h.prototype.leaveEmphasis=function(p,v){To(p,v),ti(f)},h.prototype.enterBlur=function(p){yH(p),ti(f)},h.prototype.leaveBlur=function(p){_k(p),ti(f)},h.prototype.enterSelect=function(p){xH(p),ti(f)},h.prototype.leaveSelect=function(p){SH(p),ti(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(pW))(f)},uj=function(f){function d(h,p){for(var v=0;v<h.length;v++){var g=h[v];g[K_]=p}}D(qh,function(h,p){f._messageCenter.on(p,function(v){if(YT[f.group]&&f[K_]!==uN){if(v&&v.escapeConnect)return;var g=f.makeActionFromEvent(v),m=[];D(cf,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,uN),D(m,function(y){y[K_]!==d1e&&y.dispatchAction(g)}),d(m,h1e)}})})}}(),t}(Di),Yk=S0.prototype;Yk.on=ij("on");Yk.off=ij("off");Yk.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var p1e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var _0={},qh={},WT=[],jT=[],b0=[],cj={},UT={},cf={},YT={},v1e=+new Date-0,g1e=+new Date-0,Xk="_echarts_instance_";function m1e(e,t,r){{var n=fj(e);if(n)return n}var i=new S0(e,t,r);return i.id="ec_"+v1e++,cf[i.id]=i,tH(e,Xk,i.id),uj(i),Bi.trigger("afterinit",i),i}function y1e(e){if(Y(e)){var t=e;e=null,D(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+g1e++,D(t,function(r){r.group=e})}return YT[e]=!0,e}function x1e(e){ne(e)?e=cf[e]:e instanceof S0||(e=fj(e)),e instanceof S0&&!e.isDisposed()&&e.dispose()}function fj(e){return cf[Tve(e,Xk)]}function dj(e,t){cj[e]=t}function hj(e){ze(jT,e)<0&&jT.push(e)}function pj(e,t){Zk(WT,e,t,i1e)}function S1e(e){qk("afterinit",e)}function _1e(e){qk("afterupdate",e)}function qk(e,t){Bi.on(e,t)}function qa(e,t,r){Se(t)&&(r=t,t="");var n=be(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!qh[t]&&(cn(lN.test(n)&&lN.test(t)),_0[n]||(_0[n]={action:r,actionInfo:e}),qh[t]=n)}function b1e(e,t){Lv.register(e,t)}function w1e(e,t){Zk(b0,e,t,tj,"layout")}function Fu(e,t){Zk(b0,e,t,rj,"visual")}var vN=[];function Zk(e,t,r,n,i){if((Se(t)||be(t))&&(r=t,t=n),!(ze(vN,r)>=0)){vN.push(r);var a=$W.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function vj(e,t){UT[e]=t}function C1e(e,t,r){var n=J0e("registerMap");n&&n(e,t,r)}var T1e=Nye;Fu(Uk,s0e);Fu(Nx,l0e);Fu(Nx,u0e);Fu(Uk,b0e);Fu(Nx,w0e);Fu(nj,K0e);hj(gW);pj(r1e,gye);vj("default",c0e);qa({type:au,event:au,update:au},er);qa({type:Jm,event:Jm,update:Jm},er);qa({type:Wh,event:Wh,update:Wh},er);qa({type:ey,event:ey,update:ey},er);qa({type:jh,event:jh,update:jh},er);dj("light",S0e);dj("dark",jW);var gN=[],A1e={registerPreprocessor:hj,registerProcessor:pj,registerPostInit:S1e,registerPostUpdate:_1e,registerUpdateLifecycle:qk,registerAction:qa,registerCoordinateSystem:b1e,registerLayout:w1e,registerVisual:Fu,registerTransform:T1e,registerLoading:vj,registerMap:C1e,registerImpl:Q0e,PRIORITY:f1e,ComponentModel:Ue,ComponentView:zt,SeriesModel:Mt,ChartView:xt,registerComponentModel:function(e){Ue.registerClass(e)},registerComponentView:function(e){zt.registerClass(e)},registerSeriesModel:function(e){Mt.registerClass(e)},registerChartView:function(e){xt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ue.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){nve(e,t)}};function Fe(e){if(Y(e)){D(e,function(t){Fe(t)});return}ze(gN,e)>=0||(gN.push(e),Se(e)&&(e={install:e}),e.install(A1e))}function zd(e){return e==null?0:e.length||1}function mN(e){return e}var Ao=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||mN,this._newKeyGetter=i||mN,this.context=a,this._diffModeMultiple=o==="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),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=zd(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=zd(u),d=zd(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=zd(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=zd(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),M1e=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 k1e(e,t){var r={},n=r.encode={},i=de(),a=[],o=[],s={};D(e.dimensions,function(d){var h=e.getDimensionInfo(d),p=h.coordDim;if(p){var v=h.coordDimIndex;nb(n,p)[v]=d,h.isExtraCoord||(i.set(p,1),I1e(h.type)&&(a[0]=d),nb(s,p)[v]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}sW.each(function(g,m){var y=nb(n,m),x=h.otherDims[m];x!=null&&x!==!1&&(y[x]=h.name)})});var l=[],u={};i.each(function(d,h){var p=n[h];u[h]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=q(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new M1e(s,t),r}function nb(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function w0(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function I1e(e){return!(e==="ordinal"||e==="time")}var ay=function(){function e(t){this.otherDims={},t!=null&&j(this,t)}return e}(),D1e=Ze(),P1e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gj=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=xj(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ie(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=yW(this.source),n=!Sj(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=P1e[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.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 mj(e){return e instanceof gj}function yj(e){for(var t=de(),r=0;r<(e||[]).length;r++){var n=e[r],i=be(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function xj(e){var t=D1e(e);return t.dimNameMap||(t.dimNameMap=yj(e.dimensionsDefine))}function Sj(e){return e>30}var Bd=be,jo=q,R1e=typeof Int32Array>"u"?Array:Int32Array,E1e="e\0\0",yN=-1,L1e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],O1e=["_approximateExtent"],xN,Qg,Fd,Vd,ib,Jg,ab,ln=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;mj(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=ne(f)?new ay({name:f}):f instanceof ay?f:new ay(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=de();D(o,function(g){v.set(a[g].storeDimIndex,g)})}}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(et(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,a;if(t instanceof zT&&(a=t),!a){var o=this.dimensions,s=Fk(t)||qr(t)?new xW(t,o.length):t;a=new zT;var l=jo(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=k1e(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,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&ab(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!==Ts&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Pi;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&dve(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=cr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=cr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)ab(this,c);xN(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){Bd(t)?j(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=Fd(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 Qg(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 Y(t)?i.getValues(jo(t,function(a){return n._getStoreDimIndex(a)}),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)?yN:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Se(t)&&(n=r,r=t,t=[]);var i=n||this,a=jo(Vd(t),this._getStoreDimIndex,this);this._store.each(a,i?le(r,i):r)},e.prototype.filterSelf=function(t,r,n){Se(t)&&(n=r,r=t,t=[]);var i=n||this,a=jo(Vd(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?le(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Ye(t);return D(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Se(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 a=n||i||this,o=jo(Vd(t),this._getStoreDimIndex,this),s=Jg(this);return s._store=this._store.map(o,a?le(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=jo(Vd(t),this._getStoreDimIndex,this);this._store.modify(o,a?le(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Jg(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Jg(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 st(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Ao(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Qg(t,n)},function(n){return Qg(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||{},Bd(t)?j(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 a=i[r];return a==null&&(a=this.getVisual(r),Y(a)?a=a.slice():Bd(a)&&(a=j({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Bd(r)?j(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Bd(t)?j(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?j(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;CT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(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:jo(this.dimensions,this._getDimInfo,this),this.hostModel)),ib(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Se(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ik(arguments)))})},e.internalField=function(){xN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new R1e(o.categories.length);for(var l=0;l<n.length;l++)n[l]=yN;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Fd=function(t,r,n){return cr(t._getCategory(r,n),null)},Qg=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Fd(t,t._idDimIdx,r)),n==null&&(n=E1e+r),n},Vd=function(t){return Y(t)||(t=t!=null?[t]:[]),t},Jg=function(t){var r=new e(t._schema?t._schema:jo(t.dimensions,t._getDimInfo,t),t.hostModel);return ib(r,t),r},ib=function(t,r){D(L1e.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(O1e,function(n){t[n]=Ce(r[n])}),t._calculationInfo=j({},r._calculationInfo)},ab=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Fd(t,a,r)),l==null&&o!=null&&(i[r]=l=Fd(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function Nv(e,t){Fk(e)||(e=Vk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=de(),a=[],o=z1e(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Sj(o),l=n===e.dimensionsDefine,u=l?xj(e):yj(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=de(c),d=new MW(o),h=0;h<d.length;h++)d[h]=-1;function p(T){var A=d[T];if(A<0){var M=n[T],k=be(M)?M:{name:M},I=new ay,P=k.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),k.type!=null&&(I.type=k.type),k.displayName!=null&&(I.displayName=k.displayName);var E=a.length;return d[T]=E,I.storeDimIndex=T,a.push(I),I}return a[A]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(T,A){var M=vt(T).slice();if(M.length===1&&!ne(M[0])&&M[0]<0){f.set(A,!1);return}var k=f.set(A,[]);D(M,function(I,P){var E=ne(I)?u.get(I):I;E!=null&&E<o&&(k[P]=E,g(p(E),A,P))})});var v=0;D(r,function(T){var A,M,k,I;if(ne(T))A=T,I={};else{I=T,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=j({},I),I.ordinalMeta=P,M=I.dimsDef,k=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var E=f.get(A);if(E!==!1){if(E=vt(E),!E.length)for(var z=0;z<(M&&M.length||1);z++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&E.push(v++)}D(E,function($,O){var V=p($);if(l&&I.type!=null&&(V.type=I.type),g(_e(V,I),A,O),V.name==null&&M){var L=M[O];!be(L)&&(L={name:L}),V.name=V.displayName=L.name,V.defaultTooltip=L.defaultTooltip}k&&_e(V.otherDims,k)})}});function g(T,A,M){sW.get(A)!=null?T.otherDims[A]=M:(T.coordDim=A,T.coordDimIndex=M,i.set(A,!0))}var m=t.generateCoord,y=t.generateCoordCount,x=y!=null;y=m?y||1:0;var S=m||"value";function b(T){T.name==null&&(T.name=T.coordDim)}if(s)D(a,function(T){b(T)}),a.sort(function(T,A){return T.storeDimIndex-A.storeDimIndex});else for(var _=0;_<o;_++){var w=p(_),C=w.coordDim;C==null&&(w.coordDim=B1e(S,i,x),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(fW(e,_)===Pr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return N1e(a),new gj({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function N1e(e){for(var t=de(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function z1e(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;be(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function B1e(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 F1e=function(){function e(t){this.coordSysDims=[],this.axisMap=de(),this.categoryAxisMap=de(),this.coordSysName=t}return e}();function V1e(e){var t=e.get("coordinateSystem"),r=new F1e(t),n=$1e[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var $1e={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ir).models[0],a=e.getReferringComponents("yAxis",ir).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),cc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),cc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ir).models[0];t.coordSysDims=["single"],r.set("single",i),cc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ir).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),cc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),cc(o)&&(n.set("angle",o),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,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),cc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function cc(e){return e.get("type")==="category"}function G1e(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;H1e(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(a,function(y,x){ne(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function H1e(e){return!mj(e.schema)}function zs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function _j(e,t){return zs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function W1e(e,t){var r=e.get("coordinateSystem"),n=Lv.get(r),i;return t&&t.coordSysDims&&(i=q(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=w0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function j1e(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Lo(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Vk(e)):(i=n.getSource(),a=i.sourceFormat===Pi);var o=V1e(t),s=W1e(t,o),l=r.useEncodeDefaulter,u=Se(l)?l:l?De(cW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Nv(i,c),d=j1e(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=G1e(t,{schema:f,store:h}),v=new ln(f,t);v.setCalculationInfo(p);var g=d!=null&&U1e(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function U1e(e){if(e.sourceFormat===Pi){var t=Y1e(e.data||[]);return!Y(Uf(t))}}function Y1e(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Za=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}();vx(Za);var X1e=0,XT=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++X1e}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&q(n,q1e);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(!ne(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=de(this.categories))},e}();function q1e(e){return be(e)&&e.value!=null?e.value:e+""}function qT(e){return e.type==="interval"||e.type==="log"}function Z1e(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Y6(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=bj(o),l=i.niceTickExtent=[Yt(Math.ceil(e[0]/o)*o,s),Yt(Math.floor(e[1]/o)*o,s)];return K1e(l,e),i}function ob(e){var t=Math.pow(10,dk(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yt(r*t)}function bj(e){return Ta(e)+2}function SN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function K1e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),SN(e,0,t),SN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function zx(e,t){return e>=t[0]&&e<=t[1]}function Bx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Fx(e,t){return e*(t[1]-t[0])+t[0]}var Vx=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new XT({})),Y(i)&&(i=new XT({categories:q(i,function(a){return be(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:ne(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),zx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Bx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Fx(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=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},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}(Za);Za.registerClass(Vx);var vl=Yt,Mo=function(e){H(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 zx(r,this._extent)},t.prototype.normalize=function(r){return Bx(r,this._extent)},t.prototype.scale=function(r){return Fx(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=bj(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:vl(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=vl(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:vl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=vl(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Ta(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=vl(r.value,i,!0);return tW(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=Z1e(a,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 a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=vl(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=vl(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Za);Za.registerClass(Mo);var wj=typeof Float32Array<"u",Q1e=wj?Float32Array:Array;function Ma(e){return Y(e)?wj?new Float32Array(e):e:new Q1e(e)}var ZT="__ec_stack_";function Kk(e){return e.get("stack")||ZT+e.seriesIndex}function Qk(e){return e.dim+e.index}function J1e(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var i=r.getBandWidth(),a=0;a<e.count;a++)t.push(_e({bandWidth:i,axisKey:n,stackId:ZT+a},e));for(var o=Aj(t),s=[],a=0;a<e.count;a++){var l=o[n][ZT+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Cj(e,t){var r=[];return t.eachSeriesByType(e,function(n){Ij(n)&&r.push(n)}),r}function exe(e){var t={};D(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),v=0,g=p.count();v<g;++v){var m=p.get(h,v);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Tj(e){var t=exe(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=J(n.get("barWidth"),s),v=J(n.get("barMaxWidth"),s),g=J(n.get("barMinWidth")||(Dj(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Qk(a),stackId:Kk(n)})}),Aj(r)}function Aj(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ye(a).length;s=Math.max(35-l*4,15)+"%"}var u=J(s,o),c=J(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),D(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&y<S&&(S=Math.min(y,f)),x&&x>S&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;D(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function txe(e,t,r){if(e&&t){var n=e[Qk(t)];return n!=null&&r!=null?n[Kk(r)]:n}}function Mj(e,t){var r=Cj(e,t),n=Tj(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Kk(i),u=n[Qk(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function kj(e){return{seriesType:e,plan:td(),reset:function(t){if(Ij(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=zs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=rxe(i,a),p=Dj(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var b=x.count,_=p&&Ma(b*3),w=p&&l&&Ma(b*3),C=p&&Ma(b),T=n.master.getRect(),A=d?T.width:T.height,M,k=S.getStore(),I=0;(M=x.next())!=null;){var P=k.get(f?g:o,M),E=k.get(s,M),z=h,$=void 0;f&&($=+P-k.get(o,M));var O=void 0,V=void 0,L=void 0,G=void 0;if(d){var W=n.dataToPoint([P,E]);if(f){var B=n.dataToPoint([$,E]);z=B[0]}O=z,V=W[1]+y,L=W[0]-z,G=m,Math.abs(L)<v&&(L=(L<0?-1:1)*v)}else{var W=n.dataToPoint([E,P]);if(f){var B=n.dataToPoint([E,$]);z=B[1]}O=W[0]+y,V=z,L=m,G=W[1]-z,Math.abs(G)<v&&(G=(G<=0?-1:1)*v)}p?(_[I]=O,_[I+1]=V,_[I+2]=d?L:G,w&&(w[I]=d?T.x:O,w[I+1]=d?V:T.y,w[I+2]=A),C[M]=M):S.setItemLayout(M,{x:O,y:V,width:L,height:G}),I+=3}p&&S.setLayout({largePoints:_,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:d})}}}}}}function Ij(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Dj(e){return e.pipelineContext&&e.pipelineContext.large}function rxe(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var nxe=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},Jk=function(e){H(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 Mx(r.value,fO[Nme(lf(this._minLevelUnit))]||fO.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return zme(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=cxe(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=yi,n[1]+=yi),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]-yi}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=em.length,l=Math.min(nxe(em,this._approxInterval,0,s),s-1);this._interval=em[l][1],this._minLevelUnit=em[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return et(r)?r:+Ha(r)},t.prototype.contain=function(r){return zx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Bx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Fx(r,this._extent)},t.type="time",t}(Mo),em=[["second",Pk],["minute",Rk],["hour",Yh],["quarter-day",Yh*6],["half-day",Yh*12],["day",yi*1.2],["half-week",yi*3.5],["week",yi*7],["month",yi*31],["quarter",yi*95],["half-year",cO/2],["year",cO]];function ixe(e,t,r,n){var i=Ha(t),a=Ha(r),o=function(p){return dO(i,p,n)===dO(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function axe(e,t){return e/=yi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function oxe(e){var t=30*yi;return e/=t,e>6?6:e>3?3:e>2?2:1}function sxe(e){return e/=Yh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function _N(e,t){return e/=t?Rk:Pk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function lxe(e){return Y6(e)}function uxe(e,t,r){var n=new Date(e);switch(lf(t)){case"year":case"month":n[qH(r)](0);case"day":n[ZH(r)](1);case"hour":n[KH(r)](0);case"minute":n[QH(r)](0);case"second":n[JH(r)](0),n[eW(r)](0)}return n.getTime()}function cxe(e,t,r,n){var i=1e4,a=YH,o=0;function s(A,M,k,I,P,E,z){for(var $=new Date(M),O=M,V=$[I]();O<k&&O<=n[1];)z.push({value:O}),V+=A,$[P](V),O=$.getTime();z.push({value:O,notAdd:!0})}function l(A,M,k){var I=[],P=!M.length;if(!ixe(lf(A),n[0],n[1],r)){P&&(M=[{value:uxe(new Date(n[0]),A,r)},{value:n[1]}]);for(var E=0;E<M.length-1;E++){var z=M[E].value,$=M[E+1].value;if(z!==$){var O=void 0,V=void 0,L=void 0,G=!1;switch(A){case"year":O=Math.max(1,Math.round(t/yi/365)),V=Ek(r),L=Bme(r);break;case"half-year":case"quarter":case"month":O=oxe(t),V=uf(r),L=qH(r);break;case"week":case"half-week":case"day":O=axe(t),V=kx(r),L=ZH(r),G=!0;break;case"half-day":case"quarter-day":case"hour":O=sxe(t),V=Vp(r),L=KH(r);break;case"minute":O=_N(t,!0),V=Ix(r),L=QH(r);break;case"second":O=_N(t,!1),V=Dx(r),L=JH(r);break;case"millisecond":O=lxe(t),V=Px(r),L=eW(r);break}s(O,z,$,V,L,G,I),A==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-O})}}for(var E=0;E<I.length;E++)k.push(I[E]);return I}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var p=lf(a[h]);if(Ome(a[h])){l(a[h],u[u.length-1]||[],c);var v=a[h+1]?lf(a[h+1]):null;if(p!==v){if(c.length){d=f,c.sort(function(A,M){return A.value-M.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=ft(q(u,function(A){return ft(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],_=S.length-1,h=0;h<S.length;++h)for(var w=S[h],C=0;C<w.length;++C)b.push({value:w[C].value,level:_-h});b.sort(function(A,M){return A.value-M.value});for(var T=[],h=0;h<b.length;++h)(h===0||b[h].value!==b[h-1].value)&&T.push(b[h]);return T}Za.registerClass(Jk);var bN=Za.prototype,Zh=Mo.prototype,fxe=Yt,dxe=Math.floor,hxe=Math.ceil,tm=Math.pow,Oi=Math.log,eI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Mo,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Zh.getTicks.call(this,r);return q(o,function(s){var l=s.value,u=Yt(tm(this.base,l));return u=l===i[0]&&this._fixMin?rm(u,a[0]):u,u=l===i[1]&&this._fixMax?rm(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=Oi(this.base);r=Oi(Math.max(0,r))/i,n=Oi(Math.max(0,n))/i,Zh.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=bN.getExtent.call(this);n[0]=tm(r,n[0]),n[1]=tm(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=rm(n[0],a[0])),this._fixMax&&(n[1]=rm(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Oi(r[0])/Oi(n),r[1]=Oi(r[1])/Oi(n),bN.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 a=fve(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Yt(hxe(n[0]/a)*a),Yt(dxe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Zh.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=Oi(r)/Oi(this.base),zx(r,this._extent)},t.prototype.normalize=function(r){return r=Oi(r)/Oi(this.base),Bx(r,this._extent)},t.prototype.scale=function(r){return r=Fx(r,this._extent),tm(this.base,r)},t.type="log",t}(Za),Pj=eI.prototype;Pj.getMinorTicks=Zh.getMinorTicks;Pj.getLabel=Zh.getLabel;function rm(e,t){return fxe(e,Ta(t))}Za.registerClass(eI);var pxe=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 a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Se(o)?this._modelMinNum=nm(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=nm(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Se(s)?this._modelMaxNum=nm(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=nm(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=Y(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ea(u[0],1),ea(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Pp(s)||Pp(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[gxe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=vxe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),vxe={min:"_determinedMin",max:"_determinedMax"},gxe={min:"_dataMin",max:"_dataMax"};function Rj(e,t,r){var n=e.rawExtentInfo;return n||(n=new pxe(e,t,r),e.rawExtentInfo=n,n)}function nm(e,t){return t==null?null:Pp(t)?NaN:e.parse(t)}function Ej(e,t){var r=e.type,n=Rj(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=Cj("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Tj(s),c=mxe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function mxe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=txe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Df(e,t){var r=t,n=Ej(e,r),i=n.extent,a=r.get("splitNumber");e instanceof eI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,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 $x(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Vx({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Jk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Za.getClass(t)||Mo)}}function yxe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function id(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,a){return e.scale.getFormattedLabel(i,a,n)}}(t):ne(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Se(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(tI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function tI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function xxe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Vx?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=id(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),p=Sxe(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function Sxe(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new Ne(e.x,e.y,a,o);return s}function rI(e){var t=e.get("interval");return t??"auto"}function Lj(e){return e.type==="category"&&rI(e.getLabelModel())===0}function C0(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[_j(e,n)]=!0}),Ye(r)}function _xe(e,t,r){t&&D(C0(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var zv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),bxe=1e-8;function wN(e,t){return Math.abs(e-t)<bxe}function Nl(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=ro(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!wN(i[0],s[0])||!wN(i[1],s[1]))&&(n+=ro(i[0],i[1],s[0],s[1],t,r)),n!==0}var wxe=[];function sb(e,t){for(var r=0;r<e.length;r++)Or(e[r],e[r],t)}function CN(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(ss(t,t,a),ls(r,r,a))}}function Cxe(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Oj=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),TN=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),AN=function(){function e(t){this.type="linestring",this.points=t}return e}(),Nj=function(e){H(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return Cxe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?CN(s.exterior,i,a,r):D(s.points,function(l){CN(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Nl(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Nl(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new Ne(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(sb(d.exterior,u),D(d.interiors,function(h){sb(h,u)})):D(d.points,function(h){sb(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Oj),Txe=function(e){H(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=fx(wxe),o=r;o&&!o.isGeoSVGGraphicRoot;)co(a,o.getLocalTransform(),a),o=o.parent;return jf(a,a),Or(i,i,a),i},t}(Oj);function Axe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=zj(s,o,r);break;case"Polygon":lb(s,o,r);break;case"MultiLineString":lb(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return lb(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function lb(e,t,r){for(var n=0;n<e.length;n++)e[n]=zj(e[n],t[n],r)}function zj(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Mxe(e,t){return e=Axe(e),q(ft(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new TN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new TN(l[0],l.slice(1)))});break;case"LineString":a.push(new AN([i.coordinates]));break;case"MultiLineString":a.push(new AN(i.coordinates))}var s=new Nj(n[t||"name"],a,n.cp);return s.properties=n,s})}var Up=Ze();function Bj(e,t){var r=q(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 kxe(e){var t=e.getLabelModel().get("customValues");if(t){var r=id(e);return{labels:Bj(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Dxe(e):Rxe(e)}function Ixe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:Bj(e,r)}:e.type==="category"?Pxe(e,t):{ticks:q(e.scale.getTicks(),function(n){return n.value})}}function Dxe(e){var t=e.getLabelModel(),r=Fj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Fj(e,t){var r=Vj(e,"labels"),n=rI(t),i=$j(r,n);if(i)return i;var a,o;return Se(n)?a=Wj(e,n):(o=n==="auto"?Exe(e):n,a=Hj(e,o)),Gj(r,n,{labels:a,labelCategoryInterval:o})}function Pxe(e,t){var r=Vj(e,"ticks"),n=rI(t),i=$j(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Se(n))a=Wj(e,n,!0);else if(n==="auto"){var s=Fj(e,e.getLabelModel());o=s.labelCategoryInterval,a=q(s.labels,function(l){return l.tickValue})}else o=n,a=Hj(e,o,!0);return Gj(r,n,{ticks:a,tickCategoryInterval:o})}function Rxe(e){var t=e.scale.getTicks(),r=id(e);return{labels:q(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function Vj(e,t){return Up(e)[t]||(Up(e)[t]=[])}function $j(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Gj(e,t,r){return e.push({key:t,value:r}),r}function Exe(e){var t=Up(e).autoInterval;return t??(Up(e).autoInterval=e.calculateCategoryInterval())}function Lxe(e){var t=Oxe(e),r=id(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=Mv(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),S=Up(e.model),b=e.getExtent(),_=S.lastAutoInterval,w=S.lastTickCount;return _!=null&&w!=null&&Math.abs(_-x)<=1&&Math.abs(w-o)<=1&&_>x&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?x=_:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=b[0],S.axisExtent1=b[1]),x}function Oxe(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 Hj(e,t,r){var n=id(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Lj(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function Wj(e,t,r){var n=e.scale,i=id(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var MN=[0,1],ia=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 j6(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(),kN(n,i.count())),ct(t,MN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),kN(n,i.count()));var a=ct(t,n,MN,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Ixe(this,r),i=n.ticks,a=q(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Nxe(this,a,o,t.clamp),a},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=q(n,function(a){return q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return kxe(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 Lxe(this)},e}();function kN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Nxe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=Yt(h),p=Yt(p),f?h>p:h<p}}var $d=Math.PI*2,gl=Wa.CMD,zxe=["top","right","bottom","left"];function Bxe(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function Fxe(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%$d<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=Wn(i),i=Wn(d)}else n=Wn(n),i=Wn(i);n>i&&(i+=$d);var h=Math.atan2(s,o);if(h<0&&(h+=$d),h>=n&&h<=i||h+$d>=n&&h+$d<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y<x?(l[0]=p,l[1]=v,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(x))}function T0(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var v=o[0]=e+p*c,g=o[1]=t+p*f;return Math.sqrt((v-i)*(v-i)+(g-a)*(g-a))}function jj(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Vi=[];function Vxe(e,t,r){var n=jj(t.x,t.y,t.width,t.height,e.x,e.y,Vi);return r.set(Vi[0],Vi[1]),n}function $xe(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var p=c[h++];h===1&&(n=c[h],i=c[h+1],a=n,o=i);var v=u;switch(p){case gl.M:a=c[h++],o=c[h++],n=a,i=o;break;case gl.L:v=T0(n,i,c[h],c[h+1],f,d,Vi,!0),n=c[h++],i=c[h++];break;case gl.C:v=M6(n,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Vi),n=c[h++],i=c[h++];break;case gl.Q:v=I6(n,i,c[h++],c[h++],c[h],c[h+1],f,d,Vi),n=c[h++],i=c[h++];break;case gl.A:var g=c[h++],m=c[h++],y=c[h++],x=c[h++],S=c[h++],b=c[h++];h+=1;var _=!!(1-c[h++]);s=Math.cos(S)*y+g,l=Math.sin(S)*x+m,h<=1&&(a=s,o=l);var w=(f-g)*x/y+g;v=Fxe(g,m,x,S,S+b,_,w,d,Vi),n=Math.cos(S+b)*y+g,i=Math.sin(S+b)*x+m;break;case gl.R:a=n=c[h++],o=i=c[h++];var C=c[h++],T=c[h++];v=jj(a,o,C,T,f,d,Vi);break;case gl.Z:v=T0(n,i,a,o,f,d,Vi,!0),n=a,i=o;break}v<u&&(u=v,r.set(Vi[0],Vi[1]))}return u}var ji=new Ee,wt=new Ee,Jt=new Ee,ka=new Ee,ba=new Ee;function IN(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||zxe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&jf([],c),d=t.get("length2")||0;u&&Jt.copy(u);for(var h=0;h<o.length;h++){var p=o[h];Bxe(p,0,s,ji,ka),Ee.scaleAndAdd(wt,ji,ka,d),wt.transform(f);var v=e.getBoundingRect(),g=u?u.distance(wt):e instanceof He?$xe(wt,e.path,Jt):Vxe(wt,v,Jt);g<l&&(l=g,wt.transform(c),Jt.transform(c),Jt.toArray(a[0]),wt.toArray(a[1]),ji.toArray(a[2]))}Uj(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var A0=[],nn=new Ee;function Uj(e,t){if(t<=180&&t>0){t=t/180*Math.PI,ji.fromArray(e[0]),wt.fromArray(e[1]),Jt.fromArray(e[2]),Ee.sub(ka,ji,wt),Ee.sub(ba,Jt,wt);var r=ka.len(),n=ba.len();if(!(r<.001||n<.001)){ka.scale(1/r),ba.scale(1/n);var i=ka.dot(ba),a=Math.cos(t);if(a<i){var o=T0(wt.x,wt.y,Jt.x,Jt.y,ji.x,ji.y,A0,!1);nn.fromArray(A0),nn.scaleAndAdd(ba,o/Math.tan(Math.PI-t));var s=Jt.x!==wt.x?(nn.x-wt.x)/(Jt.x-wt.x):(nn.y-wt.y)/(Jt.y-wt.y);if(isNaN(s))return;s<0?Ee.copy(nn,wt):s>1&&Ee.copy(nn,Jt),nn.toArray(e[1])}}}}function Gxe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ji.fromArray(e[0]),wt.fromArray(e[1]),Jt.fromArray(e[2]),Ee.sub(ka,wt,ji),Ee.sub(ba,Jt,wt);var n=ka.len(),i=ba.len();if(!(n<.001||i<.001)){ka.scale(1/n),ba.scale(1/i);var a=ka.dot(t),o=Math.cos(r);if(a<o){var s=T0(wt.x,wt.y,Jt.x,Jt.y,ji.x,ji.y,A0,!1);nn.fromArray(A0);var l=Math.PI/2,u=Math.acos(ba.dot(t)),c=l+u-r;if(c>=l)Ee.copy(nn,Jt);else{nn.scaleAndAdd(ba,s/Math.tan(Math.PI/2-c));var f=Jt.x!==wt.x?(nn.x-wt.x)/(Jt.x-wt.x):(nn.y-wt.y)/(Jt.y-wt.y);if(isNaN(f))return;f<0?Ee.copy(nn,wt):f>1&&Ee.copy(nn,Jt)}nn.toArray(e[1])}}}}function ub(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Hxe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=os(n[0],n[1]),a=os(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Ym([],n[1],n[0],o/i),l=Ym([],n[1],n[2],o/a),u=Ym([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function nI(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<zp.length;l++){var u=zp[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Ie(i.states[u]&&i.states[u].ignore,s);if(h||!Ie(d,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&ub(n,!0,u,c);continue}n||(n=new mn,e.setTextGuideLine(n),!f&&(s||!o)&&ub(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),ub(n,!1,u,c)}}if(n){_e(n.style,r),n.style.fill=null;var v=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=v||!1,n.buildPath=Hxe}}function iI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<fn.length;n++){var i=fn[n];r[i]=e.getModel([i,t])}return r}function Yj(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new u0(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Xj(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,T){return C.rect[t]-T.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=h[t]+h[r]}c>0&&a&&b(-c/o,0,o);var v=e[0],g=e[o-1],m,y;x(),m<0&&_(-m,.8),y<0&&_(y,.8),x(),S(m,y,1),S(y,m,-1),x(),m<0&&w(-m),y<0&&w(y);function x(){m=v.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function S(C,T,A){if(C<0){var M=Math.min(T,-C);if(M>0){b(M*A,0,o);var k=M+C;k<0&&_(-k*A,1)}else _(-C*A,1)}}function b(C,T,A){C!==0&&(u=!0);for(var M=T;M<A;M++){var k=e[M],I=k.rect;I[t]+=C,k.label[t]+=C}}function _(C,T){for(var A=[],M=0,k=1;k<o;k++){var I=e[k-1].rect,P=Math.max(e[k].rect[t]-I[t]-I[r],0);A.push(P),M+=P}if(M){var E=Math.min(Math.abs(C)/M,T);if(C>0)for(var k=0;k<o-1;k++){var z=A[k]*E;b(z,0,k+1)}else for(var k=o-1;k>0;k--){var z=A[k-1]*E;b(-z,k,o)}}}function w(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),M=0;M<o-1;M++)if(T>0?b(A,0,M+1):b(-A,o-M-1,o),C-=A,C<=0)return}return u}function Wxe(e,t,r,n){return Xj(e,"x","width",t,r,n)}function qj(e,t,r,n){return Xj(e,"y","height",t,r,n)}function Zj(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(r.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new u0(p.localRect,p.transform)),f||(f=new u0(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function jxe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function Uxe(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:jxe(n&&n.shape.points)}}var DN=["align","verticalAlign","width","height","fontSize"],Kr=new oo,cb=Ze(),Yxe=Ze();function im(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var am=["x","y","rotation"],Xxe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();Ne.applyTransform(c,c,u),u?Kr.setLocalTransform(u):(Kr.x=Kr.y=Kr.rotation=Kr.originX=Kr.originY=0,Kr.scaleX=Kr.scaleY=1),Kr.rotation=Wn(Kr.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Ne.applyTransform(d,d,h)}var p=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Kr.x,y:Kr.y,scaleX:Kr.scaleX,scaleY:Kr.scaleY,rotation:Kr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Se(i)||Ye(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ke(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(x,S){return function(){IN(x,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Se(o.layoutOption)?c=o.layoutOption(Uxe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=J(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=J(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var p=cb(s);p.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<DN.length;v++){var g=DN[v];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=Yj(this._labelList),a=ft(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ft(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});Wxe(a,0,r),qj(o,0,n);var s=ft(i,function(l){return l.layoutOption.hideOverlap});Zj(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=cb(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ke(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");nI(t,iI(s),l),IN(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!of(t))){var a=cb(n),o=a.oldLayout,s=ke(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(ze(d,"select")>=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),rt(n,u,r,l)}else if(n.attr(u),!Zf(n).valueAnimation){var f=Ie(n.style.opacity,1);n.style.opacity=0,Et(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};im(h,u,am),im(h,n.states.select,am)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};im(p,u,am),im(p,n.states.emphasis,am)}GH(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Yxe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),rt(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Et(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}(),fb=Ze();function qxe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=fb(r).labelManager;i||(i=fb(r).labelManager=new Xxe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=fb(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var db=Math.sin,hb=Math.cos,Kj=Math.PI,ml=Math.PI*2,Zxe=180/Kj,Qj=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=fs(f-ml)||(c?u>=ml:-u>=ml),h=u>0?u%ml:u%ml+ml,p=!1;d?p=!0:fs(f)?p=!1:p=h>=Kj==!!c;var v=t+n*hb(o),g=r+i*db(o);this._start&&this._add("M",v,g);var m=Math.round(a*Zxe);if(d){var y=1/this._p,x=(c?1:-1)*(ml-y);this._add("A",n,i,m,1,+c,t+n*hb(o+x),r+i*db(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*hb(s),b=r+i*db(s);this._add("A",n,i,m,+p,+c,S,b)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),aI="none",Kxe=Math.round;function Qxe(e){var t=e.fill;return t!=null&&t!==aI}function Jxe(e){var t=e.stroke;return t!=null&&t!==aI}var KT=["lineCap","miterLimit","lineJoin"],eSe=q(KT,function(e){return"stroke-"+e.toLowerCase()});function tSe(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof Mr){e("opacity",i);return}if(Qxe(t)){var a=Lp(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",aI);if(Jxe(t)){var s=Lp(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if(u!==1&&e("stroke-width",u),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var d=jk(r),h=d[0],p=d[1];h&&(p=Kxe(p||0),e("stroke-dasharray",h.join(",")),(p||n)&&e("stroke-dashoffset",p))}for(var v=0;v<KT.length;v++){var g=KT[v];if(t[g]!==s0[g]){var m=t[g]||s0[g];m&&e(eSe[v],m)}}}}var Jj="http://www.w3.org/2000/svg",e8="http://www.w3.org/1999/xlink",rSe="http://www.w3.org/2000/xmlns/",nSe="http://www.w3.org/XML/1998/namespace",PN="ecmeta_";function t8(e){return document.createElementNS(Jj,e)}function gr(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function iSe(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function aSe(e){return"</"+e+">"}function oI(e,t){t=t||{};var r=t.newline?`
|
203
|
-
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return iSe(o,s)+(o!=="style"?wn(l):l||"")+(a?""+r+q(a,function(u){return n(u)}).join(r)+r:"")+aSe(o)}return n(e)}function oSe(e,t,r){r=r||{};var n=r.newline?`
|
204
|
-
`:"",i=" {"+n,a=n+"}",o=q(Ye(e),function(l){return l+i+q(Ye(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=q(Ye(t),function(l){return"@keyframes "+l+i+q(Ye(t[l]),function(u){return u+i+q(Ye(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function QT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function RN(e,t,r,n){return gr("svg","root",{width:e,height:t,xmlns:Jj,"xmlns:xlink":e8,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var sSe=0;function r8(){return sSe++}var EN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Al="transform-origin";function lSe(e,t,r){var n=j({},e.shape);j(n,t),e.buildPath(r,n);var i=new Qj;return i.reset(N6(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function uSe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Al]=r+"px "+n+"px")}var cSe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function n8(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function fSe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=QT(r.zrId);u.animation=!0,Gx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Ye(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=n8(i,r);return a.replace(o,s)}}function LN(e){return ne(e)?EN[e]?"cubic-bezier("+EN[e]+")":uk(e)?e:"":""}function Gx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof Tk){var s=fSe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=LN(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(y){var x=y[1],S=x.length,b={},_={},w={},C="animation-timing-function";function T(Q,ae,se){for(var K=Q.getTracks(),ee=Q.getMaxTime(),me=0;me<K.length;me++){var ve=K[me];if(ve.needsAnimate()){var Le=ve.keyframes,tt=ve.propName;if(se&&(tt=se(tt)),tt)for(var Ke=0;Ke<Le.length;Ke++){var ht=Le[Ke],pt=Math.round(ht.time/ee*100)+"%",Bt=LN(ht.easing),nt=ht.rawValue;(ne(nt)||et(nt))&&(ae[pt]=ae[pt]||{},ae[pt][tt]=ht.rawValue,Bt&&(ae[pt][C]=Bt))}}}}for(var A=0;A<S;A++){var M=x[A],k=M.targetName;k?k==="shape"&&T(M,_):!n&&T(M,b)}for(var I in b){var P={};$6(P,e),j(P,b[I]);var E=z6(P),z=b[I][C];w[I]=E?{transform:E}:{},uSe(w[I],P),z&&(w[I][C]=z)}var $,O=!0;for(var I in _){w[I]=w[I]||{};var V=!$,z=_[I][C];V&&($=new Wa);var L=$.len();$.reset(),w[I].d=lSe(e,_[I],$);var G=$.len();if(!V&&L!==G){O=!1;break}z&&(w[I][C]=z)}if(!O)for(var I in w)delete w[I].d;if(!n)for(var A=0;A<S;A++){var M=x[A],k=M.targetName;k==="style"&&T(M,w,function(K){return cSe[K]})}for(var W=Ye(w),B=!0,X,A=1;A<W.length;A++){var te=W[A-1],U=W[A];if(w[te][Al]!==w[U][Al]){B=!1;break}X=w[te][Al]}if(B&&X){for(var I in w)w[I][Al]&&delete w[I][Al];t[Al]=X}if(ft(W,function(Q){return Ye(w[Q]).length>0}).length){var re=n8(w,r);return re+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r8();r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function dSe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};ON(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=uT(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),ON(n,t,r)}}function ON(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+r8(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Yp=Math.round;function i8(e){return e&&ne(e.src)}function a8(e){return e&&Se(e.toDataURL)}function sI(e,t,r,n){tSe(function(i,a){var o=i==="fill"||i==="stroke";o&&O6(a)?s8(t,e,i,n):o&&ck(a)?l8(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),xSe(r,e,n)}function lI(e,t){var r=ive(t);r&&(r.each(function(n,i){n!=null&&(e[(PN+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[PN+"silent"]="true"))}function NN(e){return fs(e[0]-1)&&fs(e[1])&&fs(e[2])&&fs(e[3]-1)}function hSe(e){return fs(e[4])&&fs(e[5])}function uI(e,t,r){if(t&&!(hSe(t)&&NN(t))){var n=1e4;e.transform=NN(t)?"translate("+Yp(t[4]*n)/n+" "+Yp(t[5]*n)/n+")":Mpe(t)}}function zN(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(Yp(n[a][0]*r)/r),i.push(Yp(n[a][1]*r)/r);t.points=i.join(" ")}function BN(e){return!e.smooth}function pSe(e){var t=q(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=Yp(s*i)/i)}}}var vSe={circle:[pSe(["cx","cy","r"])],polyline:[zN,BN],polygon:[zN,BN]};function gSe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function o8(e,t){var r=e.style,n=e.shape,i=vSe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&N6(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&gSe(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),p=e,v=p.__svgPathBuilder;(p.__svgPathVersion!==h||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new Qj),v.reset(u),d.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),a.d=v.getStr()}return uI(a,e.transform),sI(a,r,e,t),lI(a,e),t.animation&&Gx(e,a,t),t.emphasis&&dSe(e,a,t),gr(s,e.id+"",a)}function mSe(e,t){var r=e.style,n=r.image;if(n&&!ne(n)&&(i8(n)?n=n.src:a8(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),uI(l,e.transform),sI(l,r,e,t),lI(l,e),t.animation&&Gx(e,l,t),gr("image",e.id+"",l)}}function ySe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Rs,a=r.x||0,o=Ipe(r.y||0,hx(i),r.textBaseline),s=kpe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(hH(r)){var u="",c=r.fontStyle,f=dH(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||d6,h=r.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),uI(l,e.transform),sI(l,r,e,t),lI(l,e),t.animation&&Gx(e,l,t),gr("text",e.id+"",l,void 0,n)}}function FN(e,t){if(e instanceof He)return o8(e,t);if(e instanceof Mr)return mSe(e,t);if(e instanceof Af)return ySe(e,t)}function xSe(e,t,r){var n=e.style;if(Dpe(n)){var i=Ppe(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,h=Lp(n.shadowColor),p=h.opacity,v=h.color,g=d/2/l,m=d/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=gr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[gr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":v,"flood-opacity":p})]),a[i]=o}t.filter=dx(o)}}function s8(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(E6(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(L6(i))a="radialGradient",o.cx=Ie(i.x,.5),o.cy=Ie(i.y,.5),o.r=Ie(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=cT(s[u].offset)*100+"%",d=s[u].color,h=Lp(d),p=h.color,v=h.opacity,g={offset:f};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(gr("stop",u+"",g))}var m=gr(a,"",o,l),y=oI(m),x=n.gradientCache,S=x[y];S||(S=n.zrId+"-g"+n.gradientIdx++,x[y]=S,o.id=S,n.defs[S]=gr(a,S,o,l)),t[r]=dx(S)}function l8(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(R6(i)){var d=i.imageWidth,h=i.imageHeight,p=void 0,v=i.image;if(ne(v)?p=v:i8(v)?p=v.src:a8(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";cn(d,g),cn(h,g)}else if(d==null||h==null){var m=function(A,M){if(A){var k=A.elm,I=d||M.width,P=h||M.height;A.tag==="pattern"&&(u?(P=1,I/=a.width):c&&(I=1,P/=a.height)),A.attrs.width=I,A.attrs.height=P,k&&(k.setAttribute("width",I),k.setAttribute("height",P))}},y=gk(p,null,e,function(A){l||m(_,A),m(f,A)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=gr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=Ce(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var b=z6(i);b&&(o.patternTransform=b);var _=gr("pattern","",o,[f]),w=oI(_),C=n.patternCache,T=C[w];T||(T=n.zrId+"-p"+n.patternIdx++,C[w]=T,o.id=T,_=n.defs[T]=gr("pattern",T,o,[f])),t[r]=dx(T)}}function SSe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=gr("clipPath",a,o,[o8(e,r)])}t["clip-path"]=dx(a)}function VN(e){return document.createTextNode(e)}function zl(e,t,r){e.insertBefore(t,r)}function $N(e,t){e.removeChild(t)}function GN(e,t){e.appendChild(t)}function u8(e){return e.parentNode}function c8(e){return e.nextSibling}function pb(e,t){e.textContent=t}var HN=58,_Se=120,bSe=gr("","");function JT(e){return e===void 0}function va(e){return e!==void 0}function wSe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function ph(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Xp(e){var t,r=e.children,n=e.tag;if(va(n)){var i=e.elm=t8(n);if(cI(bSe,e),Y(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&GN(i,Xp(a))}else va(e.text)&&!be(e.text)&&GN(i,VN(e.text))}else e.elm=VN(e.text);return e.elm}function f8(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&zl(e,Xp(a),t)}}function M0(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(va(i.tag)){var a=u8(i.elm);$N(a,i.elm)}else $N(e,i.elm)}}function cI(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==_Se?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(rSe,r,o):r.charCodeAt(3)===HN?n.setAttributeNS(nSe,r,o):r.charCodeAt(5)===HN?n.setAttributeNS(e8,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function CSe(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],f,d,h,p;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:c==null?c=r[--l]:ph(o,u)?(Tc(o,u),o=t[++n],u=r[++i]):ph(s,c)?(Tc(s,c),s=t[--a],c=r[--l]):ph(o,c)?(Tc(o,c),zl(e,o.elm,c8(s.elm)),o=t[++n],c=r[--l]):ph(s,u)?(Tc(s,u),zl(e,s.elm,o.elm),s=t[--a],u=r[++i]):(JT(f)&&(f=wSe(t,n,a)),d=f[u.key],JT(d)?zl(e,Xp(u),o.elm):(h=t[d],h.tag!==u.tag?zl(e,Xp(u),o.elm):(Tc(h,u),t[d]=void 0,zl(e,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(p=r[l+1]==null?null:r[l+1].elm,f8(e,p,r,i,l)):M0(e,t,n,a))}function Tc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(cI(e,t),JT(t.text)?va(n)&&va(i)?n!==i&&CSe(r,n,i):va(i)?(va(e.text)&&pb(r,""),f8(r,null,i,0,i.length-1)):va(n)?M0(r,n,0,n.length-1):va(e.text)&&pb(r,""):e.text!==t.text&&(va(n)&&M0(r,n,0,n.length-1),pb(r,t.text)))}function TSe(e,t){if(ph(e,t))Tc(e,t);else{var r=e.elm,n=u8(r);Xp(t),n!==null&&(zl(n,t.elm,c8(r)),M0(n,[e],0,0))}return t}var ASe=0,MSe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=WN(),this.configLayer=WN(),this.storage=r,this._opts=n=j({},n),this.root=t,this._id="zr"+ASe++,this._oldVNode=RN(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=t8("svg");cI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",TSe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return FN(t,QT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=QT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=kSe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=gr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=q(Ye(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(gr("defs","defs",{},u)),t.animation){var c=oSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=gr("style","stl",{},[],c);o.push(f)}}return RN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},oI(this.renderToVNode({animation:Ie(t.cssAnimation,!0),emphasis:Ie(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ie(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(h-1,p-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m<h;m++){var y={};SSe(d[m],y,r);var x=gr("g","clip-g-"+u++,y,[]);(s?s.children:n).push(x),a[o++]=x,s=x}l=d;var S=FN(f,r);S&&(s?s.children:n).push(S)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=jc(i,0,n),r=jc(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(ck(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=Epe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function WN(e){return function(){}}function kSe(e,t,r,n){var i;if(r&&r!=="none")if(i=gr("rect","bg",{width:e,height:t,x:"0",y:"0"}),O6(r))s8({fill:r},i.attrs,"fill",n);else if(ck(r))l8({style:{fill:r},dirty:er,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=Lp(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function ISe(e){e.registerPainter("svg",MSe)}function jN(e,t,r){var n=Es.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var vb=function(e){Dt(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||a0,typeof r=="string"?o=jN(r,n,i):be(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(y6(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}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=jN("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,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ne(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new Ne(0,0,0,0);x.copy(y),o.push(x)}else{for(var S=!1,b=1/0,_=0,w=0;w<o.length;++w){var C=o[w];if(C.intersect(y)){var T=new Ne(0,0,0,0);T.copy(C),T.union(y),o[w]=T,S=!0;break}else if(l){u.copy(y),u.union(C);var A=y.width*y.height,M=C.width*C.height,k=u.width*u.height,I=k-A-M;I<b&&(b=I,_=w)}}if(l&&(o[_].union(y),S=!0),!S){var x=new Ne(0,0,0,0);x.copy(y),o.push(x)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),p=d.__isRendered&&(d.__dirty&$n||!h)?d.getPrevPaintRect():null;p&&c(p);var v=h&&(d.__dirty&$n||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.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 a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function p(v,g,m,y){if(o.clearRect(v,g,m,y),n&&n!=="transparent"){var x=void 0;if(ux(n)){var S=n.global||n.__width===m&&n.__height===y;x=S&&n.__canvasGradient||GT(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=x,n.__width=m,n.__height=y}else $he(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,x=HT(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=x||n,o.fillRect(v,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,v,g,m,y),o.restore())}!i||u?p(0,0,s,l):i.length&&D(i,function(v){p(v.x*f,v.y*f,v.width*f,v.height*f)})},t}(Di),UN=1e5,yl=314159,om=.01,DSe=.001;function PSe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function RSe(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 ESe=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 a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=j({},n||{}),this.dpr=n.devicePixelRatio||a0,this._singleCanvas=a,this.root=t;var o=t.style;o&&(y6(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new vb(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[yl]=h,h.zlevel=yl,s.push(yl),this._domRoot=t}else{this._width=jc(t,0,n),this._height=jc(t,1,n);var u=this._domRoot=RSe(this._width,this._height);t.appendChild(u)}}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 a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===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},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(UN)),a||(a=n.ctx,a.save()),Ql(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(UN)},e.prototype.paintOne=function(t,r){ZW(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Jy(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(yl).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,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,d=function(v){var g=a[v],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),x=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,b=S&&Date.now(),_=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,_,y);else if(x===g.__startIndex){var w=t[x];(!w.incremental||!w.notClear||n)&&g.clear(!1,_,y)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=g.__startIndex);var C,T=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=x;C<g.__endIndex;C++){var E=t[C];if(E.__inHover&&(f=!0),i._doPaintEl(E,g,o,I,P,C===g.__endIndex-1),S){var z=Date.now()-b;if(z>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var A=h.dpr,M=0;M<y.length;++M){var k=y[M];m.save(),m.beginPath(),m.rect(k.x*A,k.y*A,k.width*A,k.height*A),m.clip(),T(k),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<a.length;p++)d(p);return je.wxa&&D(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Ql(s,t,a,o),t.setPrevPaintRect(l))}else Ql(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=yl);var n=this._layers[t];return n||(n=new vb("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Oe(n,this._layerConfig[t],!0):this._layerConfig[t-om]&&Oe(n,this._layerConfig[t-om],!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,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&PSe(r)){if(a>0&&t>i[0]){for(l=0;l<a-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 u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.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 a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}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 a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+DSe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?om:0),this._needsManuallyCompositing),c.__builtin__||rk("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&$n&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+om){var o=this._layers[a];Oe(o,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(ze(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,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=jc(a,0,i),r=jc(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(yl).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[yl].dom;var r=new vb("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,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Ql(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function LSe(e){e.registerPainter("canvas",ESe)}var OSe=function(e){H(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 Lo(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Ae,i=ar("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=ar(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.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}(Mt);function Pf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=kf(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(kf(e,t,r[o]));return a.join(" ")}}function d8(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Bv=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=ar(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=NSe,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(){Co(this.childAt(0))},t.prototype.downplay=function(){To(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,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):rt(d,h,s,n),ta(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Et(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=yr(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Bu(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var _=r.getItemVisual(n,"style"),w=_.fill;if(s instanceof Mr){var C=s.style;s.useStyle(j({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},_))}else s.__isEmptyBrush?s.useStyle(j({},_)):s.useStyle(_),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Br(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:w,defaultOpacity:_.opacity});function k(E){return M?r.getName(E):Pf(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Wt(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Os(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Os(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return nd(r.getItemVisual(n,"symbolSize"))},t}(Ae);function NSe(e,t){this.parent.drift(e,t)}function gb(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 YN(e){return e!=null&&!be(e)&&(e={isIgnore:e}),e||{}}function XN(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:yr(t),cursorStyle:t.get("cursor")}}var Fv=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Bv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=YN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=XN(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(gb(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!gb(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):rt(h,m,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=XN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=YN(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(gb(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Us(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 h8(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=zSe(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=q(e.dimensions,function(p){return t.mapDimension(p)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return zs(t,f[0])&&(d=!0,f[0]=h),zs(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function zSe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:et(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function p8(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function BSe(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 FSe(e,t,r,n,i,a,o,s){for(var l=BSe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=h8(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var S=l[x],b=!0,_=void 0,w=void 0;switch(S.cmd){case"=":_=S.idx*2,w=S.idx1*2;var C=m[_],T=m[_+1],A=y[w],M=y[w+1];(isNaN(C)||isNaN(T))&&(C=A,T=M),u.push(C,T),c.push(A,M),f.push(r[_],r[_+1]),d.push(n[w],n[w+1]),v.push(t.getRawIndex(S.idx1));break;case"+":var k=S.idx,I=g.dataDimsForPoint,P=i.dataToPoint([t.get(I[0],k),t.get(I[1],k)]);w=k*2,u.push(P[0],P[1]),c.push(y[w],y[w+1]);var E=p8(g,i,t,k);f.push(E[0],E[1]),d.push(n[w],n[w+1]),v.push(t.getRawIndex(k));break;case"-":b=!1}b&&(h.push(S),p.push(p.length))}p.sort(function(te,U){return v[te]-v[U]});for(var z=u.length,$=Ma(z),O=Ma(z),V=Ma(z),L=Ma(z),G=[],x=0;x<p.length;x++){var W=p[x],B=x*2,X=W*2;$[B]=u[X],$[B+1]=u[X+1],O[B]=c[X],O[B+1]=c[X+1],V[B]=f[X],V[B+1]=f[X+1],L[B]=d[X],L[B+1]=d[X+1],G[x]=h[W]}return{current:$,next:O,stackedOnCurrent:V,stackedOnNext:L,status:G}}var Uo=Math.min,Yo=Math.max;function uu(e,t){return isNaN(e)||isNaN(t)}function e2(e,t,r,n,i,a,o,s,l){for(var u,c,f,d,h,p,v=r,g=0;g<n;g++){var m=t[v*2],y=t[v*2+1];if(v>=i||v<0)break;if(uu(m,y)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var x=m-u,S=y-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var b=v+a,_=t[b*2],w=t[b*2+1];_===m&&w===y&&g<n;)g++,b+=a,v+=a,_=t[b*2],w=t[b*2+1],m=t[v*2],y=t[v*2+1],x=m-u,S=y-c;var C=g+1;if(l)for(;uu(_,w)&&C<n;)C++,b+=a,_=t[b*2],w=t[b*2+1];var T=.5,A=0,M=0,k=void 0,I=void 0;if(C>=n||uu(_,w))h=m,p=y;else{A=_-u,M=w-c;var P=m-u,E=_-m,z=y-c,$=w-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(E);var L=A>0?1:-1;h=m-L*O*o,p=y,k=m+L*V*o,I=y}else if(s==="y"){O=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*O*o,k=m,I=y+G*V*o}else O=Math.sqrt(P*P+z*z),V=Math.sqrt(E*E+$*$),T=V/(V+O),h=m-A*o*(1-T),p=y-M*o*(1-T),k=m+A*o*T,I=y+M*o*T,k=Uo(k,Yo(_,m)),I=Uo(I,Yo(w,y)),k=Yo(k,Uo(_,m)),I=Yo(I,Uo(w,y)),A=k-m,M=I-y,h=m-A*O/V,p=y-M*O/V,h=Uo(h,Yo(u,m)),p=Uo(p,Yo(c,y)),h=Yo(h,Uo(u,m)),p=Yo(p,Uo(c,y)),A=m-h,M=y-p,k=m+A*V/O,I=y+M*V/O}e.bezierCurveTo(f,d,h,p,m,y),f=k,d=I}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var v8=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),VSe=function(e){H(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 v8},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&uu(i[o*2-2],i[o*2-1]);o--);for(;a<o&&uu(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=e2(r,i,a,o,o,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,a=i.data,o=Wa.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var d=a[f++],h=void 0,p=void 0,v=void 0,g=void 0,m=void 0,y=void 0,x=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(h=a[f++],p=a[f++],x=u?(r-s)/(h-s):(r-l)/(p-l),x<=1&&x>=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var b=u?t0(s,h,v,m,r,c):t0(l,p,g,y,r,c);if(b>0)for(var _=0;_<b;_++){var w=c[_];if(w<=1&&w>=0){var S=u?hr(l,p,g,y,w):hr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}(He),$Se=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v8),g8=function(e){H(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 $Se},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&uu(i[s*2-2],i[s*2-1]);s--);for(;o<s&&uu(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=e2(r,i,o,s,s,1,n.smooth,l,n.connectNulls);e2(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(He);function m8(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new qe({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var v=Se(i)?function(g){i(g,f)}:null;Et(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,v)}return f}function y8(e,t,r){var n=e.getArea(),i=Yt(n.r0,1),a=Yt(n.r,1),o=new dn({shape:{cx:Yt(e.cx,1),cy:Yt(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Et(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Vv(e,t,r,n,i){if(e){if(e.type==="polar")return y8(e,t,r);if(e.type==="cartesian2d")return m8(e,t,r,n,i)}else return null;return null}function Vu(e,t){return e.type===t}function qN(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function ZN(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function KN(e,t){var r=ZN(e),n=r[0],i=r[1],a=ZN(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function QN(e){return et(e)?e:e?.5:0}function GSe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=Ma(n*2),a=0;a<n;a++){var o=p8(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Xo(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+c[a])/2,h=[];l[a]=h[a]=d,l[1-a]=u[1-a],h[1-a]=c[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function HSe(e,t){var r=[],n=e.length,i,a;function o(c,f,d){var h=c.coord,p=(d-h)/(f.coord-h),v=Ape(p,[c.color,f.color]);return{coord:d,color:v}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function WSe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=q(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=HSe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";D(d,function(x){x.offset=(x.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new Pv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function jSe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&USe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function USe(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(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Bv.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function YSe(e,t){return isNaN(e)||isNaN(t)}function XSe(e){for(var t=e.length/2;t>0&&YSe(e[t*2-2],e[t*2-1]);t--);return t-1}function JN(e,t){return[e[t*2],e[t*2+1]]}function qSe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function x8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<fn.length;t++)if(e.get([fn[t],"endLabel","show"]))return!0;return!1}function mb(e,t,r,n){if(Vu(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=x8(n)?function(h,p){e._endLabelOnDuring(h,p,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=m8(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return y8(t,r,n)}function ZSe(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var KSe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Ae,n=new Fv;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),x=!c.isEmpty(),S=c.get("origin"),b=h8(o,l,S),_=x&&GSe(o,l,b),w=r.get("showSymbol"),C=r.get("connectNulls"),T=w&&!d&&jSe(r,l,o),A=this._data;A&&A.eachItemGraphicEl(function(U,re){U.__temp&&(s.remove(U),A.setItemGraphicEl(re,null))}),w||p.remove(),s.add(m);var M=d?!1:r.get("step"),k;o&&o.getArea&&r.get("clip",!0)&&(k=o.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var I=WSe(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&M===this._step))w&&p.updateData(l,{isIgnore:T,clipShape:k,disableAnimation:!0,getSymbolPoint:function(U){return[f[U*2],f[U*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,k),M&&(f=Xo(f,o,M,C),_&&(_=Xo(_,o,M,C))),v=this._newPolyline(f),x?g=this._newPolygon(f,_):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Au(I)),m.setClipPath(mb(this,o,!0,r));else{x&&!g?g=this._newPolygon(f,_):g&&!x&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Au(I));var P=m.getClipPath();if(P){var E=mb(this,o,!1,r);Et(P,{shape:E.shape},r)}else m.setClipPath(mb(this,o,!0,r));w&&p.updateData(l,{isIgnore:T,clipShape:k,disableAnimation:!0,getSymbolPoint:function(U){return[f[U*2],f[U*2+1]]}}),(!qN(this._stackedOnPoints,_)||!qN(this._points,f))&&(y?this._doUpdateAnimation(l,_,o,i,M,S,C):(M&&(f=Xo(f,o,M,C),_&&(_=Xo(_,o,M,C))),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:_})))}var z=r.getModel("emphasis"),$=z.get("focus"),O=z.get("blurScope"),V=z.get("disabled");if(v.useStyle(_e(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),zr(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}ke(v).seriesIndex=r.seriesIndex,Wt(v,$,O,V);var G=QN(r.get("smooth")),W=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:W,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),X=0;g.useStyle(_e(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(X=QN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:X,smoothMonotone:W,connectNulls:C}),zr(g,r,"areaStyle"),ke(g).seriesIndex=r.seriesIndex,Wt(g,$,O,V)}var te=function(U){a._changePolyState(U)};l.eachItemGraphicEl(function(U){U&&(U.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=wu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Bv(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=wu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else xt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;l0(this._polyline,r),n&&l0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new VSe({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 g8({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Se(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Se(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,x=-b[1]/180*Math.PI):(m=S.r0,y=S.r,x=b[0])}else{var _=i;a?(m=_.x,y=_.x+_.width,x=h.x):(m=_.y+_.height,y=_.y,x=h.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=Se(f)?f(p):c*w+d,T=v.getSymbolPath(),A=T.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(x8(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Je({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=XSe(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?d8(o,h):Pf(o,f)},enableTextSetter:!0},ZSe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,S=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,b=(m?v:0)*(y?-1:1),_=(m?0:-v)*(y?-1:1),w=m?"x":"y",C=qSe(f,S,w),T=C.range,A=T[1]-T[0],M=void 0;if(A>=1){if(A>1&&!h){var k=JN(f,T[0]);u.attr({x:k[0]+b,y:k[1]+_}),o&&(M=d.getRawValue(T[0]))}else{var k=c.getPointOn(S,w);k&&u.attr({x:k[0]+b,y:k[1]+_});var I=d.getRawValue(T[0]),P=d.getRawValue(T[1]);o&&(M=rH(i,p,I,P,C.t))}a.lastFrameIndex=T[0]}else{var E=r===1||a.lastFrameIndex>0?T[0]:0,k=JN(f,E);o&&(M=d.getRawValue(E)),u.attr({x:k[0]+b,y:k[1]+_})}if(o){var z=Zf(u);typeof z.setLabelText=="function"&&z.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=FSe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=Xo(d.current,i,o,l),p=Xo(d.stackedOnCurrent,i,o,l),v=Xo(d.next,i,o,l),g=Xo(d.stackedOnNext,i,o,l)),KN(h,v)>3e3||c&&KN(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),rt(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),rt(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=d.status,S=0;S<x.length;S++){var b=x[S].cmd;if(b==="="){var _=r.getItemGraphicEl(x[S].idx1);_&&y.push({el:_,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,C=0;C<y.length;C++){var T=y[C].el,A=y[C].ptIdx*2;T.x=w[A],T.y=w[A+1],T.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(xt);function $v(e,t){return{seriesType:e,plan:td(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=q(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");zs(n,s[0])&&(s[0]=u),zs(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var v=h.end-h.start,g=o&&Ma(v*l),m=[],y=[],x=h.start,S=0;x<h.end;x++){var b=void 0;if(l===1){var _=c.get(f,x);b=i.dataToPoint(_,null,y)}else m[0]=c.get(f,x),m[1]=c.get(d,x),b=i.dataToPoint(m,null,y);o?(g[S++]=b[0],g[S++]=b[1]):p.setItemLayout(x,b.slice())}o&&p.setLayout("points",g)}}}}}}var QSe={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],a=Math.abs(i);a>t&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},JSe=function(e){return Math.round(e.length/2)};function S8(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;ne(a)?p=QSe[a]:Se(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,JSe))}}}}}function e_e(e){e.registerChartView(KSe),e.registerSeriesModel(OSe),e.registerLayout($v("line",!0)),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,S8("line"))}var qp=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Lo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!v&&(g+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,x=void 0,S=1,b=0;b<p.length;b++){var _=p[b].coord,w=b===p.length-1?p[b-1].tickValue+S:p[b].tickValue;if(w===g){x=_;break}else if(w<g)y=_;else if(y!=null&&w>g){x=(_+y)/2;break}b===1&&(S=w-p[0].tickValue)}x==null&&(y?y&&(x=p[p.length-1].coord):x=p[0].coord),s[h]=d.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Mt);Mt.registerClass(qp);var t_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Lo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ys(qp.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(qp),r_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),k0=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new r_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-c<h:c-f<h;p||(c=f-(d?h:-h));var v=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);p?(r.moveTo(v*o+i,g*o+a),r.arc(v*u+i,g*u+a,l,-Math.PI+c,c,!d)):r.moveTo(v*s+i,g*s+a),r.arc(i,a,s,c,f,!d),r.arc(m*u+i,y*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(He);function n_e(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return o0(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,p=(d+h)/2,v=u.startAngle,g=u.endAngle,m=(v+g)/2,y=r?Math.abs(d-h)/2:0,x=Math.cos,S=Math.sin,b=c+d*x(v),_=f+d*S(v),w="left",C="top";switch(s){case"startArc":b=c+(h-l)*x(m),_=f+(h-l)*S(m),w="center",C="top";break;case"insideStartArc":b=c+(h+l)*x(m),_=f+(h+l)*S(m),w="center",C="bottom";break;case"startAngle":b=c+p*x(v)+sm(v,l+y,!1),_=f+p*S(v)+lm(v,l+y,!1),w="right",C="middle";break;case"insideStartAngle":b=c+p*x(v)+sm(v,-l+y,!1),_=f+p*S(v)+lm(v,-l+y,!1),w="left",C="middle";break;case"middle":b=c+p*x(m),_=f+p*S(m),w="center",C="middle";break;case"endArc":b=c+(d+l)*x(m),_=f+(d+l)*S(m),w="center",C="bottom";break;case"insideEndArc":b=c+(d-l)*x(m),_=f+(d-l)*S(m),w="center",C="top";break;case"endAngle":b=c+p*x(g)+sm(g,l+y,!0),_=f+p*S(g)+lm(g,l+y,!0),w="left",C="middle";break;case"insideEndAngle":b=c+p*x(g)+sm(g,-l+y,!0),_=f+p*S(g)+lm(g,-l+y,!0),w="right",C="middle";break;default:return o0(n,i,a)}return n=n||{},n.x=b,n.y=_,n.align=w,n.verticalAlign=C,n}}function i_e(e,t,r,n){if(et(n)){e.setTextConfig({rotation:n});return}else if(Y(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function sm(e,t,r){return t*Math.sin(e)*(r?-1:1)}function lm(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Jl(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:q(n,function(a){return ea(a,i)})}}var yb=Math.max,xb=Math.min;function a_e(e,t){var r=e.getArea&&e.getArea();if(Vu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var o_e=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Us(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=s_e(r,u);h&&this._enableRealtimeSort(h,s,i);var p=r.get("clip",!0)||h,v=a_e(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),x=y.get("borderRadius")||0,S=[],b=this._backgroundEls,_=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function C(M){var k=um[u.type](s,M),I=p_e(u,f,k);return I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",x):I.setShape("cornerRadius",x),S[M]=I,I}s.diff(l).add(function(M){var k=s.getItemModel(M),I=um[u.type](s,M,k);if(m&&C(M),!(!s.hasValue(M)||!iz[u.type](I))){var P=!1;p&&(P=ez[u.type](v,I));var E=tz[u.type](r,s,M,I,f,d,c.model,!1,g);h&&(E.forceLabelAnimation=!0),az(E,s,M,k,I,r,f,u.type==="polar"),_?E.attr({shape:I}):h?rz(h,d,E,I,M,f,!1,!1):Et(E,{shape:I},r,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=P}}).update(function(M,k){var I=s.getItemModel(M),P=um[u.type](s,M,I);if(m){var E=void 0;b.length===0?E=C(k):(E=b[k],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",x):E.setShape("cornerRadius",x),S[M]=E);var z=um[u.type](s,M),$=b8(f,z,u);rt(E,{shape:$},d,M)}var O=l.getItemGraphicEl(k);if(!s.hasValue(M)||!iz[u.type](P)){o.remove(O);return}var V=!1;if(p&&(V=ez[u.type](v,P),V&&o.remove(O)),O?ta(O):O=tz[u.type](r,s,M,P,f,d,c.model,!!O,g),h&&(O.forceLabelAnimation=!0),w){var L=O.getTextContent();if(L){var G=Zf(L);G.prevValue!=null&&(G.prevValue=G.value)}}else az(O,s,M,I,P,r,f,u.type==="polar");_?O.attr({shape:P}):h?rz(h,d,O,P,M,f,!0,w):rt(O,{shape:P},r,M,null),s.setItemGraphicEl(M,O),O.ignore=V,o.add(O)}).remove(function(M){var k=l.getItemGraphicEl(M);k&&Fp(k,r,M)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Ae);T.removeAll();for(var A=0;A<S.length;++A)T.add(S[A]);o.add(T),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),sz(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),sz(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Vv(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:q(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Fp(a,r,ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(xt),ez={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=yb(t.x,e.x),s=xb(t.x+t.width,i),l=yb(t.y,e.y),u=xb(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=xb(t.r,e.r),a=yb(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},tz={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new qe({shape:j({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?k0:dn,c=new u({shape:n,z2:1});c.name="item";var f=_8(i);if(c.calculateTextPosition=n_e(f,{isRoundCap:u===k0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?rt:Et)(c,{shape:p},a)}return c}};function s_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function rz(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?rt:Et)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?rt:Et)(r,{shape:u},c,i)}function nz(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var l_e=["x","y","width","height"],u_e=["cx","cy","r","startAngle","endAngle"],iz={cartesian2d:function(e){return!nz(e,l_e)},polar:function(e){return!nz(e,u_e)}},um={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?f_e(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function c_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function _8(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function az(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Jl(n.getModel("itemStyle"),c,!0);j(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Pf(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,i_e(e,g==="outside"?h:g,_8(o),n.get(["label","rotate"]))}$H(v,p,a.getRawValue(r),function(y){return d8(t,y)});var m=n.getModel(["emphasis"]);Wt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),c_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function f_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var d_e=function(){function e(){}return e}(),oz=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new d_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(He);function sz(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new oz({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new oz({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),ke(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",lz),f.on("mousemove",lz)),r&&r.push(f)}var lz=Hk(function(e){var t=this,r=h_e(t,e.offsetX,e.offsetY);ke(t).dataIndex=r>=0?r:null},30,!1);function h_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function b8(e,t,r){if(Vu(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function p_e(e,t,r){var n=e.type==="polar"?dn:qe;return new n({shape:b8(t,r,e),silent:!0,z2:0})}function v_e(e){e.registerChartView(o_e),e.registerSeriesModel(t_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,De(Mj,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kj("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,S8("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var uz=Math.PI*2,cm=Math.PI/180;function w8(e,t){return fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function C8(e,t){var r=w8(e,t),n=e.get("center"),i=e.get("radius");Y(i)||(i=[0,i]);var a=J(r.width,t.getWidth()),o=J(r.height,t.getHeight()),s=Math.min(a,o),l=J(i[0],s/2),u=J(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Y(n)||(n=[n,n]),c=J(n[0],a)+r.x,f=J(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function g_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=w8(n,r),s=C8(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*cm,h=n.get("endAngle"),p=n.get("padAngle")*cm;h=h==="auto"?d-uz:-h*cm;var v=n.get("minAngle")*cm,g=v+p,m=0;i.each(a,function($){!isNaN($)&&m++});var y=i.getSum(a),x=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),_=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var C=S?1:-1,T=[d,h],A=C*p/2;mk(T,!S),d=T[0],h=T[1];var M=T8(n);M.startAngle=d,M.endAngle=h,M.clockwise=S;var k=Math.abs(h-d),I=k,P=0,E=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function($,O){var V;if(isNaN($)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?V=y===0&&_?x:$*x:V=k/m,V<g?(V=g,I-=g):P+=$;var L=E+C*V,G=0,W=0;p>V?(G=E+C*V/2,W=G):(G=E+A,W=L-A),i.setItemLayout(O,{angle:V,startAngle:G,endAngle:W,clockwise:S,cx:l,cy:u,r0:f,r:b?ct($,w,[f,c]):c}),E=L}),I<uz&&m)if(I<=.001){var z=k/m;i.each(a,function($,O){if(!isNaN($)){var V=i.getItemLayout(O);V.angle=z;var L=0,G=0;z<p?(L=d+C*(O+1/2)*z,G=L):(L=d+C*O*z+A,G=d+C*(O+1)*z-A),V.startAngle=L,V.endAngle=G}})}else x=I/P,E=d,i.each(a,function($,O){if(!isNaN($)){var V=i.getItemLayout(O),L=V.angle===g?g:$*x,G=0,W=0;L<p?(G=E+C*L/2,W=G):(G=E+A,W=E+C*L-A),V.startAngle=G,V.endAngle=W,E+=C*L}})})}var T8=Ze();function Gv(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var m_e=Math.PI/180;function cz(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(v){for(var g=v.rB,m=g*g,y=0;y<v.list.length;y++){var x=v.list[y],S=Math.abs(x.label.y-r),b=n+x.len,_=b*b,w=Math.sqrt((1-Math.abs(S*S/m))*_),C=t+(w+x.len2)*i,T=C-x.label.x,A=x.targetTextWidth-T*i;A8(x,A,!0),x.label.x=C}}function f(v){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var x=v[y],S=x.label.y>r?m:g,b=Math.abs(x.label.y-r);if(b>=S.maxY){var _=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(_)<w?Math.sqrt(b*b/(1-_*_/w/w)):w;S.rB=C,S.maxY=b}S.list.push(x)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var p=e[h].label.x-u;e[h].linePoints[1][0]+=p,e[h].label.x=u}qj(e,l,l+o)&&f(e)}function y_e(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;Sb(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var p=e[d];if(!Sb(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<t?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+i-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?g=c-o-p.bleedMargin:g=o+i-f-p.bleedMargin:h.x<t?g=h.x-o-p.bleedMargin:g=o+i-h.x-p.bleedMargin,p.targetTextWidth=g,A8(p,g)}}cz(u,t,r,n,1,i,a,o,s,f),cz(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var p=e[d];if(!Sb(p)&&p.linePoints){var h=p.label,v=p.linePoints,m=p.labelAlignTo==="edge",y=h.style.padding,x=y?y[1]+y[3]:0,S=h.style.backgroundColor?0:x,b=p.rect.width+S,_=v[1][0]-v[2][0];m?h.x<t?v[2][0]=o+p.edgeDistance+b+p.labelDistance:v[2][0]=o+i-p.edgeDistance-b-p.labelDistance:(h.x<t?v[2][0]=h.x+p.labelDistance:v[2][0]=h.x-p.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=h.y}}}function A8(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,p=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function Sb(e){return e.position==="center"}function x_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*m_e,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(_){_.ignore=!0}function p(_){if(!_.ignore)return!0;for(var w in _.states)if(_.states[w].ignore===!1)return!0;return!1}t.each(function(_){var w=t.getItemGraphicEl(_),C=w.shape,T=w.getTextContent(),A=w.getTextGuideLine(),M=t.getItemModel(_),k=M.getModel("label"),I=k.get("position")||M.get(["emphasis","label","position"]),P=k.get("distanceToLabelLine"),E=k.get("alignTo"),z=J(k.get("edgeDistance"),u),$=k.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=J(V,u);var L=O.get("length2");if(L=J(L,u),Math.abs(C.endAngle-C.startAngle)<o){D(T.states,h),T.ignore=!0,A&&(D(A.states,h),A.ignore=!0);return}if(p(T)){var G=(C.startAngle+C.endAngle)/2,W=Math.cos(G),B=Math.sin(G),X,te,U,re;n=C.cx,i=C.cy;var Q=I==="inside"||I==="inner";if(I==="center")X=C.cx,te=C.cy,re="center";else{var ae=(Q?(C.r+C.r0)/2*W:C.r*W)+n,se=(Q?(C.r+C.r0)/2*B:C.r*B)+i;if(X=ae+W*3,te=se+B*3,!Q){var K=ae+W*(V+l-C.r),ee=se+B*(V+l-C.r),me=K+(W<0?-1:1)*L,ve=ee;E==="edge"?X=W<0?c+z:c+u-z:X=me+(W<0?-P:P),te=ve,U=[[ae,se],[K,ee],[me,ve]]}re=Q?"center":E==="edge"?W>0?"right":"left":W>0?"left":"right"}var Le=Math.PI,tt=0,Ke=k.get("rotate");if(et(Ke))tt=Ke*(Le/180);else if(I==="center")tt=0;else if(Ke==="radial"||Ke===!0){var ht=W<0?-G+Le:-G;tt=ht}else if(Ke==="tangential"&&I!=="outside"&&I!=="outer"){var pt=Math.atan2(W,B);pt<0&&(pt=Le*2+pt);var Bt=B>0;Bt&&(pt=Le+pt),tt=pt-Le}if(a=!!tt,T.x=X,T.y=te,T.rotation=tt,T.setStyle({verticalAlign:"middle"}),Q){T.setStyle({align:re});var jt=T.states.select;jt&&(jt.x+=T.x,jt.y+=T.y)}else{var nt=T.getBoundingRect().clone();nt.applyTransform(T.getComputedTransform());var kr=(T.style.margin||0)+2.1;nt.y-=kr/2,nt.height+=kr,r.push({label:T,labelLine:A,position:I,len:V,len2:L,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Ee(W,B),linePoints:U,textAlign:re,labelDistance:P,labelAlignTo:E,edgeDistance:z,bleedMargin:$,rect:nt,unconstrainedWidth:nt.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:Q})}}),!a&&e.get("avoidLabelOverlap")&&y_e(r,n,i,l,u,d,c,f);for(var v=0;v<r.length;v++){var g=r[v],m=g.label,y=g.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),x&&(D(m.states,h),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var b=g.linePoints;x||!b?(D(y.states,h),y.ignore=!0):(Uj(b,g.minTurnAngle),Gxe(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new Ee(b[0][0],b[0][1])})}}}var S_e=function(e){H(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Je;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=j(Jl(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Et(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Et(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Et(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,rt(o,{shape:{endAngle:c.endAngle}},s,n))}else ta(o),rt(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),zr(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(h)*p,g=Math.sin(h)*p,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=j({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Jl(u.getModel("itemStyle"),c)),j(o.ensureState("select"),{x:v,y:g,shape:Jl(l.getModel(["select","itemStyle"]),c)}),j(o.ensureState("blur"),{shape:Jl(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&j(y.ensureState("select"),{x:v,y:g}),j(x.ensureState("select"),{x:v,y:g}),Wt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Br(a,yr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new mn,this.setTextGuideLine(h)),nI(this,iI(o),{stroke:u,opacity:La(s.get(["lineStyle","opacity"]),c,1)})}},t}(dn),__e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=T8(r),h=new dn({shape:j(C8(r,i),d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(p){var v=new S_e(o,p,u);o.setItemGraphicEl(p,v),l.add(v)}).update(function(p,v){var g=s.getItemGraphicEl(v);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var v=s.getItemGraphicEl(p);Fp(v,r,p)}).execute(),x_e(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(xt);function ad(e,t,r){t=Y(t)&&{coordDimensions:t}||j({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Nv(n,t).dimensions,a=new ln(i,e);return a.initData(n,r),a}var Hv=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),b_e=Ze(),w_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hv(le(this.getData,this),le(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ad(this,{coordDimensions:["value"],encodeDefaulter:De(Ok,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=b_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=lve(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){bu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Mt);function C_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(et(o)&&!isNaN(o)&&o<0)})}}}function T_e(e){e.registerChartView(__e),e.registerSeriesModel(w_e),YW("pie",e.registerAction),e.registerLayout(De(g_e,"pie")),e.registerProcessor(Gv("pie")),e.registerProcessor(C_e("pie"))}var A_e=function(e){H(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,n){return Lo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Mt),M8=4,M_e=function(){function e(){}return e}(),k_e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new M_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<M8,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],h=i[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var h=i[d++],p=i[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(p,u),f=Math.max(p,f)}r=this._rect=new Ne(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(He),I_e=function(){function e(){this.group=new Ae}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new k_e({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=ar(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<M8;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=ke(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),D_e=function(e){H(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 a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=$v("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new I_e:new Fv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(xt),P_e=function(e){H(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}(Ue),t2=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ir).models[0]},t.type="cartesian2dAxis",t}(Ue);or(t2,zv);var k8={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)"]}}},R_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},k8),fI=Oe({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}}},k8),E_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fI),L_e=_e({logBase:10},fI);const I8={category:R_e,value:fI,time:E_e,log:L_e};var O_e={value:1,category:1,time:1,log:1};function Rf(e,t,r,n){D(O_e,function(i,a){var o=Oe(Oe({},I8[a],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=$p(this),h=d?Jf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=fz(c),d&&Ns(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=XT.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",fz)}function fz(e){return e.type||(e.data?"category":"value")}var N_e=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 q(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(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}(),r2=["x","y"];function dz(e){return e.type==="interval"||e.type==="time"}var z_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=r2,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dz(r)||!dz(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=jf([],p)}}},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),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Or(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Or(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.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(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new Ne(a,o,s,l)},t}(N_e),B_e=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"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}(ia);function n2(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),wr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function hz(e){return e.get("coordinateSystem")==="cartesian2d"}function pz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,ir).models[0];t[n]=a}),t}var _b=Math.log;function D8(e,t,r){var n=Mo.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=Ej(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=_b(e.base);u=[_b(u[0])/d,_b(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=ob(p),g=u[0]+p*o;else if(f)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=ob(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=ob(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=Yt(g-y),v<0&&u[0]>=0?(v=0,g=Yt(y)):g>0&&u[1]<=0&&(g=0,v=-Yt(y))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var F_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=r2,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(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;qT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Df(v,p),qT(v)&&(s=h))}c.length&&(s||(s=c.pop(),Df(s.scale,s.model)),D(c,function(g){D8(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){vz(n,"y",o,a)}),D(n.y,function(o){vz(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=fr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=xxe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),V_e(u,c?o.x:o.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]}be(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[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",ir).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",ir).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ze(o,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(a){var u=a.coordinateSystem;u===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,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(c,f){D(s.y,function(d,h){var p="x"+f+"y"+h,v=new z_e(p);v.master=i,v.model=t,i._coordsMap[p]=v,i._coordsList.push(v),v.addAxis(c),v.addAxis(d)})});function u(c){return function(f,d){if(bb(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new B_e(c,$x(f),[0,0],f.get("type"),h),v=p.type==="category";p.onBand=v&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=a,p.index=d,a._axesList.push(p),s[c][d]=p,l[c]++}}}},e.prototype._updateScale=function(t,r){D(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(hz(i)){var a=pz(i),o=a.xAxisModel,s=a.yAxisModel;if(!bb(o,r)||!bb(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){D(C0(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ze(r,a)<0&&r.push(a),ze(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(hz(i)){var a=pz(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=r2,e}();function bb(e,t){return e.getCoordSysModel()===t}function vz(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gz(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&gz(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function gz(e){return e&&e.type!=="category"&&e.type!=="time"&&yxe(e)}function V_e(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 ds=Math.PI,un=function(){function e(t,r){this.group=new Ae,this.opt=r,this.axisModel=t,_e(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ae({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!mz[t]},e.prototype.add=function(t){mz[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=U6(r-t),a,o;return Op(i)?(o=n>0?"top":"bottom",a="center"):Op(i-ds)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ds?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},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}(),mz={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Or(s,s,o),Or(l,l,o));var c=j({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new vr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Mf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);ne(d)&&(d=[d,d]),(ne(h)||et(h))&&(h=[h,h]);var p=Bu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var x=ar(d[y],-v/2,-g/2,v,g,c.stroke,!0),S=m.r+m.offset,b=u?l:s;x.attr({rotation:m.rotate,x:b[0]+S*Math.cos(e.rotation),y:b[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=H_e(r,n,t,e),a=j_e(r,n,t,e);if(G_e(t,a,i),W_e(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Yj(q(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zj(o)}},axisName:function(e,t,r,n){var i=wr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,xz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*ds/180);var p;xz(a)?d=un.innerTextLayout(e.rotation,h??e.rotation,o):(d=$_e(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=wr(e.nameTruncateMaxWidth,g.maxWidth,p),x=new Je({x:f[0],y:f[1],rotation:d.rotation,silent:un.isLabelSilent(t),style:Tt(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(qf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=un.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ke(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function $_e(e,t,r,n){var i=U6(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Op(i-ds/2)?(o=l?"bottom":"top",a="center"):Op(i-ds*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ds*1.5&&i>ds/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function G_e(e,t,r){if(!Lj(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(ri(a),ri(u)):yz(a,o)&&(n?(ri(o),ri(c)):(ri(a),ri(u))),i===!1?(ri(s),ri(f)):yz(l,s)&&(i?(ri(l),ri(d)):(ri(s),ri(f)))}}function ri(e){e&&(e.ignore=!0)}function yz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=fx([]);return Nu(i,i,-e.rotation),r.applyTransform(co([],i,e.getLocalTransform())),n.applyTransform(co([],i,t.getLocalTransform())),r.intersect(n)}}function xz(e){return e==="middle"||e==="center"}function P8(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Or(o,o,t),Or(s,s,t));var c=new vr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Mf(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function H_e(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=P8(u,t.transform,l,_e(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function W_e(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=_e(s.getLineStyle(),_e(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=P8(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function j_e(e,t,r,n){var i=r.axis,a=wr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(wr(n.labelRotate,o.get("rotate"))||0)*ds/180,c=un.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=un.isLabelSilent(r),p=r.get("triggerEvent");return D(l,function(v,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,y=v.formattedLabel,x=v.rawLabel,S=o;if(f&&f[m]){var b=f[m];be(b)&&b.textStyle&&(S=new st(b.textStyle,o,r.ecModel))}var _=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(m),C=S.getShallow("align",!0)||c.textAlign,T=Ie(S.getShallow("alignMinLabel",!0),C),A=Ie(S.getShallow("alignMaxLabel",!0),C),M=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,k=Ie(S.getShallow("verticalAlignMinLabel",!0),M),I=Ie(S.getShallow("verticalAlignMaxLabel",!0),M),P=new Je({x:w,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(v.level||0),style:Tt(S,{text:y,align:g===0?T:g===l.length-1?A:C,verticalAlign:g===0?k:g===l.length-1?I:M,fill:Se(_)?_(i.type==="category"?x:i.type==="value"?m+"":m,g):_})});if(P.anid="label_"+m,p){var E=un.makeAxisEventDataBase(r);E.targetType="axisLabel",E.value=x,E.tickIndex=g,i.type==="category"&&(E.dataIndex=m),ke(P).eventData=E}t.add(P),P.updateTransform(),d.push(P),e.add(P),P.decomposeTransform()}),d}}function U_e(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Y_e(r,e,t),r.seriesInvolved&&q_e(r,e),r}function Y_e(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zp(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(D(s.getAxes(),De(v,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&D(p.baseAxes,De(v,h?"cross":!0,d)),h&&D(p.otherAxes,De(v,"cross",!1))}function v(g,m,y){var x=y.model.getModel("axisPointer",i),S=x.get("show");if(!(!S||S==="auto"&&!g&&!i2(x))){m==null&&(m=x.get("triggerTooltip")),x=g?X_e(y,f,i,t,g,m):x;var b=x.get("snap"),_=x.get("triggerEmphasis"),w=Zp(y.model),C=m||b||y.type==="category",T=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:_,involveSeries:C,snap:b,useHandle:i2(x),seriesModels:[],linkGroup:null};u[w]=T,e.seriesInvolved=e.seriesInvolved||C;var A=Z_e(a,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=T,M.mapper=a[A].mapper,T.linkGroup=M}}}})}function X_e(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(d){l[d]=Ce(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&_e(u,f.textStyle)}}return e.model.getModel("axisPointer",new st(l,r,n))}function q_e(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[Zp(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Z_e(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(wb(a[n+"AxisId"],r.id)||wb(a[n+"AxisIndex"],r.componentIndex)||wb(a[n+"AxisName"],r.name))return i}}function wb(e,t){return e==="all"||Y(e)&&ze(e,t)>=0||e===t}function K_e(e){var t=dI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=i2(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function dI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Zp(e)]}function Q_e(e){var t=dI(e);return t&&t.axisPointerModel}function i2(e){return!!e.get(["handle","show"])}function Zp(e){return e.type+"||"+e.id}var Sz={},$u=function(e){H(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,a){this.axisPointerClass&&K_e(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){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 a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=Q_e(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Sz[r]=n},t.getAxisPointerClass=function(r){return r&&Sz[r]},t.type="axis",t}(zt),a2=Ze();function R8(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=a2(e).splitAreaColors,d=de(),h=0;if(f)for(var p=0;p<u.length;p++){var v=f.get(u[p].tickValue);if(v!=null){h=(v+(c-1)*p)%c;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Y(s)?s:[s];for(var p=1;p<u.length;p++){var y=i.toGlobalCoord(u[p].coord),x=void 0,S=void 0,b=void 0,_=void 0;i.isHorizontal()?(x=g,S=l.y,b=y-x,_=l.height,g=x+b):(x=l.x,S=g,b=l.width,_=y-S,g=S+_);var w=u[p-1].tickValue;w!=null&&d.set(w,h),t.add(new qe({anid:w!=null?"area_"+w:null,shape:{x,y:S,width:b,height:_},style:_e({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}a2(e).splitAreaColors=d}}}function E8(e){a2(e).splitAreaColors=null}var J_e=["axisLine","axisTickLabel","axisName"],ebe=["splitArea","splitLine","minorSplitLine"],L8=function(e){H(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,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=n2(s,r),u=new un(r,j({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(qT(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));D(J_e,u.add,u),this._axisGroup.add(u.getGroup()),D(ebe,function(f){r.get([f,"show"])&&tbe[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Rv(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){E8(this)},t.type="cartesianAxis",t}($u),tbe={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=Y(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],p=o.getLineStyle(),v=0;v<f.length;v++){var g=i.toGlobalCoord(f[v].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,y=f[v].tickValue,x=new vr({anid:y!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:_e({stroke:s[m]},p),silent:!0});Mf(x.shape,p.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var v=i.toGlobalCoord(u[h][p].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var g=new vr({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Mf(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){R8(e,t,r,n)}},O8=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(L8),rbe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=O8.type,r}return t.type="yAxis",t}(L8),nbe=function(e){H(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 qe({shape:r.coordinateSystem.getRect(),style:_e({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(zt),_z={offset:0};function N8(e){e.registerComponentView(nbe),e.registerComponentModel(P_e),e.registerCoordinateSystem("cartesian2d",F_e),Rf(e,"x",t2,_z),Rf(e,"y",t2,_z),e.registerComponentView(O8),e.registerComponentView(rbe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function ibe(e){Fe(N8),e.registerSeriesModel(A_e),e.registerChartView(D_e),e.registerLayout($v("scatter"))}function abe(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();D(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=bz(c)?c:wz(i)})}),r.each(function(o){var s=Fhe(n[o],function(l){return bz(l)})||wz(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function bz(e){return!isNaN(e[0])&&!isNaN(e[1])}function wz(e){return[e.cx,e.cy]}function obe(e){var t=e.polar;if(t){Y(t)||(t=[t]);var r=[];D(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Y(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}D(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var sbe=function(e){H(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 a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,h){var p=d.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var v=nd(d.getItemVisual(h,"symbolSize")),g=ar(p,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,h,p,v,g,m){p.removeAll();for(var y=0;y<h.length-1;y++){var x=u(v,g);x&&(x.__dimIdx=y,d[y]?(x.setPosition(d[y]),zu[m?"initProps":"updateProps"](x,{x:h[y][0],y:h[y][1]},r,g)):x.setPosition(h[y]),p.add(x))}}function f(d){return q(d,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var p=new hn,v=new mn,g={shape:{points:h}};p.shape.points=f(h),v.shape.points=f(h),Et(p,g,r,d),Et(v,g,r,d);var m=new Ae,y=new Ae;m.add(v),m.add(p),m.add(y),c(v.shape.points,h,y,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var p=l.getItemGraphicEl(h),v=p.childAt(0),g=p.childAt(1),m=p.childAt(2),y={shape:{points:s.getItemLayout(d)}};y.shape.points&&(c(v.shape.points,y.shape.points,m,s,d,!1),ta(g),ta(v),rt(v,y,r),rt(g,y,r),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var p=s.getItemModel(h),v=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y=s.getItemVisual(h,"style"),x=y.fill;o.add(d),v.useStyle(_e(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),zr(v,p,"lineStyle"),zr(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(C){var T=p.getModel([C,"areaStyle"]),A=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(C).ignore=A&&b}),g.useStyle(_e(S.getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var _=p.getModel("emphasis"),w=_.getModel("itemStyle").getItemStyle();m.eachChild(function(C){if(C instanceof Mr){var T=C.style;C.useStyle(j({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else C.useStyle(y),C.setColor(x),C.style.strokeNoScale=!0;var A=C.ensureState("emphasis");A.style=Ce(w);var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),h);(M==null||isNaN(M))&&(M=""),Br(C,yr(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:x,defaultOpacity:y.opacity})}),Wt(d,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(xt),lbe=function(e){H(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.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hv(le(this.getData,this),le(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return ad(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=OW(this,r);return xr("section",{header:u,sortBlocks:!0,blocks:q(s,function(f){var d=a.get(a.mapDimension(f.dim),r);return xr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(q(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Mt),Gd=I8.value;function fm(e,t){return _e({show:t},e)}var ube=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=q(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=_e({color:p.color},l));var g=Oe(Ce(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(ne(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else Se(c)&&(g.name=c(g.name,g));var y=new st(g,null,this.ecModel);return or(y,zv.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},Gd.axisLine),axisLabel:fm(Gd.axisLabel,!1),axisTick:fm(Gd.axisTick,!1),splitLine:fm(Gd.splitLine,!0),splitArea:fm(Gd.splitArea,!0),indicator:[]},t}(Ue),cbe=["axisLine","axisTickLabel","axisName"],fbe=function(e){H(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 a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=q(i,function(o){var s=o.model.get("showName")?o.name:"",l=new un(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(cbe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Y(d)?d:[d],v=Y(h)?h:[h],g=[],m=[];function y(E,z,$){var O=$%z.length;return E[O]=E[O]||[],O}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,b=n.cy,_=0;_<x.length;_++){if(c){var w=y(g,p,_);g[w].push(new Eo({shape:{cx:S,cy:b,r:x[_].coord}}))}if(f&&_<x.length-1){var w=y(m,v,_);m[w].push(new _x({shape:{cx:S,cy:b,r0:x[_].coord,r:x[_+1].coord}}))}}else for(var C,T=q(i,function(E,z){var $=E.getTicksCoords();return C=C==null?$.length-1:Math.min($.length-1,C),q($,function(O){return n.coordToPoint(O.coord,z)})}),A=[],_=0;_<=C;_++){for(var M=[],k=0;k<i.length;k++)M.push(T[k][_]);if(M[0]&&M.push(M[0].slice()),c){var w=y(g,p,_);g[w].push(new mn({shape:{points:M}}))}if(f&&A){var w=y(m,v,_-1);m[w].push(new hn({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();D(m,function(E,z){this.group.add(mi(E,{style:_e({stroke:"none",fill:v[z%v.length]},P),silent:!0}))},this),D(g,function(E,z){this.group.add(mi(E,{style:_e({fill:"none",stroke:p[z%p.length]},I),silent:!0}))},this)},t.type="radar",t}(zt),dbe=function(e){H(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(ia),hbe=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=q(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new dbe(o,new Mo);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=J(n[0],i),this.cy=J(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(ne(s)||et(s))&&(s=[0,s]),this.r0=J(s[0],o),this.r=J(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;D(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();D(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new Mo;o.setExtent(0,a),o.setInterval(1),D(n,function(s,l){D8(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();function pbe(e){e.registerCoordinateSystem("radar",hbe),e.registerComponentModel(ube),e.registerComponentView(fbe),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function vbe(e){Fe(pbe),e.registerChartView(sbe),e.registerSeriesModel(lbe),e.registerLayout(abe),e.registerProcessor(Gv("radar")),e.registerPreprocessor(obe)}var Cz="\0_ec_interaction_mutex";function gbe(e,t,r){var n=hI(e);n[t]=r}function mbe(e,t,r){var n=hI(e),i=n[t];i===r&&(n[t]=null)}function Tz(e,t){return!!hI(e)[t]}function hI(e){return e[Cz]||(e[Cz]={})}qa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},er);var Wv=function(e){H(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=le(n._mousedownHandler,n),a=le(n._mousemoveHandler,n),o=le(n._mouseupHandler,n),s=le(n._mousewheelHandler,n),l=le(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=_e(Ce(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!QE(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!oy("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||Tz(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&bo(r.event),z8(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){QE(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=oy("zoomOnMouseWheel",r,this._opt),i=oy("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Cb(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);Cb(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Tz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Cb(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Di);function Cb(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(bo(n.event),z8(e,t,r,n,i))}function z8(e,t,r,n,i){i.isAvailableBehavior=le(oy,null,r,n),e.trigger(t,i)}function oy(e,t,r){var n=r[e];return!e||n&&(!ne(n)||t.event[n+"Key"])}function pI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function vI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var ybe={axisPointer:1,tooltip:1,brush:1};function Hx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!ybe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function B8(e){if(ne(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var Tb,I0={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Az=Ye(I0),D0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Mz=Ye(D0),xbe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=B8(t);this._defsUsePending=[];var i=new Ae;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),zn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;bbe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Wx(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=V8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new qe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=Tb[s];if(c&&fe(Tb,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=kz[s];if(h&&fe(kz,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Af({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ni(r,n),zn(t,n,this._defsUsePending,!1,!1),Sbe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){Tb={g:function(t,r){var n=new Ae;return ni(r,n),zn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new qe;return ni(r,n),zn(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Eo;return ni(r,n),zn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new vr;return ni(r,n),zn(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new Ck;return ni(r,n),zn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Pz(n));var a=new hn({shape:{points:i||[]},silent:!0});return ni(r,a),zn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Pz(n));var a=new mn({shape:{points:i||[]},silent:!0});return ni(r,a),zn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Mr;return ni(r,n),zn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Ae;return ni(r,s),zn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ae;return ni(r,s),zn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=MH(n);return ni(r,i),zn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),kz={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Pv(t,r,n,i);return Iz(e,a),Dz(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new EH(t,r,n);return Iz(e,i),Dz(e,i),i}};function Iz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Dz(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};F8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function ni(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),_e(t.__inheritedStyle,e.__inheritedStyle))}function Pz(e){for(var t=Wx(e),r=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([i,a])}return r}function zn(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(Tbe(e,t),F8(e,o,s),n||Abe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Rz(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=Rz(a,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=q(Wx(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function Sbe(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var _be=/^url\(\s*#(.*?)\)/;function Rz(e,t,r,n){var i=r&&r.match(_be);if(i){var a=Wi(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function bbe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var wbe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Wx(e){return e.match(wbe)||[]}var Cbe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ab=Math.PI/180;function Tbe(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(Cbe,function(f,d,h){return n.push(d,h),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Wx(o);switch(i=i||Yn(),s){case"translate":$a(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":lk(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Nu(i,i,-parseFloat(l[0])*Ab,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ab);co(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Ab);co(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var Ez=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F8(e,t,r){var n=e.getAttribute("style");if(n){Ez.lastIndex=0;for(var i;(i=Ez.exec(n))!=null;){var a=i[1],o=fe(I0,a)?I0[a]:null;o&&(t[o]=i[2]);var s=fe(D0,a)?D0[a]:null;s&&(r[s]=i[2])}}}function Abe(e,t,r){for(var n=0;n<Az.length;n++){var i=Az[n],a=e.getAttribute(i);a!=null&&(t[I0[i]]=a)}for(var n=0;n<Mz.length;n++){var i=Mz[n],a=e.getAttribute(i);a!=null&&(r[D0[i]]=a)}}function V8(e,t){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function Mbe(e,t){var r=new xbe;return r.parse(e,t)}var kbe=de(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Ibe=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=de(),this._freedGraphics=[],this._mapName=t,this._parsedXML=B8(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=Pbe(t.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&Mbe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,cn(n!=null)}catch(g){throw new Error(`Invalid svg format
|
205
|
-
`+g.message)}var i=new Ae;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=n.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Ne(u,c,f,d)}if(s){var p=V8(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new qe({shape:l.plain()}));var v=[];return D(r.named,function(g){kbe.get(g.svgNodeTagLower)!=null&&(v.push(g),Dbe(g.el))}),{root:i,boundingRect:l,named:v}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function Dbe(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function Pbe(e){var t=[],r=de();return D(e,function(n){if(n.namedFrom==null){var i=new Txe(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}var o2=[126,25],Lz="南海诸岛",Ml=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var xl=0;xl<Ml.length;xl++)for(var fc=0;fc<Ml[xl].length;fc++)Ml[xl][fc][0]/=10.5,Ml[xl][fc][1]/=-10.5/.75,Ml[xl][fc][0]+=o2[0],Ml[xl][fc][1]+=o2[1];function Rbe(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===Lz)return;t.push(new Nj(Lz,q(Ml,function(n){return{type:"polygon",exterior:n}}),o2))}}var Ebe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Lbe(e,t){if(e==="china"){var r=Ebe[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var Obe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Nbe(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Obe[0]})}var zbe="name",Bbe=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=de(),this._mapName=t,this._specialAreas=n,this._geoJSON=Vbe(r)}return e.prototype.load=function(t,r){r=r||zbe;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:Fbe(i)})}var a=de(),o=[];return D(n.regions,function(s){var l=s.name;t&&fe(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Ne(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?Mxe(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
|
206
|
-
`+a.message)}return Rbe(r,i),D(i,function(a){var o=a.name;Lbe(r,a),Nbe(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Fbe(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function Vbe(e){return ne(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Hd=de();const ko={registerMap:function(e,t,r){if(t.svg){var n=new Ibe(e,t.svg);Hd.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new Bbe(e,i,r);Hd.set(e,n)}},getGeoResource:function(e){return Hd.get(e)},getMapForUser:function(e){var t=Hd.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Hd.get(e);if(n)return n.load(t,r)}};var gI=["rect","circle","line","ellipse","polygon","polyline","path"],$be=de(gI),Gbe=de(gI.concat(["g"])),Hbe=de(gI.concat(["g"])),$8=Ze();function dm(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function Oz(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var G8=function(){function e(t){var r=new Ae;this.uid=Kf("ec_map_draw"),this._controller=new Wv(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Ae),r.add(this._svgGroup=new Ae)}return e.prototype.draw=function(t,r,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,p=!u.childAt(0)||a;p?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):rt(c,h,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=de(),n=de(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],v);m&&p.push(m)}return p}function d(h){return{shape:{points:f(h)}}}i.removeAll(),D(t.geo.regions,function(h){var p=h.name,v=r.get(p),g=n.get(p)||{},m=g.dataIdx,y=g.regionModel;v||(v=r.set(p,new Ae),i.add(v),m=s?s.indexOfName(p):null,y=t.isGeo?o.getRegionModel(p):s?s.getItemModel(m):null,n.set(p,{dataIdx:m,regionModel:y}));var x=[],S=[];D(h.geometries,function(w){if(w.type==="polygon"){var C=[w.exterior].concat(w.interiors||[]);u&&(C=$z(C,u)),D(C,function(A){x.push(new hn(d(A)))})}else{var T=w.points;u&&(T=$z(T,u,!0)),D(T,function(A){S.push(new mn(d(A)))})}});var b=c(h.getCenter(),l&&l.project);function _(w,C){if(w.length){var T=new Tk({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});v.add(T),Nz(t,T,m,y),zz(t,T,p,y,o,m,b),C&&(Oz(T),D(T.states,Oz))}}_(x),_(S,!0)}),r.each(function(h,p){var v=n.get(p),g=v.dataIdx,m=v.regionModel;Bz(t,h,p,m,o,g),Fz(t,h,p,m,o),Vz(t,h,p,m,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var i=this._svgDispatcherMap=de(),a=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if($be.get(c)!=null&&f instanceof Ai&&Nz(t,f,d,h),f instanceof Ai&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(Hbe.get(c)!=null&&zz(t,f,s,h,l,d,null),Bz(t,f,s,h,l,d),Fz(t,f,s,h,l),Gbe.get(c)!=null)){var p=Vz(t,f,s,h,l);p==="self"&&(a=!0);var v=i.get(s)||i.set(s,[]);v.push(f)}},this),this._enableBlurEntireSVG(a,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Tu(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=ko.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=ko.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,pI(o,u.dx,u.dy),n.dispatchAction(j(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,vI(o,u.scale,u.originX,u.originY),n.dispatchAction(j(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!Hx(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=$8(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,i){var a=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},e}();function Nz(e,t,r,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=dm(i),u=dm(a),c=dm(s),f=dm(o),d=e.data;if(d){var h=d.getItemVisual(r,"style"),p=d.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=If(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Tu(t)}function zz(e,t,r,n,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?r:a,d=void 0;(!s||a>=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Br(t,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&($8(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Bz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Fz(e,t,r,n,i){e.data||qf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Vz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Wt(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Oge(t,i,r),o}function $z(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var Wbe=function(e){H(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,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new G8(i);o.add(s.group),s.draw(r,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,i){var a=r.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new Eo({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Yf+1)});if(!f){var h=r.mainSeries.getData(),p=a.getName(l),v=h.indexOfName(p),g=a.getItemModel(l),m=g.getModel("label"),y=h.getItemGraphicEl(v);Br(d,yr(g),{labelFetcher:{getFormattedLabel:function(x,S){return r.getFormattedLabel(v,S)}},defaultText:p}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(x){l0(d,x)}}o.add(d)}}})},t.type="map",t}(xt),jbe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=ad(this,{coordDimensions:["value"],encodeDefaulter:De(Ok,this)}),i=de(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=ko.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(c){var f=c.name;i.get(f)||a.push(f)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData(),o=this.getRawValue(r),s=a.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=a.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return xr("section",{header:u.join(", "),noHeader:!u.length,blocks:[xr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",i=ar(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return i.setStyle(r.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Mt);function Ube(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function Ybe(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),i=n?"o"+n.id:"i"+r.getMapType();(t[i]=t[i]||[]).push(r)}),D(t,function(r,n){for(var i=Ube(q(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),a=0;a<r.length;a++)r[a].originalData=r[a].getData();for(var a=0;a<r.length;a++)r[a].seriesGroup=r,r[a].needsDrawMap=a===0&&!r[a].getHostGeoModel(),r[a].setData(i.cloneShallow()),r[a].mainSeries=r[0]})}function Xbe(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var i={};D(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=i[f]||0,p=s.dataToPoint(d.getCenter());i[f]=h+1,l.setItemLayout(c,{point:p,offset:h})}})});var a=r.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var Gz=Or,jv=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new oo,n._rawTransformable=new oo,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new Ne(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new Ne(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ne(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[J(r[0],n.getWidth()),J(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Or([],a,r),i=Or([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),sk(this.transform||(this.transform=[]),n.transform||Yn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],jf(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new oo;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?Gz(i,r,a):en(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?Gz([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=Hz(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=Hz(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(oo);function Hz(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var qbe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},H8=["lng","lat"],W8=function(e){H(t,e);function t(r,n,i){var a=e.call(this,r)||this;a.dimensions=H8,a.type="geo",a._nameCoordMap=de(),a.map=n;var o=i.projection,s=ko.load(n,i.nameMap,i.nameProperty),l=ko.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=qbe[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return a.setBoundingRect(f.x,f.y,f.width,f.height),a.aspectScale=o?1:Ie(i.aspectScale,c.aspectScale),a._invertLongitute=o?!1:c.invertLongitute,a}return t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ne(r,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(r))return n[i]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,i){if(ne(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.projectedToPoint(r,n,i)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,i){return e.prototype.dataToPoint.call(this,r,n,i)},t.prototype.convertToPixel=function(r,n,i){var a=Wz(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=Wz(n);return a===this?a.pointToData(i):null},t}(jv);or(W8,jv);function Wz(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",ir).models[0]||{}).coordinateSystem:null}const jz=W8;function Uz(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],i=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(_,w,C,T){for(var A=C-_,M=T-w,k=0;k<=100;k++){var I=k/100,P=a.project([_+A*I,w+M*I]);ss(n,n,P),ls(i,i,P)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),p=t.getWidth(),v=t.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,y,x;d&&h&&(y=[J(d[0],p),J(d[1],v)],x=J(h,Math.min(p,v)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(x)&&(m=!0));var S;if(m)S={},g>1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var b=e.getBoxLayoutParams();b.aspect=g,S=fr(b,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Zbe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Kbe=function(){function e(){this.dimensions=H8}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new jz(l+s,l,j({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Uz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),D(a,function(o,s){var l=q(o,function(c){return c.get("nameMap")}),u=new jz(s,s,j({nameMap:nk(l)},i(o[0])));u.zoomLimit=wr.apply(null,q(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Uz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,Zbe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=de(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=ko.load(r,n,i);return D(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},e}(),j8=new Kbe,Qbe=function(e){H(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,i){var a=ko.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,i),bu(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=j8.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Va(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new st(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},de()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new st(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var i=this.getRegionModel(r),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:r};if(Se(a))return o.status=n,a(o);if(ne(a))return a.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Ue);function Yz(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function mI(e,t,r,n){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Yz(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(Yz(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Jbe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,i,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new G8(i));var o=this._mapDraw;o.draw(r,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,i)},t.prototype._handleRegionClick=function(r){var n;Zl(r.target,function(i){return(n=ke(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=ke(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(zt);function ewe(e,t,r){ko.registerMap(e,t,r)}function U8(e){e.registerCoordinateSystem("geo",j8),e.registerComponentModel(Qbe),e.registerComponentView(Jbe),e.registerImpl("registerMap",ewe),e.registerImpl("getMap",function(r){return ko.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[r](i.name);var u=l.coordinateSystem;D(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];D(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,i){var a=r.componentType||"series";n.eachComponent({mainType:a,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=mI(s,r,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function twe(e){Fe(U8),e.registerChartView(Wbe),e.registerSeriesModel(jbe),e.registerLayout(Xbe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ybe),YW("map",e.registerAction)}function rwe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function nwe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){owe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=swe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function iwe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Xz(e){return arguments.length?e:cwe}function vh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function awe(e,t){return fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function owe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function swe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Mb(s),a=kb(a),s&&a;){i=Mb(i),o=kb(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(uwe(lwe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!Mb(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!kb(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function Mb(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function kb(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function lwe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function uwe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function cwe(e,t){return e.parentNode===t.parentNode?1:2}var fwe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),dwe=function(e){H(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 fwe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=J(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;p<a-1;p++){var v=i[p];r.moveTo(v[0],v[1]),h[c]=v[c],r.lineTo(h[0],h[1])}},t}(He),hwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Ae,r}return t.prototype.init=function(r,n){this._controller=new Wv(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),this._updateController(r,n,i);var u=this._data;a.diff(u).add(function(c){qz(a,c)&&Zz(a,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!qz(a,c)){d&&Qz(u,f,d,s,r);return}Zz(a,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&Qz(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&a.push([+d.x,+d.y])});var o=[],s=[];yx(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new jv;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Hx(u,i,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){pI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){vI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(xt);function qz(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function Zz(e,t,r,n,i){var a=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,v=o.getLayout();a?(r=new Bv(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=p.x,r.y=p.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=v.rawX,r.__radialRawY=v.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,rt(r,{x:v.x,y:v.y},i);var g=r.getSymbolPath();if(i.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),x=m.children.length,S=void 0,b=void 0;if(v.x===y.x&&o.isExpand===!0&&m.children.length){var _={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};S=Math.atan2(_.y-y.y,_.x-y.x),S<0&&(S=Math.PI*2+S),b=_.x<y.x,b&&(S=S-Math.PI)}else S=Math.atan2(v.y-y.y,v.x-y.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=v.x<y.x,b&&(S=S-Math.PI)):(b=v.x>y.x,b||(S=S-Math.PI));var w=b?"left":"right",C=s.getModel("label"),T=C.get("rotate"),A=T*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:T==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),I=k==="relative"?Qy(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;I&&(ke(r).focus=I),pwe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Iv||l0(r.__edge,P)}})}function pwe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new Dv({shape:s2(c,f,d,i,i)})),rt(v,{shape:s2(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;y<g.length;y++){var x=g[y].getLayout();m.push([x.x,x.y])}v||(v=n.__edge=new dwe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),rt(v,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(_e({strokeNoScale:!0,fill:null},p)),zr(v,l,"lineStyle"),Tu(v),s.add(v))}function Kz(e,t,r,n,i){var a=t.tree.root,o=Y8(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=n.get("edgeShape"),p=n.get("layout"),v=n.get("orient"),g=n.get(["lineStyle","curveness"]);d&&(h==="curve"?Os(d,{shape:s2(p,v,g,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}):h==="polyline"&&n.get("layout")==="orthogonal"&&Os(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}))}}function Y8(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function Qz(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Y8(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Os(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){Kz(u,e,n,i,l)}),Kz(a,e,n,i,l)}function s2(e,t,r,n,i){var a,o,s,l,u,c,f,d;if(e==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,d=i.rawY;var h=vh(u,f),p=vh(u,f+(d-f)*r),v=vh(c,d+(f-d)*r),g=vh(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=n.x,f=n.y,c=i.x,d=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(t==="TB"||t==="BT")&&(a=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var wi=Ze();function X8(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,q8(t,r,e),D(r,function(n){D(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,De(vwe,e))})}),t.wrapMethod("cloneShallow",De(mwe,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,De(gwe,e))}),cn(r[t.dataType]===t)}function vwe(e,t){if(Swe(this)){var r=j({},wi(this).datas);r[this.dataType]=t,q8(t,r,e)}else yI(t,this.dataType,wi(this).mainData,e);return t}function gwe(e,t){return e.struct&&e.struct.update(),t}function mwe(e,t){return D(wi(t).datas,function(r,n){r!==t&&yI(r.cloneShallow(),n,t,e)}),t}function ywe(e){var t=wi(this).mainData;return e==null||t==null?t:wi(t).datas[e]}function xwe(){var e=wi(this).mainData;return e==null?[{data:e}]:q(Ye(wi(e).datas),function(t){return{type:t,data:wi(e).datas[t]}})}function Swe(e){return wi(e).mainData===e}function q8(e,t,r){wi(e).datas={},D(t,function(n,i){yI(n,i,e,r)})}function yI(e,t,r,n){wi(r).datas[t]=e,wi(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=ywe,e.getLinkedDataAll=xwe}var _we=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){Se(t)&&(n=r,r=t,t=null),t=t||{},ne(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),xI=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,Y(d)?d.length:1),a.push(c);var h=new _we(cr(c.name,""),i);f?bwe(h,f):i.root=h,i._nodes.push(h);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],h)}i.root.updateDepthAndHeight(0);var l=Nv(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ln(l,r);return u.initData(a),n&&n(u),X8({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function bwe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function Kp(e,t,r){if(e&&ze(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(ne(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function Z8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function SI(e,t){var r=Z8(e);return ze(r,t)>=0}function jx(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var wwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new st(i,this,this.ecModel),o=xI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=jx(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Mt);function Cwe(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,r)}function Wd(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function Twe(e,t){e.eachSeriesByType("tree",function(r){Awe(r,t)})}function Awe(e,t){var r=awe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=Xz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Xz());var s=e.getData().tree.root,l=s.children[0];if(l){rwe(s),Cwe(l,nwe,o),s.hierNode.modifier=-l.hierNode.prelim,Wd(l,iwe);var u=l,c=l,f=l;Wd(l,function(x){var S=x.getLayout().x;S<u.getLayout().x&&(u=x),S>c.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Wd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=vh(g,m);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Wd(l,function(x){m=(x.getLayout().x+h)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Wd(l,function(x){g=(x.getLayout().x+h)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function Mwe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");j(s,o)})})}function kwe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=mI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Iwe(e){e.registerChartView(hwe),e.registerSeriesModel(wwe),e.registerLayout(Twe),e.registerVisual(Mwe),kwe(e)}var Jz=["treemapZoomToNode","treemapRender","treemapMove"];function Dwe(e){for(var t=0;t<Jz.length;t++)e.registerAction({type:Jz[t],update:"updateView"},er);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Kp(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=SI(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function K8(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=OT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Pwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};Q8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new st({itemStyle:o},this,n);a=r.levels=Rwe(a,n);var l=q(a||[],function(f){return new st(f,s,n)},this),u=xI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return xr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=jx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},j(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=de(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){K8(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Mt);function Q8(e){var t=0;D(e.children,function(n){Q8(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function Rwe(e,t){var r=vt(t.get("color")),n=vt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(e,function(s){var l=new st(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var Ewe=8,e5=8,Ib=5,Lwe=function(){function e(t){this.group=new Ae,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),Rx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=cr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Ewe*2,r.emptyItemWidth);r.totalWidth+=s+e5,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=$me(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,y=g.width,x=g.text;d>f.width&&(d-=y-u,y=u,x=null);var S=new hn({shape:{points:Owe(l,0,y,c,v===h.length-1,v===0)},style:_e(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Je({style:Tt(a,{text:x})}),textConfig:{position:"inside"},z2:Yf*1e4,onclick:De(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Tt(o,{text:x}),S.ensureState("emphasis").style=p,Wt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),Nwe(S,t,m),l+=y+e5}},e.prototype.remove=function(){this.group.removeAll()},e}();function Owe(e,t,r,n,i,a){var o=[[i?e:e-Ib,t],[e+r,t],[e+r,t+n],[i?e:e-Ib,t+n]];return!a&&o.splice(2,0,[e+r+Ib,t+n/2]),!i&&o.push([e,t+n/2]),o}function Nwe(e,t,r){ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&jx(r,t)}}var zwe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Bwe(){return new zwe}var l2=Ae,t5=qe,r5=3,n5="label",i5="upperLabel",Fwe=Yf*10,Vwe=Yf*2,$we=Yf*3,kl=Cu([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a5=function(e){var t=kl(e);return t.stroke=t.fill=t.lineWidth=null,t},P0=Ze(),Gwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=jd(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(ze(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Kp(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,p=this._giveContainerGroup(c),v=r.get("animation"),g=this._doRender(p,r,h);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,r,h):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new l2,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=jd(),l=jd(),u=this._storage,c=[];function f(y,x,S,b){return Hwe(n,l,u,i,s,c,y,x,S,b)}v(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var d=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,p=a.root.getLayout();p.width===h.width&&p.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:m};function v(y,x,S,b,_){b?(x=y,D(y,function(T,A){!T.isRemoved()&&C(A,A)})):new Ao(x,y,w,w).add(C).update(C).remove(De(C,null)).execute();function w(T){return T.getId()}function C(T,A){var M=T!=null?y[T]:null,k=A!=null?x[A]:null,I=f(M,k,S,_);I&&v(M&&M.viewChildren||[],k&&k.viewChildren||[],I,b,_+1)}}function g(y){var x=jd();return y&&D(y,function(S,b){var _=x[b];D(S,function(w){w&&(_.push(w),P0(w).willDelete=!0)})}),x}function m(){D(d,function(y){D(y,function(x){x.parent&&x.parent.remove(x)})}),D(c,function(y){y.invisible=!0,y.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Se(o)?0:o)||0,u=(Se(s)?null:s)||"cubicOut",c=Bwe();D(n.willDeleteEls,function(f,d){D(f,function(h,p){if(!h.invisible){var v=h.parent,g,m=P0(v);if(a&&a.direction==="drillDown")g=v===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,x=0;m.willDelete||(y=m.nodeWidth/2,x=m.nodeHeight/2),g=d==="nodeGroup"?{x:y,y:x,style:{opacity:0}}:{shape:{x:y,y:x,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),D(this._storage,function(f,d){D(f,function(h,p){var v=n.lastsForAnimation[d][p],g={};v&&(h instanceof Ae?v.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=v.oldX,h.y=v.oldY):(v.oldShape&&(g.shape=j({},h.shape),h.setShape(v.oldShape)),v.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(le(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new Wv(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",le(this._onPan,this)),n.on("zoom",le(this._onZoom,this)));var a=new Ne(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>r5||Math.abs(r.dy)>r5)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ne(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var d=u.min||0,h=u.max||1/0;f=Math.max(Math.min(h,f),d)}var p=f/c.zoom;c.zoom=f;var v=this.seriesModel.layoutInfo;n-=v.x,i-=v.y;var g=Yn();$a(g,g,[-n,-i]),lk(g,g,[p,p]),$a(g,g,[n,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&p0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Lwe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(SI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=jd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(xt);function jd(){return{nodeGroup:[],background:[],content:[]}}function Hwe(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,b=x&&x.length,_=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),T=d.getModel(["select","itemStyle"]),A=_.get("borderRadius")||0,M=X("nodeGroup",l2);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),P0(M).nodeWidth=h,P0(M).nodeHeight=p,c.isAboveViewRoot)return M;var k=X("background",t5,u,Vwe);k&&V(M,k,b&&c.upperLabelHeight);var I=d.getModel("emphasis"),P=I.get("focus"),E=I.get("blurScope"),z=I.get("disabled"),$=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Bp(M)&&Xl(M,!1),k&&(Xl(k,!z),f.setItemGraphicEl(o.dataIndex,k),MT(k,$,E));else{var O=X("content",t5,u,$we);O&&L(M,O),k.disableMorphing=!0,k&&Bp(k)&&Xl(k,!1),Xl(M,!z),f.setItemGraphicEl(o.dataIndex,M),MT(M,$,E)}return M;function V(re,Q,ae){var se=ke(Q);if(se.dataIndex=o.dataIndex,se.seriesIndex=e.seriesIndex,Q.setShape({x:0,y:0,width:h,height:p,r:A}),g)G(Q);else{Q.invisible=!1;var K=o.getVisual("style"),ee=K.stroke,me=a5(_);me.fill=ee;var ve=kl(w);ve.fill=w.get("borderColor");var Le=kl(C);Le.fill=C.get("borderColor");var tt=kl(T);if(tt.fill=T.get("borderColor"),ae){var Ke=h-2*v;W(Q,ee,K.opacity,{x:v,y:0,width:Ke,height:S})}else Q.removeTextContent();Q.setStyle(me),Q.ensureState("emphasis").style=ve,Q.ensureState("blur").style=Le,Q.ensureState("select").style=tt,Tu(Q)}re.add(Q)}function L(re,Q){var ae=ke(Q);ae.dataIndex=o.dataIndex,ae.seriesIndex=e.seriesIndex;var se=Math.max(h-2*v,0),K=Math.max(p-2*v,0);if(Q.culling=!0,Q.setShape({x:v,y:v,width:se,height:K,r:A}),g)G(Q);else{Q.invisible=!1;var ee=o.getVisual("style"),me=ee.fill,ve=a5(_);ve.fill=me,ve.decal=ee.decal;var Le=kl(w),tt=kl(C),Ke=kl(T);W(Q,me,ee.opacity,null),Q.setStyle(ve),Q.ensureState("emphasis").style=Le,Q.ensureState("blur").style=tt,Q.ensureState("select").style=Ke,Tu(Q)}re.add(Q)}function G(re){!re.invisible&&a.push(re)}function W(re,Q,ae,se){var K=d.getModel(se?i5:n5),ee=cr(d.get("name"),null),me=K.getShallow("show");Br(re,yr(d,se?i5:n5),{defaultText:me?ee:null,inheritColor:Q,defaultOpacity:ae,labelFetcher:e,labelDataIndex:o.dataIndex});var ve=re.getTextContent();if(ve){var Le=ve.style,tt=ak(Le.padding||0);se&&(re.setTextConfig({layoutRect:se}),ve.disableLabelLayout=!0),ve.beforeUpdate=function(){var ht=Math.max((se?se.width:re.shape.width)-tt[1]-tt[3],0),pt=Math.max((se?se.height:re.shape.height)-tt[0]-tt[2],0);(Le.width!==ht||Le.height!==pt)&&ve.setStyle({width:ht,height:pt})},Le.truncateMinChar=2,Le.lineOverflow="truncate",B(Le,se,c);var Ke=ve.getState("emphasis");B(Ke?Ke.style:null,se,c)}}function B(re,Q,ae){var se=re?re.text:null;if(!Q&&ae.isLeafRoot&&se!=null){var K=e.get("drillDownIcon",!0);re.text=K?K+" "+se:se}}function X(re,Q,ae,se){var K=y!=null&&r[re][y],ee=i[re];return K?(r[re][y]=null,te(ee,K)):g||(K=new Q,K instanceof Ai&&(K.z2=Wwe(ae,se)),U(ee,K)),t[re][m]=K}function te(re,Q){var ae=re[m]={};Q instanceof l2?(ae.oldX=Q.x,ae.oldY=Q.y):ae.oldShape=j({},Q.shape)}function U(re,Q){var ae=re[m]={},se=o.parentNode,K=Q instanceof Ae;if(se&&(!n||n.direction==="drillDown")){var ee=0,me=0,ve=i.background[se.getRawIndex()];!n&&ve&&ve.oldShape&&(ee=ve.oldShape.width,me=ve.oldShape.height),K?(ae.oldX=0,ae.oldY=me):ae.oldShape={x:ee,y:me,width:0,height:0}}ae.fadein=!K}}function Wwe(e,t){return e*Fwe+t}var Qp=D,jwe=be,R0=-1,mr=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Ce(t);this.type=n,this.mappingMethod=r,this._normalizeData=Xwe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(Db(i),Uwe(i)):r==="category"?i.categories?Ywe(i):Db(i,!0):(cn(r!=="linear"||i.dataExtent),Db(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return le(this._normalizeData,this)},e.listVisualTypes=function(){return Ye(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){be(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Y(t)?[]:be(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Qp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(jwe(t)){var r=[];Qp(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||ne(l)&&l===t+"")return o;n&&d(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(pm(f[1],t,c[1]))return o}else if(c[1]===1/0){if(pm(f[0],c[0],t))return o}else if(pm(f[0],c[0],t)&&pm(f[1],t,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:i;function d(h,p){var v=Math.abs(h-t);v<a&&(a=v,i=p)}},e.visualHandlers={color:{applyVisual:Ud("color"),getColorMapper:function(){var t=this.option;return le(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),gh.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=c_(r,t.parsedVisual,i),a?i:fo(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return fo(c_(t,this.option.parsedVisual),"rgba")},category:gh,piecewise:function(t,r){var n=c2.call(this,r);return n==null&&(n=fo(c_(t,this.option.parsedVisual),"rgba")),n},fixed:Il}},colorHue:hm(function(t,r){return Vh(t,r)}),colorSaturation:hm(function(t,r){return Vh(t,null,r)}),colorLightness:hm(function(t,r){return Vh(t,null,null,r)}),colorAlpha:hm(function(t,r){return r0(t,r)}),decal:{applyVisual:Ud("decal"),_normalizedToVisual:{linear:null,category:gh,piecewise:null,fixed:null}},opacity:{applyVisual:Ud("opacity"),_normalizedToVisual:u2([0,1])},liftZ:{applyVisual:Ud("liftZ"),_normalizedToVisual:{linear:Il,category:Il,piecewise:Il,fixed:Il}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:o5,category:gh,piecewise:function(t,r){var n=c2.call(this,r);return n==null&&(n=o5.call(this,t)),n},fixed:Il}},symbolSize:{applyVisual:Ud("symbolSize"),_normalizedToVisual:u2([0,1])}},e}();function Uwe(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Ywe(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Qp(t,function(o,s){r[o]=s}),!Y(n)){var i=[];be(n)?Qp(n,function(o,s){var l=r[s];i[l??R0]=o}):i[R0]=n,n=J8(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function Db(e,t){var r=e.visual,n=[];be(r)?Qp(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),J8(e,n)}function hm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:u2([0,1])}}function o5(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Ud(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function gh(e){var t=this.option.visual;return t[this.option.loop&&e!==R0?e%t.length:e]}function Il(){return this.option.visual[0]}function u2(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:gh,piecewise:function(t,r){var n=c2.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Il}}function c2(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=mr.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function J8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=q(t,function(r){var n=Xn(r);return n||[0,0,0,1]})),t}var Xwe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=mr.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??R0},fixed:er};function pm(e,t,r){return e?t<=r:t<r}var qwe="itemStyle",e9=Ze();const Zwe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||t9(r,{},e.getViewRoot().getAncestors(),e)}};function t9(e,t,r,n){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(qwe),l=Kwe(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=s5(l),c=Qwe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=s5(l),u.fill=d;else{var p=Jwe(e,i,a,s,l,h);D(h,function(v,g){if(v.depth>=r.length||v===r[v.depth]){var m=eCe(i,l,v,g,p,n);t9(v,m,r,n)}})}}}function Kwe(e,t,r){var n=j({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function s5(e){var t=Pb(e,"color");if(t){var r=Pb(e,"colorAlpha"),n=Pb(e,"colorSaturation");return n&&(t=Vh(t,null,null,n)),r&&(t=r0(t,r)),t}}function Qwe(e,t){return t!=null?Vh(t,null,null,e):null}function Pb(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Jwe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=Rb(t,"color")||i.color!=null&&i.color!=="none"&&(Rb(t,"colorAlpha")||Rb(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new mr(f);return e9(d).drColorMappingBy=c,d}}}function Rb(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function eCe(e,t,r,n,i,a){var o=j({},t);if(i){var s=i.type,l=s==="color"&&e9(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Jp=Math.max,E0=Math.min,l5=wr,_I=D,r9=["itemStyle","borderWidth"],tCe=["itemStyle","gapWidth"],rCe=["upperLabel","show"],nCe=["upperLabel","height"];const iCe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=fr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=J(l5(s.width,l[0]),i),c=J(l5(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Kp(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=Z8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?cCe(e,h,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(S),n9(v,x,!1,0),S=v.getLayout(),_I(g,function(_,w){var C=(g[w+1]||v).getValue();_.setLayout(j({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var b=e.getData().tree.root;b.setLayout(fCe(s,p,h),!0),e.setLayoutInfo(s),i9(b,new Ne(-s.x,-s.y,i,a),g,v,0)}};function n9(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(r9),u=s.get(tCe)/2,c=a9(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Jp(i-2*d,0),a=Jp(a-d-h,0);var p=i*a,v=aCe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=E0(i,a),y=1/0,x=[];x.area=0;for(var S=0,b=v.length;S<b;){var _=v[S];x.push(_),x.area+=_.getLayout().area;var w=uCe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,u5(x,m,g,u,!1),m=E0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&u5(x,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p<C&&(r=!0)}for(var S=0,b=v.length;S<b;S++)n9(v[S],t,r,n+1)}}}function aCe(e,t,r,n,i,a){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=ft(o,function(h){return!h.isRemoved()}),sCe(o,s);var u=lCe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=oCe(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*r;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function oCe(e,t,r,n,i){if(!n)return r;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function sCe(e,t){return t&&e.sort(function(r,n){var i=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),e}function lCe(e,t,r){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],_I(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function uCe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Jp(u*n/l,l/(u*i)):1/0}function u5(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],p={},v=c?h.getLayout().area/c:0,g=p[l[o]]=Jp(c-2*n,0),m=r[s[a]]+r[l[a]]-u,y=f===d-1||m<v?m:v,x=p[l[a]]=Jp(y-2*n,0);p[s[o]]=r[s[o]]+E0(n,g/2),p[s[a]]=u+E0(n,x/2),u+=y,h.setLayout(p,!0)}r[s[o]]+=c,r[l[o]]-=c}function cCe(e,t,r,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var p=a.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),g=v.get(r9),m=Math.max(g,a9(v));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>bL&&(u=bL),a=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[n*y,i*y]}function fCe(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function i9(e,t,r,n,i){var a=e.getLayout(),o=r[i],s=o&&o===e;if(!(o&&!s||i===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Ne(t.x-a.x,t.y-a.y,t.width,t.height);_I(e.viewChildren||[],function(u){i9(u,l,r,n,i+1)})}}function a9(e){return e.get(rCe)?e.get(nCe):0}function dCe(e){e.registerSeriesModel(Pwe),e.registerChartView(Gwe),e.registerVisual(Zwe),e.registerLayout(iCe),Dwe(e)}function hCe(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){et(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function pCe(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){ne(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");j(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function vm(e){return e instanceof Array||(e=[e,e]),e}function vCe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=vm(t.get("edgeSymbol")),a=vm(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=vm(s.getShallow("symbol",!0)),c=vm(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(j(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var f2="-->",Ux=function(e){return e.get("autoCurveness")||null},o9=function(e,t){var r=Ux(e),n=20,i=[];if(et(r))n=r;else if(Y(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},ev=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(f2)},s9=function(e){var t=e.split(f2);return[t[0],t[2],t[1]].join(f2)},gCe=function(e,t){var r=ev(e.node1,e.node2,t);return t.__edgeMap[r]},mCe=function(e,t){var r=d2(ev(e.node1,e.node2,t),t),n=d2(ev(e.node2,e.node1,t),t);return r+n},d2=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function yCe(e){Ux(e)&&(e.__curvenessList=[],e.__edgeMap={},o9(e))}function xCe(e,t,r,n){if(Ux(r)){var i=ev(e,t,r),a=r.__edgeMap,o=a[s9(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function bI(e,t,r,n){var i=Ux(t),a=Y(i);if(!i)return null;var o=gCe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=mCe(e,t);o9(t,u),e.lineStyle=e.lineStyle||{};var c=ev(e.node1,e.node2,t),f=t.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var h=s9(c),p=d2(h,t),v=f[s+p+d];return n?a?i&&i[0]===0?(p+d)%2?v:-v:((p%2?0:1)+d)%2?v:-v:(p+d)%2?v:-v:f[s+p+d]}function l9(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),wI(r,e)}}function wI(e,t){e.eachEdge(function(r,n){var i=La(r.getModel().get(["lineStyle","curveness"]),-bI(r,t,n,!0),0),a=uo(r.node1.getLayout()),o=uo(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function SCe(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];D(i.dimensions,function(d){o=o.concat(a.mapDimensionsAll(d))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}wI(a.graph,r)}else(!n||n==="none")&&l9(r)})}function mh(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function yh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var c5=Math.PI,Eb=[];function CI(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=i.pointToData(n),h=d[0],p=d[1],v=[h-l,p-u];Wf(v,v),Um(v,v,c),r.setLayout([l+v[0],u+v[1]],!0);var g=e.get(["circular","rotateLabel"]);u9(r,g,l,u)}_Ce[t](e,s,o,c,l,u,f),s.eachEdge(function(m,y){var x=La(m.getModel().get(["lineStyle","curveness"]),bI(m,e,y),0),S=uo(m.node1.getLayout()),b=uo(m.node2.getLayout()),_,w=(S[0]+b[0])/2,C=(S[1]+b[1])/2;+x&&(x*=3,_=[l*x+w*(1-x),u*x+C*(1-x)]),m.setLayout([S,b,_])})}}}var _Ce={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=d})},symbolSize:function(e,t,r,n,i,a,o){var s=0;Eb.length=o;var l=mh(e);t.eachNode(function(f){var d=yh(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/n);isNaN(h)&&(h=c5/2),Eb[f.dataIndex]=h,s+=h*2});var u=(2*c5-s)/o/2,c=0;t.eachNode(function(f){var d=u+Eb[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=d})}};function u9(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");j(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function bCe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&CI(t,"symbolSize")})}var dc=QC;function wCe(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Ou(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=uo(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,h=d,p,v;return{warmUp:function(){h=d*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){v=g},step:function(g){p&&p(n,i);for(var m=[],y=n.length,x=0;x<i.length;x++){var S=i[x];if(!S.ignoreForceLayout){var b=S.n1,_=S.n2;Ul(m,_.p,b.p);var w=JC(m)-S.d,C=_.w/(b.w+_.w);isNaN(C)&&(C=0),Wf(m,m),!b.fixed&&dc(b.p,b.p,m,C*w*h),!_.fixed&&dc(_.p,_.p,m,-(1-C)*w*h)}}for(var x=0;x<y;x++){var T=n[x];T.fixed||(Ul(m,l,T.p),dc(T.p,T.p,m,u*h))}for(var x=0;x<y;x++)for(var b=n[x],A=x+1;A<y;A++){var _=n[A];Ul(m,_.p,b.p);var w=JC(m);w===0&&(Uhe(m,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+_.rep)/w/w;!b.fixed&&dc(b.pp,b.pp,m,M),!_.fixed&&dc(_.pp,_.pp,m,-M)}for(var k=[],x=0;x<y;x++){var T=n[x];T.fixed||(Ul(k,T.p,T.pp),dc(T.p,T.p,k,h),en(T.pp,T.p))}h=h*.992;var I=h<.01;v&&v(n,i,I),g&&g(I)}}}function CCe(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(x){var S=a.getId(x);a.setItemLayout(x,n[S]||[NaN,NaN])}):!l||l==="none"?l9(t):l==="circular"&&CI(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Y(f)?f:[f,f],p=Y(d)?d:[d,d];p=[p[1],p[0]];var v=a.mapArray("value",function(x,S){var b=a.getItemLayout(S),_=ct(x,u,h);return isNaN(_)&&(_=(h[0]+h[1])/2),{w:_,rep:_,fixed:a.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(x,S){var b=i.getEdgeByIndex(S),_=ct(x,c,p);isNaN(_)&&(_=(p[0]+p[1])/2);var w=b.getModel(),C=La(b.getModel().get(["lineStyle","curveness"]),-bI(b,t,S,!0),0);return{n1:v[b.node1.dataIndex],n2:v[b.node2.dataIndex],d:_,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),m=r.getBoundingRect(),y=wCe(v,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(x,S){for(var b=0,_=x.length;b<_;b++)x[b].fixed&&en(x[b].p,i.getNodeByIndex(b).getLayout())}),y.afterStep(function(x,S,b){for(var _=0,w=x.length;_<w;_++)x[_].fixed||i.getNodeByIndex(_).setLayout(x[_].p),n[a.getId(_)]=x[_].p;for(var _=0,w=S.length;_<w;_++){var C=S[_],T=i.getEdgeByIndex(_),A=C.n1.p,M=C.n2.p,k=T.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],en(k[0],A),en(k[1],M),+C.curveness&&(k[2]=[(A[0]+M[0])/2-(A[1]-M[1])*C.curveness,(A[1]+M[1])/2-(M[0]-A[0])*C.curveness]),T.setLayout(k)}}),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null})}function TCe(e,t,r){var n=j(e.getBoxLayoutParams(),{aspect:r});return fr(n,{width:t.getWidth(),height:t.getHeight()})}function ACe(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var m=a.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];yx(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=TCe(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,p=c.height,v=n.coordinateSystem=new jv;v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,h,p),v.setCenter(n.get("center"),t),v.setZoom(n.get("zoom")),r.push(v)}}),r}var f5=vr.prototype,Lb=Dv.prototype,c9=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(c9);function Ob(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var MCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new c9},t.prototype.buildPath=function(r,n){Ob(n)?f5.buildPath.call(this,r,n):Lb.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Ob(this.shape)?f5.pointAt.call(this,r):Lb.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=Ob(n)?[n.x2-n.x1,n.y2-n.y1]:Lb.tangentAt.call(this,r);return Wf(i,i)},t}(He),Nb=["fromSymbol","toSymbol"];function d5(e){return"_"+e+"Type"}function h5(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=nd(i),u=Bu(o||0,l);return n+l+u+(a||"")+(s||"")}function p5(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=nd(i),u=Bu(o||0,l),c=ar(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function kCe(e){var t=new MCe({name:"line",subPixelOptimize:!0});return h2(t.shape,e),t}function h2(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var TI=function(e){H(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=kCe(o);s.shape.percent=0,Et(s,{shape:{percent:1}},a,n),this.add(s),D(Nb,function(l){var u=p5(l,r,n);this.add(u),this[d5(l)]=h5(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};h2(l.shape,s),rt(o,l,a,n),D(Nb,function(u){var c=h5(u,r,n),f=d5(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=p5(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,d=i&&i.focus,h=i&&i.blurScope;if(!i||r.hasItemOption){var p=r.getItemModel(n),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),d=v.get("focus"),h=v.get("blurScope"),c=yr(p)}var g=r.getItemVisual(n,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(Nb,function(_){var w=this.childOfName(_);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var C=0;C<fn.length;C++){var T=fn[C],A=o.getState(T);if(A){var M=A.style||{},k=w.ensureState(T),I=k.style||(k.style={});M.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(I.opacity=M.opacity)}}w.markRedraw()}},this);var y=a.getRawValue(n);Br(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(_,w){return a.getFormattedLabel(_,w,r.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?r.getName(n):isFinite(y)?Yt(y):y)+""});var x=this.getTextContent();if(x){var S=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=S.get("position")||"middle";var b=S.get("distance");Y(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Wt(this,d,h,f)},t.prototype.highlight=function(){Co(this)},t.prototype.downplay=function(){To(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");h2(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Ul([],f,c);Wf(d,d);function h(A,M){var k=A.__specifiedRotation;if(k==null){var I=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else A.attr("rotation",k)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),h(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var p=void 0,v=void 0,g=a.__labelDistance,m=g[0]*o,y=g[1]*o,x=u/2,S=l.tangentAt(x),b=[S[1],-S[0]],_=l.pointAt(x);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(C=Math.PI+C),a.rotation=C}var T=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-y,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=y,v="top";break;default:T=0,v="middle"}switch(a.__position){case"end":a.x=d[0]*m+f[0],a.y=d[1]*y+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*w+c[0],a.y=c[1]+T,p=S[0]<0?"right":"left",a.originX=-m*w,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=_[0],a.y=_[1]+T,p="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*w+f[0],a.y=f[1]+T,p=S[0]>=0?"right":"left",a.originX=m*w,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Ae),AI=function(){function e(t){this.group=new Ae,this._LineCtor=t||TI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=v5(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=v5(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!ICe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(zb(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Us(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(zb(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!zb(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function ICe(e){return e.animators&&e.animators.length>0}function v5(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:yr(t)}}function g5(e){return isNaN(e[0])||isNaN(e[1])}function zb(e){return e&&!g5(e[0])&&!g5(e[1])}var Bb=[],Fb=[],Vb=[],hc=br,$b=ru,m5=Math.abs;function y5(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Bb[0]=hc(n[0],i[0],a[0],c),Bb[1]=hc(n[1],i[1],a[1],c);var f=m5($b(Bb,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;Fb[0]=hc(n[0],i[0],a[0],s),Fb[1]=hc(n[1],i[1],a[1],s),Vb[0]=hc(n[0],i[0],a[0],h),Vb[1]=hc(n[1],i[1],a[1],h);var f=$b(Fb,t)-l;if(m5(f)<.01)break;var p=$b(Vb,t)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Gb(e,t){var r=[],n=Rp,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[uo(u[0]),uo(u[1])],u[2]&&u.__original.push(uo(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=yh(s.node1),p=y5(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=yh(s.node2),p=y5(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Ul(o,a[1],a[0]),Wf(o,o),c&&c!=="none"){var h=yh(s.node1);QC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=yh(s.node2);QC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function x5(e){return e.type==="view"}var DCe=function(e){H(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){var i=new Fv,a=new AI,o=this.group;this._controller=new Wv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(x5(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):rt(u,c,r)}Gb(r.getGraph(),mh(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,b=x.getGraphicEl(),_=x.getModel();if(b){b.off("drag").off("dragend");var w=_.get("draggable");w&&b.on("drag",function(T){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[b.x,b.y]);break;case"circular":f.setItemLayout(S,[b.x,b.y]),x.setLayout({fixed:!0},!0),CI(r,"symbolSize",x,[T.offsetX,T.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[b.x,b.y]),wI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),b.setDraggable(w,!!_.get("cursor"));var C=_.get(["emphasis","focus"]);C==="adjacency"&&(ke(b).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(ke(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){u9(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Hx(u,i,r)}),!x5(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){pI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){vI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Gb(r.getGraph(),mh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=mh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){Gb(r.getGraph(),mh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(xt);function pc(e){return"_EC_"+e}var PCe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[pc(t)]){var i=new Dl(t,r);return i.hostGraph=this,this.nodes.push(i),n[pc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[pc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(et(t)&&(t=this.nodes[t]),et(r)&&(r=this.nodes[r]),t instanceof Dl||(t=i[pc(t)]),r instanceof Dl||(r=i[pc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new f9(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Dl&&(t=t.id),r instanceof Dl&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Dl||(r=this._nodesMap[pc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(i,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),Dl=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=de(),r=de(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),f9=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=de(),r=de();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function d9(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}or(Dl,d9("hostGraph","data"));or(f9,d9("hostGraph","edgeData"));function h9(e,t,r,n,i){for(var a=new PCe(n),o=0;o<e.length;o++)a.addNode(wr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;a.addEdge(f,d,u)&&(l.push(c),s.push(wr(cr(c.id,null),f+" > "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Lo(e,r);else{var v=Lv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Nv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new ln(m,r),p.initData(e)}var y=new ln(["value"],r);return y.initData(l,s),i&&i(p,y),X8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var RCe=function(e){H(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.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Hv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),bu(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){yCe(this);var s=h9(a,i,this,!0,l);return D(s.edges,function(u){xCe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=st.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=zW({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=q(this.option.categories||[],function(i){return i.value!=null?i:j({value:0},i)}),n=new ln(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Mt),ECe={type:"graphRoam",event:"graphRoam",update:"none"};function LCe(e){e.registerChartView(DCe),e.registerSeriesModel(RCe),e.registerProcessor(hCe),e.registerVisual(pCe),e.registerVisual(vCe),e.registerLayout(SCe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,bCe),e.registerLayout(CCe),e.registerCoordinateSystem("graphView",{dimensions:jv.dimensions,create:ACe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},er),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},er),e.registerAction(ECe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=mI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var OCe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),NCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new OCe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(He);function zCe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=J(r[0],t.getWidth()),s=J(r[1],t.getHeight()),l=J(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function gm(e,t){var r=e==null?"":e+"";return t&&(ne(t)?r=t.replace("{value}",r):Se(t)&&(r=t(e))),r}var BCe=function(e){H(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){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=zCe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?k0:dn,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];mk(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,S=[],b=0;p&&b<a.length;b++){var _=Math.min(Math.max(a[b][0],0),1);c=u+y*_;var w=new h({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:a[b][1]}),w.setStyle(v.getLineStyle(["color","width"])),S.push(w),x=c}S.reverse(),D(S,function(T){return s.add(T)});var C=function(T){if(T<=0)return a[0][1];var A;for(A=0;A<a.length;A++)if(a[A][0]>=T&&(A===0?0:a[A-1][0])<T)return a[A][1];return a[A-1][1]};this._renderTicks(r,n,i,C,o,u,c,l,g),this._renderTitleAndDetail(r,n,i,C,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,C,o,u,c,l,g)},t.prototype._renderTicks=function(r,n,i,a,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,p=o.r,v=+r.get("min"),g=+r.get("max"),m=r.getModel("splitLine"),y=r.getModel("axisTick"),x=r.getModel("axisLabel"),S=r.get("splitNumber"),b=y.get("splitNumber"),_=J(m.get("length"),p),w=J(y.get("length"),p),C=s,T=(l-s)/S,A=T/b,M=m.getModel("lineStyle").getLineStyle(),k=y.getModel("lineStyle").getLineStyle(),I=m.get("distance"),P,E,z=0;z<=S;z++){if(P=Math.cos(C),E=Math.sin(C),m.get("show")){var $=I?I+c:c,O=new vr({shape:{x1:P*(p-$)+d,y1:E*(p-$)+h,x2:P*(p-_-$)+d,y2:E*(p-_-$)+h},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:a(z/S)}),f.add(O)}if(x.get("show")){var $=x.get("distance")+I,V=gm(Yt(z/S*(g-v)+v),x.get("formatter")),L=a(z/S),G=P*(p-_-$)+d,W=E*(p-_-$)+h,B=x.get("rotate"),X=0;B==="radial"?(X=-C+2*Math.PI,X>Math.PI/2&&(X+=Math.PI)):B==="tangential"?X=-C-Math.PI/2:et(B)&&(X=B*Math.PI/180),X===0?f.add(new Je({style:Tt(x,{text:V,x:G,y:W,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new Je({style:Tt(x,{text:V,x:G,y:W,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:W,rotation:X}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var te=0;te<=b;te++){P=Math.cos(C),E=Math.sin(C);var U=new vr({shape:{x1:P*(p-$)+d,y1:E*(p-$)+h,x2:P*(p-w-$)+d,y2:E*(p-w-$)+h},silent:!0,style:k});k.stroke==="auto"&&U.setStyle({stroke:a((z+te/b)/S)}),f.add(U),C+=A}C-=A}else C+=T}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),x=y.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),_=[S,b],w=[s,l];function C(A,M){var k=y.getItemModel(A),I=k.getModel("pointer"),P=J(I.get("width"),o.r),E=J(I.get("length"),o.r),z=r.get(["pointer","icon"]),$=I.get("offsetCenter"),O=J($[0],o.r),V=J($[1],o.r),L=I.get("keepAspect"),G;return z?G=ar(z,O-P/2,V-E,P,E,null,L):G=new NCe({shape:{angle:-Math.PI/2,width:P,r:E,x:O,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function T(A,M){var k=g.get("roundCap"),I=k?k0:dn,P=g.get("overlap"),E=P?g.get("width"):c/y.count(),z=P?o.r-E:o.r-(A+1)*E,$=P?o.r:o.r-A*E,O=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return P&&(O.z2=b-y.get(x,A)%b),O}(m||v)&&(y.diff(d).add(function(A){var M=y.get(x,A);if(v){var k=C(A,s);Et(k,{rotation:-((isNaN(+M)?w[0]:ct(M,_,w,!0))+Math.PI/2)},r),f.add(k),y.setItemGraphicEl(A,k)}if(m){var I=T(A,s),P=g.get("clip");Et(I,{shape:{endAngle:ct(M,_,w,P)}},r),f.add(I),CT(r.seriesIndex,y.dataType,A,I),p[A]=I}}).update(function(A,M){var k=y.get(x,A);if(v){var I=d.getItemGraphicEl(M),P=I?I.rotation:s,E=C(A,P);E.rotation=P,rt(E,{rotation:-((isNaN(+k)?w[0]:ct(k,_,w,!0))+Math.PI/2)},r),f.add(E),y.setItemGraphicEl(A,E)}if(m){var z=h[M],$=z?z.shape.endAngle:s,O=T(A,$),V=g.get("clip");rt(O,{shape:{endAngle:ct(k,_,w,V)}},r),f.add(O),CT(r.seriesIndex,y.dataType,A,O),p[A]=O}}).execute(),y.each(function(A){var M=y.getItemModel(A),k=M.getModel("emphasis"),I=k.get("focus"),P=k.get("blurScope"),E=k.get("disabled");if(v){var z=y.getItemGraphicEl(A),$=y.getItemVisual(A,"style"),O=$.fill;if(z instanceof Mr){var V=z.style;z.useStyle(j({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(O);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,A),_,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Wt(z,I,P,E)}if(m){var L=p[A];L.useStyle(y.getItemVisual(A,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Wt(L,I,P,E)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=ar(s,n.cx-o/2+J(l[0],n.r),n.cy-o/2+J(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Ae,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Je({silent:!0}),p[m]=new Je({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),S=new Ae,b=a(ct(x,[c,f],[0,1],!0)),_=y.getModel("title");if(_.get("show")){var w=_.get("offsetCenter"),C=o.cx+J(w[0],o.r),T=o.cy+J(w[1],o.r),A=h[m];A.attr({z2:g?0:2,style:Tt(_,{x:C,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=y.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),I=o.cx+J(k[0],o.r),P=o.cy+J(k[1],o.r),E=J(M.get("width"),o.r),z=J(M.get("height"),o.r),$=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,A=p[m],O=M.get("formatter");A.attr({z2:g?0:2,style:Tt(M,{x:I,y:P,text:gm(x,O),width:isNaN(E)?null:E,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),$H(A,{normal:M},x,function(L){return gm(L,O)}),v&&GH(A,m,l,r,{getFormattedLabel:function(L,G,W,B,X,te){return gm(te?te.interpolatedValue:x,O)}}),S.add(A)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(xt),FCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return ad(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Mt);function VCe(e){e.registerChartView(BCe),e.registerSeriesModel(FCe)}var $Ce=["itemStyle","opacity"],GCe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new mn,s=new Je;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get($Ce);c=c??1,i||ta(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Et(a,{style:{opacity:c}},o,n)):rt(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Wt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Br(o,yr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Ee(h[0][0],h[0][1]):null},rt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),nI(i,iI(l),{stroke:d})},t}(hn),HCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new GCe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Fp(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(xt),WCe=function(e){H(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hv(le(this.getData,this),le(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ad(this,{coordDimensions:["value"],encodeDefaulter:De(Ok,this)})},t.prototype._defaultLabelLine=function(r){bu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Mt);function jCe(e,t){return fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function UCe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return Se(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function YCe(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,p;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),p=[[d,h],[d,h]];else{var v=void 0,g=void 0,m=void 0,y=void 0,x=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=v-x,d=m-5,f="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=v+x,d=m+5,f="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-x,h=y-5,f="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+x,h=y+5,f="center"):o==="rightTop"?(v=r==="horizontal"?u[3][0]:u[1][0],g=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(y=g-x,h=y-5,f="center"):(m=v+x,d=m+5,f="top")):o==="rightBottom"?(v=u[2][0],g=u[2][1],r==="horizontal"?(y=g+x,h=y+5,f="center"):(m=v+x,d=m+5,f="bottom")):o==="leftTop"?(v=u[0][0],g=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(y=g-x,h=y-5,f="center"):(m=v-x,d=m-5,f="right")):o==="leftBottom"?(v=r==="horizontal"?u[1][0]:u[3][0],g=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(y=g+x,h=y+5,f="center"):(m=v-x,d=m-5,f="right")):(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r==="horizontal"?(y=g+x,h=y+5,f="center"):(m=v+x,d=m+5,f="left")),r==="horizontal"?(m=v,d=m):(y=g,h=y),p=[[v,g],[m,y]]}l.label={linePoints:p,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function XCe(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=jCe(r,t),s=r.get("orient"),l=o.width,u=o.height,c=UCe(n,a),f=o.x,d=o.y,h=s==="horizontal"?[J(r.get("minSize"),u),J(r.get("maxSize"),u)]:[J(r.get("minSize"),l),J(r.get("maxSize"),l)],p=n.getDataExtent(i),v=r.get("min"),g=r.get("max");v==null&&(v=Math.min(p[0],0)),g==null&&(g=p[1]);var m=r.get("funnelAlign"),y=r.get("gap"),x=s==="horizontal"?l:u,S=(x-y*(n.count()-1))/n.count(),b=function(P,E){if(s==="horizontal"){var z=n.get(i,P)||0,$=ct(z,[v,g],h,!0),O=void 0;switch(m){case"top":O=d;break;case"center":O=d+(u-$)/2;break;case"bottom":O=d+(u-$);break}return[[E,O],[E,O+$]]}var V=n.get(i,P)||0,L=ct(V,[v,g],h,!0),G;switch(m){case"left":G=f;break;case"center":G=f+(l-L)/2;break;case"right":G=f+l-L;break}return[[G,E],[G+L,E]]};a==="ascending"&&(S=-S,y=-y,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var _=0;_<c.length;_++){var w=c[_],C=c[_+1],T=n.getItemModel(w);if(s==="horizontal"){var A=T.get(["itemStyle","width"]);A==null?A=S:(A=J(A,l),a==="ascending"&&(A=-A));var M=b(w,f),k=b(C,f+A);f+=A+y,n.setItemLayout(w,{points:M.concat(k.slice().reverse())})}else{var I=T.get(["itemStyle","height"]);I==null?I=S:(I=J(I,u),a==="ascending"&&(I=-I));var M=b(w,d),k=b(C,d+I);d+=I+y,n.setItemLayout(w,{points:M.concat(k.slice().reverse())})}}YCe(n)})}function qCe(e){e.registerChartView(HCe),e.registerSeriesModel(WCe),e.registerLayout(XCe),e.registerProcessor(Gv("funnel"))}var ZCe=.3,KCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new Ae,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=_5(r);s.diff(l).add(d).update(h).remove(p).execute();function d(g){var m=S5(s,o,g,c,u);Hb(m,s,g,f)}function h(g,m){var y=l.getItemGraphicEl(m),x=p9(s,g,c,u);s.setItemGraphicEl(g,y),rt(y,{shape:{points:x}},r,g),ta(y),Hb(y,s,g,f)}function p(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var v=QCe(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=_5(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=S5(a,this._dataGroup,c,s,o);f.incremental=!0,Hb(f,a,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(xt);function QCe(e,t,r){var n=e.model,i=e.getRect(),a=new qe({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),Et(a,{shape:{width:i.width,height:i.height}},t,r),a}function p9(e,t,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=e.get(e.mapDimension(o),t);JCe(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function S5(e,t,r,n,i){var a=p9(e,r,n,i),o=new mn({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function _5(e){var t=e.get("smooth",!0);return t===!0&&(t=ZCe),t=wo(t),Pp(t)&&(t=0),{smooth:t}}function Hb(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var i=t.getItemModel(r),a=i.getModel("emphasis");zr(e,i,"lineStyle"),Wt(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function JCe(e,t){return t==="category"?e==null:e==null||isNaN(e)}var eTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return Lo(null,this,{useEncodeDefaulter:le(tTe,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){r===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Mt);function tTe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return D(t.dimensions,function(n){var i=rTe(n);r[n]=i}),r}}function rTe(e){return+e.replace("dim","")}var nTe=["lineStyle","opacity"],iTe={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,a){r.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(nTe,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function aTe(e){oTe(e),sTe(e)}function oTe(e){if(!e.parallel){var t=!1;D(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function sTe(e){var t=vt(e.parallelAxis);D(t,function(r){if(be(r)){var n=r.parallelIndex||0,i=vt(e.parallel)[n];i&&i.parallelAxisDefault&&Oe(r,i.parallelAxisDefault,!1)}})}var lTe=5,uTe=function(e){H(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){this._model=r,this._api=i,this._handlers||(this._handlers={},D(cTe,function(a,o){i.getZr().on(o,this._handlers[o]=le(a,this))},this)),rd(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Hp(this,"_throttledDispatchExpand"),D(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(j({type:"parallelAxisExpand"},r))},t.type="parallel",t}(zt),cTe={mousedown:function(e){Wb(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Wb(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>lTe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Wb(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Wb(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var fTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Ue),dTe=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ia);function Gu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=vc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=vc(s,[0,o]),i=a=vc(s,[i,a]),n=0}t[0]=vc(t[0],r),t[1]=vc(t[1],r);var l=jb(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=vc(t[n],c);var f;return f=jb(t,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-n]=t[n]+l.sign*i),f=jb(t,n),a!=null&&f.span>a&&(t[1-n]=t[n]+f.sign*a),t}function jb(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function vc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Ub=D,v9=Math.min,g9=Math.max,b5=Math.floor,hTe=Math.ceil,w5=Yt,pTe=Math.PI,vTe=function(){function e(t,r,n){this.type="parallel",this._axesMap=de(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;Ub(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new dTe(o,$x(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();Ub(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Df(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=fr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=mm(t.get("axisExpandWidth"),l),f=mm(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=mm(h[1]-h[0],l),h[1]=h[0]+p;else{p=mm(c*(f-1),l);var v=t.get("axisExpandCenter")||b5(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[b5(w5(h[0]/c,1))+1,hTe(w5(h[1]/c,1))-1],y=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Ub(n,function(o,s){var l=(i.axisExpandable?mTe:gTe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:pTe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=Yn();Nu(h,h,d),$a(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,p=o.length;h<p;h++){var v=l[h].getActiveState(d[h]);if(v==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return qi([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return Ce(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):d&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Gu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[g9(0,p-h/2)],i[1]=v9(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function mm(e,t){return v9(g9(e,t[0]),t[1])}function gTe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function mTe(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e<o[0]?(s=e*a,c=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function yTe(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new vTe(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",ir).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var xTe={create:yTe},p2=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return Cu([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Ce(r);if(n)for(var i=n.length-1;i>=0;i--)_i(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(Ue);or(p2,zv);var Mu=!0,tv=Math.min,Ef=Math.max,STe=Math.pow,_Te=1e4,bTe=6,wTe=6,C5="globalPan",CTe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},TTe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},T5={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},ATe=0,MI=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Ae,n._uid="brushController_"+ATe++,D(ETe,function(i,a){this._handlers[a]=le(i,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||gbe(n,C5,this._uid),D(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=Oe(Ce(T5),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;mbe(r,C5,this._uid),D(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};D(r,function(i){n[i.panelId]=Ce(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=q(r,function(d){return Oe(Ce(T5),d,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Ao(i,r,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:n+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var p=r[d];if(h!=null&&i[h]===s)a[d]=i[h];else{var v=a[d]=h!=null?(i[h].__brushOption=p,i[h]):y9(o,m9(o,p));kI(o,v)}}function f(d){i[d]!==s&&o.group.remove(i[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),v2(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Di);function m9(e,t){var r=Yx[t.brushType].createCover(e,t);return r.__brushOption=t,S9(r,t),e.group.add(r),r}function y9(e,t){var r=II(t);return r.endCreating&&(r.endCreating(e,t),S9(t,t.__brushOption)),t}function x9(e,t){var r=t.__brushOption;II(t).updateCoverShape(e,t,r.range,r)}function S9(e,t){var r=t.z;r==null&&(r=_Te),e.traverse(function(n){n.z=r,n.z2=r})}function kI(e,t){II(t).updateCommon(e,t),x9(e,t)}function II(e){return Yx[e.__brushOption.brushType]}function DI(e,t,r){var n=e._panels;if(!n)return Mu;var i,a=e._transform;return D(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function _9(e,t){var r=e._panels;if(!r)return Mu;var n=t.__brushOption.panelId;return n!=null?r[n]:Mu}function v2(e){var t=e._covers,r=t.length;return D(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function ku(e,t){var r=q(e._covers,function(n){var i=n.__brushOption,a=Ce(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function MTe(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=STe(i*i+a*a,.5);return o>bTe}function b9(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function w9(e,t,r,n){var i=new Ae;return i.add(new qe({name:"main",style:PI(r),silent:!0,draggable:!0,cursor:"move",drift:De(A5,e,t,i,["n","s","w","e"]),ondragend:De(ku,t,{isEnd:!0})})),D(n,function(a){i.add(new qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:De(A5,e,t,i,a),ondragend:De(ku,t,{isEnd:!0})}))}),i}function C9(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Ef(i,wTe),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,m=v+i;Ja(e,t,"main",o,s,p,v),n.transformable&&(Ja(e,t,"w",l,u,a,m),Ja(e,t,"e",d,u,a,m),Ja(e,t,"n",l,u,g,a),Ja(e,t,"s",l,h,g,a),Ja(e,t,"nw",l,u,a,a),Ja(e,t,"ne",d,u,a,a),Ja(e,t,"sw",l,h,a,a),Ja(e,t,"se",d,h,a,a))}function g2(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(PI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?m2(e,a[0]):ITe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?TTe[s]+"-resize":null})})}function Ja(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(PTe(RI(e,t,[[n,i],[n+a,i+o]])))}function PI(e){return _e({strokeNoScale:!0},e.brushStyle)}function T9(e,t,r,n){var i=[tv(e,r),tv(t,n)],a=[Ef(e,r),Ef(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function kTe(e){return su(e.group)}function m2(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Tx(r[t],kTe(e));return n[i]}function ITe(e,t){var r=[m2(e,t[0]),m2(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function A5(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=A9(t,i,a);D(n,function(u){var c=CTe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(T9(s[0][0],s[1][0],s[0][1],s[1][1])),kI(t,r),ku(t,{isEnd:!1})}function DTe(e,t,r,n){var i=t.__brushOption.range,a=A9(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),kI(e,t),ku(e,{isEnd:!1})}function A9(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function RI(e,t,r){var n=_9(e,t);return n&&n!==Mu?n.clipPath(r,e._transform):Ce(r)}function PTe(e){var t=tv(e[0][0],e[1][0]),r=tv(e[0][1],e[1][1]),n=Ef(e[0][0],e[1][0]),i=Ef(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function RTe(e,t,r){if(!(!e._brushType||LTe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=DI(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Mu||s.panelId===a.panelId)&&Yx[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function y2(e){var t=e.event;t.preventDefault&&t.preventDefault()}function x2(e,t,r){return e.childOfName("main").contain(t,r)}function M9(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),MTe(e)||i){if(a&&!i){o.brushMode==="single"&&v2(e);var l=Ce(o);l.brushType=M5(l.brushType,a),l.panelId=a===Mu?null:a.panelId,i=e._creatingCover=m9(e,l),e._covers.push(i)}if(i){var u=Yx[M5(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(RI(e,i,e._track)),n&&(y9(e,i),u.updateCommon(e,i)),x9(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&DI(e,t,r)&&v2(e)&&(s={isEnd:n,removeOnClick:!0});return s}function M5(e,t){return e==="auto"?t.defaultBrushType:e}var ETe={mousedown:function(e){if(this._dragging)k5(this,e);else if(!e.target||!e.target.draggable){y2(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=DI(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(RTe(this,e,n),this._dragging){y2(e);var i=M9(this,e,n,!1);i&&ku(this,i)}},mouseup:function(e){k5(this,e)}};function k5(e,t){if(e._dragging){y2(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=M9(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&ku(e,a)}}function LTe(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Yx={lineX:I5(0),lineY:I5(1),rect:{createCover:function(e,t){function r(n){return n}return w9({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=b9(e);return T9(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){C9(e,t,r,n)},updateCommon:g2,contain:x2},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new mn({name:"main",style:PI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new hn({name:"main",draggable:!0,drift:De(DTe,e,t),ondragend:De(ku,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:RI(e,t,r)})},updateCommon:g2,contain:x2}};function I5(e){return{createCover:function(t,r){return w9({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=b9(t),n=tv(r[0][e],r[1][e]),i=Ef(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=_9(t,r);if(o!==Mu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),C9(t,r,l,i)},updateCommon:g2,contain:x2}}function k9(e){return e=EI(e),function(t){return BH(t,e)}}function I9(e,t){return e=EI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function D9(e,t,r){var n=EI(e);return function(i,a){return n.contain(a[0],a[1])&&!Hx(i,t,r)}}function EI(e){return Ne.create(e)}var OTe=["axisLine","axisTickLabel","axisName"],NTe=function(e){H(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){e.prototype.init.apply(this,arguments),(this._brushController=new MI(n.getZr())).on("brush",le(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!zTe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=FTe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=j({strokeContainThreshold:c},d),p=new un(r,h);D(OTe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Rv(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:k9(f),isTargetByCursor:D9(f,s,a),getLinearBrushOtherExtent:I9(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(BTe(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=q(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(zt);function zTe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function BTe(e){var t=e.axis;return q(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function FTe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var VTe={type:"axisAreaSelect",event:"axisAreaSelected"};function $Te(e){e.registerAction(VTe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var GTe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function P9(e){e.registerComponentView(uTe),e.registerComponentModel(fTe),e.registerCoordinateSystem("parallel",xTe),e.registerPreprocessor(aTe),e.registerComponentModel(p2),e.registerComponentView(NTe),Rf(e,"parallel",p2,GTe),$Te(e)}function HTe(e){Fe(P9),e.registerChartView(KCe),e.registerSeriesModel(eTe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,iTe)}var WTe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),jTe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new WTe},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){Co(this)},t.prototype.downplay=function(){To(this)},t}(He),UTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new jTe,g=ke(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),_=b.get("localX"),w=b.get("localY"),C=p.node2.getLayout(),T=p.node2.getModel(),A=T.get("localX"),M=T.get("localY"),k=p.getLayout(),I,P,E,z,$,O,V,L;v.shape.extent=Math.max(1,k.dy),v.shape.orient=h,h==="vertical"?(I=(_!=null?_*u:S.x)+k.sy,P=(w!=null?w*c:S.y)+S.dy,E=(A!=null?A*u:C.x)+k.ty,z=M!=null?M*c:C.y,$=I,O=P*(1-x)+z*x,V=E,L=P*x+z*(1-x)):(I=(_!=null?_*u:S.x)+S.dx,P=(w!=null?w*c:S.y)+k.sy,E=A!=null?A*u:C.x,z=(M!=null?M*c:C.y)+k.ty,$=I*(1-x)+E*x,O=P,V=I*x+E*(1-x),L=z),v.setShape({x1:I,y1:P,x2:E,y2:z,cpx1:$,cpy1:O,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),D5(v.style,h,p);var G=""+m.get("value"),W=yr(m,"edgeLabel");Br(v,W,{labelFetcher:{getFormattedLabel:function(te,U,re,Q,ae,se){return r.getFormattedLabel(te,U,"edge",Q,La(ae,W.normal&&W.normal.get("formatter"),G),se)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var B=m.getModel("emphasis");zr(v,m,"lineStyle",function(te){var U=te.getItemStyle();return D5(U,h,p),U}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var X=B.get("focus");Wt(v,X==="adjacency"?p.getAdjacentDataIndices():X==="trajectory"?p.getTrajectoryDataIndices():X,B.get("blurScope"),B.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new qe({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Br(b,yr(g),{labelFetcher:{getFormattedLabel:function(w,C){return r.getFormattedLabel(w,C,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),b.disableLabelAnimation=!0,b.setStyle("fill",p.getVisual("color")),b.setStyle("decal",p.getVisual("style").decal),zr(b,g),s.add(b),f.setItemGraphicEl(p.dataIndex,b),ke(b).dataType="node";var _=x.get("focus");Wt(b,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(YTe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(xt);function D5(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");ne(n)&&ne(i)&&(e.fill=new Pv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function YTe(e,t,r){var n=new qe({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Et(n,{shape:{width:e.width+20}},t,r),n}var XTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new st(o[l],this,n));if(a&&i){var u=h9(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return xr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Mt);function qTe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=ZTe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;QTe(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");KTe(u,c,n,i,o,s,d,h,p)})}function ZTe(e,t){return fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function KTe(e,t,r,n,i,a,o,s,l){JTe(e,t,r,i,a,s,l),n2e(e,t,a,i,n,o,s),d2e(e,s)}function QTe(e){D(e,function(t){var r=Ms(t.outEdges,L0),n=Ms(t.inEdges,L0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function JTe(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var p=0;p<u.length;p++){var v=u[p],g=v.hostGraph.data.getRawDataItem(v.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var y=0;y<v.outEdges.length;y++){var x=v.outEdges[y],S=t.indexOf(x);s[S]=0;var b=x.node2,_=e.indexOf(b);--l[_]===0&&c.indexOf(b)<0&&c.push(b)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>f-1?h:f-1;o&&o!=="left"&&e2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;r2e(e,C,a)}function R9(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function e2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}D(e,function(f){R9(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&t2e(e,n)}function t2e(e,t){D(e,function(r){!R9(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function r2e(e,t,r){D(e,function(n){var i=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function n2e(e,t,r,n,i,a,o){var s=i2e(e,o);a2e(s,t,r,n,i,o),Yb(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,o2e(s,l,o),Yb(s,i,r,n,o),f2e(s,l,o),Yb(s,i,r,n,o)}function i2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=ST(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function a2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c<o&&(o=c)}),D(e,function(s){D(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Yb(e,t,r,n,i){var a=i==="vertical"?"x":"y";D(e,function(o){o.sort(function(v,g){return v.getLayout()[a]-g.getLayout()[a]});for(var s,l,u,c=0,f=o.length,d=i==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function o2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=Ms(i.outEdges,s2e,r)/Ms(i.outEdges,L0);if(isNaN(a)){var o=i.outEdges.length;a=o?Ms(i.outEdges,l2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Bs(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Bs(i,r))*t;i.setLayout({y:l},!0)}}})})}function s2e(e,t){return Bs(e.node2,t)*e.getValue()}function l2e(e,t){return Bs(e.node2,t)}function u2e(e,t){return Bs(e.node1,t)*e.getValue()}function c2e(e,t){return Bs(e.node1,t)}function Bs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function L0(e){return e.getValue()}function Ms(e,t,r){for(var n=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],r);isNaN(o)||(n+=o)}return n}function f2e(e,t,r){D(e,function(n){D(n,function(i){if(i.inEdges.length){var a=Ms(i.inEdges,u2e,r)/Ms(i.inEdges,L0);if(isNaN(a)){var o=i.inEdges.length;a=o?Ms(i.inEdges,c2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Bs(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Bs(i,r))*t;i.setLayout({y:l},!0)}}})})}function d2e(e,t){var r=t==="vertical"?"x":"y";D(e,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[r]-a.node1.getLayout()[r]})}),D(e,function(n){var i=0,a=0;D(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function h2e(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,i=r.edges;if(n.length){var a=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),D(n,function(s){var l=new mr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function p2e(e){e.registerChartView(UTe),e.registerSeriesModel(XTe),e.registerLayout(qTe),e.registerVisual(h2e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var E9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,b){var _;Y(S)?(_=S.slice(),S.unshift(b)):Y(S.value)?(_=j({},S),_.value=_.value.slice(),S.value.unshift(b)):_=S,m.push(_)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:w0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:w0(v),dimsDef:y.slice()}];return ad(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:De(cW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),L9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Mt);or(L9,E9,!0);var v2e=function(e){H(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 a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=P5(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(ta(f),O9(d,f,a,u)):f=P5(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(xt),g2e=function(){function e(){}return e}(),m2e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new g2e},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();a<i.length;a++)r.moveTo(i[a][0],i[a][1]),a++,r.lineTo(i[a][0],i[a][1])},t}(He);function P5(e,t,r,n,i){var a=e.ends,o=new m2e({shape:{points:i?y2e(a,n,e):a}});return O9(e,o,t,r,i),o}function O9(e,t,r,n,i){var a=r.hostModel,o=zu[i?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},a,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");zr(t,s),Wt(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function y2e(e,t,r){return q(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Kh=D;function x2e(e){var t=S2e(e);Kh(t,function(r){var n=r.seriesModels;n.length&&(_2e(r),Kh(n,function(i,a){b2e(i,r.boxOffsetList[a],r.boxWidthList[a])}))})}function S2e(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=ze(r,i);a<0&&(a=r.length,r[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function _2e(e){var t=e.axis,r=e.seriesModels,n=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Kh(r,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Kh(r,function(p){var v=p.get("boxWidth");Y(v)||(v=[v,v]),o.push([J(v[0],s)||0,J(v[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,h=d/2-c/2;Kh(r,function(p,v){a.push(h),h+=f+d,i.push(Math.min(Math.max(d,o[v][0]),o[v][1]))})}function b2e(e,t,r){var n=e.coordinateSystem,i=e.getData(),a=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(u,f),h=x(d,c[2],f),p=x(d,c[0],f),v=x(d,c[1],f),g=x(d,c[3],f),m=x(d,c[4],f),y=[];S(y,v,!1),S(y,g,!0),y.push(p,v,m,g),b(y,p),b(y,m),b(y,h),i.setItemLayout(f,{initBaseline:h[s],ends:y})}function x(_,w,C){var T=i.get(w,C),A=[];A[o]=_,A[s]=T;var M;return isNaN(_)||isNaN(T)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function S(_,w,C){var T=w.slice(),A=w.slice();T[o]+=a,A[o]-=a,C?_.push(T,A):_.push(A,T)}function b(_,w){var C=w.slice(),T=w.slice();C[o]-=a,T[o]+=a,_.push(C,T)}}function w2e(e,t){t=t||{};for(var r=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<e.length;o++){var s=_i(e[o].slice()),l=b_(s,.25),u=b_(s,.5),c=b_(s,.75),f=s[0],d=s[s.length-1],h=(i??1.5)*(c-l),p=a?f:Math.max(f,l-h),v=a?d:Math.min(d,c+h),g=t.itemNameFormatter,m=Se(g)?g({value:o}):ne(g)?g.replace("{value}",o+""):o+"";r.push([m,p,l,u,c,v]);for(var y=0;y<s.length;y++){var x=s[y];if(x<p||x>v){var S=[m,x];n.push(S)}}}return{boxData:r,outliers:n}}var C2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Zr){var n="";at(n)}var i=w2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function T2e(e){e.registerSeriesModel(L9),e.registerChartView(v2e),e.registerLayout(x2e),e.registerTransform(C2e)}var A2e=["color","borderColor"],M2e=function(e){H(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){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Us(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&R5(u,f))return;var d=Xb(f,c,!0);Et(d,{shape:{points:f.ends}},r,c),qb(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&R5(u,h)){a.remove(d);return}d?(rt(d,{shape:{points:h.ends}},r,c),ta(d)):d=Xb(h),qb(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),E5(r,this.group);var n=r.get("clip",!0)?Vv(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=Xb(s);qb(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){E5(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(xt),k2e=function(){function e(){}return e}(),I2e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new k2e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(He);function Xb(e,t,r){var n=e.ends;return new I2e({shape:{points:r?D2e(n,e):n},z2:100})}function R5(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function qb(e,t,r,n){var i=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,zr(e,i)}function D2e(e,t){return q(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var P2e=function(){function e(){}return e}(),Zb=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new P2e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];r.moveTo(o,i[a++]),r.lineTo(o,i[a++])}else a+=3},t}(He);function E5(e,t,r,n){var i=e.getData(),a=i.getLayout("largePoints"),o=new Zb({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Zb({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Zb({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),Kb(1,o,e),Kb(-1,s,e),Kb(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function Kb(e,t,r,n){var i=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(A2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var N9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Mt);or(N9,E9,!0);function R2e(e){!e||!Y(e.series)||D(e.series,function(t){be(t)&&t.type==="k"&&(t.type="candlestick")})}var E2e=["itemStyle","borderColor"],L2e=["itemStyle","borderColor0"],O2e=["itemStyle","borderColorDoji"],N2e=["itemStyle","color"],z2e=["itemStyle","color0"],B2e={seriesType:"candlestick",plan:td(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?N2e:z2e)}function n(a,o){return o.get(a===0?O2e:a>0?E2e:L2e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");j(f,c)}}}}}},F2e={seriesType:"candlestick",plan:td(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=V2e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=q(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),S=y.get(u,m),b=y.get(c,m),_=y.get(f,m),w=y.get(d,m),C=Math.min(S,b),T=Math.max(S,b),A=$(C,x),M=$(T,x),k=$(_,x),I=$(w,x),P=[];O(P,M,0),O(P,A,1),P.push(L(I),L(M),L(k),L(A));var E=g.getItemModel(m),z=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:L5(y,m,S,b,c,z),initBaseline:S>b?M[a]:A[a],ends:P,brushRect:V(_,w,x)})}function $(G,W){var B=[];return B[i]=W,B[a]=G,isNaN(W)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function O(G,W,B){var X=W.slice(),te=W.slice();X[i]=ty(X[i]+n/2,1,!1),te[i]=ty(te[i]-n/2,1,!0),B?G.push(X,te):G.push(te,X)}function V(G,W,B){var X=$(G,B),te=$(W,B);return X[i]-=n/2,te[i]-=n/2,{x:X[0],y:X[1],width:n,height:te[1]-X[1]}}function L(G){return G[i]=ty(G[i],1),G}}function p(v,g){for(var m=Ma(v.count*4),y=0,x,S=[],b=[],_,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(_=v.next())!=null;){var T=w.get(s,_),A=w.get(u,_),M=w.get(c,_),k=w.get(f,_),I=w.get(d,_);if(isNaN(T)||isNaN(k)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=L5(w,_,A,M,c,C),S[i]=T,S[a]=k,x=t.dataToPoint(S,null,b),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=I,x=t.dataToPoint(S,null,b),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function L5(e,t,r,n,i,a){var o;return r>n?o=-1:r<n?o=1:o=a?0:t>0?e.get(i,t-1)<=n?1:-1:1,o}function V2e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=J(Ie(e.get("barMaxWidth"),i),i),o=J(Ie(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?J(s,i):Math.max(Math.min(i/2,a),o)}function $2e(e){e.registerChartView(M2e),e.registerSeriesModel(N9),e.registerPreprocessor(R2e),e.registerVisual(B2e),e.registerLayout(F2e)}function O5(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var G2e=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Bv(r,n),o=new Ae;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=ar(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}O5(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}O5(i,r)},t.prototype.highlight=function(){Co(this)},t.prototype.downplay=function(){To(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var i=this,a=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=nd(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var h=Bu(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=r.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=a.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=n/r.count(),v.z=a.getShallow("z")||0,v.zlevel=a.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?v.showEffectOn!=="render"&&i.startEffectAnimation(v):g==="normal"&&v.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=v,Wt(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(Ae),H2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new Fv(G2e)},t.prototype.render=function(r,n,i){var a=r.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype.updateTransform=function(r,n,i){var a=r.getData();this.group.dirty();var o=$v("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=lpe(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(xt),W2e=function(e){H(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,n){return Lo(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Mt);function j2e(e){e.registerChartView(H2e),e.registerSeriesModel(W2e),e.registerLayout($v("effectScatter"))}var z9=function(e){H(t,e);function t(r,n,i){var a=e.call(this)||this;return a.add(a.createLine(r,n,i)),a._updateEffectSymbol(r,n),a}return t.prototype.createLine=function(r,n,i){return new TI(r,n,i)},t.prototype._updateEffectSymbol=function(r,n){var i=r.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");Y(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=ar(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,a,n))},t.prototype._updateEffectAnimation=function(r,n,i){var a=this.childAt(1);if(a){var o=r.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=wr(n.get("delay"),function(h){return h/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;Se(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return os(r.__p1,r.__cp1)+os(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=br,c=aT;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=os(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*os(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var i=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,i,n)},t}(Ae),B9=function(e){H(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createPolyline(r,n,i),a}return t.prototype._createPolyline=function(r,n,i){var a=r.getItemLayout(n),o=new mn({shape:{points:a}});this.add(o),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};rt(o,s,a,n),this._updateCommonStl(r,n,i)},t.prototype._updateCommonStl=function(r,n,i){var a=this.childAt(0),o=r.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var d=a.ensureState("emphasis");d.style=s,Wt(this,l,u,c)},t.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.setShape("points",r.getItemLayout(n))},t}(Ae),U2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,i){return new B9(r,n,i)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=os(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(z9),Y2e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),X2e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Y2e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){r.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)r.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],d=i[o++];if(r.moveTo(u,c),a>0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],d=a[u++],h=1;h<c;h++){var p=a[u++],v=a[u++];if(es(f,d,p,v,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],d=a[u++],p=a[u++],v=a[u++];if(o>0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(lH(f,d,g,m,p,v,s,r,n))return l}else if(es(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new Ne(a,o,s,l)}return r},t}(He),q2e=function(){function e(){this.group=new Ae}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],i=r.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new X2e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=ke(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),F9={seriesType:"lines",plan:td(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=i.start;c<i.end;c++){var h=e.getLineCoords(c,o);r&&(s[f++]=h);for(var p=0;p<h;p++)d=t.dataToPoint(o[p],!1,d),s[f++]=d[0],s[f++]=d[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var v=a.getItemModel(c),h=e.getLineCoords(c,o),g=[];if(r)for(var m=0;m<h;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var y=v.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}a.setItemLayout(c,g)}}}}}},Z2e=function(e){H(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 a=r.getData(),o=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&Vv(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=F9.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new q2e:new AI(o?a?U2e:B9:a?z9:TI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(xt),K2e=typeof Uint32Array>"u"?Array:Uint32Array,Q2e=typeof Float64Array>"u"?Array:Float64Array;function N5(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=q(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),nk([i,r[0],r[1]])}))}var J2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],N5(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(N5(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Qy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Qy(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),et(r[0])){for(var i=r.length,a=new K2e(i),o=new Q2e(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=r[c++];a[l++]=s+n,a[l++]=f;for(var d=0;d<f;d++){var h=r[c++],p=r[c++];o[s++]=h,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var i=new ln(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Mt);function ym(e){return e instanceof Array||(e=[e,e]),e}var eAe={seriesType:"lines",reset:function(e){var t=ym(e.get("symbol")),r=ym(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=ym(s.getShallow("symbol",!0)),u=ym(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function tAe(e){e.registerChartView(Z2e),e.registerSeriesModel(J2e),e.registerLayout(F9),e.registerVisual(eAe)}var rAe=256,nAe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Es.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p<h;++p){var v=t[p],g=v[0],m=v[1],y=v[2],x=i(y);d.globalAlpha=x,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var S=d.getImageData(0,0,f.width,f.height),b=S.data,_=0,w=b.length,C=this.minOpacity,T=this.maxOpacity,A=T-C;_<w;){var x=b[_+3]/256,M=Math.floor(x*(rAe-1))*4;if(x>0){var k=o(x)?l:u;x>0&&(x=x*A+C),b[_++]=k[M],b[_++]=k[M+1],b[_++]=k[M+2],b[_++]=k[M+3]*x*256}else _+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Es.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function iAe(e,t,r){var n=e[1]-e[0];t=q(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function aAe(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function z5(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var oAe=function(e){H(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 a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):z5(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(z5(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Us(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Vu(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),b=yr(r),_=r.getModel("emphasis"),w=_.get("focus"),C=_.get("blurScope"),T=_.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;M<a;M++){var k=void 0,I=g.getItemVisual(M,"style");if(l){var P=g.get(A[0],M),E=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(P)||isNaN(E)||P<f[0]||P>f[1]||E<d[0]||E>d[1])continue;var z=s.dataToPoint([P,E]);k=new qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:I})}else{if(isNaN(g.get(A[1],M)))continue;k=new qe({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:I})}if(g.hasItemOption){var $=g.getItemModel(M),O=$.getModel("emphasis");m=O.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=O.get("focus"),C=O.get("blurScope"),T=O.get("disabled"),b=yr($)}k.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(k,b,{labelFetcher:r,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:L}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=y,k.ensureState("select").style=x,Wt(k,w,C,T),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new nAe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,m=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,T){var A=r.dataToPoint([w,C]);return A[0]-=d,A[1]-=h,A.push(T),A}),S=i.getExtent(),b=i.type==="visualMap.continuous"?aAe(S,i.option.range):iAe(S,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var _=new Mr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(xt),sAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Lo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Lv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Mt);function lAe(e){e.registerChartView(oAe),e.registerSeriesModel(sAe)}var uAe=["itemStyle","borderWidth"],B5=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Qb=new Eo,cAe=function(e){H(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 a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:B5[+c],categoryDim:B5[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var v=V5(o,p),g=F5(o,p,v,d),m=$5(o,d,g);o.setItemGraphicEl(p,m),a.add(m),H5(m,d,g)}}).update(function(p,v){var g=s.getItemGraphicEl(v);if(!o.hasValue(p)){a.remove(g);return}var m=V5(o,p),y=F5(o,p,m,d),x=j9(o,y);g&&x!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?mAe(g,d,y):g=$5(o,d,y,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=y,a.add(g),H5(g,d,y)}).remove(function(p){var v=s.getItemGraphicEl(p);v&&G5(s,p,v.__pictorialSymbolMeta.animationModel,v)}).execute();var h=r.get("clip",!0)?Vv(r.coordinateSystem,!1,r):null;return h?a.setClipPath(h):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){G5(a,ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(xt);function F5(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};fAe(r,a,i,n,d),dAe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),hAe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Bu(r.get("symbolOffset"),h);return pAe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function fAe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Y(o)){var f=[Jb(s,o[0])-l,Jb(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Jb(s,o)-l:t?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=r[a.wh]),i.pxSign=c>0?1:-1}function Jb(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function dAe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;Y(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=J(p[f.index],d),p[c.index]=J(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function hAe(e,t,r,n,i){var a=e.get(uAe)||0;a&&(Qb.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Qb.updateTransform(),a/=Qb.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function pAe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var m=Math.abs(l),y=wr(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var S=J(y,t[h.index]),b=Math.max(v+S*2,0),_=x?0:S*2,w=X6(n),C=w?n:W5((m+_)/b),T=m-C*v;S=T/2/(x?C:Math.max(C-1,1)),b=v+S*2,_=x?0:S*2,!w&&n!=="fixed"&&(C=u?W5((Math.abs(u)+_)/b):0),g=C*b-_,f.repeatTimes=C,f.symbolMargin=S}var A=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?A:o==="end"?l-A:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[d.index]=r[d.xy],k[h.index]=r[h.xy];var I=f.barRectShape=j({},r);I[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+A)),I[d.wh]=r[d.wh];var P=f.clipShape={};P[d.xy]=-r[d.xy],P[d.wh]=c.ecSize[d.wh],P[h.xy]=0,P[h.wh]=r[h.wh]}function V9(e){var t=e.symbolPatternSize,r=ar(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function $9(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(LI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?ff(v,null,p(c),r,n):ff(v,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(v)}),c++});c<u;c++){var d=V9(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var h=p(c);ff(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function p(v){var g=s.slice(),m=r.pxSign,y=v;return(r.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-v),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function G9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?ff(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=V9(r),i.add(a),ff(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function H9(e,t,r){var n=j({},t.barRectShape),i=e.__pictorialBarRect;i?ff(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new qe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function W9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=j({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)rt(i,{shape:a},s,l);else{a[o.wh]=0,i=new qe({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],zu[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function V5(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=vAe,r.isAnimationEnabled=gAe,r}function vAe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function gAe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $5(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?$9(i,t,r):G9(i,t,r),H9(i,r,n),W9(i,t,r,n),i.__pictorialShapeStr=j9(e,r),i.__pictorialSymbolMeta=r,i}function mAe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;rt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?$9(e,t,r,!0):G9(e,t,r,!0),H9(e,r,!0),W9(e,t,r,!0)}function G5(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];LI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Os(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function j9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function LI(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function ff(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&zu[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function H5(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");LI(e,function(v){if(v instanceof Mr){var g=v.style;v.useStyle(j({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;p.ignoreClip=!0,Br(p,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Pf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Wt(e,c,f,a.get("disabled"))}function W5(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var yAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ys(qp.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(qp);function xAe(e){e.registerChartView(cAe),e.registerSeriesModel(yAe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,De(Mj,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kj("pictorialBar"))}var SAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new Ao(this._layersSeries||[],l,d,d),p=[];h.add(le(v,this,"add")).update(le(v,this,"update")).remove(le(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var S=[],b=[],_,w=l[m].indices,C=0;C<w.length;C++){var T=a.getItemLayout(w[C]),A=T.x,M=T.y0,k=T.y;S.push(A,M),b.push(A,M+k),_=a.getItemVisual(w[C],"style")}var I,P=a.getItemLayout(w[0]),E=r.getModel("label"),z=E.get("margin"),$=r.getModel("emphasis");if(g==="add"){var O=p[m]=new Ae;I=new g8({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),r.isAnimationEnabled()&&I.setClipPath(_Ae(I.getBoundingRect(),r,function(){I.removeClipPath()}))}else{var O=x[y];I=O.childAt(0),s.add(O),p[m]=O,rt(I,{shape:{points:S,stackedOnPoints:b}},r),ta(I)}Br(I,yr(r),{labelDataIndex:w[C-1],defaultText:a.getName(w[C-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var V=I.getTextContent();V&&(V.x=P.x-z,V.y=P.y0+P.y/2),I.useStyle(_),a.setItemGraphicEl(m,I),zr(I,r),Wt(I,$.get("focus"),$.get("blurScope"),$.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(xt);function _Ae(e,t,r){var n=new qe({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Et(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var ew=2,bAe=function(e){H(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hv(le(this.getData,this),le(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,i={},a=ST(r,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),o=[];a.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var i=this.getReferringComponents("singleAxis",ir).models[0],a=i.get("type"),o=ft(r.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=de(),c=0,f=0;f<s.length;++f)l.push(s[f][ew]),u.get(s[f][ew])||(u.set(s[f][ew],c),c++);var d=Nv(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:w0(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new ln(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),i=[],a=0;a<n;++a)i[a]=a;var o=r.mapDimension("single"),s=ST(i,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return r.get(o,f)-r.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,i){Y(r)||(r=r?[r]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,p=0;p<h;++p){var v=a.get(r[0],o[c].indices[p]),g=Math.abs(v-n);g<=f&&(u=v,f=g,d=o[c].indices[p])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getName(r),s=a.get(a.mapDimension("value"),r);return xr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Mt);function wAe(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),i=r.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=r.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=J(s[0],o.height),s[1]=J(s[1],o.height);var u=o.height-s[0]-s[1];j5(n,r,u)}else{s[0]=J(s[0],o.width),s[1]=J(s[1],o.width);var c=o.width-s[0]-s[1];j5(n,r,c)}n.setLayout("layoutInfo",a)})}function j5(e,t,r){if(e.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),o=e.mapDimension("value"),s=q(i,function(g){return q(g.indices,function(m){var y=n.dataToPoint(e.get(a,m));return y[1]=e.get(o,m),y})}),l=CAe(s),u=l.y0,c=r/l.max,f=i.length,d=i[0].indices.length,h,p=0;p<d;++p){h=u[p]*c,e.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h,y:s[0][p][1]*c});for(var v=1;v<f;++v)h+=s[v-1][p][1]*c,e.setItemLayout(i[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:h,y:s[v][p][1]*c})}}function CAe(e){for(var t=e.length,r=e[0].length,n=[],i=[],a=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function TAe(e){e.registerChartView(SAe),e.registerSeriesModel(bAe),e.registerLayout(wAe),e.registerProcessor(Gv("themeRiver"))}var AAe=2,MAe=4,U5=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=AAe,o.textConfig={inside:!0},ke(o).seriesIndex=n.seriesIndex;var s=new Je({z2:MAe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=j({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=If(h,o));var p=Jl(l.getModel("itemStyle"),f,!0);j(f,p),D(fn,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var b=Jl(S,f);b&&(x.shape=b)}),r?(s.setShape(f),s.shape.r=c.r0,Et(s,{shape:{r:c.r}},i,n.dataIndex)):(rt(s,{shape:f},i),ta(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Wt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)<p);d.ignore=!v,D(zp,function(m){var y=m==="normal"?i.getModel("label"):i.getModel([m,"label"]),x=m==="normal",S=x?d:d.ensureState(m),b=r.getFormattedLabel(h,m);x&&(b=b||n.node.name),S.style=Tt(y,{},null,m!=="normal",!0),b&&(S.style.text=b);var _=y.get("show");_!=null&&!x&&(S.ignore=!_);var w=g(y,"position"),C=x?f:f.states[m],T=C.style.fill;C.textConfig={outsideFill:y.get("color")==="inherit"?T:null,inside:w!=="outside"};var A,M=g(y,"distance")||0,k=g(y,"align"),I=g(y,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,z=Wn(I==="tangential"?Math.PI/2-l:l),$=z>P&&!Op(z-P)&&z<E;w==="outside"?(A=o.r+M,k=$?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,k="center"):k==="left"?(A=o.r0+M,k=$?"right":"left"):k==="right"&&(A=o.r-M,k=$?"left":"right"),S.style.align=k,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*c+o.cy;var O=0;I==="radial"?O=Wn(-l)+($?Math.PI:0):I==="tangential"?O=Wn(Math.PI/2-l)+($?Math.PI:0):et(I)&&(O=I*Math.PI/180),S.rotation=Wn(O)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(dn),S2="sunburstRootToNode",Y5="sunburstHighlight",kAe="sunburstUnhighlight";function IAe(e){e.registerAction({type:S2,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Kp(t,[S2],i);if(o){var s=i.getViewRoot();s&&(t.direction=SI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:Y5,update:"none"},function(t,r,n){t=j({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Kp(t,[Y5],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(j(t,{type:"highlight"}))}),e.registerAction({type:kAe,update:"updateView"},function(t,r,n){t=j({},t),n.dispatchAction(j(t,{type:"downplay"}))})}var DAe=function(e){H(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,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(y,x){if(y.length===0&&x.length===0)return;new Ao(x,y,S,S).add(b).update(b).remove(De(b,null)).execute();function S(_){return _.getId()}function b(_,w){var C=_==null?null:y[_],T=w==null?null:x[w];v(C,T)}}function v(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,r,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var S=new U5(y,r,n,i);c.add(S),s.setItemGraphicEl(y.dataIndex,S)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,i):(o.virtualPiece=new U5(y,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";p0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:S2,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(xt),PAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};U9(i);var a=this._levelModels=q(r.levels||[],function(l){return new st(l,this,n)},this),o=xI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=jx(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){K8(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Mt);function U9(e){var t=0;D(e.children,function(n){U9(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}var X5=Math.PI/180;function RAe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=J(i[0],o),c=J(i[1],s),f=J(a[0],l/2),d=J(a[1],l/2),h=-n.get("startAngle")*X5,p=n.get("minAngle")*X5,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&Y9(g,y);var x=0;D(g.children,function(z){!isNaN(z.getValue())&&x++});var S=g.getValue(),b=Math.PI/(S||x)*2,_=g.depth>0,w=g.height-(_?-1:1),C=(d-f)/(w||1),T=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=T?1:-1,k=function(z,$){if(z){var O=$;if(z!==v){var V=z.getValue(),L=S===0&&A?b:V*b;L<p&&(L=p),O=$+M*L;var G=z.depth-m-(_?-1:1),W=f+C*G,B=f+C*(G+1),X=n.getLevelModel(z);if(X){var te=X.get("r0",!0),U=X.get("r",!0),re=X.get("radius",!0);re!=null&&(te=re[0],U=re[1]),te!=null&&(W=J(te,l/2)),U!=null&&(B=J(U,l/2))}z.setLayout({angle:L,startAngle:$,endAngle:O,clockwise:T,cx:u,cy:c,r0:W,r:B})}if(z.children&&z.children.length){var Q=0;D(z.children,function(ae){Q+=k(ae,$+Q)})}return O-$}};if(_){var I=f,P=f+C,E=Math.PI*2;v.setLayout({angle:E,startAngle:h,endAngle:h+E,clockwise:T,cx:u,cy:c,r0:I,r:P})}k(g,h)})}function Y9(e,t){var r=e.children||[];e.children=EAe(r,t),r.length&&D(e.children,function(n){Y9(n,t)})}function EAe(e,t){if(Se(t)){var r=q(e,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return r.sort(function(i,a){return t(i.params,a.params)}),q(r,function(i){return e[i.index]})}else{var n=t==="asc";return e.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function LAe(e){var t={};function r(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&ne(s)&&(s=lT(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");j(u,l)})})}function OAe(e){e.registerChartView(DAe),e.registerSeriesModel(PAe),e.registerLayout(De(RAe,"sunburst")),e.registerProcessor(De(Gv,"sunburst")),e.registerVisual(LAe),IAe(e)}var q5={color:"fill",borderColor:"stroke"},NAe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ho=Ze(),zAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Lo(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ho(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Mt);function BAe(e,t){return t=t||[0,0],q(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function FAe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:le(BAe,e)}}}function VAe(e,t){return t=t||[0,0],q([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function $Ae(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:le(VAe,e)}}}function GAe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function HAe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:le(GAe,e)}}}function WAe(e,t){return t=t||[0,0],q(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function jAe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:le(WAe,e)}}}function UAe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function X9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||fe(e,"text")))}function q9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},fe(n,"text")&&(o.text=n.text),fe(n,"rich")&&(o.rich=n.rich),fe(n,"textFill")&&(o.fill=n.textFill),fe(n,"textStroke")&&(o.stroke=n.textStroke),fe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),fe(n,"fontSize")&&(o.fontSize=n.fontSize),fe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),fe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=fe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),fe(n,"textPosition")&&(i.position=n.textPosition),fe(n,"textOffset")&&(i.offset=n.textOffset),fe(n,"textRotation")&&(i.rotation=n.textRotation),fe(n,"textDistance")&&(i.distance=n.textDistance)}return Z5(o,e),D(o.rich,function(l){Z5(l,l)}),{textConfig:i,textContent:a}}function Z5(e,t){t&&(t.font=t.textFont||t.font,fe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),fe(t,"textAlign")&&(e.align=t.textAlign),fe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),fe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),fe(t,"textWidth")&&(e.width=t.textWidth),fe(t,"textHeight")&&(e.height=t.textHeight),fe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),fe(t,"textPadding")&&(e.padding=t.textPadding),fe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),fe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),fe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),fe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),fe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),fe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),fe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function K5(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";Q5(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){Q5(s,s)}),n}function Q5(e,t){t&&(fe(t,"fill")&&(e.textFill=t.fill),fe(t,"stroke")&&(e.textStroke=t.fill),fe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),fe(t,"font")&&(e.font=t.font),fe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),fe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),fe(t,"fontSize")&&(e.fontSize=t.fontSize),fe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),fe(t,"align")&&(e.textAlign=t.align),fe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),fe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),fe(t,"width")&&(e.textWidth=t.width),fe(t,"height")&&(e.textHeight=t.height),fe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),fe(t,"padding")&&(e.textPadding=t.padding),fe(t,"borderColor")&&(e.textBorderColor=t.borderColor),fe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),fe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),fe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),fe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),fe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),fe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),fe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),fe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),fe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),fe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Z9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},J5=Ye(Z9);Va(Ga,function(e,t){return e[t]=1,e},{});Ga.join(", ");var O0=["","style","shape","extra"],Lf=Ze();function OI(e,t,r,n,i){var a=e+"Animation",o=Xf(e,n,i)||{},s=Lf(t).userDuring;return o.duration>0&&(o.during=s?le(KAe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),j(o,r[a]),o}function sy(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Lf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(JAe(e,t,f),tB("shape",t,f),tB("extra",t,f),!a&&s&&(QAe(e,t,c),eB("shape",e,t,c),eB("extra",e,t,c),eMe(e,t,u,c)),f.style=u,YAe(e,f,o),qAe(e,t),s)if(a){var d={};D(O0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),j(p?d[p]:d,v.enterFrom))});var h=OI("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else XAe(e,t,i||0,r,c);K9(e,t),u?e.dirty():e.markRedraw()}function K9(e,t){for(var r=Lf(e).leaveToProps,n=0;n<O0.length;n++){var i=O0[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=Lf(e).leaveToProps={}),i&&(r[i]=r[i]||{}),j(i?r[i]:r,a.leaveTo))}}function Xx(e,t,r,n){if(e){var i=e.parent,a=Lf(e).leaveToProps;if(a){var o=OI("update",e,t,r,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function cu(e){return e==="all"}function YAe(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function XAe(e,t,r,n,i){if(i){var a=OI("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function qAe(e,t){fe(t,"silent")&&(e.silent=t.silent),fe(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ai&&fe(t,"invisible")&&(e.invisible=t.invisible),e instanceof He&&fe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var fa={},ZAe={setTransform:function(e,t){return fa.el[e]=t,this},getTransform:function(e){return fa.el[e]},setShape:function(e,t){var r=fa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=fa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=fa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=fa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=fa.el.extra||(fa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=fa.el.extra;if(t)return t[e]}};function KAe(){var e=this,t=e.el;if(t){var r=Lf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}fa.el=t,n(ZAe)}}function eB(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),cu(l))j(o,a);else for(var u=vt(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(cu(s)||ze(s,e)>=0){!o&&(o=n[e]={});for(var h=Ye(a),c=0;c<h.length;c++){var f=h[c],d=a[f];tMe(i[f],d)&&(o[f]=d)}}}}}function tB(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=Ye(n),o=0;o<a.length;o++){var s=a[o];i[s]=$h(n[s])}}function QAe(e,t,r){for(var n=t.transition,i=cu(n)?Ga:vt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function JAe(e,t,r){for(var n=0;n<J5.length;n++){var i=J5[n],a=Z9[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<Ga.length;n++){var s=Ga[n];t[s]!=null&&(r[s]=t[s])}}function eMe(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!cu(o)){var l=vt(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(e.getAnimationStyleProps&&(cu(s)||cu(o)||ze(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=Ye(r),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=i[c];a[c]=f}}}}}}}function tMe(e,t){return qr(e)?e!==t:e!=null&&isFinite(e)}var Q9=Ze(),rMe=["percent","easing","shape","style","extra"];function J9(e){e.stopAnimation("keyframe"),e.attr(Q9(e))}function N0(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Y(t)){D(t,function(s){N0(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Xf("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=Q9(e);D(O0,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),D(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=Ye(f);if(s||(d=ft(d,function(v){return ze(rMe,v)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var p=s?o[s]:o;D(d,function(v){p[v]=((s?e[s]:e)||{})[v]}),l.whenWithKeys(i*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var po="emphasis",hs="normal",NI="blur",zI="select",Fs=[hs,po,NI,zI],tw={normal:["itemStyle"],emphasis:[po,"itemStyle"],blur:[NI,"itemStyle"],select:[zI,"itemStyle"]},rw={normal:["label"],emphasis:[po,"label"],blur:[NI,"label"],select:[zI,"label"]},nMe=["x","y"],iMe="e\0\0",ii={normal:{},emphasis:{},blur:{},select:{}},aMe={cartesian2d:FAe,geo:$Ae,single:HAe,polar:jAe,calendar:UAe};function _2(e){return e instanceof He}function b2(e){return e instanceof Ai}function oMe(e,t){t.copyTransform(e),b2(t)&&b2(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,_2(t)&&_2(e)&&t.setShape(e.shape))}var sMe=function(e){H(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,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=rB(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){nw(i,null,f,u(f,a),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Xx(d,ho(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);nw(i,h,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?Vv(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=rB(n,s,i,a),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=nw(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Us(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(xt);function BI(e){var t=e.type,r;if(t==="path"){var n=e.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=rU(n);r=Cx(a,null,i,n.layout||"center"),ho(r).customPathData=a}else if(t==="image")r=new Mr({}),ho(r).customImagePath=e.style.image;else if(t==="text")r=new Je({});else if(t==="group")r=new Ae;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Mk(t);if(!o){var s="";at(s)}r=new o}return ho(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function FI(e,t,r,n,i,a,o){J9(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=nMe);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;fe(u,"textFill")&&(u.fill=u.textFill),fe(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=_2(t)?l.decal:null;e&&f&&(f.dirty=!0,c=If(f,e)),l.__decalPattern=c}if(b2(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}sy(t,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),N0(t,n.keyframeAnimation,a)}function eU(e,t,r,n,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(n===!1){var l=a.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Tu(a)}}function lMe(e,t,r){if(!e.isGroup){var n=e,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Fs.length;s++)uMe(n,t,Fs[s])}}function uMe(e,t,r){var n=r===hs,i=n?t:z0(t,r),a=i?i.z2:null,o;a!=null&&(o=n?e:e.ensureState(r),o.z2=a||0)}function rB(e,t,r,n){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):aMe[a.type](a));for(var s=_e({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:_,ordinalRawValue:b,styleEmphasis:w,visual:A,barLayout:M,currentSeriesIndices:k,font:I},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:cMe(e.getData())},u,c,f={},d={},h={},p={},v=0;v<Fs.length;v++){var g=Fs[v];h[g]=e.getModel(tw[g]),p[g]=e.getModel(rw[g])}function m(P){return P===u?c||(c=t.getItemModel(P)):t.getItemModel(P)}function y(P,E){return t.hasItemOption?P===u?f[E]||(f[E]=m(P).getModel(tw[E])):m(P).getModel(tw[E]):h[E]}function x(P,E){return t.hasItemOption?P===u?d[E]||(d[E]=m(P).getModel(rw[E])):m(P).getModel(rw[E]):p[E]}return function(P,E){return u=P,c=null,f={},d={},i&&i(_e({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:E?E.type:null},l),s)};function S(P,E){return E==null&&(E=u),t.getStore().get(t.getDimensionIndex(P||0),E)}function b(P,E){E==null&&(E=u),P=P||0;var z=t.getDimensionInfo(P);if(!z){var $=t.getDimensionIndex(P);return $>=0?t.getStore().get($,E):void 0}var O=t.get(z.name,E),V=z&&z.ordinalMeta;return V?V.categories[O]:O}function _(P,E){E==null&&(E=u);var z=t.getItemVisual(E,"style"),$=z&&z.fill,O=z&&z.opacity,V=y(E,hs).getItemStyle();$!=null&&(V.fill=$),O!=null&&(V.opacity=O);var L={inheritColor:ne($)?$:"#000"},G=x(E,hs),W=Tt(G,null,L,!1,!0);W.text=G.getShallow("show")?Ie(e.getFormattedLabel(E,hs),Pf(t,E)):null;var B=d0(G,L,!1);return T(P,V),V=K5(V,W,B),P&&C(V,P),V.legacy=!0,V}function w(P,E){E==null&&(E=u);var z=y(E,po).getItemStyle(),$=x(E,po),O=Tt($,null,null,!0,!0);O.text=$.getShallow("show")?La(e.getFormattedLabel(E,po),e.getFormattedLabel(E,hs),Pf(t,E)):null;var V=d0($,null,!0);return T(P,z),z=K5(z,O,V),P&&C(z,P),z.legacy=!0,z}function C(P,E){for(var z in E)fe(E,z)&&(P[z]=E[z])}function T(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function A(P,E){if(E==null&&(E=u),fe(q5,P)){var z=t.getItemVisual(E,"style");return z?z[q5[P]]:null}if(fe(NAe,P))return t.getItemVisual(E,P)}function M(P){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return J1e(_e({axis:E},P))}}function k(){return r.getCurrentSeriesIndices()}function I(P){return kk(P,r)}}function cMe(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function nw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=VI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Wt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function VI(e,t,r,n,i,a){var o=-1,s=t;t&&tU(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=BI(n),s&&oMe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ii.normal.cfg=ii.normal.conOpt=ii.emphasis.cfg=ii.emphasis.conOpt=ii.blur.cfg=ii.blur.conOpt=ii.select.cfg=ii.select.conOpt=null,ii.isLegacy=!1,dMe(u,r,n,i,l,ii),fMe(u,r,n,i,l),FI(e,u,r,n,ii,i,l),fe(n,"info")&&(ho(u).info=n.info);for(var c=0;c<Fs.length;c++){var f=Fs[c];if(f!==hs){var d=z0(n,f),h=$I(n,d,f);eU(f,u,d,h,ii)}}return lMe(u,n,i),n.type==="group"&&hMe(e,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function tU(e,t,r){var n=ho(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&mMe(a)&&rU(a)!==n.customPathData||i==="image"&&fe(o,"image")&&o.image!==n.customImagePath}function fMe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&tU(o,a,n)&&(o=null),o||(o=BI(a),e.setClipPath(o)),FI(null,o,t,a,null,n,i)}}function dMe(e,t,r,n,i,a){if(!e.isGroup){nB(r,null,a),nB(r,po,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=BI(o),e.setTextContent(c)),FI(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d<Fs.length;d++){var h=Fs[d];if(h!==hs){var p=a[h].conOpt;eU(h,c,p,$I(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function nB(e,t,r){var n=t?z0(e,t):e,i=t?$I(e,n,po):e.style,a=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?z0(s,t):s:null;if(i&&(r.isLegacy||X9(i,a,!!o,!!l))){r.isLegacy=!0;var u=q9(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function z0(e,t){return t?e?e[t]:null:e}function $I(e,t,r){var n=t&&t.style;return n==null&&r===po&&e&&(n=e.styleEmphasis),n}function hMe(e,t,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){vMe({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=a[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),VI(e,d,r,f,i,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);pMe(t,p,i)}}}function pMe(e,t,r){t&&Xx(t,ho(e).option,r)}function vMe(e){new Ao(e.oldChildren,e.newChildren,iB,iB,e).add(aB).update(aB).remove(gMe).execute()}function iB(e,t){var r=e&&e.name;return r??iMe+t}function aB(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;VI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function gMe(e){var t=this.context,r=t.oldChildren[e];r&&Xx(r,ho(r).option,t.seriesModel)}function rU(e){return e&&(e.pathData||e.d)}function mMe(e){return e&&(fe(e,"pathData")||fe(e,"d"))}function yMe(e){e.registerChartView(sMe),e.registerSeriesModel(zAe)}var Bl=Ze(),oB=Ce,iw=le,GI=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=De(sB,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}uB(s,r,!0),this._renderHandle(a)}},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,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=dI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Bl(t).pointerEl=new zu[a.type](oB(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Bl(t).labelEl=new Je(oB(r.label));t.add(a),lB(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Bl(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 a=Bl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),lB(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Ev(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){bo(u.event)},onmousedown:iw(this._onHandleDragMove,this,0,0),drift:iw(this._onHandleDragMove,this),ondragend:iw(this._onHandleDragEnd,this)}),n.add(i)),uB(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,rd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){sB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,aw(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(aw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(aw(i)),Bl(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),Hp(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 sB(e,t,r,n){nU(Bl(r).lastProp,n)||(Bl(r).lastProp=n,t?rt(r,n,e):(r.stopAnimation(),r.attr(n)))}function nU(e,t){if(be(e)&&be(t)){var r=!0;return D(t,function(n,i){r=r&&nU(e[i],n)}),!!r}else return e===t}function lB(e,t){e[t.get(["label","show"])?"show":"hide"]()}function aw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function uB(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function HI(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 iU(e,t,r,n,i){var a=r.get("value"),o=aU(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Qf(s.get("padding")||0),u=s.getFont(),c=Mv(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),xMe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Tt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function xMe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function aU(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:tI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),ne(o)?a=o.replace("{value}",a):Se(o)&&(a=o(s))}return a}function WI(e,t,r){var n=Yn();return Nu(n,n,r.rotation),$a(n,n,r.position),qi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function oU(e,t,r,n,i,a){var o=un.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),iU(t,n,i,a,{position:WI(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function sU(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function cB(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var SMe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=fB(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=HI(a),h=_Me[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=n2(l.model,i);oU(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=n2(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=WI(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=fB(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(GI);function fB(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var _Me={line:function(e,t,r){var n=jI([t,r[0]],[t,r[1]],dB(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:sU([t-n/2,r[0]],[n,i],dB(e))}}};function dB(e){return e.dim==="x"?0:1}var bMe=function(e){H(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}(Ue),so=Ze(),wMe=D;function lU(e,t,r){if(!je.node){var n=t.getZr();so(n).records||(so(n).records={}),CMe(n,t);var i=so(n).records[e]||(so(n).records[e]={});i.handler=r}}function CMe(e,t){if(so(e).initialized)return;so(e).initialized=!0,r("click",De(hB,"click")),r("mousemove",De(hB,"mousemove")),r("globalout",AMe);function r(n,i){e.on(n,function(a){var o=MMe(t);wMe(so(e).records,function(s){s&&i(s,a,o.dispatchAction)}),TMe(o.pendings,t)})}}function TMe(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 AMe(e,t,r){e.handler("leave",null,r)}function hB(e,t,r,n){t.handler(e,r,n)}function MMe(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 w2(e,t){if(!je.node){var r=t.getZr(),n=(so(r).records||{})[e];n&&(so(r).records[e]=null)}}var kMe=function(e){H(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 a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";lU("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){w2("axisPointer",n)},t.prototype.dispose=function(r,n){w2("axisPointer",n)},t.type="axisPointer",t}(zt);function uU(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=wu(a,e);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(q(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var pB=Ze();function IMe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||le(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ly(i)&&(i=uU({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ly(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ly(i),d={},h={},p={list:[],map:{}},v={showPointer:De(PMe,h),showTooltip:De(RMe,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,b){var _=S.axis,w=NMe(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=_.pointToData(i)),C!=null&&vB(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(x.axesInfo,function(S,b){var _=h[b];if(S!==m&&_){var w=_.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,gB(S),gB(m)))),g[m.key]=w}})}),D(g,function(m,y){vB(c[y],m,v,!0,d)}),EMe(h,c,d),LMe(p,i,e,o),OMe(c,o,r),d}}function vB(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=DMe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&j(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function DMe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,i=f,a.length=0),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function PMe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function RMe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Zp(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function EMe(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function LMe(e,t,r,n){if(ly(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 OMe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=pB(n)[i]||{},o=pB(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!a[c]&&s.push(u)}),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 NMe(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 gB(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 ly(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Uv(e){$u.registerAxisPointerClass("CartesianAxisPointer",SMe),e.registerComponentModel(bMe),e.registerComponentView(kMe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=U_e(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},IMe)}function zMe(e){Fe(N8),Fe(Uv)}var BMe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=HI(a),p=VMe[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=FMe(n,i,a,l,v);iU(r,i,a,o,g)},t}(GI);function FMe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=Yn();Nu(d,d,s),$a(d,d,[n.cx,n.cy]),u=qi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=un.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var VMe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:jI(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:cB(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:cB(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},$Me=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Ue),UI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ir).models[0]},t.type="polarAxis",t}(Ue);or(UI,zv);var GMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(UI),HMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(UI),YI=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(ia);YI.prototype.dataToRadius=ia.prototype.dataToCoord;YI.prototype.radiusToData=ia.prototype.coordToData;var WMe=Ze(),XI=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Mv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=WMe(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(ia);XI.prototype.dataToAngle=ia.prototype.dataToCoord;XI.prototype.angleToData=ia.prototype.coordToData;var cU=["radius","angle"],jMe=function(){function e(t){this.dimensions=cU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new YI,this._angleAxis=new XI,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=mB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=mB(r);return i===this?this.pointToData(n):null},e}();function mB(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const UMe=jMe;function YMe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=J(n[0],i),e.cy=J(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[J(l[0],s),J(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function XMe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(C0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(C0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Df(n.scale,n.model),Df(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function qMe(e){return e.mainType==="angleAxis"}function yB(e,t){var r;if(e.type=t.get("type"),e.scale=$x(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),qMe(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var ZMe={dimensions:cU,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new UMe(i+"");a.update=XMe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");yB(o,l),yB(s,u),YMe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ir).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},KMe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Sm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function xB(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var QMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=q(i.getViewLabels(),function(c){c=Ce(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});xB(u),xB(s),D(KMe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&JMe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}($u),JMe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Sm(r),f=c?0:1,d,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?d=new zu[h]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new _x({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Sm(r)],u=q(n,function(c){return new vr({shape:xm(r,[l,l+s],c.coord)})});e.add(mi(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Sm(r)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new vr({shape:xm(r,[u,u+l],i[f][d].coord)}));e.add(mi(c,{style:_e(s.getModel("lineStyle").getLineStyle(),_e(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");D(o,function(f,d){var h=l,p=f.tickValue,v=a[Sm(r)],g=r.coordToPoint([v+u,f.coord]),m=r.cx,y=r.cy,x=Math.abs(g[0]-m)/v<.3?"center":g[0]>m?"left":"right",S=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var b=s[p];be(b)&&b.textStyle&&(h=new st(b.textStyle,l,l.ecModel))}var _=new Je({silent:un.isLabelSilent(t),style:Tt(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(_),c){var w=un.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,ke(_).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new vr({shape:xm(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(mi(c[f],{style:_e({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new vr({shape:xm(r,a,i[u][c].coord)}));e.add(mi(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,h=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),v=t.get("clockwise"),g=1,m=n.length;g<=m;g++){var y=g===m?n[0].coord:n[g].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new dn({shape:{cx:r.cx,cy:r.cy,r0:h,r:p,startAngle:d,endAngle:-y*f,clockwise:v},silent:!0})),d=-y*f}for(var g=0;g<c.length;g++)e.add(mi(c[g],{style:_e({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},eke=["axisLine","axisTickLabel","axisName"],tke=["splitLine","splitArea","minorSplitLine"],rke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new Ae;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=ike(s,r,f),p=new un(r,h);D(eke,p.add,p),a.add(p.getGroup()),Rv(i,a,r),D(tke,function(v){r.get([v,"show"])&&!o.scale.isBlank()&&nke[v](this.group,r,s,f,d,u,c)},this)}},t.type="radiusAxis",t}($u),nke={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),h=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],v=0;v<a.length;v++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new zu[h]({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[v].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var v=0;v<p.length;v++)e.add(mi(p[v],{style:_e({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Eo({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(mi(u,{style:_e({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,d=1;d<a.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new dn({shape:{cx:r.cx,cy:r.cy,r0:f,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[d].coord}for(var d=0;d<c.length;d++)e.add(mi(c[d],{style:_e({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function ike(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function fU(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function dU(e,t){return t.dim+e.model.componentIndex}function ake(e,t,r){var n={},i=oke(ft(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=dU(s,l),c=fU(a),f=i[u][c],d=f.offset,h=f.width,p=s.getOtherAxis(l),v=a.coordinateSystem.cx,g=a.coordinateSystem.cy,m=a.get("barMinHeight")||0,y=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var x=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=zs(o,x),_=l.dim!=="radius"||!a.get("roundCap",!0),w=p.model,C=w.get("startValue"),T=p.dataToCoord(C||0),A=0,M=o.count();A<M;A++){var k=o.get(x,A),I=o.get(S,A),P=k>=0?"p":"n",E=T;b&&(n[c][I]||(n[c][I]={p:T,n:T}),E=n[c][I][P]);var z=void 0,$=void 0,O=void 0,V=void 0;if(p.dim==="radius"){var L=p.dataToCoord(k)-T,G=l.dataToCoord(I);Math.abs(L)<m&&(L=(L<0?-1:1)*m),z=E,$=E+L,O=G-d,V=O-h,b&&(n[c][I][P]=$)}else{var W=p.dataToCoord(k,_)-T,B=l.dataToCoord(I);Math.abs(W)<y&&(W=(W<0?-1:1)*y),z=B+d,$=z+h,O=E,V=E+W,b&&(n[c][I][P]=V)}o.setItemLayout(A,{cx:v,cy:g,r0:z,r:$,startAngle:-O*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:O>=V})}}})}function oke(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=dU(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=fU(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=J(n.get("barWidth"),c),v=J(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=J(n.categoryGap,o),l=J(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),D(a,function(v,g){var m=v.maxWidth;m&&m<f&&(m=Math.min(m,u),v.width&&(m=Math.min(m,v.width)),u-=m,v.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;D(a,function(v,g){v.width||(v.width=f),h=v,d+=v.width*(1+l)}),h&&(d-=h.width*l);var p=-d/2;D(a,function(v,g){r[i][g]=r[i][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),r}var ske={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},lke={splitNumber:5},uke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(zt);function cke(e){Fe(Uv),$u.registerAxisPointerClass("PolarAxisPointer",BMe),e.registerCoordinateSystem("polar",ZMe),e.registerComponentModel($Me),e.registerComponentView(uke),Rf(e,"angle",GMe,ske),Rf(e,"radius",HMe,lke),e.registerComponentView(QMe),e.registerComponentView(rke),e.registerLayout(De(ake,"bar"))}function C2(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,i={},a=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),wr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-d:d,i.z2=1,i}var fke=["axisLine","axisTickLabel","axisName"],dke=["splitArea","splitLine"],hke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ae;var l=C2(r),u=new un(r,l);D(fke,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(dke,function(c){r.get([c,"show"])&&pke[c](this,this.group,this._axisGroup,r)},this),Rv(s,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)},t.prototype.remove=function(){E8(this)},t.type="singleAxis",t}($u),pke={splitLine:function(e,t,r,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,h=i.getTicksCoords({tickModel:a}),p=[],v=[],g=0;g<h.length;++g){var m=i.toGlobalCoord(h[g].coord);c?(p[0]=m,p[1]=u.y,v[0]=m,v[1]=u.y+u.height):(p[0]=u.x,p[1]=m,v[0]=u.x+u.width,v[1]=m);var y=new vr({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});Mf(y.shape,l);var x=d++%s.length;f[x]=f[x]||[],f[x].push(y)}for(var S=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(mi(f[g],{style:_e({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(e,t,r,n){R8(e,r,n,n)}},uy=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Ue);or(uy,zv.prototype);var vke=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(ia),hU=["single"],gke=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=hU,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=this.dimension,a=new vke(i,$x(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();D(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Df(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=fr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+r}:function(o){return i-o+r},t.toLocalCoord=a?function(o){return o-r}:function(o){return i-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=SB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=SB(r);return i===this?this.pointToData(n):null},e}();function SB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function mke(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new gke(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",ir).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var yke={create:mke,dimensions:hU},_B=["x","y"],xke=["width","height"],Ske=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=ow(l,1-B0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=HI(a),h=_ke[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=C2(i);oU(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=C2(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=WI(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=B0(o),u=ow(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=ow(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(GI),_ke={line:function(e,t,r){var n=jI([t,r[0]],[t,r[1]],B0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:sU([t-n/2,r[0]],[n,i],B0(e))}}};function B0(e){return e.isHorizontal()?0:1}function ow(e,t){var r=e.getRect();return[r[_B[t]],r[_B[t]]+r[xke[t]]]}var bke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(zt);function wke(e){Fe(Uv),$u.registerAxisPointerClass("SingleAxisPointer",Ske),e.registerComponentView(bke),e.registerComponentView(hke),e.registerComponentModel(uy),Rf(e,"single",uy,uy.defaultOption),e.registerCoordinateSystem("single",yke)}var Cke=function(e){H(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,i){var a=Jf(r);e.prototype.init.apply(this,arguments),bB(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),bB(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Ue);function bB(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=q([0,1],function(a){return Gme(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Ns(e,t,{type:"box",ignoreSize:i})}var Tke=function(e){H(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 a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new qe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new mn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return ne(r)&&r?Fme(r,n):Se(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new Je({z2:30,style:Tt(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||ne(s))&&(s&&(n=RT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<f[d].length-1;v++){var g=f[d][v].slice(),m=this._firstDayOfMonth[v];if(p){var y=this._firstDayPoints[v];g[h]=(y[h]+f[0][v+1][h])/2}var x=o.get("formatter"),S=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:S},_=this._formatterLabel(x,b),w=new Je({z2:30,style:j(Tt(o,{text:_}),this._monthTextPositionControl(g,p,i,u,l))});a.add(w)}}},t.prototype._weekTextPositionControl=function(r,n,i,a,o){var s="center",l="middle",u=r[0],c=r[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,i,a,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||ne(c)){c&&(n=RT(c)||n);var h=n.get(["time","dayOfWeekShort"]);c=h||q(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=J(f,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var g=0;g<7;g++){var m=l.getNextNDay(p,g),y=l.dataToRect([m.time],!1).center,x=g;x=Math.abs((g+d)%7);var S=new Je({z2:30,style:j(Tt(s,{text:c[x]}),this._weekTextPositionControl(y,a,u,f,v))});o.add(S)}}},t.type="calendar",t}(zt),sw=864e5,Ake=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Ha(t);var r=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+i+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=fr(o,l);D([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(t,r){Y(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(r&&!(n.time>=i.start.time&&n.time<i.end.time+sw))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,i):this._getDateByWeeksAndDay(r,n-1,i)},e.prototype.convertToPixel=function(t,r,n){var i=wB(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=wB(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Y(t)&&t.length===1&&(t=t[0]),Y(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);r=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/sw)-Math.floor(r[0].time/sw)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&r<i.fweek||t===i.weeks&&r>i.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function wB(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function Mke(e){e.registerComponentModel(Cke),e.registerComponentView(Tke),e.registerCoordinateSystem("calendar",Ake)}function kke(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function CB(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Ike(e,t,r){var n=j({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Ns(i,n,{ignoreSize:!0}),aW(r,i),_m(r,i),_m(r,i,"shape"),_m(r,i,"style"),_m(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var pU=["transition","enterFrom","leaveTo"],Dke=pU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _m(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?pU:Dke,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function Pke(e,t){if(e&&(e.hv=t.hv=[CB(t,["left","right"]),CB(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var Rke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=i},t.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=J6(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(c,f){var d=c.newOption;d&&(u.push(d),kke(c,d),Ike(o,f,d),Pke(o[f],d))},this),i.elements=ft(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,i){D(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(Ue),TB={path:null,compoundPath:null,group:Ae,image:Mr,text:Je},ui=Ze(),Eke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=de()},t.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=cr(l.id,null),c=u!=null?i.get(u):null,f=cr(l.parentId,null),d=f!=null?i.get(f):a,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,g=l.textConfig;if(p&&X9(p,h,!!g,!!v)){var m=q9(p,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!v&&m.textContent&&(v=m.textContent)}var y=Lke(l),x=l.$action||"merge",S=x==="merge",b=x==="replace";if(S){var _=!c,w=c;_?w=AB(u,d,l.type,i):(w&&(ui(w).isNew=!1),J9(w)),w&&(sy(w,y,r,{isInit:_}),MB(w,l,o,s))}else if(b){cy(c,l,i,r);var C=AB(u,d,l.type,i);C&&(sy(C,y,r,{isInit:!0}),MB(C,l,o,s))}else x==="remove"&&(K9(c,l),cy(c,l,i,r));var T=i.get(u);if(T&&v)if(S){var A=T.getTextContent();A?A.attr(v):T.setTextContent(new Je(v))}else b&&T.setTextContent(new Je(v));if(T){var M=l.clipPath;if(M){var k=M.type,I=void 0,_=!1;if(S){var P=T.getClipPath();_=!P||ui(P).type!==k,I=_?T2(k):P}else b&&(_=!0,I=T2(k));T.setClipPath(I),sy(I,M,r,{isInit:_}),N0(I,M.keyframeAnimation,r)}var E=ui(T);T.setTextConfig(g),E.option=l,Oke(T,r,l),qf({el:T,componentModel:r,itemName:T.name,itemTooltipOption:l.tooltip}),N0(T,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=cr(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var p=h.parent,v=p===a,g=ui(h),m=ui(p);g.width=J(g.option.width,v?s:m.width)||0,g.height=J(g.option.height,v?l:m.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=cr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ui(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Rx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ui(h).isNew&&S){for(var b=f.transition,_={},w=0;w<u.length;w++){var C=u[w],T=x[C];b&&(cu(b)||ze(b,C)>=0)?_[C]=T:h[C]=T}rt(h,_,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){cy(i,ui(i).option,n,r._lastGraphicModel)}),this._elMap=de()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(zt);function T2(e){var t=fe(TB,e)?TB[e]:Mk(e),r=new t({});return ui(r).type=e,r}function AB(e,t,r,n){var i=T2(r);return t.add(i),n.set(e,i),ui(i).id=e,ui(i).isNew=!0,i}function cy(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){cy(a,t,r,n)}),Xx(e,t,n),r.removeKey(ui(e).id))}function MB(e,t,r,n){e.isGroup||D([["cursor",Ai.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];fe(t,a)?e[a]=Ie(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(Ye(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Se(a)?a:null}}),fe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Lke(e){return e=j({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(iW),function(t){delete e[t]}),e}function Oke(e,t,r){var n=ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Nke(e){e.registerComponentModel(Rke),e.registerComponentView(Eke),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var kB=["x","y","radius","angle","single"],zke=["cartesian2d","polar","singleAxis"];function Bke(e){var t=e.get("coordinateSystem");return ze(zke,t)>=0}function ps(e){return e+"Axis"}function Fke(e,t){var r=de(),n=[],i=de();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function vU(e){var t=e.ecModel,r={infoList:[],infoMap:de()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ps(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var lw=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),rv=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=IB(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=IB(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=de(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(kB,function(i){var a=this.getReferringComponents(ps(i),Cve);if(a.specified){n=!0;var o=new lw;D(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new lw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ir).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",ir).models[0]&&d.add(p.componentIndex)})}}}a&&D(kB,function(u){if(a){var c=i.findComponents({mainType:ps(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new lw;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(ps(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(ps(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Ue);function IB(e){var t={};return D(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Vke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(rv),qI=function(e){H(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,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},t.type="dataZoom",t}(zt),$ke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(qI),Ac=D,DB=_i,Gke=function(){function e(t,r,n,i){this._dimName=t,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(Bke(r)){var n=ps(this._dimName),i=r.getReferringComponents(n,ir).models[0];i&&this._axisIndex===i.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Ce(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Ac(["start","end"],function(d,h){var p=t[d],v=t[d+"Value"];a[h]==="percent"?(p==null&&(p=o[h]),v=i.parse(ct(p,o,r))):(u=!0,v=v==null?r[h]:i.parse(v),p=ct(v,r,o)),l[h]=v==null||isNaN(v)?r[h]:v,s[h]=p==null||isNaN(p)?o[h]:p}),DB(l),DB(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,p,v,g){var m=g?"Span":"ValueSpan";Gu(0,d,p,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)h[y]=ct(d[y],p,v,!0),g&&(h[y]=i.parse(h[y]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=Hke(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Ac(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),d=q(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,v,g,m=0;m<c.length;m++){var y=f.get(d[m],h),x=!isNaN(y),S=y<o[0],b=y>o[1];if(x&&!S&&!b)return!0;x&&(g=!0),S&&(p=!0),b&&(v=!0)}return g&&p&&v})}else Ac(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});Ac(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Ac(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=j6(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function Hke(e,t,r){var n=[1/0,-1/0];Ac(r,function(o){_xe(n,o.getData(),t)});var i=e.getAxisModel(),a=Rj(i.axis.scale,i,n).calculate();return[a.min,a.max]}var Wke={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ps(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Gke(i,a,s,e),r.push(o.__dzAxisProxy))});var n=de();return D(r,function(i){D(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function jke(e){e.registerAction("dataZoom",function(t,r){var n=Fke(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var PB=!1;function ZI(e){PB||(PB=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Wke),jke(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Uke(e){e.registerComponentModel(Vke),e.registerComponentView($ke),ZI(e)}var gi=function(){function e(){}return e}(),gU={};function Mc(e,t){gU[e]=t}function mU(e){return gU[e]}var Yke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,i){var a=mU(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Ue);function Xke(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=fr(n,a,i);lu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Rx(e,n,a,i)}function yU(e,t){var r=Qf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new qe({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 qke=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];D(u,function(p,v){f.push(v)}),new Ao(this._featureNames||[],f).add(d).update(d).remove(De(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],y=u[g],x=new st(y,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(Zke(g))S={onclick:x.option.onclick,featureName:g};else{var b=mU(g);if(!b)return;S=new b}c[g]=S}else if(S=c[m],!S)return;S.uid=Kf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var _=S instanceof gi;if(!g&&m){_&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||_&&S.unusable){_&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var T=this.option,A=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=C,A[w]&&(C==="emphasis"?Co:To)(A[w])},S instanceof gi&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof gi&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},b,_;ne(x)?(b={},b[g]=x):b=x,ne(S)?(_={},_[g]=S):_=S;var w=p.iconPaths={};D(b,function(C,T){var A=Ev(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var M=A.ensureState("emphasis");M.style=y.getItemStyle();var k=new Je({style:{text:_[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:kk({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(k),qf({el:A,componentModel:r,itemName:T,formatterParamsExtra:{title:_[T]}}),A.__title=_[T],A.on("mouseover",function(){var I=y.getItemStyle(),P=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),k.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",T])==="emphasis"?Co:To)(A),o.add(A),A.on("click",le(v.onclick,v,n,i,T)),w[T]=A})}Xke(o,r,i),o.add(yU(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!Se(x)&&v){var S=x.style||(x.style={}),b=Mv(v,Je.makeFont(S)),_=p.x+o.x,w=p.y+o.y+s,C=!1;w+b.height>i.getHeight()&&(m.position="top",C=!0);var T=C?-5-b.height:s+10;_+b.width/2>i.getWidth()?(m.position=["100%",T],S.align="right"):_-b.width/2<0&&(m.position=[0,T],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){D(this._features,function(o){o instanceof gi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof gi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof gi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(zt);function Zke(e){return e.indexOf("my")===0}var Kke=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=je.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var _=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(gi),RB="__ec_magicType_stack__",Qke=[["line","bar"],["stack"]],Jke=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return D(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(EB[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=EB[i](d,h,f,a);p&&(_e(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,ir).models[0],S=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};D(Qke,function(f){ze(f,i)>=0&&D(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(gi),EB={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===RB;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":RB},n.get(["option","stack"])||{},!0)}};qa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var qx=new Array(60).join("-"),Of=" ";function eIe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function tIe(e){var t=[];return D(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(q(r.series,function(h){return h.name})),l=[i.model.getCategories()];D(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Of)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(Of))}t.push(u.join(`
|
207
|
-
`))}),t.join(`
|
208
|
-
|
209
|
-
`+qx+`
|
210
|
-
|
211
|
-
`)}function rIe(e){return q(e,function(t){var r=t.getRawData(),n=[t.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Of:"")+i.join(Of))}),n.join(`
|
212
|
-
`)}).join(`
|
213
|
-
|
214
|
-
`+qx+`
|
215
|
-
|
216
|
-
`)}function nIe(e){var t=eIe(e);return{value:ft([tIe(t.seriesGroupByCategoryAxis),rIe(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
217
|
-
|
218
|
-
`+qx+`
|
219
|
-
|
220
|
-
`),meta:t.meta}}function F0(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function iIe(e){var t=e.slice(0,e.indexOf(`
|
221
|
-
`));if(t.indexOf(Of)>=0)return!0}var A2=new RegExp("["+Of+"]+","g");function aIe(e){for(var t=e.split(/\n+/g),r=F0(t.shift()).split(A2),n=[],i=q(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=F0(t[a]).split(A2);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function oIe(e){for(var t=e.split(/\n+/g),r=F0(t.shift()),n=[],i=0;i<t.length;i++){var a=F0(t[i]);if(a){var o=a.split(A2),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function sIe(e,t){var r=e.split(new RegExp(`
|
222
|
-
*`+qx+`
|
223
|
-
*`,"g")),n={series:[]};return D(r,function(i,a){if(iIe(i)){var o=aIe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=oIe(i);n.series.push(o)}}),n}var lIe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),h=nIe(r);if(Se(f)){var p=f(n.getOption());ne(p)?u.innerHTML=p:Tf(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var b=this;function _(){i.removeChild(o),b._dom=null}iT(x,"click",_),iT(S,"click",function(){if(d==null&&f!=null||d!=null&&f==null){_();return}var w;try{Se(d)?w=d(u,n.getOption()):w=sIe(c.value,g)}catch(C){throw _(),new Error("Data view format error "+C)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),_()}),x.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=x.style.cssText=y,!a.get("readOnly")&&m.appendChild(S),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(gi);function uIe(e,t){return q(e,function(r,n){var i=t&&t[n];if(be(i)&&!Y(i)){var a=be(r)&&!Y(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=_e(r,i),o&&delete r.name,r}else return r})}qa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(j({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:uIe(n.data,a)})}}),t.mergeOption(_e({series:r},e.newOption))});var xU=D,SU=Ze();function cIe(e,t){var r=KI(e);xU(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function fIe(e){var t=KI(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return xU(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function dIe(e){SU(e).snapshots=null}function hIe(e){return KI(e).length}function KI(e){var t=SU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var pIe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){dIe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(gi);qa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var vIe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],QI=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=LB(r,t);D(gIe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=uw[n.brushType](0,a,i);n.__rangeOffset={offset:BB[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=uw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=uw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?BB[n.brushType](a.values,o.offset,mIe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return q(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:k9(i),isTargetByCursor:D9(i,t,n.coordSysModel),getLinearBrushOtherExtent:I9(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=LB(r,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<OB.length;l++)if(OB[l](i,o))return o}return!0},e}();function M2(e){return e[0]>e[1]&&e.reverse(),e}function LB(e,t){return Hh(e,t,{includeMainTypes:vIe})}var gIe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=de(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:NB.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:NB.geo})})}},OB=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],NB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(su(e)),t}},uw={lineX:De(zB,0),lineY:De(zB,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[M2([i[0],a[0]]),M2([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=q(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function zB(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=M2(q([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var BB={lineX:De(FB,0),lineY:De(FB,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return q(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function FB(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function mIe(e,t){var r=VB(e),n=VB(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function VB(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var k2=D,yIe=xve("toolbox-dataZoom_"),xIe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new MI(i.getZr()),this._brushController.on("brush",le(this._onBrush,this)).mount()),bIe(r,n,this,a,i),_Ie(r,n)},t.prototype.onclick=function(r,n,i){SIe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new QI(JI(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),cIe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Gu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];k2(r,function(i,a){n.push(Ce(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(gi),SIe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(fIe(this.ecModel))}};function JI(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function _Ie(e,t){e.setIconStatus("back",hIe(t)>1?"emphasis":"normal")}function bIe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new QI(JI(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Xme("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=JI(n),o=Hh(e,a);k2(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),k2(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:yIe+u+f};d[c]=f,i.push(d)}return i});function wIe(e){e.registerComponentModel(Yke),e.registerComponentView(qke),Mc("saveAsImage",Kke),Mc("magicType",Jke),Mc("dataView",lIe),Mc("dataZoom",xIe),Mc("restore",pIe),Fe(Uke)}var CIe=function(e){H(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}(Ue);function _U(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function bU(e){if(je.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var wU=bU(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TIe=bU(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function CU(e,t){if(!e)return t;t=rW(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function AIe(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var MIe=CU(TIe,"transition"),eD=CU(wU,"transform"),kIe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(je.transform3dSupported?"will-change:transform;":"");function IIe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function DIe(e,t,r){if(!ne(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Au(t);var a=IIe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=eD+":",u;ze(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function PIe(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+=je.transformSupported?","+eD+n:",left"+n+",top"+n),MIe+":"+i}function $B(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!je.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=je.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+eD+":"+o+";":[["top",0],["left",0],[wU,o]]}function RIe(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"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function EIe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=NW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(PIe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=rW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(RIe(c)),f!=null&&n.push("padding:"+Qf(f).join("px ")+"px"),n.join(";")+";"}function GB(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Khe(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var LIe=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,je.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(ne(a)?document.querySelector(a):Tf(a)?a:Se(a)&&a(t.getDom()));GB(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;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 u=i.handler,c=i.painter.getViewportRoot();oi(c,l,!0),u.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=AIe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,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,a=this._styleCoord;n.innerHTML?i.cssText=kIe+EIe(t,!this._firstShow,this._longHide)+$B(a[0],a[1],!0)+("border-color:"+Au(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,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(ne(a)&&n.get("trigger")==="item"&&!_U(n)&&(s=DIe(n,i,a)),ne(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)Tf(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},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(GB(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=$B(n[0],n[1]);D(a,function(o){i[o[0]]=o[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",je.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(le(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}(),OIe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),WB(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,a){var o=this;be(t)&&at(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Je({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:NW(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||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=HB(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;WB(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Zo(a.borderWidth||0),s=HB(a);n.x=t+o+s.left,n.y=r+o+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(le(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Zo(e){return Math.max(0,e)}function HB(e){var t=Zo(e.shadowBlur||0),r=Zo(e.shadowOffsetX||0),n=Zo(e.shadowOffsetY||0);return{left:Zo(t-r),right:Zo(t+r),top:Zo(t-n),bottom:Zo(t+n)}}function WB(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var NIe=new qe({shape:{x:-1,y:-1,width:2,height:2}}),zIe=function(e){H(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(!(je.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Ave(i.get("renderMode"));this._tooltipContent=a==="richText"?new OIe(n):new LIe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(je.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?rd(this,"_updatePosition",50,"fixRate"):Hp(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");lU("itemTooltip",this._api,le(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||je.node||!i.getDom())){var o=jB(a,i);this._ticket="";var s=a.dataByCoordSys,l=$Ie(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=NIe;c.x=a.x,c.y=a.y,c.update(),ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=uU(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(jB(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Yd([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ke(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Zl(i,function(c){if(ke(c).dataIndex!=null)return l=c,!0;if(ke(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=le(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Yd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new X_;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(!(!S||b==null)){var _=aU(b,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:_,noHeader:!Wi(_),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(x.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,M=T.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=tI(S.axis,{value:b}),M.axisValueLabel=_,M.marker=d.makeTooltipMarker("item",Au(M.color),l);var k=PO(T.formatTooltip(A,!0,null)),I=k.frag;if(I){var P=Yd([T],a).get("valueFormatter");w.blocks.push(P?j({valueFormatter:P},I):I)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=zO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?`
|
224
|
-
|
225
|
-
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=Yd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new X_;m.marker=y.makeTooltipMarker("item",Au(m.color),h);var x=PO(u.formatTooltip(c,!1,f)),S=v.get("order"),b=v.get("valueFormatter"),_=x.frag,w=_?zO(b?j({valueFormatter:b},_):_,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ke(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ne(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ce(l),l.content=wn(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=r.positionDefault,p=Yd(f,this._tooltipModel,h?{position:h}:null),v=p.get("content"),g=Math.random()+"",m=new X_;this._showOrMove(p,function(){var y=Ce(p.get("formatterParams")||{});this._showTooltipContent(p,v,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(ne(d)){var g=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Mx(m.axisValue,h,g)),h=nW(h,i,!0)}else if(Se(d)){var x=le(function(S,b){S===this._ticket&&(f.setContent(b,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Se(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Y(n))i=J(n[0],u),a=J(n[1],c);else if(be(n)){var v=n;v.width=f[0],v.height=f[1];var g=fr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(ne(n)&&l){var m=VIe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=BIe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=UB(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=UB(h)?f[1]/2:h==="bottom"?f[1]:0),_U(r)){var m=FIe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){je.node||!n.getDom()||(Hp(this,"_updatePosition"),this._tooltipContent.dispose(),w2("itemTooltip",n))},t.type="tooltip",t}(zt);function Yd(e,t,r){var n=t.ecModel,i;r?(i=new st(r,n,n),i=new st(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof st&&(o=o.get("tooltip",!0)),ne(o)&&(o={formatter:o}),o&&(i=new st(o,i,n)))}return i}function jB(e,t){return e.dispatchAction||le(t.dispatchAction,t)}function BIe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function FIe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function VIe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function UB(e){return e==="center"||e==="middle"}function $Ie(e,t,r){var n=pk(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=kv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function GIe(e){Fe(Uv),e.registerComponentModel(CIe),e.registerComponentView(zIe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},er),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},er)}var HIe=["rect","polygon","keep","clear"];function WIe(e,t){var r=vt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),jIe(s),t&&!s.length&&s.push.apply(s,HIe)}}function jIe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var YB=D;function XB(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function I2(e,t,r){var n={};return YB(t,function(a){var o=n[a]=i();YB(e[a],function(s,l){if(mr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new mr(u),l==="opacity"&&(u=Ce(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new mr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function TU(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&XB(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&XB(t[i])?e[i]=Ce(t[i]):delete e[i]})}function UIe(e,t,r,n,i,a){var o={};D(e,function(f){var d=mr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return Wk(r,s,f)}function u(f,d){UW(r,s,f,d)}r.each(c);function c(f,d){s=f;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;m<y;m++){var x=g[m];v[x]&&v[x].applyVisual(f,l,u)}}}function YIe(e,t,r,n){var i={};return D(e,function(a){var o=mr.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return Wk(s,f,b)}function c(b,_){UW(s,f,b,_)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var p=n!=null?d.get(l,f):f,v=r(p),g=t[v],m=i[v],y=0,x=m.length;y<x;y++){var S=m[y];g[S]&&g[S].applyVisual(p,u,c)}}}}}function XIe(e){var t=e.brushType,r={point:function(n){return qB[t].point(n,r,e)},rect:function(n){return qB[t].rect(n,r,e)}};return r}var qB={lineX:ZB(0),lineY:ZB(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Nl(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Nl(n,i,a)||Nl(n,i+o,a)||Nl(n,i,a+s)||Nl(n,i+o,a+s)||Ne.create(e).contain(l[0],l[1])||fh(i,a,i+o,a,n)||fh(i,a,i,a+s,n)||fh(i+o,a,i+o,a+s,n)||fh(i,a+s,i+o,a+s,n))return!0}}};function ZB(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return Xd(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Xd(s[0],o)||Xd(s[1],o)||Xd(o[0],s)||Xd(o[1],s)}}}}function Xd(e,t){return t[0]<=e&&e<=t[1]}var KB=["inBrush","outOfBrush"],cw="__ecBrushSelect",D2="__ecInBrushSelectEvent";function AU(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new QI(t.option,e);r.setInputRanges(t.areas,e)})}function qIe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),AU(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ce(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var v=q(o.areas,function(b){var _=JIe[b.brushType],w=_e({boundingRect:_?_(b):void 0},b);return w.selectors=XIe(w),w}),g=I2(o.option,KB,function(b){b.mappingMethod="fixed"});Y(c)&&D(c,function(b){f[b]=1});function m(b){return c==="all"||!!f[b]}function y(b){return!!b.length}e.eachSeries(function(b,_){var w=h[_]=[];b.subType==="parallel"?x(b,_):S(b,_,w)});function x(b,_){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),m(_)&&w.eachActiveState(b.getData(),function(C,T){C==="active"&&(d[T]=1)})}function S(b,_,w){if(!(!b.brushSelector||QIe(o,_))&&(D(v,function(T){o.brushTargetManager.controlSeries(T,b,e)&&w.push(T),p=p||y(w)}),m(_)&&y(w))){var C=b.getData();C.each(function(T){QB(b,w,C,T)&&(d[T]=1)})}}e.eachSeries(function(b,_){var w={seriesId:b.id,seriesIndex:_,seriesName:b.name,dataIndex:[]};l.selected.push(w);var C=h[_],T=b.getData(),A=m(_)?function(M){return d[M]?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return QB(b,C,T,M)?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(_)?p:y(C))&&UIe(KB,g,T,A)})}),ZIe(t,i,a,n,r)}function ZIe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[D2]){a[cw]||(a[cw]=KIe);var o=rd(a,cw,r,t);o(e,n)}}}function KIe(e,t){if(!e.isDisposed()){var r=e.getZr();r[D2]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[D2]=!1}}function QB(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function QIe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Y(r)?ze(r,t)<0:t!==r)}var JIe={rect:function(e){return JB(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&JB(t)}};function JB(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var eDe=function(e){H(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){this.ecModel=r,this.api=n,this.model,(this._brushController=new MI(n.getZr())).on("brush",le(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){AU(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ce(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ce(i),$from:n})},t.type="brush",t}(zt),tDe="#ddd",rDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&TU(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:tDe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=q(r,function(n){return eF(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=eF(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ue);function eF(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new st(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var nDe=["rect","polygon","lineX","lineY","keep","clear"],iDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:nDe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(gi);function aDe(e){e.registerComponentView(eDe),e.registerComponentModel(rDe),e.registerPreprocessor(WIe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qIe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},er),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},er),Mc("brush",iDe)}var oDe=function(e){H(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}(Ue),sDe=function(e){H(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 a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ie(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Je({style:Tt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new Je({style:Tt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){p0(p,"_"+r.get("target"))}),v&&h.on("click",function(){p0(v,"_"+r.get("subtarget"))}),ke(c).eventData=ke(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=fr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var b=x.margin,_=r.getItemStyle(["color","opacity"]);_.fill=r.get("backgroundColor");var w=new qe({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:r.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(zt);function lDe(e){e.registerComponentModel(oDe),e.registerComponentView(sDe)}var tF=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=cr(Uf(u),""),d;be(u)?(d=Ce(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new ln([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ue),MU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Ys(tF.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(tF);or(MU,Lx.prototype);var uDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(zt),cDe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ia),fw=Math.PI,rF=Ze(),fDe=function(e){H(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){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=hDe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":ne(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:fw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*fw/180;var y,x,S,b=d.get("position",!0),_=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),T=0,A=f;b==="left"||b==="bottom"?(_&&(y=[0,0],T+=g),w&&(x=[T,0],T+=g),C&&(S=[A-p,0],A-=g)):(_&&(y=[A-p,0],A-=g),w&&(x=[0,0],T+=g),C&&(S=[A-p,0],A-=g));var M=[T,A];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Yn(),l=o.x,u=o.y+o.height;$a(s,s,[-l,-u]),Nu(s,s,-fw/2),$a(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||ne(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,b,_,w,C){S[w]+=_[w][C]-b[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=dDe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new cDe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new vr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:j({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new vr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:le(o._changeTimeline,o,u.value)},g=nF(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ou(g);var m=ke(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new Je({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:le(o._changeTimeline,o,f),silent:!1,style:Tt(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=Tt(p),m.ensureState("progress").style=Tt(v),n.add(m),ou(m),rF(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",le(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",le(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",le(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=ea(Ie(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=pDe(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),ou(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=le(u._handlePointerDrag,u),f.ondragend=le(u._handlePointerDragend,u),iF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){iF(f,u._progressLine,s,i,a)}};this._currentPointer=nF(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=_i(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return qi(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",rF(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(uDe);function dDe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Vx({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Jk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Mo}}function hDe(e,t){return fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function pDe(e,t,r,n){var i=n.style,a=Ev(e.get(["controlStyle",t]),n||{},new Ne(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function nF(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=ar(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Oe({rectHover:!0,z2:100},n,!0);var u=nd(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Bu(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function iF(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function vDe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),_e({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function gDe(e){var t=e&&e.timeline;Y(t)||(t=t?[t]:[]),D(t,function(r){r&&mDe(r)})}function mDe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),aF(e),Fl(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Fl(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Fl(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(i){be(i)&&!Y(i)&&(!Fl(i,"value")&&Fl(i,"name")&&(i.value=i.name),aF(i))})}function aF(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};D(n,function(o,s){!a[s]&&!Fl(i,s)&&(i[s]=o)}),r.label&&!Fl(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Fl(e,t){return e.hasOwnProperty(t)}function yDe(e){e.registerComponentModel(MU),e.registerComponentView(fDe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),vDe(e),e.registerPreprocessor(gDe)}function tD(e,t){if(!e)return!1;for(var r=Y(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function bm(e){bu(e,"label",["show"])}var wm=Ze(),Io=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(je.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=wm(s)[o];if(!l||!l.data){wm(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&bm(l),D(l.data,function(c){c instanceof Array?(bm(c[0]),bm(c[1])):bm(c)}),u=this.createMarkerModelFromSeries(l,this,n),j(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),wm(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return xr("section",{header:this.name,blocks:[xr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=Lx.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return wm(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Ue);or(Io,Lx.prototype);var xDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Io);function P2(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function SDe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Cm(e,t,r,n,i,a){var o=[],s=zs(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=rD(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),d=Ta(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var dw={min:De(Cm,"min"),max:De(Cm,"max"),average:De(Cm,"average"),median:De(Cm,"median")};function nv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!SDe(t)&&!Y(t.coord)&&Y(i)){var a=kU(t,r,n,e);if(t=Ce(t),t.type&&dw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=dw[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)dw[u[c]]&&(u[c]=rD(r,r.mapDimension(i[c]),u[c]));return t}}function kU(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(_De(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function _De(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function iv(e,t){return e&&e.containData&&t.coord&&!P2(t)?e.containData(t.coord):!0}function bDe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!P2(t)&&!P2(r)?e.containZone(t.coord,r.coord):!0}function IU(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return As(o,t[a])}:function(r,n,i,a){return As(r.value,t[a])}}function rD(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var hw=Ze(),nD=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=de()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=Io.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!hw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){hw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=Io.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?yH(l):_k(l))})}})},t.type="marker",t}(zt);function oF(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=J(a.get("x"),r.getWidth()),l=J(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var wDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Io.getMarkerModelFromSeries(a,"markPoint");o&&(oF(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Fv),f=CDe(o,r,n);n.setData(f),oF(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Se(p)||Se(v)||Se(g)||Se(m)){var x=n.getRawValue(d),S=n.getDataParams(d);Se(p)&&(p=p(x,S)),Se(v)&&(v=v(x,S)),Se(g)&&(g=g(x,S)),Se(m)&&(m=m(x,S))}var b=h.getModel("itemStyle").getItemStyle(),_=Ov(l,"color");b.fill||(b.fill=_),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:b})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ke(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(nD);function CDe(e,t,r){var n;e?n=q(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return j(j({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new ln(n,r),a=q(r.get("data"),De(nv,t));e&&(a=ft(a,De(iv,e)));var o=IU(!!e,n);return i.initData(a,null,o),i}function TDe(e){e.registerComponentModel(xDe),e.registerComponentView(wDe),e.registerPreprocessor(function(t){tD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var ADe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Io),Tm=Ze(),MDe=function(e,t,r,n){var i=e.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=wr(n.yAxis,n.xAxis);else{var u=kU(n,i,t,e);s=u.valueAxis;var c=_j(i,u.valueDataDim);l=rD(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Ce(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&et(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[nv(e,a[0]),nv(e,a[1]),j({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function V0(e){return!isNaN(e)&&!isFinite(e)}function sF(e,t,r,n){var i=1-e,a=n.dimensions[e];return V0(t[i])&&V0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function kDe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(sF(1,r,n,e)||sF(0,r,n,e)))return!0}return iv(e,t[0])&&iv(e,t[1])}function pw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=J(o.get("x"),i.getWidth()),u=J(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Vu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;V0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):V0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var IDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Io.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Tm(o).from,u=Tm(o).to;l.each(function(c){pw(l,c,!0,a,i),pw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new AI);this.group.add(c.group);var f=DDe(o,r,n),d=f.from,h=f.to,p=f.line;Tm(n).from=d,Tm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Y(v)||(v=[v,v]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),b.stroke==null&&(b.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:b})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ke(S).dataModel=n,S.traverse(function(b){ke(b).dataModel=n})});function x(S,b,_){var w=S.getItemModel(b);pw(S,b,_,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Ov(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ie(w.get("symbolOffset",!0),y[_?0:1]),symbolRotate:Ie(w.get("symbolRotate",!0),m[_?0:1]),symbolSize:Ie(w.get("symbolSize"),g[_?0:1]),symbol:Ie(w.get("symbol",!0),v[_?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(nD);function DDe(e,t,r){var n;e?n=q(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return j(j({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new ln(n,r),a=new ln(n,r),o=new ln([],r),s=q(r.get("data"),De(MDe,t,e,r));e&&(s=ft(s,De(kDe,e)));var l=IU(!!e,n);return i.initData(q(s,function(u){return u[0]}),null,l),a.initData(q(s,function(u){return u[1]}),null,l),o.initData(q(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function PDe(e){e.registerComponentModel(ADe),e.registerComponentView(IDe),e.registerPreprocessor(function(t){tD(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var RDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Io),Am=Ze(),EDe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=nv(e,i),s=nv(e,a),l=o.coord,u=s.coord;l[0]=wr(l[0],-1/0),l[1]=wr(l[1],-1/0),u[0]=wr(u[0],1/0),u[1]=wr(u[1],1/0);var c=nk([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function $0(e){return!isNaN(e)&&!isFinite(e)}function lF(e,t,r,n){var i=1-e;return $0(t[i])&&$0(r[i])}function LDe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Vu(e,"cartesian2d")?r&&n&&(lF(1,r,n)||lF(0,r,n))?!0:bDe(e,i,a):iv(e,i)||iv(e,a)}function uF(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=J(o.get(r[0]),i.getWidth()),u=J(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Vu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);$0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):$0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var cF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ODe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Io.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=q(cF,function(f){return uF(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ae});this.group.add(c.group),this.markKeep(c);var f=NDe(o,r,n);n.setData(f),f.each(function(d){var h=q(cF,function(C){return uF(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];_i(y),_i(x);var S=!(g[0]>y[1]||g[1]<y[0]||m[0]>x[1]||m[1]<x[0]),b=!S;f.setItemLayout(d,{points:h,allClipped:b});var _=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=Ov(l,"color");_.fill||(_.fill=w,ne(_.fill)&&(_.fill=r0(_.fill,.4))),_.stroke||(_.stroke=w),f.setItemVisual(d,"style",_)}),f.diff(Am(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var p=new hn({shape:{points:h.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,h){var p=Am(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?p&&c.group.remove(p):(p?rt(p,{shape:{points:v.points}},n,d):p=new hn({shape:{points:v.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var h=Am(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var p=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Br(d,yr(p),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:ne(v.fill)?r0(v.fill,1):"#000"}),zr(d,p),Wt(d,null,null,p.get(["emphasis","disabled"])),ke(d).dataModel=n}),Am(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(nD);function NDe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=q(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return j(j({},f),{name:u,ordinalMeta:null})});i=q(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new ln(i,r)}else i=[{name:"value",type:"float"}],n=new ln(i,r);var s=q(r.get("data"),De(EDe,t,e,r));e&&(s=ft(s,De(LDe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return As(h,i[d])}:function(u,c,f,d){return As(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function zDe(e){e.registerComponentModel(RDe),e.registerComponentView(ODe),e.registerPreprocessor(function(t){tD(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var BDe=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"])}},R2=function(e){H(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"]),Y(n)&&D(n,function(a,o){ne(a)&&(a={type:a}),n[o]=Oe(a,BDe(i,a.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 a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&hk(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=de(),s=q(a,function(l){return(ne(l)||et(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new st(l,this,this.ecModel))},this);this._data=ft(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 a=this._data;D(a,function(o){n[o.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;D(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ze(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}(Ue),gc=De,E2=D,Mm=Ae,DU=function(e){H(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 Mm),this.group.add(this._selectorGroup=new Mm),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 a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=fr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=fr(_e({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yU(p,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,a,o,s,l){var u=this.getContentGroup(),c=de(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),E2(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
|
226
|
-
`)){var g=new Mm;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),_=this._createItem(m,v,p,h,n,r,x,b,S,f,a);_.on("click",gc(fF,v,null,a,d)).on("mouseover",gc(L2,m.name,null,a,d)).on("mouseout",gc(O2,m.name,null,a,d)),i.ssr&&_.eachChild(function(w){var C=ke(w);C.seriesIndex=m.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var T=C.indexOfName(v),A=C.getItemVisual(T,"style"),M=C.getItemVisual(T,"legendIcon"),k=Xn(A.fill);k&&k[3]===0&&(k[3]=.2,A=j(j({},A),{fill:fo(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},A,M,f,a);I.on("click",gc(fF,null,v,a,d)).on("mouseover",gc(L2,null,v,a,d)).on("mouseout",gc(O2,null,v,a,d)),i.ssr&&I.eachChild(function(P){var E=ke(P);E.seriesIndex=w.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();E2(r,function(u){var c=u.type,f=new Je({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:d,emphasis:h},{defaultText:u.title}),ou(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=FDe(c,a,l,u,h,g,d),b=new Mm,_=a.getModel("textStyle");if(Se(r.getLegendIcon)&&(!x||x==="inherit"))b.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;b.add(VDe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,T=s,A=o.get("formatter"),M=n;ne(A)&&A?M=A.replace("{name}",n??""):Se(A)&&(M=A(n));var k=g?_.getTextColor():a.get("inactiveColor");b.add(new Je({style:Tt(_,{text:M,x:C,y:v/2,fill:k,align:T,verticalAlign:"middle"},{inheritColor:k})}));var I=new qe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&qf({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(E){E.silent=!0}),I.silent=!f,this.getContentGroup().add(b),ou(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();lu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){lu("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(zt);function FDe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),E2(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:If(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function VDe(e){var t=e.icon||"roundRect",r=ar(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 fF(e,t,r,n){O2(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),L2(e,t,r,n)}function PU(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 L2(e,t,r,n){PU(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function O2(e,t,r,n){PU(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function $De(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 qd(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
|
227
|
-
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function GDe(e){e.registerAction("legendToggleSelect","legendselectchanged",De(qd,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",De(qd,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",De(qd,"inverseSelect")),e.registerAction("legendSelect","legendselected",De(qd,"select")),e.registerAction("legendUnSelect","legendunselected",De(qd,"unSelect"))}function RU(e){e.registerComponentModel(R2),e.registerComponentView(DU),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,$De),e.registerSubTypeDefaulter("legend",function(){return"plain"}),GDe(e)}var HDe=function(e){H(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 a=Jf(r);e.prototype.init.call(this,r,n,i),dF(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),dF(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Ys(R2.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}(R2);function dF(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ns(t,r,{type:"box",ignoreSize:!!i})}var hF=Ae,vw=["width","height"],gw=["x","y"],WDe=function(e){H(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 hF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hF)},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,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=Y(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new Je({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=Ev(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:le(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=v,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=vw[u],f=gw[u],d=vw[1-u],h=gw[1-u];o&&lu("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Ce(i);o&&(m[c]=i[c]-v[c]-p);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+p;else{var x=v[c]+p;g[u]-=x,y[f]-=x}y[c]+=v[c]+p,g[1-u]+=y[h]+y[d]/2-v[d]/2,y[d]=Math.max(y[d],v[d]),y[h]=Math.min(y[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;lu(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),lu("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ie(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var b={x:0,y:0};if(b[o]=v?i[o]:h[o],b[s]=Math.max(h[s],p[s]),b[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var _={x:0,y:0};_[o]=Math.max(i[o]-p[o]-x,0),_[s]=b[s],f.setClipPath(new qe({shape:_})),f.__rectSize=_[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&rt(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),b},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",ne(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=vw[o],l=gw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!b(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!b(y,x.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function S(_){if(_){var w=_.getBoundingRect(),C=w[l]+_[l];return{s:C,e:C+w[s],i:_.__legendDataIndex}}}function b(_,w){return _.e>=w&&_.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(DU);function jDe(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 UDe(e){Fe(RU),e.registerComponentModel(HDe),e.registerComponentView(WDe),jDe(e)}function YDe(e){Fe(RU),Fe(UDe)}var XDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Ys(rv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(rv),iD=Ze();function qDe(e,t,r){iD(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function ZDe(e,t){for(var r=iD(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||EU(r,o))}}}function EU(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function KDe(e,t){var r={model:t,containsPoint:De(JDe,t),dispatchAction:De(QDe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Wv(e.getZr());return D(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function QDe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function JDe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function ePe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function tPe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=iD(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=de());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=vU(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,KDe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=de());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){EU(i,a);return}var c=ePe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),rd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var rPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),qDe(i,r,{pan:le(mw.pan,this),zoom:le(mw.zoom,this),scrollMove:le(mw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ZDe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(qI),mw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Gu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:pF(function(e,t,r,n,i,a){var o=yw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:pF(function(e,t,r,n,i,a){var o=yw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function pF(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Gu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var yw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function LU(e){ZI(e),e.registerComponentModel(XDe),e.registerComponentView(rPe),tPe(e)}var nPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ys(rv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(rv),Zd=qe,vF=7,iPe=1,xw=30,aPe=7,Kd="horizontal",gF="vertical",oPe=5,sPe=["line","bar","candlestick","scatter"],lPe={easing:"cubicOut",duration:100,delay:0},uPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=le(this._onBrush,this),this._onBrushEnd=le(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),rd(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Hp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ae;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?aPe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Kd?{right:s.width-o.x-o.width,top:s.height-xw-vF-a,width:o.width,height:xw}:{right:vF,top:o.y,width:xw,height:o.height},u=Jf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=fr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===gF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Kd&&!o?{scaleY:l?1:-1,scaleX:1}:i===Kd&&o?{scaleY:l?1:-1,scaleX:-1}:i===gF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Zd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Zd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:le(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(T,A){if(x>0&&A%x){y+=m;return}var M=T==null||isNaN(T)||T==="",k=M?0:ct(T,f,h,!0);M&&!S&&A?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function _(T){var A=b.getModel(T?"selectedDataBackground":"dataBackground"),M=new Ae,k=new hn({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new mn({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=_(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&ze(sPe,u.get("type"))<0)){var c=a.getComponent(ps(o),s).axis,f=cPe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Zd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Zd({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:iPe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!m0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=ar(S,-1,0,2,2,null,!0);b.attr({cursor:mF(this._orient),draggable:!0,drift:le(this._onDragMove,this,x),ondragend:le(this._onDragEnd,this),onmouseover:le(this._showDataInfo,this,!0),onmouseout:le(this._showDataInfo,this,!1),z2:5});var _=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=J(w,this._size[1]),this._handleWidth=_.width/_.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ou(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(i[x]=b);var T=l.getModel("textStyle");r.add(a[x]=new Je({silent:!0,invisible:!0,style:Tt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=d;if(f){var p=J(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=ar(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:mF(this._orient),drift:le(this._onDragMove,this,"all"),ondragstart:le(this._showDataInfo,this,!0),ondragend:le(this._onDragEnd,this),onmouseover:le(this._showDataInfo,this,!0),onmouseout:le(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Gu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=_i([ct(a[0],o,l,!0),ct(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=_i(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new qe,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=_i(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=su(i.handles[p].parent,this.group),g=Tx(p===0?"right":"left",v),m=this._handleWidth/2+oPe,y=qi([d[p]+(p===0?-m:m),this._size[1]/2],v);a[p].setStyle({x:y[0],y:y[1],verticalAlign:o===Kd?"middle":g,align:o===Kd?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Se(a)?a(r,s):ne(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,bo(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=qi([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Ee(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=_i([ct(i.x,o,s,!0),ct(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(bo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Zd({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?lPe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=vU(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(qI);function cPe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function mF(e){return e==="vertical"?"ns-resize":"ew-resize"}function OU(e){e.registerComponentModel(nPe),e.registerComponentView(uPe),ZI(e)}function fPe(e){Fe(LU),Fe(OU)}var NU={get:function(e,t,r){var n=Ce((dPe[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},dPe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},yF=mr.mapVisual,hPe=mr.eachVisual,pPe=Y,xF=D,vPe=_i,gPe=ct,G0=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&TU(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=le(r,this),this.controllerVisuals=I2(this.option.controller,n,r),this.targetVisuals=I2(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=vt(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(ne(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=vPe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){pPe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},xF(p,function(g,m){if(mr.isValidType(m)){var y=NU.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";xF(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Ce(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Ce(h)||(s?y[0]:[y[0],y[0]])),x.symbol=yF(x.symbol,function(_){return _==="none"?g:_});var S=x.symbolSize;if(S!=null){var b=-1/0;hPe(S,function(_){_>b&&(b=_)}),x.symbolSize=yF(S,function(_){return gPe(_,[0,b],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ue),SF=[20,140],mPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=SF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=SF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=_i((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=_F(this,"outOfRange",this.getExtent()),i=_F(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Ys(G0.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(G0);function _F(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var zU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=Qf(n.get("padding")||0),a=r.getBoundingRect();r.add(new qe({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[a||o.getValueState(r)],d=mr.prepareVisualTypes(f);return D(d,function(h){var p=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),mr.dependsOn(h,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;Rx(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(zt),bF=[["left","right","width"],["top","bottom","height"]];function BU(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=bF[o],l=[0,null,10],u={},c=0;c<3;c++)u[bF[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=fr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function fy(e,t){return D(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var da=ct,yPe=D,wF=Math.min,Sw=Math.max,xPe=12,SPe=6,_Pe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=le(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=le(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Je({style:Tt(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=BU(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Ae;u.add(c),c.add(i.outOfRange=CF()),c.add(i.inRange=CF(null,s?AF(this._orient):null,le(this._dragHandle,this,"all",!1),le(this._dragHandle,this,"all",!0))),c.setClipPath(new qe({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=Sw(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=le(this._dragHandle,this,i,!1),u=le(this._dragHandle,this,i,!0),c=ea(r.get("handleSize"),a[0]),f=ar(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=AF(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){bo(m.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Xl(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,p=new Je({cursor:d,draggable:!0,drift:l,onmousemove:function(m){bo(m.event)},ondragend:u,style:Tt(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(r,n,i,a,o){var s=ea(r.get("indicatorSize"),i[0]),l=ar(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Mr){var c=l.style;l.useStyle(j({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new Je({silent:!0,invisible:!0,style:Tt(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:SPe)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():TF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[da(n[0],i,a,!0),da(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Gu(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[da(a[0],o,s,!0),da(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Pv(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Ae(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();yPe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=da(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=qi(i.handleLabelPoints[c],su(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=da(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=qi(c.indicatorLabelPoint,su(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),b=this._orient,_=b==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:_?S:"middle",align:_?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,T),x.animateTo(C,T)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=wF(Sw(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=wF(Sw(o[0],r),o[1]);var l=bPe(i,s,o),u=[r-l,r+l],c=da(r,o,s,!0),f=[da(u[0],o,s,!0),da(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||TF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=bve(d,h);this._dispatchHighDown("downplay",fy(p[0],i)),this._dispatchHighDown("highlight",fy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Zl(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",fy(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=su(n,a?null:this.group);return Y(r)?qi(r,o,i):Tx(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(zU);function CF(e,t,r,n){return new hn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){bo(i.event)},ondragend:n})}function bPe(e,t,r){var n=xPe/2,i=e.get("hoverLinkDataSize");return i&&(n=da(i,t,r,!0)/2),n}function TF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function AF(e){return e==="vertical"?"ns-resize":"ew-resize"}var wPe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},CPe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},TPe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(YIe(n.stateList,n.targetVisuals,le(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(le(APe,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function APe(e,t,r,n){for(var i=t.targetVisuals[n],a=mr.prepareVisualTypes(i),o={color:Ov(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var MF=D;function MPe(e){var t=e&&e.visualMap;Y(t)||(t=t?[t]:[]),MF(t,function(r){if(r){mc(r,"splitList")&&!mc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Y(n)&&MF(n,function(i){be(i)&&(mc(i,"start")&&!mc(i,"min")&&(i.min=i.start),mc(i,"end")&&!mc(i,"max")&&(i.max=i.end))})}})}function mc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var kF=!1;function FU(e){kF||(kF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(wPe,CPe),D(TPe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(MPe))}function VU(e){e.registerComponentModel(mPe),e.registerComponentView(_Pe),FU(e)}var kPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],IPe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ce(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=q(this._pieceList,function(l){return l=Ce(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=mr.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=NU.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ce(r)},t.prototype.getValueState=function(r){var n=mr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=mr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Ys(G0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(G0),IPe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),wL(e),D(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),IF(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){be(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=mr.retrieveVisuals(r),e.push(i)},this),IF(t,e),wL(e),D(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function IF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var DPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=wr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=le(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new Je({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),lu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:fy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return BU(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Ae,l=this.visualMapModel.textStyleModel;s.add(new Je({style:Tt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=q(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(ar(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ce(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(zU);function $U(e){e.registerComponentModel(kPe),e.registerComponentView(DPe),FU(e)}function PPe(e){Fe(VU),Fe($U)}var RPe={label:{enabled:!0},decal:{show:!1}},DF=Ze(),EPe={};function LPe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ce(RPe);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=de();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),DF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=OT(d.ecModel,d.name,EPe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=DF(d).scope;h.each(function(b){var _=h.getRawIndex(b);v[_]=b});var m=p.count();p.each(function(b){var _=v[b],w=p.getName(b)||b+"",C=OT(d.ecModel,w,g,m),T=h.getItemVisual(_,"decal");h.setItemVisual(_,"decal",S(T,C))})}function S(b,_){var w=b?j(j({},_),b):_;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=_e(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var x=[],S=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,T){if(T<v){var A=void 0,M=C.get("name"),k=M?"withName":"withoutName";A=d>1?f.get(["series","multiple",k]):f.get(["series","single",k]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var P=f.get(["data","partialData"]);A+=o(P,{displayCnt:h})}else A+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),z=f.get(["data","separator","end"]),$=[],O=0;O<I.count();O++)if(O<h){var V=I.getName(O),L=I.getValues(O),G=f.get(["data",V?"withName":"withoutName"]);$.push(o(G,{name:V,value:L.join(E)}))}A+=$.join(E)+z,x.push(A)}});var b=f.getModel(["series","multiple","separator"]),_=b.get("middle"),w=b.get("end");g+=x.join(_)+w,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!ne(u))return u;var f=u;return D(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function OPe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function NPe(e){e.registerPreprocessor(OPe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,LPe)}var PF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},zPe=function(){function e(t){var r=this._condVal=ne(t)?new RegExp(t):Ghe(t)?t:null;if(r==null){var n="";at(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return ne(r)?this._condVal.test(t):et(r)?this._condVal.test(t+""):!1},e}(),BPe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),FPe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),VPe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),$Pe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),GPe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function aD(e,t){if(e===!0||e===!1){var r=new BPe;return r.value=e,r}var n="";return GU(e)||at(n),e.and?RF("and",e,t):e.or?RF("or",e,t):e.not?HPe(e,t):WPe(e,t)}function RF(e,t,r){var n=t[e],i="";Y(n)||at(i),n.length||at(i);var a=e==="and"?new FPe:new VPe;return a.children=q(n,function(o){return aD(o,r)}),a.children.length||at(i),a}function HPe(e,t){var r=e.not,n="";GU(r)||at(n);var i=new $Pe;return i.child=aD(r,t),i.child||at(n),i}function WPe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Ye(e),o=e.parser,s=o?wW(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=fe(PF,u)?PF[u]:u,f=e[u],d=s?s(f):f,h=Iye(c,d)||c==="reg"&&new zPe(d);h||at(r),i.push(h)}}i.length||at(r);var p=new GPe;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function GU(e){return be(e)&&!qr(e)}var jPe=function(){function e(t,r){this._cond=aD(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function UPe(e,t){return new jPe(e,t)}var YPe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=UPe(e.config,{valueGetterAttrMap:de({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;fe(s,"dimension")||at(l);var c=t.getDimensionInfo(u);return c||at(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},XPe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=vt(r);i.length||at(n);var a=[];D(i,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&&at(n),d!=="asc"&&d!=="desc"&&at(n),p&&p!=="min"&&p!=="max"){var v="";at(v)}if(d!=="asc"&&d!=="desc"){var g="";at(g)}var m=t.getDimensionInfo(f);m||at(n);var y=h?wW(h):null;h&&!y&&at(n),a.push({dimIdx:m.index,parser:y,comparator:new TW(d,p)})});var o=t.sourceFormat;o!==Zr&&o!==Ri&&at(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function qPe(e){e.registerTransform(YPe),e.registerTransform(XPe)}var ZPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new IW(this),OO(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),OO(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Oa},t}(Ue),KPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(zt);function QPe(e){e.registerComponentModel(ZPe),e.registerComponentView(KPe)}var ca=Wa.CMD;function Uc(e,t){return Math.abs(e-t)<1e-5}function N2(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(I,P){i&&i.length>2&&n.push(i),i=[I,P]}function c(I,P,E,z){Uc(I,E)&&Uc(P,z)||i.push(I,P,E,z,E,z)}function f(I,P,E,z,$,O){var V=Math.abs(P-I),L=Math.tan(V/4)*4/3,G=P<I?-1:1,W=Math.cos(I),B=Math.sin(I),X=Math.cos(P),te=Math.sin(P),U=W*$+E,re=B*O+z,Q=X*$+E,ae=te*O+z,se=$*L*G,K=O*L*G;i.push(U-se*B,re+K*W,Q+se*te,ae-K*X,Q,ae)}for(var d,h,p,v,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===ca.L||m===ca.C||m===ca.Q)&&(i=[s,l])),m){case ca.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case ca.L:d=t[g++],h=t[g++],c(a,o,d,h),a=d,o=h;break;case ca.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case ca.Q:d=t[g++],h=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(d-a),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),a=p,o=v;break;case ca.A:var x=t[g++],S=t[g++],b=t[g++],_=t[g++],w=t[g++],C=t[g++]+w;g+=1;var T=!t[g++];d=Math.cos(w)*b+x,h=Math.sin(w)*_+S,y?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(C)*b+x,o=Math.sin(C)*_+S;for(var A=(T?-1:1)*Math.PI/2,M=w;T?M>C:M<C;M+=A){var k=T?Math.max(M+A,C):Math.min(M+A,C);f(M,k,x,S,b,_)}break;case ca.R:s=a=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case ca.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function z2(e,t,r,n,i,a,o,s,l,u){if(Uc(e,r)&&Uc(t,n)&&Uc(i,o)&&Uc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x<f&&S<f){l.push(o,s);return}var b=d*v+h*g,_=-d*m-h*y,w=x-b*b,C=S-_*_;if(w<f&&b>=0&&C<f&&_>=0){l.push(o,s);return}var T=[],A=[];Ls(e,r,i,o,.5,T),Ls(t,n,a,s,.5,A),z2(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),z2(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function JPe(e,t){var r=N2(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],p=a[u++],v=a[u++];z2(s,l,c,f,d,h,p,v,o,t),s=p,l=v}n.push(o)}return n}function HU(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function EF(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=HU([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=a+d*h,g.endAngle=a+d*(h+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+d*h,g.r=n+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function eRe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=HU([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=e.x,v.y+=e.y,r.push(v)}}function LF(e,t,r,n){return e*n-r*t}function tRe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=LF(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,p=t-a,v=LF(h,p,c,f)/d;return v<0||v>1?null:new Ee(v*l+e,v*u+t)}function rRe(e,t,r){var n=new Ee;Ee.sub(n,r,t),n.normalize();var i=new Ee;Ee.sub(i,e,t);var a=i.dot(n);return a}function yc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function nRe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=tRe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:rRe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],a=u.idx+1;a<=c.idx;a++)yc(p,e[a].slice());yc(p,h),yc(p,d);for(var a=c.idx+1;a<=u.idx+n;a++)yc(v,e[a%n].slice());return yc(v,d),yc(v,h),[{points:p},{points:v}]}function OF(e){var t=e.points,r=[],n=[];yx(t,r,n);var i=new Ne(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Ee,c=new Ee;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),nRe(t,u,c)}function H0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);H0(e,a[0],i,n),H0(e,a[1],r-i,n)}return n}function iRe(e,t){for(var r=[],n=0;n<t;n++)r.push(wk(e));return r}function aRe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function oRe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function sRe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":eRe(n,t,r),i=qe;break;case"sector":EF(n,t,r),i=dn;break;case"circle":EF({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=dn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=q(JPe(e.getUpdatedPathProxy(),o),function(m){return oRe(m)}),l=s.length;if(l===0)H0(OF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=q(s,function(m){var y=[],x=[];yx(m,y,x);var S=(x[1]-y[1])*(x[0]-y[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*t);p<0||(H0(OF,{points:h.poly},p,r),d-=p)}}i=hn;break}if(!i)return iRe(e,t);for(var v=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),aRe(e,g),v.push(g)}return v}function lRe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],m=o[h++],y=o[h++],x=o[h++],S=o[h++],b=o[h++];if(d<=0){f.push(g,m,y,x,S,b);continue}for(var _=Math.min(d,c-1)+1,w=1;w<=_;w++){var C=w/_;Ls(p,g,y,S,C,i),Ls(v,m,x,b,C,a),p=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],p,v),g=i[5],m=a[5],y=i[6],x=a[6]}d-=_-1}return o===e?[f,t]:[e,f]}function NF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function uRe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=lRe(l,u),c=r[0],f=r[1],n=c,i=f):(f=NF(i||l,l),c=l):(c=NF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function zF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function cRe(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=e[h]-r[0],v=e[h+1]-r[1],g=t[d]-n[0],m=t[d+1]-n[1],y=g-p,x=m-v;f+=y*y+x*x}f<a&&(a=f,o=u)}return o}function fRe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function dRe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=zF(s),c=zF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;a&&(s=fRe(s));for(var m=cRe(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var S=(m+x)%y+2;f[x+2]=s[S]-u[0],f[x+3]=s[S+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var b=n/r,_=-n/2;_<=n/2;_+=b){for(var w=Math.sin(_),C=Math.cos(_),T=0,x=0;x<s.length;x+=2){var A=f[x],M=f[x+1],k=l[x]-c[0],I=l[x+1]-c[1],P=k*C-I*w,E=k*w+I*C;v[x]=P,v[x+1]=E;var z=P-A,$=E-M;T+=z*z+$*$}if(T<p){p=T,h=_;for(var O=0;O<v.length;O++)d[O]=v[O]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function W0(e){return e.__isCombineMorphing}var WU="__mOriginal_";function j0(e,t,r){var n=WU+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Qh(e,t){var r=WU+t;e[r]&&(e[t]=e[r],e[r]=null)}function BF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function jU(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=uRe(N2(r),N2(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&BF(a,s),l&&BF(o,l),j0(t,"updateTransform",{replace:u}),t.transform=null;var c=dRe(a,o,10,Math.PI),f=[];j0(t,"buildPath",{replace:function(d){for(var h=t.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,S=m.rotation*h,b=m.fromCp,_=m.toCp,w=Math.sin(S),C=Math.cos(S);Ym(v,b,_,h);for(var T=0;T<y.length;T+=2){var A=y[T],M=y[T+1],k=x[T],I=x[T+1],P=A*p+k*h,E=M*p+I*h;f[T]=P*C-E*w+v[0],f[T+1]=P*w+E*C+v[1]}var z=f[0],$=f[1];d.moveTo(z,$);for(var T=2;T<y.length;){var k=f[T++],I=f[T++],O=f[T++],V=f[T++],L=f[T++],G=f[T++];z===k&&$===I&&O===L&&V===G?d.lineTo(L,G):d.bezierCurveTo(k,I,O,V,L,G),z=L,$=G}}}})}function oD(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;jU(e,t),t.__morphT=0;function a(){Qh(t,"buildPath"),Qh(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},_e({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function hRe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function U0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=q(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=q(a,function(s,l){return{cp:s,z:hRe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function UU(e){return sRe(e.path,e.count)}function B2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function pRe(e,t,r){var n=[];function i(b){for(var _=0;_<b.length;_++){var w=b[_];W0(w)?i(w.childrenRef()):w instanceof He&&n.push(w)}}i(e);var a=n.length;if(!a)return B2();var o=r.dividePath||UU,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),B2();n=U0(n),s=U0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new oo,d=0;d<a;d++){var h=n[d],p=s[d];p.parent=t,p.copyTransform(f),c||jU(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(b){for(var _=0;_<s.length;_++)s[_].addSelfToZr(b)}j0(t,"addSelfToZr",{after:function(b){v(b)}}),j0(t,"removeSelfFromZr",{after:function(b){for(var _=0;_<s.length;_++)s[_].removeSelfFromZr(b)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Qh(t,"addSelfToZr"),Qh(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var S=c?_e({delay:(r.delay||0)+c(d,m,n[d],s[d]),done:x},r):r;oD(n[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},_e({during:function(b){for(var _=0;_<m;_++){var w=s[_];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<e.length;b++)Qh(e[b],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function vRe(e,t,r){var n=t.length,i=[],a=r.dividePath||UU;function o(h){for(var p=0;p<h.length;p++){var v=h[p];W0(v)?o(v.childrenRef()):v instanceof He&&i.push(v)}}if(W0(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(wk(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),B2()}i=U0(i),t=U0(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?_e({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;oD(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function FF(e){return Y(e[0])}function VF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var gRe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=wk(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function _w(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Xf("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;FF(e)&&(u=e,c=t),FF(t)&&(u=t,c=e);function f(m,y,x,S,b){var _=m.many,w=m.one;if(_.length===1&&!b){var C=y?_[0]:w,T=y?w:_[0];if(W0(C))f({many:[C],one:T},!0,x,S,!0);else{var A=s?_e({delay:s(x,S)},l):l;oD(C,T,A),a(C,T,C,T,A)}}else for(var M=_e({dividePath:gRe[r],individualDelay:s&&function($,O,V,L){return s($+x,S)}},l),k=y?pRe(_,w,M):vRe(w,_,M),I=k.fromIndividuals,P=k.toIndividuals,E=I.length,z=0;z<E;z++){var A=s?_e({delay:s(z,E)},l):l;a(I[z],P[z],y?_[z]:m.one,y?m.one:_[z],A)}}for(var d=u?u===e:e.length>t.length,h=u?VF(c,u):VF(d?t:e,[d?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Pl(e){if(!e)return[];if(Y(e)){for(var t=[],r=0;r<e.length;r++)t.push(Pl(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof He&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var YU=1e4,mRe=0,$F=1,GF=2,yRe=Ze();function xRe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function SRe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function HF(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=xRe(e,i);if(a){var o=SRe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function WF(e){var t=[];return D(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>YU))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:HF(n,o,i,!1),childGroupId:HF(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function bw(e,t,r){e.traverse(function(n){n instanceof He&&Et(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function ww(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function xc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function _Re(e,t,r){var n=Xf("update",r,t);n&&e.traverse(function(i){if(i instanceof Ai){var a=dme(i);a&&i.animateFrom({style:a},n)}})}function bRe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function XU(e,t,r){var n=WF(e),i=WF(t);function a(x,S,b,_,w){(b||x)&&S.animateFrom({style:b&&b!==x?j(j({},b.style),x.style):x.style},w)}var o=!1,s=mRe,l=de(),u=de();n.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=$F;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=GF;break}}function h(x,S){return function(b){var _=b.data,w=b.dataIndex;return S?_.getId(w):x?s===$F?b.childGroupId:b.groupId:s===GF?b.childGroupId:b.groupId}}var p=bRe(n,i),v={};if(!p)for(var c=0;c<i.length;c++){var g=i[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(v[m.id]=!0)}function y(x,S){var b=n[S],_=i[x],w=_.data.hostModel,C=b.data.getItemGraphicEl(b.dataIndex),T=_.data.getItemGraphicEl(_.dataIndex);if(C===T){T&&_Re(T,_.dataIndex,w);return}C&&v[C.id]||T&&(xc(T),C?(xc(C),ww(C),o=!0,_w(Pl(C),Pl(T),_.divide,w,x,a)):bw(T,w,x))}new Ao(n,i,h(!0,p),h(!1,p),null,"multiple").update(y).updateManyToOne(function(x,S){var b=i[x],_=b.data,w=_.hostModel,C=_.getItemGraphicEl(b.dataIndex),T=ft(q(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==C&&!v[A.id]});C&&(xc(C),T.length?(D(T,function(A){xc(A),ww(A)}),o=!0,_w(Pl(T),Pl(C),b.divide,w,x,a)):bw(C,w,b.dataIndex))}).updateOneToMany(function(x,S){var b=n[S],_=b.data.getItemGraphicEl(b.dataIndex);if(!(_&&v[_.id])){var w=ft(q(x,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==_}),C=i[x[0]].data.hostModel;w.length&&(D(w,function(T){return xc(T)}),_?(xc(_),ww(_),o=!0,_w(Pl(_),Pl(w),b.divide,C,x[0],a)):D(w,function(T){return bw(T,C,x[0])}))}}).updateManyToMany(function(x,S){new Ao(S,x,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return i[b].data.getId(i[b].dataIndex)}).update(function(b,_){y(x[b],S[_])}).execute()}).execute(),o&&D(t,function(x){var S=x.data,b=S.hostModel,_=b&&r.getViewOfSeriesModel(b),w=Xf("update",b,0);_&&b.isAnimationEnabled()&&w&&w.duration>0&&_.group.traverse(function(C){C instanceof He&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function jF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function UF(e){return Y(e)?e.sort().join(","):e}function ts(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function wRe(e,t){var r=de(),n=de(),i=de();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=jF(a),c=UF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=jF(a),u=UF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:ts(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:ts(s),data:s}]});else if(Y(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:ts(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:ts(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:ts(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:ts(s)})}}}}),r}function YF(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function CRe(e,t,r,n){var i=[],a=[];D(vt(e.from),function(o){var s=YF(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:ts(t.oldData[s]),groupIdDim:o.dimension})}),D(vt(e.to),function(o){var s=YF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:ts(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&XU(i,a,n)}function TRe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(vt(n.seriesTransition),function(i){D(vt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][iy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=yRe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)D(vt(a),function(h){CRe(h,i,n,r)});else{var o=wRe(i,n);D(o.keys(),function(h){var p=o.get(h);XU(p.oldSeries,p.newSeries,r)})}D(n.updatedSeries,function(h){h[iy]&&(h[iy]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<YU&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Fe([LSe]);Fe([ISe]);Fe([e_e,v_e,T_e,ibe,vbe,twe,Iwe,dCe,LCe,VCe,qCe,HTe,p2e,T2e,$2e,j2e,tAe,lAe,xAe,TAe,OAe,yMe]);Fe(zMe);Fe(cke);Fe(U8);Fe(wke);Fe(P9);Fe(Mke);Fe(Nke);Fe(wIe);Fe(GIe);Fe(Uv);Fe(aDe);Fe(lDe);Fe(yDe);Fe(TDe);Fe(PDe);Fe(zDe);Fe(YDe);Fe(fPe);Fe(LU);Fe(OU);Fe(PPe);Fe(VU);Fe($U);Fe(NPe);Fe(qPe);Fe(QPe);Fe(TRe);Fe(qxe);const Y0={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},qU=e=>!isNaN(Date.parse(e)),ARe=e=>e&&qU(e)?new Date(e).toLocaleString():"",MRe=e=>e&&qU(e)?new Date(e).toLocaleTimeString():"",ZU=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),XF={type:"value",boundaryGap:[0,"5%"]},kRe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(XF).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...XF,...t?{name:t}:{}},IRe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})=>({title:{text:t},dataZoom:[{type:"inside",start:0,end:100}],tooltip:{trigger:"axis",formatter:l=>Array.isArray(l)&&l.length>0&&l.some(u=>!!u.value)?l.reduce((u,{axisValue:c,color:f,seriesName:d,value:h},p)=>`
|
228
|
-
${p===0?ARe(c):""}
|
229
|
-
${u}
|
230
|
-
<br>
|
231
|
-
<span style="color:${f};">
|
232
|
-
${d}: ${i?i(h):h}
|
233
|
-
</span>
|
234
|
-
`,""):"No data",borderWidth:0},xAxis:{type:"category",axisLabel:{formatter:MRe},data:e.time},grid:{left:40,right:a?40:10},yAxis:kRe({splitAxis:a,yAxisLabels:o}),series:ZU({charts:e,lines:r,scatterplot:s}),color:n,toolbox:{feature:{dataZoom:{show:!0,title:{zoom:"Zoom Select",back:"Zoom Reset"}},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),DRe=(e,t)=>({symbol:"none",label:{formatter:r=>`Run #${r.dataIndex+1}`},lineStyle:{color:t?Y0.DARK.axisColor:Y0.LIGHT.axisColor},data:(e.markers||[]).map(r=>({xAxis:r}))}),PRe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,end:i}]=r,a=n>0&&i<100;e.setOption({dataZoom:[{type:"inside",start:n,end:i},{type:"slider",show:a,start:n,end:i}]})};function RRe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s}){const[l,u]=N.useState(null),c=Ya(({theme:{isDarkMode:d}})=>d),f=N.useRef(null);return N.useEffect(()=>{if(!f.current)return;const d=m1e(f.current);d.setOption(IRe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})),d.on("datazoom",PRe(d));const h=()=>d.resize();return window.addEventListener("resize",h),d.group="swarmCharts",y1e("swarmCharts"),u(d),()=>{x1e(d),window.removeEventListener("resize",h)}},[f]),N.useEffect(()=>{const d=r.every(({key:h})=>!!e[h]);l&&d&&l.setOption({xAxis:{data:e.time},series:r.map(({key:h,yAxisIndex:p,...v},g)=>({...v,data:e[h],...a?{yAxisIndex:p||g}:{},...g===0?{markLine:DRe(e,c)}:{}}))})},[e,l,r,c]),N.useEffect(()=>{if(l){const{textColor:d,axisColor:h,backgroundColor:p,splitLine:v}=c?Y0.DARK:Y0.LIGHT;l.setOption({backgroundColor:p,textStyle:{color:d},title:{textStyle:{color:d}},legend:{icon:"circle",inactiveColor:d,textStyle:{color:d}},tooltip:{backgroundColor:p,textStyle:{color:d}},xAxis:{axisLine:{lineStyle:{color:h}}},yAxis:{axisLine:{lineStyle:{color:h}},splitLine:{lineStyle:{color:v}}}})}},[l,c]),N.useEffect(()=>{l&&l.setOption({series:ZU({charts:e,lines:r,scatterplot:s})})},[r]),R.jsx("div",{ref:f,style:{width:"100%",height:"300px"}})}const ERe=Ea.percentilesToChart?Ea.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],LRe=["#eeff00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],ORe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:ERe,colors:LRe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function NRe({charts:e}){return R.jsx("div",{children:ORe.map((t,r)=>R.jsx(RRe,{...t,charts:e},`swarm-chart-${r}`))})}const zRe=({ui:{charts:e}})=>({charts:e}),BRe=Nn(zRe)(NRe);function FRe(e){return(e*100).toFixed(1)+"%"}function F2({classRatio:e}){return R.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>R.jsxs("li",{children:[`${FRe(r)} ${t}`,n&&R.jsx(F2,{classRatio:n})]},`nested-ratio-${t}`))})}function VRe({ratios:{perClass:e,total:t}}){return!e&&!t?null:R.jsxs("div",{children:[e&&R.jsxs(R.Fragment,{children:[R.jsx("h3",{children:"Ratio Per Class"}),R.jsx(F2,{classRatio:e})]}),t&&R.jsxs(R.Fragment,{children:[R.jsx("h3",{children:"Total Ratio"}),R.jsx(F2,{classRatio:t})]})]})}const $Re=({ui:{ratios:e}})=>({ratios:e}),GRe=Nn($Re)(VRe),HRe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:BZ}];function WRe({workers:e=[]}){return R.jsx(Tv,{defaultSortKey:"id",rows:e,structure:HRe})}const jRe=({ui:{workers:e}})=>({workers:e}),URe=Nn(jRe)(WRe),YRe=[{component:The,key:"stats",title:"Statistics"},{component:BRe,key:"charts",title:"Charts"},{component:lhe,key:"failures",title:"Failures"},{component:ihe,key:"exceptions",title:"Exceptions"},{component:GRe,key:"ratios",title:"Current Ratio"},{component:phe,key:"reports",title:"Download Data"},{component:fhe,key:bG,title:"Logs"},{component:URe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],XRe=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)},qRe=()=>window.location.search?zZ(window.location.search):null,ZRe={query:qRe()},KU=hi({name:"url",initialState:ZRe,reducers:{setUrl:bv}}),KRe=KU.actions,QRe=KU.reducer;function JRe({hasNotification:e,title:t}){return R.jsxs(Ct,{sx:{display:"flex",alignItems:"center"},children:[e&&R.jsx(FM,{color:"secondary"}),R.jsx("span",{children:t})]})}function eEe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=N.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),XRe({tab:c}),n({query:{tab:c}}),o(u)};return N.useEffect(()=>{o(e)},[e]),R.jsxs(_v,{maxWidth:"xl",children:[R.jsx(Ct,{sx:{mb:2},children:R.jsx(goe,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>R.jsx(gae,{label:R.jsx(JRe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=ehe},u)=>a===u&&R.jsx(l,{},`tabpabel-${u}`))]})}const tEe=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:a}}=e,s=(t||[...YRe,...r||i||[]]).filter(({shouldDisplayTab:u})=>!u||u&&u(e)),l=a&&a.tab?s.findIndex(({key:u})=>u===a.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},rEe={setNotification:CG.setNotification,setUrl:KRe.setUrl},nEe=Nn(tEe,rEe)(eEe);var KF;const iEe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:(KF=Ea.history)==null?void 0:KF.reduce(nx,{}),ratios:{},userCount:0};var QF;const aEe=(QF=Ea.percentilesToChart)==null?void 0:QF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),oEe=e=>nx(e,{...aEe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),QU=hi({name:"ui",initialState:iEe,reducers:{setUi:bv,updateCharts:(e,{payload:t})=>({...e,charts:nx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...oEe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Cw=QU.actions,sEe=QU.reducer,qF=2e3;function lEe(){const e=Wl(zM.setSwarm),t=Wl(Cw.setUi),r=Wl(Cw.updateCharts),n=Wl(Cw.updateChartMarkers),i=Ya(({swarm:m})=>m),a=N.useRef(i.state),o=N.useRef(!1),[s,l]=N.useState(!1),{data:u,refetch:c}=$se(),{data:f,refetch:d}=Gse(),{data:h,refetch:p}=Hse(),v=i.state===Si.SPAWNING||i.state==Si.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:b,totalFailPerSec:_,failRatio:w,workers:C,userCount:T,totalAvgResponseTime:A}=u,M=new Date().toUTCString();s&&(l(!1),n(M));const k=oh(b,2),I=oh(_,2),P=oh(w*100),E={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:oh(A,2),userCount:T,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:P,workers:C,userCount:T}),r(E)};N.useEffect(()=>{u&&e({state:u.state})},[u&&u.state]),N.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),ah(g,qF,{shouldRunInterval:!!u&&v}),N.useEffect(()=>{f&&t({ratios:f})},[f]),N.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),ah(c,qF,{shouldRunInterval:v}),ah(d,5e3,{shouldRunInterval:v}),ah(p,5e3,{shouldRunInterval:v}),N.useEffect(()=>{i.state===Si.RUNNING&&a.current===Si.STOPPED&&l(!0),a.current=i.state},[i.state,a])}function uEe({swarmState:e,tabs:t,extendedTabs:r}){lEe(),kle();const n=lG();return R.jsxs(A$,{theme:n,children:[R.jsx(O$,{}),R.jsx(_le,{children:e===Si.READY?R.jsx(SG,{}):R.jsx(nEe,{extendedTabs:r,tabs:t})})]})}const cEe=({swarm:{state:e}})=>({swarmState:e}),fEe=Nn(cEe)(uEe),dEe=d1({[Yy.reducerPath]:Yy.reducer,logViewer:Mle,notification:wle,swarm:sle,theme:oG,ui:sEe,url:QRe}),hEe=CV({reducer:dEe,middleware:e=>e().concat(Yy.middleware)});function pEe(){if(FP){const e=CV({reducer:d1({theme:oG})});return R.jsx(zP,{store:e,children:R.jsx(Noe,{...FP})})}else return R.jsx(zP,{store:hEe,children:R.jsx(fEe,{})})}function vEe({error:e}){return R.jsxs("div",{role:"alert",children:[R.jsx("p",{children:"Something went wrong"}),e.message&&R.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",R.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const gEe=Tw.createRoot(document.getElementById("root"));gEe.render(R.jsx(DX,{fallbackRender:vEe,children:R.jsx(pEe,{})}));
|