tinker-token-usage 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preload/index-Dot49rhx.mjs +1672 -0
- package/dist/preload/index.mjs +249 -0
- package/dist/renderer/assets/app-BFoi1WPE.css +1 -0
- package/dist/renderer/assets/app-BSFWIK2p.js +232 -0
- package/dist/renderer/index.html +2 -2
- package/package.json +6 -4
- package/dist/preload/index-CyhsFhND.js +0 -1
- package/dist/preload/index.js +0 -1
- package/dist/renderer/assets/app-B_uIsUVy.js +0 -227
- package/dist/renderer/assets/app-CsgxyvQh.css +0 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
var hQ=Object.defineProperty;var dQ=(e,t,r)=>t in e?hQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Fl=(e,t,r)=>dQ(e,typeof t!="symbol"?t+"":t,r);function pQ(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function ly(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var DU={exports:{}},rb={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gQ=Symbol.for("react.transitional.element"),yQ=Symbol.for("react.fragment");function LU(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:gQ,type:e,key:n,ref:t!==void 0?t:null,props:r}}rb.Fragment=yQ;rb.jsx=LU;rb.jsxs=LU;DU.exports=rb;var X=DU.exports,EU={exports:{}},nb={},OU={exports:{}},RU={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/(function(e){function t(O,N){var P=O.length;O.push(N);t:for(;0<P;){var B=P-1>>>1,z=O[B];if(0<a(z,N))O[B]=N,O[P]=z,P=B;else break t}}function r(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var N=O[0],P=O.pop();if(P!==N){O[0]=P;t:for(var B=0,z=O.length,H=z>>>1;B<H;){var F=2*(B+1)-1,$=O[F],j=F+1,tt=O[j];if(0>a($,P))j<z&&0>a(tt,$)?(O[B]=tt,O[j]=P,B=j):(O[B]=$,O[F]=P,B=F);else if(j<z&&0>a(tt,P))O[B]=tt,O[j]=P,B=j;else break t}}return N}function a(O,N){var P=O.sortIndex-N.sortIndex;return P!==0?P:O.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,v=3,h=!1,d=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function S(O){for(var N=r(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=O)n(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(u)}}function b(O){if(p=!1,S(O),!d)if(r(l)!==null)d=!0,x||(x=!0,E());else{var N=r(u);N!==null&&I(b,N.startTime-O)}}var x=!1,w=-1,A=5,T=-1;function C(){return g?!0:!(e.unstable_now()-T<A)}function M(){if(g=!1,x){var O=e.unstable_now();T=O;var N=!0;try{t:{d=!1,p&&(p=!1,m(w),w=-1),h=!0;var P=v;try{e:{for(S(O),c=r(l);c!==null&&!(c.expirationTime>O&&C());){var B=c.callback;if(typeof B=="function"){c.callback=null,v=c.priorityLevel;var z=B(c.expirationTime<=O);if(O=e.unstable_now(),typeof z=="function"){c.callback=z,S(O),N=!0;break e}c===r(l)&&n(l),S(O)}else n(l);c=r(l)}if(c!==null)N=!0;else{var H=r(u);H!==null&&I(b,H.startTime-O),N=!1}}break t}finally{c=null,v=P,h=!1}N=void 0}}finally{N?E():x=!1}}}var E;if(typeof _=="function")E=function(){_(M)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,R=L.port2;L.port1.onmessage=M,E=function(){R.postMessage(null)}}else E=function(){y(M,0)};function I(O,N){w=y(function(){O(e.unstable_now())},N)}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_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"):A=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(O){switch(v){case 1:case 2:case 3:var N=3;break;default:N=v}var P=v;v=N;try{return O()}finally{v=P}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=v;v=O;try{return N()}finally{v=P}},e.unstable_scheduleCallback=function(O,N,P){var B=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?B+P:B):P=B,O){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=P+z,O={id:f++,callback:N,priorityLevel:O,startTime:P,expirationTime:z,sortIndex:-1},P>B?(O.sortIndex=P,t(u,O),r(l)===null&&O===r(u)&&(p?(m(w),w=-1):p=!0,I(b,P-B))):(O.sortIndex=z,t(l,O),d||h||(d=!0,x||(x=!0,E()))),O},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(O){var N=v;return function(){var P=v;v=N;try{return O.apply(this,arguments)}finally{v=P}}}})(RU);OU.exports=RU;var mQ=OU.exports,IU={exports:{}},Gt={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var SE=Symbol.for("react.transitional.element"),_Q=Symbol.for("react.portal"),SQ=Symbol.for("react.fragment"),bQ=Symbol.for("react.strict_mode"),xQ=Symbol.for("react.profiler"),wQ=Symbol.for("react.consumer"),TQ=Symbol.for("react.context"),AQ=Symbol.for("react.forward_ref"),CQ=Symbol.for("react.suspense"),MQ=Symbol.for("react.memo"),PU=Symbol.for("react.lazy"),DQ=Symbol.for("react.activity"),KP=Symbol.iterator;function LQ(e){return e===null||typeof e!="object"?null:(e=KP&&e[KP]||e["@@iterator"],typeof e=="function"?e:null)}var NU={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kU=Object.assign,BU={};function Dh(e,t,r){this.props=e,this.context=t,this.refs=BU,this.updater=r||NU}Dh.prototype.isReactComponent={};Dh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};Dh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zU(){}zU.prototype=Dh.prototype;function bE(e,t,r){this.props=e,this.context=t,this.refs=BU,this.updater=r||NU}var xE=bE.prototype=new zU;xE.constructor=bE;kU(xE,Dh.prototype);xE.isPureReactComponent=!0;var QP=Array.isArray;function RC(){}var De={H:null,A:null,T:null,S:null},VU=Object.prototype.hasOwnProperty;function wE(e,t,r){var n=r.ref;return{$$typeof:SE,type:e,key:t,ref:n!==void 0?n:null,props:r}}function EQ(e,t){return wE(e.type,t,e.props)}function TE(e){return typeof e=="object"&&e!==null&&e.$$typeof===SE}function OQ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var JP=/\/+/g;function $x(e,t){return typeof e=="object"&&e!==null&&e.key!=null?OQ(""+e.key):t.toString(36)}function RQ(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(RC,RC):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function qc(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case SE:case _Q:o=!0;break;case PU:return o=e._init,qc(o(e._payload),t,r,n,a)}}if(o)return a=a(e),o=n===""?"."+$x(e,0):n,QP(a)?(r="",o!=null&&(r=o.replace(JP,"$&/")+"/"),qc(a,t,r,"",function(u){return u})):a!=null&&(TE(a)&&(a=EQ(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(JP,"$&/")+"/")+o)),t.push(a)),1;o=0;var s=n===""?".":n+":";if(QP(e))for(var l=0;l<e.length;l++)n=e[l],i=s+$x(n,l),o+=qc(n,t,r,i,a);else if(l=LQ(e),typeof l=="function")for(e=l.call(e),l=0;!(n=e.next()).done;)n=n.value,i=s+$x(n,l++),o+=qc(n,t,r,i,a);else if(i==="object"){if(typeof e.then=="function")return qc(RQ(e),t,r,n,a);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 Jy(e,t,r){if(e==null)return e;var n=[],a=0;return qc(e,n,"","",function(i){return t.call(r,i,a++)}),n}function IQ(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 tN=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},PQ={map:Jy,forEach:function(e,t,r){Jy(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Jy(e,function(){t++}),t},toArray:function(e){return Jy(e,function(t){return t})||[]},only:function(e){if(!TE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Gt.Activity=DQ;Gt.Children=PQ;Gt.Component=Dh;Gt.Fragment=SQ;Gt.Profiler=xQ;Gt.PureComponent=bE;Gt.StrictMode=bQ;Gt.Suspense=CQ;Gt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=De;Gt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return De.H.useMemoCache(e)}};Gt.cache=function(e){return function(){return e.apply(null,arguments)}};Gt.cacheSignal=function(){return null};Gt.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=kU({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!VU.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(n[i]=t[i]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];n.children=o}return wE(e.type,a,n)};Gt.createContext=function(e){return e={$$typeof:TQ,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:wQ,_context:e},e};Gt.createElement=function(e,t,r){var n,a={},i=null;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)VU.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var o=arguments.length-2;if(o===1)a.children=r;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)a[n]===void 0&&(a[n]=o[n]);return wE(e,i,a)};Gt.createRef=function(){return{current:null}};Gt.forwardRef=function(e){return{$$typeof:AQ,render:e}};Gt.isValidElement=TE;Gt.lazy=function(e){return{$$typeof:PU,_payload:{_status:-1,_result:e},_init:IQ}};Gt.memo=function(e,t){return{$$typeof:MQ,type:e,compare:t===void 0?null:t}};Gt.startTransition=function(e){var t=De.T,r={};De.T=r;try{var n=e(),a=De.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(RC,tN)}catch(i){tN(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),De.T=t}};Gt.unstable_useCacheRefresh=function(){return De.H.useCacheRefresh()};Gt.use=function(e){return De.H.use(e)};Gt.useActionState=function(e,t,r){return De.H.useActionState(e,t,r)};Gt.useCallback=function(e,t){return De.H.useCallback(e,t)};Gt.useContext=function(e){return De.H.useContext(e)};Gt.useDebugValue=function(){};Gt.useDeferredValue=function(e,t){return De.H.useDeferredValue(e,t)};Gt.useEffect=function(e,t){return De.H.useEffect(e,t)};Gt.useEffectEvent=function(e){return De.H.useEffectEvent(e)};Gt.useId=function(){return De.H.useId()};Gt.useImperativeHandle=function(e,t,r){return De.H.useImperativeHandle(e,t,r)};Gt.useInsertionEffect=function(e,t){return De.H.useInsertionEffect(e,t)};Gt.useLayoutEffect=function(e,t){return De.H.useLayoutEffect(e,t)};Gt.useMemo=function(e,t){return De.H.useMemo(e,t)};Gt.useOptimistic=function(e,t){return De.H.useOptimistic(e,t)};Gt.useReducer=function(e,t,r){return De.H.useReducer(e,t,r)};Gt.useRef=function(e){return De.H.useRef(e)};Gt.useState=function(e){return De.H.useState(e)};Gt.useSyncExternalStore=function(e,t,r){return De.H.useSyncExternalStore(e,t,r)};Gt.useTransition=function(){return De.H.useTransition()};Gt.version="19.2.7";IU.exports=Gt;var k=IU.exports;const V_=ly(k),AE=pQ({__proto__:null,default:V_},[k]);var GU={exports:{}},vn={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 NQ=k;function HU(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;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."}function _s(){}var sn={d:{f:_s,r:function(){throw Error(HU(522))},D:_s,C:_s,L:_s,m:_s,X:_s,S:_s,M:_s},p:0,findDOMNode:null},kQ=Symbol.for("react.portal");function BQ(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kQ,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var _p=NQ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ab(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=sn;vn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(HU(299));return BQ(e,t,null,r)};vn.flushSync=function(e){var t=_p.T,r=sn.p;try{if(_p.T=null,sn.p=2,e)return e()}finally{_p.T=t,sn.p=r,sn.d.f()}};vn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,sn.d.C(e,t))};vn.prefetchDNS=function(e){typeof e=="string"&&sn.d.D(e)};vn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=ab(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?sn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:i}):r==="script"&&sn.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};vn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=ab(t.as,t.crossOrigin);sn.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&sn.d.M(e)};vn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=ab(r,t.crossOrigin);sn.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};vn.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=ab(t.as,t.crossOrigin);sn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else sn.d.m(e)};vn.requestFormReset=function(e){sn.d.r(e)};vn.unstable_batchedUpdates=function(e,t){return e(t)};vn.useFormState=function(e,t,r){return _p.H.useFormState(e,t,r)};vn.useFormStatus=function(){return _p.H.useHostTransitionStatus()};vn.version="19.2.7";function UU(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(UU)}catch(e){console.error(e)}}UU(),GU.exports=vn;var Ff=GU.exports;/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var vr=mQ,FU=k,zQ=Ff;function q(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;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."}function YU(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uy(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 jU(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 WU(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eN(e){if(uy(e)!==e)throw Error(q(188))}function VQ(e){var t=e.alternate;if(!t){if(t=uy(e),t===null)throw Error(q(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return eN(a),e;if(i===n)return eN(a),t;i=i.sibling}throw Error(q(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,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){for(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)throw Error(q(189))}}if(r.alternate!==n)throw Error(q(190))}if(r.tag!==3)throw Error(q(188));return r.stateNode.current===r?e:t}function $U(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=$U(e),t!==null)return t;e=e.sibling}return null}var Re=Object.assign,GQ=Symbol.for("react.element"),tm=Symbol.for("react.transitional.element"),tp=Symbol.for("react.portal"),nv=Symbol.for("react.fragment"),XU=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),ZU=Symbol.for("react.consumer"),Mo=Symbol.for("react.context"),CE=Symbol.for("react.forward_ref"),PC=Symbol.for("react.suspense"),NC=Symbol.for("react.suspense_list"),ME=Symbol.for("react.memo"),Os=Symbol.for("react.lazy"),kC=Symbol.for("react.activity"),HQ=Symbol.for("react.memo_cache_sentinel"),rN=Symbol.iterator;function cd(e){return e===null||typeof e!="object"?null:(e=rN&&e[rN]||e["@@iterator"],typeof e=="function"?e:null)}var UQ=Symbol.for("react.client.reference");function BC(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===UQ?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nv:return"Fragment";case IC:return"Profiler";case XU:return"StrictMode";case PC:return"Suspense";case NC:return"SuspenseList";case kC:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case tp:return"Portal";case Mo:return e.displayName||"Context";case ZU:return(e._context.displayName||"Context")+".Consumer";case CE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ME:return t=e.displayName||null,t!==null?t:BC(e.type)||"Memo";case Os:t=e._payload,e=e._init;try{return BC(e(t))}catch{}}return null}var ep=Array.isArray,Pt=FU.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=zQ.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Yu={pending:!1,data:null,method:null,action:null},zC=[],av=-1;function ro(e){return{current:e}}function br(e){0>av||(e.current=zC[av],zC[av]=null,av--)}function Te(e,t){av++,zC[av]=e.current,e.current=t}var Ri=ro(null),tg=ro(null),Qs=ro(null),G_=ro(null);function H_(e,t){switch(Te(Qs,t),Te(tg,e),Te(Ri,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lk(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lk(t),e=p8(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}br(Ri),Te(Ri,e)}function Wv(){br(Ri),br(tg),br(Qs)}function VC(e){e.memoizedState!==null&&Te(G_,e);var t=Ri.current,r=p8(t,e.type);t!==r&&(Te(tg,e),Te(Ri,r))}function U_(e){tg.current===e&&(br(Ri),br(tg)),G_.current===e&&(br(G_),cg._currentValue=Yu)}var Xx,nN;function bu(e){if(Xx===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Xx=t&&t[1]||"",nN=-1<r.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Xx+e+nN}var Zx=!1;function qx(e,t){if(!e||Zx)return"";Zx=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(h){var v=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){v=h}e.call(c.prototype)}}else{try{throw Error()}catch(h){v=h}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(h){if(h&&v&&typeof h.stack=="string")return[h.stack,v.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
|
|
44
|
+
`),u=s.split(`
|
|
45
|
+
`);for(a=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(n===l.length||a===u.length)for(n=l.length-1,a=u.length-1;1<=n&&0<=a&&l[n]!==u[a];)a--;for(;1<=n&&0<=a;n--,a--)if(l[n]!==u[a]){if(n!==1||a!==1)do if(n--,a--,0>a||l[n]!==u[a]){var f=`
|
|
46
|
+
`+l[n].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=n&&0<=a);break}}}finally{Zx=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?bu(r):""}function FQ(e,t){switch(e.tag){case 26:case 27:case 5:return bu(e.type);case 16:return bu("Lazy");case 13:return e.child!==t&&t!==null?bu("Suspense Fallback"):bu("Suspense");case 19:return bu("SuspenseList");case 0:case 15:return qx(e.type,!1);case 11:return qx(e.type.render,!1);case 1:return qx(e.type,!0);case 31:return bu("Activity");default:return""}}function aN(e){try{var t="",r=null;do t+=FQ(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
|
|
47
|
+
Error generating stack: `+n.message+`
|
|
48
|
+
`+n.stack}}var GC=Object.prototype.hasOwnProperty,DE=vr.unstable_scheduleCallback,Kx=vr.unstable_cancelCallback,YQ=vr.unstable_shouldYield,jQ=vr.unstable_requestPaint,Hn=vr.unstable_now,WQ=vr.unstable_getCurrentPriorityLevel,qU=vr.unstable_ImmediatePriority,KU=vr.unstable_UserBlockingPriority,F_=vr.unstable_NormalPriority,$Q=vr.unstable_LowPriority,QU=vr.unstable_IdlePriority,XQ=vr.log,ZQ=vr.unstable_setDisableYieldValue,fy=null,Un=null;function Vs(e){if(typeof XQ=="function"&&ZQ(e),Un&&typeof Un.setStrictMode=="function")try{Un.setStrictMode(fy,e)}catch{}}var Fn=Math.clz32?Math.clz32:QQ,qQ=Math.log,KQ=Math.LN2;function QQ(e){return e>>>=0,e===0?32:31-(qQ(e)/KQ|0)|0}var em=256,rm=262144,nm=4194304;function xu(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ib(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?a=xu(n):(o&=s,o!==0?a=xu(o):r||(r=s&~e,r!==0&&(a=xu(r))))):(s=n&~i,s!==0?a=xu(s):o!==0?a=xu(o):r||(r=n&~e,r!==0&&(a=xu(r)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,r=t&-t,i>=r||i===32&&(r&4194048)!==0)?t:a}function cy(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function JQ(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function JU(){var e=nm;return nm<<=1,!(nm&62914560)&&(nm=4194304),e}function Qx(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function vy(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tJ(e,t,r,n,a,i){var o=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(r=o&~r;0<r;){var f=31-Fn(r),c=1<<f;s[f]=0,l[f]=-1;var v=u[f];if(v!==null)for(u[f]=null,f=0;f<v.length;f++){var h=v[f];h!==null&&(h.lane&=-536870913)}r&=~c}n!==0&&tF(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function tF(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Fn(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function eF(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Fn(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}function rF(e,t){var r=t&-t;return r=r&42?1:LE(r),r&(e.suspendedLanes|t)?0:r}function LE(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function EE(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function nF(){var e=se.p;return e!==0?e:(e=window.event,e===void 0?32:C8(e.type))}function iN(e,t){var r=se.p;try{return se.p=e,t()}finally{se.p=r}}var Il=Math.random().toString(36).slice(2),Er="__reactFiber$"+Il,Tn="__reactProps$"+Il,Lh="__reactContainer$"+Il,HC="__reactEvents$"+Il,eJ="__reactListeners$"+Il,rJ="__reactHandles$"+Il,oN="__reactResources$"+Il,hy="__reactMarker$"+Il;function OE(e){delete e[Er],delete e[Tn],delete e[HC],delete e[eJ],delete e[rJ]}function iv(e){var t=e[Er];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Lh]||r[Er]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=hk(e);e!==null;){if(r=e[Er])return r;e=hk(e)}return t}e=r,r=e.parentNode}return null}function Eh(e){if(e=e[Er]||e[Lh]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function rp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function Av(e){var t=e[oN];return t||(t=e[oN]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function _r(e){e[hy]=!0}var aF=new Set,iF={};function Yf(e,t){$v(e,t),$v(e+"Capture",t)}function $v(e,t){for(iF[e]=t,e=0;e<t.length;e++)aF.add(t[e])}var nJ=RegExp("^[: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]*$"),sN={},lN={};function aJ(e){return GC.call(lN,e)?!0:GC.call(sN,e)?!1:nJ.test(e)?lN[e]=!0:(sN[e]=!0,!1)}function W0(e,t,r){if(aJ(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function am(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function uo(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+n)}}function ca(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iJ(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function UC(e){if(!e._valueTracker){var t=oF(e)?"checked":"value";e._valueTracker=iJ(e,t,""+e[t])}}function sF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=oF(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Y_(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}}var oJ=/[\n"\\]/g;function pa(e){return e.replace(oJ,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function FC(e,t,r,n,a,i,o,s){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ca(t)):e.value!==""+ca(t)&&(e.value=""+ca(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?YC(e,o,ca(t)):r!=null?YC(e,o,ca(r)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+ca(s):e.removeAttribute("name")}function lF(e,t,r,n,a,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||r!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){UC(e);return}r=r!=null?""+ca(r):"",t=t!=null?""+ca(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),UC(e)}function YC(e,t,r){t==="number"&&Y_(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Cv(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ca(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function uF(e,t,r){if(t!=null&&(t=""+ca(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ca(r):""}function fF(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(q(92));if(ep(n)){if(1<n.length)throw Error(q(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=ca(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),UC(e)}function Xv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var sJ=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function uN(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||sJ.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function cF(e,t,r){if(t!=null&&typeof t!="object")throw Error(q(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&r[a]!==n&&uN(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&uN(e,i,t[i])}function RE(e){if(e.indexOf("-")===-1)return!1;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 lJ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),uJ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $0(e){return uJ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Do(){}var jC=null;function IE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ov=null,Mv=null;function fN(e){var t=Eh(e);if(t&&(e=t.stateNode)){var r=e[Tn]||null;t:switch(e=t.stateNode,t.type){case"input":if(FC(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+pa(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=n[Tn]||null;if(!a)throw Error(q(90));FC(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&sF(n)}break t;case"textarea":uF(e,r.value,r.defaultValue);break t;case"select":t=r.value,t!=null&&Cv(e,!!r.multiple,t,!1)}}}var Jx=!1;function vF(e,t,r){if(Jx)return e(t,r);Jx=!0;try{var n=e(t);return n}finally{if(Jx=!1,(ov!==null||Mv!==null)&&(yb(),ov&&(t=ov,e=Mv,Mv=ov=null,fN(t),e)))for(t=0;t<e.length;t++)fN(e[t])}}function eg(e,t){var r=e.stateNode;if(r===null)return null;var n=r[Tn]||null;if(n===null)return null;r=n[t];t: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 t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(q(231,t,typeof r));return r}var $o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),WC=!1;if($o)try{var vd={};Object.defineProperty(vd,"passive",{get:function(){WC=!0}}),window.addEventListener("test",vd,vd),window.removeEventListener("test",vd,vd)}catch{WC=!1}var Gs=null,PE=null,X0=null;function hF(){if(X0)return X0;var e,t=PE,r=t.length,n,a="value"in Gs?Gs.value:Gs.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[i-n];n++);return X0=a.slice(e,1<n?1-n:void 0)}function Z0(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 im(){return!0}function cN(){return!1}function An(e){function t(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?im:cN,this.isPropagationStopped=cN,this}return Re(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=im)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=im)},persist:function(){},isPersistent:im}),t}var jf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ob=An(jf),dy=Re({},jf,{view:0,detail:0}),fJ=An(dy),tw,ew,hd,sb=Re({},dy,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:NE,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!==hd&&(hd&&e.type==="mousemove"?(tw=e.screenX-hd.screenX,ew=e.screenY-hd.screenY):ew=tw=0,hd=e),tw)},movementY:function(e){return"movementY"in e?e.movementY:ew}}),vN=An(sb),cJ=Re({},sb,{dataTransfer:0}),vJ=An(cJ),hJ=Re({},dy,{relatedTarget:0}),rw=An(hJ),dJ=Re({},jf,{animationName:0,elapsedTime:0,pseudoElement:0}),pJ=An(dJ),gJ=Re({},jf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yJ=An(gJ),mJ=Re({},jf,{data:0}),hN=An(mJ),_J={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SJ={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"},bJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xJ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bJ[e])?!!t[e]:!1}function NE(){return xJ}var wJ=Re({},dy,{key:function(e){if(e.key){var t=_J[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Z0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SJ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:NE,charCode:function(e){return e.type==="keypress"?Z0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Z0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TJ=An(wJ),AJ=Re({},sb,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dN=An(AJ),CJ=Re({},dy,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:NE}),MJ=An(CJ),DJ=Re({},jf,{propertyName:0,elapsedTime:0,pseudoElement:0}),LJ=An(DJ),EJ=Re({},sb,{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}),OJ=An(EJ),RJ=Re({},jf,{newState:0,oldState:0}),IJ=An(RJ),PJ=[9,13,27,32],kE=$o&&"CompositionEvent"in window,Sp=null;$o&&"documentMode"in document&&(Sp=document.documentMode);var NJ=$o&&"TextEvent"in window&&!Sp,dF=$o&&(!kE||Sp&&8<Sp&&11>=Sp),pN=" ",gN=!1;function pF(e,t){switch(e){case"keyup":return PJ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sv=!1;function kJ(e,t){switch(e){case"compositionend":return gF(t);case"keypress":return t.which!==32?null:(gN=!0,pN);case"textInput":return e=t.data,e===pN&&gN?null:e;default:return null}}function BJ(e,t){if(sv)return e==="compositionend"||!kE&&pF(e,t)?(e=hF(),X0=PE=Gs=null,sv=!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 dF&&t.locale!=="ko"?null:t.data;default:return null}}var zJ={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 yN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zJ[e.type]:t==="textarea"}function yF(e,t,r,n){ov?Mv?Mv.push(n):Mv=[n]:ov=n,t=lS(t,"onChange"),0<t.length&&(r=new ob("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var bp=null,rg=null;function VJ(e){v8(e,0)}function lb(e){var t=rp(e);if(sF(t))return e}function mN(e,t){if(e==="change")return t}var mF=!1;if($o){var nw;if($o){var aw="oninput"in document;if(!aw){var _N=document.createElement("div");_N.setAttribute("oninput","return;"),aw=typeof _N.oninput=="function"}nw=aw}else nw=!1;mF=nw&&(!document.documentMode||9<document.documentMode)}function SN(){bp&&(bp.detachEvent("onpropertychange",_F),rg=bp=null)}function _F(e){if(e.propertyName==="value"&&lb(rg)){var t=[];yF(t,rg,e,IE(e)),vF(VJ,t)}}function GJ(e,t,r){e==="focusin"?(SN(),bp=t,rg=r,bp.attachEvent("onpropertychange",_F)):e==="focusout"&&SN()}function HJ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lb(rg)}function UJ(e,t){if(e==="click")return lb(t)}function FJ(e,t){if(e==="input"||e==="change")return lb(t)}function YJ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xn=typeof Object.is=="function"?Object.is:YJ;function ng(e,t){if(Xn(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 a=r[n];if(!GC.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function bN(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xN(e,t){var r=bN(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}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=bN(r)}}function SF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bF(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Y_(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Y_(e.document)}return t}function BE(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")}var jJ=$o&&"documentMode"in document&&11>=document.documentMode,lv=null,$C=null,xp=null,XC=!1;function wN(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;XC||lv==null||lv!==Y_(n)||(n=lv,"selectionStart"in n&&BE(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}),xp&&ng(xp,n)||(xp=n,n=lS($C,"onSelect"),0<n.length&&(t=new ob("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=lv)))}function Yl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var uv={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},iw={},xF={};$o&&(xF=document.createElement("div").style,"AnimationEvent"in window||(delete uv.animationend.animation,delete uv.animationiteration.animation,delete uv.animationstart.animation),"TransitionEvent"in window||delete uv.transitionend.transition);function Wf(e){if(iw[e])return iw[e];if(!uv[e])return e;var t=uv[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in xF)return iw[e]=t[r];return e}var wF=Wf("animationend"),TF=Wf("animationiteration"),AF=Wf("animationstart"),WJ=Wf("transitionrun"),$J=Wf("transitionstart"),XJ=Wf("transitioncancel"),CF=Wf("transitionend"),MF=new Map,ZC="abort auxClick beforeToggle 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(" ");ZC.push("scrollEnd");function ri(e,t){MF.set(e,t),Yf(t,[e])}var j_=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},la=[],fv=0,zE=0;function ub(){for(var e=fv,t=zE=fv=0;t<e;){var r=la[t];la[t++]=null;var n=la[t];la[t++]=null;var a=la[t];la[t++]=null;var i=la[t];if(la[t++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&DF(r,a,i)}}function fb(e,t,r,n){la[fv++]=e,la[fv++]=t,la[fv++]=r,la[fv++]=n,zE|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function VE(e,t,r,n){return fb(e,t,r,n),W_(e)}function $f(e,t){return fb(e,null,null,t),W_(e)}function DF(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var a=!1,i=e.return;i!==null;)i.childLanes|=r,n=i.alternate,n!==null&&(n.childLanes|=r),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Fn(r),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=r|536870912),i):null}function W_(e){if(50<Op)throw Op=0,gM=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cv={};function ZJ(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.refCleanup=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 Rn(e,t,r,n){return new ZJ(e,t,r,n)}function GE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Po(e,t){var r=e.alternate;return r===null?(r=Rn(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&65011712,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.refCleanup=e.refCleanup,r}function LF(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function q0(e,t,r,n,a,i){var o=0;if(n=e,typeof e=="function")GE(e)&&(o=1);else if(typeof e=="string")o=tet(e,r,Ri.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case kC:return e=Rn(31,r,t,a),e.elementType=kC,e.lanes=i,e;case nv:return ju(r.children,a,i,t);case XU:o=8,a|=24;break;case IC:return e=Rn(12,r,t,a|2),e.elementType=IC,e.lanes=i,e;case PC:return e=Rn(13,r,t,a),e.elementType=PC,e.lanes=i,e;case NC:return e=Rn(19,r,t,a),e.elementType=NC,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mo:o=10;break t;case ZU:o=9;break t;case CE:o=11;break t;case ME:o=14;break t;case Os:o=16,n=null;break t}o=29,r=Error(q(130,e===null?"null":typeof e,"")),n=null}return t=Rn(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function ju(e,t,r,n){return e=Rn(7,e,n,t),e.lanes=r,e}function ow(e,t,r){return e=Rn(6,e,null,t),e.lanes=r,e}function EF(e){var t=Rn(18,null,null,0);return t.stateNode=e,t}function sw(e,t,r){return t=Rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var TN=new WeakMap;function ga(e,t){if(typeof e=="object"&&e!==null){var r=TN.get(e);return r!==void 0?r:(t={value:e,source:t,stack:aN(t)},TN.set(e,t),t)}return{value:e,source:t,stack:aN(t)}}var vv=[],hv=0,$_=null,ag=0,va=[],ha=0,yl=null,bi=1,xi="";function xo(e,t){vv[hv++]=ag,vv[hv++]=$_,$_=e,ag=t}function OF(e,t,r){va[ha++]=bi,va[ha++]=xi,va[ha++]=yl,yl=e;var n=bi;e=xi;var a=32-Fn(n)-1;n&=~(1<<a),r+=1;var i=32-Fn(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,bi=1<<32-Fn(t)+a|r<<a|n,xi=i+e}else bi=1<<i|r<<a|n,xi=e}function HE(e){e.return!==null&&(xo(e,1),OF(e,1,0))}function UE(e){for(;e===$_;)$_=vv[--hv],vv[hv]=null,ag=vv[--hv],vv[hv]=null;for(;e===yl;)yl=va[--ha],va[ha]=null,xi=va[--ha],va[ha]=null,bi=va[--ha],va[ha]=null}function RF(e,t){va[ha++]=bi,va[ha++]=xi,va[ha++]=yl,bi=t.id,xi=t.overflow,yl=e}var Or=null,Me=null,Jt=!1,Js=null,ya=!1,qC=Error(q(519));function ml(e){var t=Error(q(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ig(ga(t,e)),qC}function AN(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[Er]=e,t[Tn]=n,r){case"dialog":qt("cancel",t),qt("close",t);break;case"iframe":case"object":case"embed":qt("load",t);break;case"video":case"audio":for(r=0;r<ug.length;r++)qt(ug[r],t);break;case"source":qt("error",t);break;case"img":case"image":case"link":qt("error",t),qt("load",t);break;case"details":qt("toggle",t);break;case"input":qt("invalid",t),lF(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":qt("invalid",t);break;case"textarea":qt("invalid",t),fF(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||d8(t.textContent,r)?(n.popover!=null&&(qt("beforetoggle",t),qt("toggle",t)),n.onScroll!=null&&qt("scroll",t),n.onScrollEnd!=null&&qt("scrollend",t),n.onClick!=null&&(t.onclick=Do),t=!0):t=!1,t||ml(e,!0)}function CN(e){for(Or=e.return;Or;)switch(Or.tag){case 5:case 31:case 13:ya=!1;return;case 27:case 3:ya=!0;return;default:Or=Or.return}}function _c(e){if(e!==Or)return!1;if(!Jt)return CN(e),Jt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||bM(e.type,e.memoizedProps)),r=!r),r&&Me&&ml(e),CN(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));Me=vk(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));Me=vk(e)}else t===27?(t=Me,Pl(e.type)?(e=AM,AM=null,Me=e):Me=t):Me=Or?Ta(e.stateNode.nextSibling):null;return!0}function of(){Me=Or=null,Jt=!1}function lw(){var e=Js;return e!==null&&(yn===null?yn=e:yn.push.apply(yn,e),Js=null),e}function ig(e){Js===null?Js=[e]:Js.push(e)}var KC=ro(null),Xf=null,Lo=null;function Ns(e,t,r){Te(KC,t._currentValue),t._currentValue=r}function No(e){e._currentValue=KC.current,br(KC)}function QC(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 JC(e,t,r,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var s=i;i=a;for(var l=0;l<t.length;l++)if(s.context===t[l]){i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),QC(i.return,r,e),n||(o=null);break t}i=s.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,i=o.alternate,i!==null&&(i.lanes|=r),QC(o,r,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function Oh(e,t,r,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(q(387));if(o=o.memoizedProps,o!==null){var s=a.type;Xn(a.pendingProps.value,o.value)||(e!==null?e.push(s):e=[s])}}else if(a===G_.current){if(o=a.alternate,o===null)throw Error(q(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(cg):e=[cg])}a=a.return}e!==null&&JC(t,e,r,n),t.flags|=262144}function X_(e){for(e=e.firstContext;e!==null;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sf(e){Xf=e,Lo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ir(e){return IF(Xf,e)}function om(e,t){return Xf===null&&sf(e),IF(e,t)}function IF(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Lo===null){if(e===null)throw Error(q(308));Lo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Lo=Lo.next=t;return r}var qJ=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},KJ=vr.unstable_scheduleCallback,QJ=vr.unstable_NormalPriority,tr={$$typeof:Mo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function FE(){return{controller:new qJ,data:new Map,refCount:0}}function py(e){e.refCount--,e.refCount===0&&KJ(QJ,function(){e.controller.abort()})}var wp=null,tM=0,Zv=0,Dv=null;function JJ(e,t){if(wp===null){var r=wp=[];tM=0,Zv=dO(),Dv={status:"pending",value:void 0,then:function(n){r.push(n)}}}return tM++,t.then(MN,MN),t}function MN(){if(--tM===0&&wp!==null){Dv!==null&&(Dv.status="fulfilled");var e=wp;wp=null,Zv=0,Dv=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ttt(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(a){r.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<r.length;a++)(0,r[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<r.length;a++)(0,r[a])(void 0)}),n}var DN=Pt.S;Pt.S=function(e,t){$6=Hn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&JJ(e,t),DN!==null&&DN(e,t)};var Wu=ro(null);function YE(){var e=Wu.current;return e!==null?e:be.pooledCache}function K0(e,t){t===null?Te(Wu,Wu.current):Te(Wu,t.pool)}function PF(){var e=YE();return e===null?null:{parent:tr._currentValue,pool:e}}var Rh=Error(q(460)),jE=Error(q(474)),cb=Error(q(542)),Z_={then:function(){}};function LN(e){return e=e.status,e==="fulfilled"||e==="rejected"}function NF(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Do,Do),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ON(e),e;default:if(typeof t.status=="string")t.then(Do,Do);else{if(e=be,e!==null&&100<e.shellSuspendCounter)throw Error(q(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ON(e),e}throw $u=t,Rh}}function wu(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?($u=r,Rh):r}}var $u=null;function EN(){if($u===null)throw Error(q(459));var e=$u;return $u=null,e}function ON(e){if(e===Rh||e===cb)throw Error(q(483))}var Lv=null,og=0;function sm(e){var t=og;return og+=1,Lv===null&&(Lv=[]),NF(Lv,e,t)}function dd(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lm(e,t){throw t.$$typeof===GQ?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kF(e){function t(y,m){if(e){var _=y.deletions;_===null?(y.deletions=[m],y.flags|=16):_.push(m)}}function r(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function n(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function a(y,m){return y=Po(y,m),y.index=0,y.sibling=null,y}function i(y,m,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<m?(y.flags|=67108866,m):_):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function s(y,m,_,S){return m===null||m.tag!==6?(m=ow(_,y.mode,S),m.return=y,m):(m=a(m,_),m.return=y,m)}function l(y,m,_,S){var b=_.type;return b===nv?f(y,m,_.props.children,S,_.key):m!==null&&(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Os&&wu(b)===m.type)?(m=a(m,_.props),dd(m,_),m.return=y,m):(m=q0(_.type,_.key,_.props,null,y.mode,S),dd(m,_),m.return=y,m)}function u(y,m,_,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==_.containerInfo||m.stateNode.implementation!==_.implementation?(m=sw(_,y.mode,S),m.return=y,m):(m=a(m,_.children||[]),m.return=y,m)}function f(y,m,_,S,b){return m===null||m.tag!==7?(m=ju(_,y.mode,S,b),m.return=y,m):(m=a(m,_),m.return=y,m)}function c(y,m,_){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=ow(""+m,y.mode,_),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case tm:return _=q0(m.type,m.key,m.props,null,y.mode,_),dd(_,m),_.return=y,_;case tp:return m=sw(m,y.mode,_),m.return=y,m;case Os:return m=wu(m),c(y,m,_)}if(ep(m)||cd(m))return m=ju(m,y.mode,_,null),m.return=y,m;if(typeof m.then=="function")return c(y,sm(m),_);if(m.$$typeof===Mo)return c(y,om(y,m),_);lm(y,m)}return null}function v(y,m,_,S){var b=m!==null?m.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return b!==null?null:s(y,m,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case tm:return _.key===b?l(y,m,_,S):null;case tp:return _.key===b?u(y,m,_,S):null;case Os:return _=wu(_),v(y,m,_,S)}if(ep(_)||cd(_))return b!==null?null:f(y,m,_,S,null);if(typeof _.then=="function")return v(y,m,sm(_),S);if(_.$$typeof===Mo)return v(y,m,om(y,_),S);lm(y,_)}return null}function h(y,m,_,S,b){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return y=y.get(_)||null,s(m,y,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case tm:return y=y.get(S.key===null?_:S.key)||null,l(m,y,S,b);case tp:return y=y.get(S.key===null?_:S.key)||null,u(m,y,S,b);case Os:return S=wu(S),h(y,m,_,S,b)}if(ep(S)||cd(S))return y=y.get(_)||null,f(m,y,S,b,null);if(typeof S.then=="function")return h(y,m,_,sm(S),b);if(S.$$typeof===Mo)return h(y,m,_,om(m,S),b);lm(m,S)}return null}function d(y,m,_,S){for(var b=null,x=null,w=m,A=m=0,T=null;w!==null&&A<_.length;A++){w.index>A?(T=w,w=null):T=w.sibling;var C=v(y,w,_[A],S);if(C===null){w===null&&(w=T);break}e&&w&&C.alternate===null&&t(y,w),m=i(C,m,A),x===null?b=C:x.sibling=C,x=C,w=T}if(A===_.length)return r(y,w),Jt&&xo(y,A),b;if(w===null){for(;A<_.length;A++)w=c(y,_[A],S),w!==null&&(m=i(w,m,A),x===null?b=w:x.sibling=w,x=w);return Jt&&xo(y,A),b}for(w=n(w);A<_.length;A++)T=h(w,y,A,_[A],S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?A:T.key),m=i(T,m,A),x===null?b=T:x.sibling=T,x=T);return e&&w.forEach(function(M){return t(y,M)}),Jt&&xo(y,A),b}function p(y,m,_,S){if(_==null)throw Error(q(151));for(var b=null,x=null,w=m,A=m=0,T=null,C=_.next();w!==null&&!C.done;A++,C=_.next()){w.index>A?(T=w,w=null):T=w.sibling;var M=v(y,w,C.value,S);if(M===null){w===null&&(w=T);break}e&&w&&M.alternate===null&&t(y,w),m=i(M,m,A),x===null?b=M:x.sibling=M,x=M,w=T}if(C.done)return r(y,w),Jt&&xo(y,A),b;if(w===null){for(;!C.done;A++,C=_.next())C=c(y,C.value,S),C!==null&&(m=i(C,m,A),x===null?b=C:x.sibling=C,x=C);return Jt&&xo(y,A),b}for(w=n(w);!C.done;A++,C=_.next())C=h(w,y,A,C.value,S),C!==null&&(e&&C.alternate!==null&&w.delete(C.key===null?A:C.key),m=i(C,m,A),x===null?b=C:x.sibling=C,x=C);return e&&w.forEach(function(E){return t(y,E)}),Jt&&xo(y,A),b}function g(y,m,_,S){if(typeof _=="object"&&_!==null&&_.type===nv&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case tm:t:{for(var b=_.key;m!==null;){if(m.key===b){if(b=_.type,b===nv){if(m.tag===7){r(y,m.sibling),S=a(m,_.props.children),S.return=y,y=S;break t}}else if(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Os&&wu(b)===m.type){r(y,m.sibling),S=a(m,_.props),dd(S,_),S.return=y,y=S;break t}r(y,m);break}else t(y,m);m=m.sibling}_.type===nv?(S=ju(_.props.children,y.mode,S,_.key),S.return=y,y=S):(S=q0(_.type,_.key,_.props,null,y.mode,S),dd(S,_),S.return=y,y=S)}return o(y);case tp:t:{for(b=_.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){r(y,m.sibling),S=a(m,_.children||[]),S.return=y,y=S;break t}else{r(y,m);break}else t(y,m);m=m.sibling}S=sw(_,y.mode,S),S.return=y,y=S}return o(y);case Os:return _=wu(_),g(y,m,_,S)}if(ep(_))return d(y,m,_,S);if(cd(_)){if(b=cd(_),typeof b!="function")throw Error(q(150));return _=b.call(_),p(y,m,_,S)}if(typeof _.then=="function")return g(y,m,sm(_),S);if(_.$$typeof===Mo)return g(y,m,om(y,_),S);lm(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,m!==null&&m.tag===6?(r(y,m.sibling),S=a(m,_),S.return=y,y=S):(r(y,m),S=ow(_,y.mode,S),S.return=y,y=S),o(y)):r(y,m)}return function(y,m,_,S){try{og=0;var b=g(y,m,_,S);return Lv=null,b}catch(w){if(w===Rh||w===cb)throw w;var x=Rn(29,w,null,y.mode);return x.lanes=S,x.return=y,x}finally{}}}var lf=kF(!0),BF=kF(!1),Rs=!1;function WE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function el(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ie&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=W_(e),DF(e,null,r),t}return fb(e,n,t,r),W_(e)}function Tp(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,eF(e,r)}}function uw(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var rM=!1;function Ap(){if(rM){var e=Dv;if(e!==null)throw e}}function Cp(e,t,r,n){rM=!1;var a=e.updateQueue;Rs=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(i!==null){var c=a.baseState;o=0,f=u=l=null,s=i;do{var v=s.lane&-536870913,h=v!==s.lane;if(h?(Qt&v)===v:(n&v)===v){v!==0&&v===Zv&&(rM=!0),f!==null&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var d=e,p=s;v=t;var g=r;switch(p.tag){case 1:if(d=p.payload,typeof d=="function"){c=d.call(g,c,v);break t}c=d;break t;case 3:d.flags=d.flags&-65537|128;case 0:if(d=p.payload,v=typeof d=="function"?d.call(g,c,v):d,v==null)break t;c=Re({},c,v);break t;case 2:Rs=!0}}v=s.callback,v!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[v]:h.push(v))}else h={lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,o|=v;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(l=c),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),Sl|=o,e.lanes=o,e.memoizedState=c}}function zF(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function VF(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)zF(r[e],t)}var qv=ro(null),q_=ro(0);function RN(e,t){e=Ko,Te(q_,e),Te(qv,t),Ko=e|t.baseLanes}function nM(){Te(q_,Ko),Te(qv,qv.current)}function $E(){Ko=q_.current,br(qv),br(q_)}var Zn=ro(null),wa=null;function ks(e){var t=e.alternate;Te(We,We.current&1),Te(Zn,e),wa===null&&(t===null||qv.current!==null||t.memoizedState!==null)&&(wa=e)}function aM(e){Te(We,We.current),Te(Zn,e),wa===null&&(wa=e)}function GF(e){e.tag===22?(Te(We,We.current),Te(Zn,e),wa===null&&(wa=e)):Bs()}function Bs(){Te(We,We.current),Te(Zn,Zn.current)}function En(e){br(Zn),wa===e&&(wa=null),br(We)}var We=ro(0);function K_(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||wM(r)||TM(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 Xo=0,Ft=null,ge=null,Ke=null,Q_=!1,Ev=!1,uf=!1,J_=0,sg=0,Ov=null,ett=0;function ke(){throw Error(q(321))}function XE(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Xn(e[r],t[r]))return!1;return!0}function ZE(e,t,r,n,a,i){return Xo=i,Ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pt.H=e===null||e.memoizedState===null?y6:oO,uf=!1,i=r(n,a),uf=!1,Ev&&(i=UF(t,r,n,a)),HF(e),i}function HF(e){Pt.H=lg;var t=ge!==null&&ge.next!==null;if(Xo=0,Ke=ge=Ft=null,Q_=!1,sg=0,Ov=null,t)throw Error(q(300));e===null||er||(e=e.dependencies,e!==null&&X_(e)&&(er=!0))}function UF(e,t,r,n){Ft=e;var a=0;do{if(Ev&&(Ov=null),sg=0,Ev=!1,25<=a)throw Error(q(301));if(a+=1,Ke=ge=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Pt.H=m6,i=t(r,n)}while(Ev);return i}function rtt(){var e=Pt.H,t=e.useState()[0];return t=typeof t.then=="function"?gy(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(Ft.flags|=1024),t}function qE(){var e=J_!==0;return J_=0,e}function KE(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function QE(e){if(Q_){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Q_=!1}Xo=0,Ke=ge=Ft=null,Ev=!1,sg=J_=0,Ov=null}function tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Ft.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function $e(){if(ge===null){var e=Ft.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Ke===null?Ft.memoizedState:Ke.next;if(t!==null)Ke=t,ge=e;else{if(e===null)throw Ft.alternate===null?Error(q(467)):Error(q(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},Ke===null?Ft.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function vb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gy(e){var t=sg;return sg+=1,Ov===null&&(Ov=[]),e=NF(Ov,e,t),t=Ft,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,Pt.H=t===null||t.memoizedState===null?y6:oO),e}function hb(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gy(e);if(e.$$typeof===Mo)return Ir(e)}throw Error(q(438,String(e)))}function JE(e){var t=null,r=Ft.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=Ft.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=vb(),Ft.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=HQ;return t.index++,r}function Zo(e,t){return typeof t=="function"?t(e):t}function Q0(e){var t=$e();return tO(t,ge,e)}function tO(e,t,r){var n=e.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=r;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var s=o=null,l=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(Qt&c)===c:(Xo&c)===c){var v=u.revertLane;if(v===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===Zv&&(f=!0);else if((Xo&v)===v){u=u.next,v===Zv&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=c,o=i):l=l.next=c,Ft.lanes|=v,Sl|=v;c=u.action,uf&&r(i,c),i=u.hasEagerState?u.eagerState:r(i,c)}else v={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=v,o=i):l=l.next=v,Ft.lanes|=c,Sl|=c;u=u.next}while(u!==null&&u!==t);if(l===null?o=i:l.next=s,!Xn(i,e.memoizedState)&&(er=!0,f&&(r=Dv,r!==null)))throw r;e.memoizedState=i,e.baseState=o,e.baseQueue=l,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function fw(e){var t=$e(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Xn(i,t.memoizedState)||(er=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function FF(e,t,r){var n=Ft,a=$e(),i=Jt;if(i){if(r===void 0)throw Error(q(407));r=r()}else r=t();var o=!Xn((ge||a).memoizedState,r);if(o&&(a.memoizedState=r,er=!0),a=a.queue,eO(WF.bind(null,n,a,e),[e]),a.getSnapshot!==t||o||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,Kv(9,{destroy:void 0},jF.bind(null,n,a,r,t),null),be===null)throw Error(q(349));i||Xo&127||YF(n,t,r)}return r}function YF(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ft.updateQueue,t===null?(t=vb(),Ft.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function jF(e,t,r,n){t.value=r,t.getSnapshot=n,$F(t)&&XF(e)}function WF(e,t,r){return r(function(){$F(t)&&XF(e)})}function $F(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Xn(e,r)}catch{return!0}}function XF(e){var t=$f(e,2);t!==null&&xn(t,e,2)}function iM(e){var t=tn();if(typeof e=="function"){var r=e;if(e=r(),uf){Vs(!0);try{r()}finally{Vs(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:e},t}function ZF(e,t,r,n){return e.baseState=r,tO(e,ge,typeof n=="function"?n:Zo)}function ntt(e,t,r,n,a){if(pb(e))throw Error(q(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};Pt.T!==null?r(!0):i.isTransition=!1,n(i),r=t.pending,r===null?(i.next=t.pending=i,qF(t,i)):(i.next=r.next,t.pending=r.next=i)}}function qF(e,t){var r=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=Pt.T,o={};Pt.T=o;try{var s=r(a,n),l=Pt.S;l!==null&&l(o,s),IN(e,t,s)}catch(u){oM(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),Pt.T=i}}else try{i=r(a,n),IN(e,t,i)}catch(u){oM(e,t,u)}}function IN(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){PN(e,t,n)},function(n){return oM(e,t,n)}):PN(e,t,r)}function PN(e,t,r){t.status="fulfilled",t.value=r,KF(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,qF(e,r)))}function oM(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,KF(t),t=t.next;while(t!==n)}e.action=null}function KF(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function QF(e,t){return t}function NN(e,t){if(Jt){var r=be.formState;if(r!==null){t:{var n=Ft;if(Jt){if(Me){e:{for(var a=Me,i=ya;a.nodeType!==8;){if(!i){a=null;break e}if(a=Ta(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Me=Ta(a.nextSibling),n=a.data==="F!";break t}}ml(n)}n=!1}n&&(t=r[0])}}return r=tn(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QF,lastRenderedState:t},r.queue=n,r=d6.bind(null,Ft,n),n.dispatch=r,n=iM(!1),i=iO.bind(null,Ft,!1,n.queue),n=tn(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,r=ntt.bind(null,Ft,a,i,r),a.dispatch=r,n.memoizedState=e,[t,r,!1]}function kN(e){var t=$e();return JF(t,ge,e)}function JF(e,t,r){if(t=tO(e,t,QF)[0],e=Q0(Zo)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=gy(t)}catch(o){throw o===Rh?cb:o}else n=t;t=$e();var a=t.queue,i=a.dispatch;return r!==t.memoizedState&&(Ft.flags|=2048,Kv(9,{destroy:void 0},att.bind(null,a,r),null)),[n,i,e]}function att(e,t){e.action=t}function BN(e){var t=$e(),r=ge;if(r!==null)return JF(t,r,e);$e(),t=t.memoizedState,r=$e();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function Kv(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=Ft.updateQueue,t===null&&(t=vb(),Ft.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function t6(){return $e().memoizedState}function J0(e,t,r,n){var a=tn();Ft.flags|=e,a.memoizedState=Kv(1|t,{destroy:void 0},r,n===void 0?null:n)}function db(e,t,r,n){var a=$e();n=n===void 0?null:n;var i=a.memoizedState.inst;ge!==null&&n!==null&&XE(n,ge.memoizedState.deps)?a.memoizedState=Kv(t,i,r,n):(Ft.flags|=e,a.memoizedState=Kv(1|t,i,r,n))}function zN(e,t){J0(8390656,8,e,t)}function eO(e,t){db(2048,8,e,t)}function itt(e){Ft.flags|=4;var t=Ft.updateQueue;if(t===null)t=vb(),Ft.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function e6(e){var t=$e().memoizedState;return itt({ref:t,nextImpl:e}),function(){if(ie&2)throw Error(q(440));return t.impl.apply(void 0,arguments)}}function r6(e,t){return db(4,2,e,t)}function n6(e,t){return db(4,4,e,t)}function a6(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function i6(e,t,r){r=r!=null?r.concat([e]):null,db(4,4,a6.bind(null,t,e),r)}function rO(){}function o6(e,t){var r=$e();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&XE(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function s6(e,t){var r=$e();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&XE(t,n[1]))return n[0];if(n=e(),uf){Vs(!0);try{e()}finally{Vs(!1)}}return r.memoizedState=[n,t],n}function nO(e,t,r){return r===void 0||Xo&1073741824&&!(Qt&261930)?e.memoizedState=t:(e.memoizedState=r,e=Z6(),Ft.lanes|=e,Sl|=e,r)}function l6(e,t,r,n){return Xn(r,t)?r:qv.current!==null?(e=nO(e,r,n),Xn(e,t)||(er=!0),e):!(Xo&42)||Xo&1073741824&&!(Qt&261930)?(er=!0,e.memoizedState=r):(e=Z6(),Ft.lanes|=e,Sl|=e,t)}function u6(e,t,r,n,a){var i=se.p;se.p=i!==0&&8>i?i:8;var o=Pt.T,s={};Pt.T=s,iO(e,!1,t,r);try{var l=a(),u=Pt.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var f=ttt(l,n);Mp(e,t,f,Yn(e))}else Mp(e,t,n,Yn(e))}catch(c){Mp(e,t,{then:function(){},status:"rejected",reason:c},Yn())}finally{se.p=i,o!==null&&s.types!==null&&(o.types=s.types),Pt.T=o}}function ott(){}function sM(e,t,r,n){if(e.tag!==5)throw Error(q(476));var a=f6(e).queue;u6(e,a,t,Yu,r===null?ott:function(){return c6(e),r(n)})}function f6(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Yu,baseState:Yu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:Yu},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function c6(e){var t=f6(e);t.next===null&&(t=e.alternate.memoizedState),Mp(e,t.next.queue,{},Yn())}function aO(){return Ir(cg)}function v6(){return $e().memoizedState}function h6(){return $e().memoizedState}function stt(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Yn();e=tl(r);var n=el(t,e,r);n!==null&&(xn(n,t,r),Tp(n,t,r)),t={cache:FE()},e.payload=t;return}t=t.return}}function ltt(e,t,r){var n=Yn();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},pb(e)?p6(t,r):(r=VE(e,t,r,n),r!==null&&(xn(r,e,n),g6(r,t,n)))}function d6(e,t,r){var n=Yn();Mp(e,t,r,n)}function Mp(e,t,r,n){var a={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(pb(e))p6(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,Xn(s,o))return fb(e,t,a,0),be===null&&ub(),!1}catch{}finally{}if(r=VE(e,t,a,n),r!==null)return xn(r,e,n),g6(r,t,n),!0}return!1}function iO(e,t,r,n){if(n={lane:2,revertLane:dO(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pb(e)){if(t)throw Error(q(479))}else t=VE(e,r,n,2),t!==null&&xn(t,e,2)}function pb(e){var t=e.alternate;return e===Ft||t!==null&&t===Ft}function p6(e,t){Ev=Q_=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function g6(e,t,r){if(r&4194048){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,eF(e,r)}}var lg={readContext:Ir,use:hb,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};lg.useEffectEvent=ke;var y6={readContext:Ir,use:hb,useCallback:function(e,t){return tn().memoizedState=[e,t===void 0?null:t],e},useContext:Ir,useEffect:zN,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,J0(4194308,4,a6.bind(null,t,e),r)},useLayoutEffect:function(e,t){return J0(4194308,4,e,t)},useInsertionEffect:function(e,t){J0(4,2,e,t)},useMemo:function(e,t){var r=tn();t=t===void 0?null:t;var n=e();if(uf){Vs(!0);try{e()}finally{Vs(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=tn();if(r!==void 0){var a=r(t);if(uf){Vs(!0);try{r(t)}finally{Vs(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=ltt.bind(null,Ft,e),[n.memoizedState,e]},useRef:function(e){var t=tn();return e={current:e},t.memoizedState=e},useState:function(e){e=iM(e);var t=e.queue,r=d6.bind(null,Ft,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:rO,useDeferredValue:function(e,t){var r=tn();return nO(r,e,t)},useTransition:function(){var e=iM(!1);return e=u6.bind(null,Ft,e.queue,!0,!1),tn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=Ft,a=tn();if(Jt){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),be===null)throw Error(q(349));Qt&127||YF(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,zN(WF.bind(null,n,i,e),[e]),n.flags|=2048,Kv(9,{destroy:void 0},jF.bind(null,n,i,r,t),null),r},useId:function(){var e=tn(),t=be.identifierPrefix;if(Jt){var r=xi,n=bi;r=(n&~(1<<32-Fn(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=J_++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=ett++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:aO,useFormState:NN,useActionState:NN,useOptimistic:function(e){var t=tn();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=iO.bind(null,Ft,!0,r),r.dispatch=t,[e,t]},useMemoCache:JE,useCacheRefresh:function(){return tn().memoizedState=stt.bind(null,Ft)},useEffectEvent:function(e){var t=tn(),r={impl:e};return t.memoizedState=r,function(){if(ie&2)throw Error(q(440));return r.impl.apply(void 0,arguments)}}},oO={readContext:Ir,use:hb,useCallback:o6,useContext:Ir,useEffect:eO,useImperativeHandle:i6,useInsertionEffect:r6,useLayoutEffect:n6,useMemo:s6,useReducer:Q0,useRef:t6,useState:function(){return Q0(Zo)},useDebugValue:rO,useDeferredValue:function(e,t){var r=$e();return l6(r,ge.memoizedState,e,t)},useTransition:function(){var e=Q0(Zo)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:gy(e),t]},useSyncExternalStore:FF,useId:v6,useHostTransitionStatus:aO,useFormState:kN,useActionState:kN,useOptimistic:function(e,t){var r=$e();return ZF(r,ge,e,t)},useMemoCache:JE,useCacheRefresh:h6};oO.useEffectEvent=e6;var m6={readContext:Ir,use:hb,useCallback:o6,useContext:Ir,useEffect:eO,useImperativeHandle:i6,useInsertionEffect:r6,useLayoutEffect:n6,useMemo:s6,useReducer:fw,useRef:t6,useState:function(){return fw(Zo)},useDebugValue:rO,useDeferredValue:function(e,t){var r=$e();return ge===null?nO(r,e,t):l6(r,ge.memoizedState,e,t)},useTransition:function(){var e=fw(Zo)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:gy(e),t]},useSyncExternalStore:FF,useId:v6,useHostTransitionStatus:aO,useFormState:BN,useActionState:BN,useOptimistic:function(e,t){var r=$e();return ge!==null?ZF(r,ge,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:JE,useCacheRefresh:h6};m6.useEffectEvent=e6;function cw(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Re({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var lM={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Yn(),a=tl(n);a.payload=t,r!=null&&(a.callback=r),t=el(e,a,n),t!==null&&(xn(t,e,n),Tp(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Yn(),a=tl(n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=el(e,a,n),t!==null&&(xn(t,e,n),Tp(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Yn(),n=tl(r);n.tag=2,t!=null&&(n.callback=t),t=el(e,n,r),t!==null&&(xn(t,e,r),Tp(t,e,r))}};function VN(e,t,r,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!ng(r,n)||!ng(a,i):!0}function GN(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&&lM.enqueueReplaceState(t,t.state,null)}function ff(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=Re({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function _6(e){j_(e)}function S6(e){console.error(e)}function b6(e){j_(e)}function tS(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function HN(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function uM(e,t,r){return r=tl(r),r.tag=3,r.payload={element:null},r.callback=function(){tS(e,t)},r}function x6(e){return e=tl(e),e.tag=3,e}function w6(e,t,r,n){var a=r.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){HN(t,r,n)}}var o=r.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){HN(t,r,n),typeof a!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function utt(e,t,r,n,a){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&Oh(t,r,a,!0),r=Zn.current,r!==null){switch(r.tag){case 31:case 13:return wa===null?iS():r.alternate===null&&Ge===0&&(Ge=3),r.flags&=-257,r.flags|=65536,r.lanes=a,n===Z_?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),xw(e,n,a)),!1;case 22:return r.flags|=65536,n===Z_?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),xw(e,n,a)),!1}throw Error(q(435,r.tag))}return xw(e,n,a),iS(),!1}if(Jt)return t=Zn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==qC&&(e=Error(q(422),{cause:n}),ig(ga(e,r)))):(n!==qC&&(t=Error(q(423),{cause:n}),ig(ga(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=ga(n,r),a=uM(e.stateNode,n,a),uw(e,a),Ge!==4&&(Ge=2)),!1;var i=Error(q(520),{cause:n});if(i=ga(i,r),Ep===null?Ep=[i]:Ep.push(i),Ge!==4&&(Ge=2),t===null)return!0;n=ga(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=uM(r.stateNode,n,e),uw(r,e),!1;case 1:if(t=r.type,i=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(rl===null||!rl.has(i))))return r.flags|=65536,a&=-a,r.lanes|=a,a=x6(a),w6(a,e,r,n),uw(r,a),!1}r=r.return}while(r!==null);return!1}var sO=Error(q(461)),er=!1;function Cr(e,t,r,n){t.child=e===null?BF(t,null,r,n):lf(t,e.child,r,n)}function UN(e,t,r,n,a){r=r.render;var i=t.ref;if("ref"in n){var o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}else o=n;return sf(t),n=ZE(e,t,r,o,i,a),s=qE(),e!==null&&!er?(KE(e,t,a),qo(e,t,a)):(Jt&&s&&HE(t),t.flags|=1,Cr(e,t,n,a),t.child)}function FN(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!GE(i)&&i.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=i,T6(e,t,i,n,a)):(e=q0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!lO(e,a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:ng,r(o,n)&&e.ref===t.ref)return qo(e,t,a)}return t.flags|=1,e=Po(i,n),e.ref=t.ref,e.return=t,t.child=e}function T6(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(ng(i,n)&&e.ref===t.ref)if(er=!1,t.pendingProps=n=i,lO(e,a))e.flags&131072&&(er=!0);else return t.lanes=e.lanes,qo(e,t,a)}return fM(e,t,r,n,a)}function A6(e,t,r,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|r:r,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return YN(e,t,i,r,n)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&K0(t,i!==null?i.cachePool:null),i!==null?RN(t,i):nM(),GF(t);else return n=t.lanes=536870912,YN(e,t,i!==null?i.baseLanes|r:r,r,n)}else i!==null?(K0(t,i.cachePool),RN(t,i),Bs(),t.memoizedState=null):(e!==null&&K0(t,null),nM(),Bs());return Cr(e,t,a,r),t.child}function np(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function YN(e,t,r,n,a){var i=YE();return i=i===null?null:{parent:tr._currentValue,pool:i},t.memoizedState={baseLanes:r,cachePool:i},e!==null&&K0(t,null),nM(),GF(t),e!==null&&Oh(e,t,n,!0),t.childLanes=a,null}function t_(e,t){return t=eS({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jN(e,t,r){return lf(t,e.child,null,r),e=t_(t,t.pendingProps),e.flags|=2,En(t),t.memoizedState=null,e}function ftt(e,t,r){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Jt){if(n.mode==="hidden")return e=t_(t,n),t.lanes=536870912,np(null,e);if(aM(t),(e=Me)?(e=y8(e,ya),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:bi,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},r=EF(e),r.return=t,t.child=r,Or=t,Me=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return t_(t,n)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(aM(t),a)if(t.flags&256)t.flags&=-257,t=jN(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(q(558));else if(er||Oh(e,t,r,!1),a=(r&e.childLanes)!==0,er||a){if(n=be,n!==null&&(o=rF(n,r),o!==0&&o!==i.retryLane))throw i.retryLane=o,$f(e,o),xn(n,e,o),sO;iS(),t=jN(e,t,r)}else e=i.treeContext,Me=Ta(o.nextSibling),Or=t,Jt=!0,Js=null,ya=!1,e!==null&&RF(t,e),t=t_(t,n),t.flags|=4096;return t}return e=Po(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function e_(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(q(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function fM(e,t,r,n,a){return sf(t),r=ZE(e,t,r,n,void 0,a),n=qE(),e!==null&&!er?(KE(e,t,a),qo(e,t,a)):(Jt&&n&&HE(t),t.flags|=1,Cr(e,t,r,a),t.child)}function WN(e,t,r,n,a,i){return sf(t),t.updateQueue=null,r=UF(t,n,r,a),HF(e),n=qE(),e!==null&&!er?(KE(e,t,i),qo(e,t,i)):(Jt&&n&&HE(t),t.flags|=1,Cr(e,t,r,i),t.child)}function $N(e,t,r,n,a){if(sf(t),t.stateNode===null){var i=cv,o=r.contextType;typeof o=="object"&&o!==null&&(i=Ir(o)),i=new r(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=lM,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},WE(t),o=r.contextType,i.context=typeof o=="object"&&o!==null?Ir(o):cv,i.state=t.memoizedState,o=r.getDerivedStateFromProps,typeof o=="function"&&(cw(t,r,o,n),i.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&lM.enqueueReplaceState(i,i.state,null),Cp(t,n,i,a),Ap(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,l=ff(r,s);i.props=l;var u=i.context,f=r.contextType;o=cv,typeof f=="object"&&f!==null&&(o=Ir(f));var c=r.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==o)&&GN(t,i,n,o),Rs=!1;var v=t.memoizedState;i.state=v,Cp(t,n,i,a),Ap(),u=t.memoizedState,s||v!==u||Rs?(typeof c=="function"&&(cw(t,r,c,n),u=t.memoizedState),(l=Rs||VN(t,r,l,n,v,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=o,n=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,eM(e,t),o=t.memoizedProps,f=ff(r,o),i.props=f,c=t.pendingProps,v=i.context,u=r.contextType,l=cv,typeof u=="object"&&u!==null&&(l=Ir(u)),s=r.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||v!==l)&&GN(t,i,n,l),Rs=!1,v=t.memoizedState,i.state=v,Cp(t,n,i,a),Ap();var h=t.memoizedState;o!==c||v!==h||Rs||e!==null&&e.dependencies!==null&&X_(e.dependencies)?(typeof s=="function"&&(cw(t,r,s,n),h=t.memoizedState),(f=Rs||VN(t,r,f,n,v,h,l)||e!==null&&e.dependencies!==null&&X_(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,h,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=l,n=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,e_(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=lf(t,e.child,null,a),t.child=lf(t,null,r,a)):Cr(e,t,r,a),t.memoizedState=i.state,e=t.child):e=qo(e,t,a),e}function XN(e,t,r,n){return of(),t.flags|=256,Cr(e,t,r,n),t.child}var vw={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hw(e){return{baseLanes:e,cachePool:PF()}}function dw(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Bn),e}function C6(e,t,r){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Jt){if(a?ks(t):Bs(),(e=Me)?(e=y8(e,ya),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:bi,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},r=EF(e),r.return=t,t.child=r,Or=t,Me=null)):e=null,e===null)throw ml(t);return TM(e)?t.lanes=32:t.lanes=536870912,null}var s=n.children;return n=n.fallback,a?(Bs(),a=t.mode,s=eS({mode:"hidden",children:s},a),n=ju(n,a,r,null),s.return=t,n.return=t,s.sibling=n,t.child=s,n=t.child,n.memoizedState=hw(r),n.childLanes=dw(e,o,r),t.memoizedState=vw,np(null,n)):(ks(t),cM(t,s))}var l=e.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(i)t.flags&256?(ks(t),t.flags&=-257,t=pw(e,t,r)):t.memoizedState!==null?(Bs(),t.child=e.child,t.flags|=128,t=null):(Bs(),s=n.fallback,a=t.mode,n=eS({mode:"visible",children:n.children},a),s=ju(s,a,r,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,lf(t,e.child,null,r),n=t.child,n.memoizedState=hw(r),n.childLanes=dw(e,o,r),t.memoizedState=vw,t=np(null,n));else if(ks(t),TM(s)){if(o=s.nextSibling&&s.nextSibling.dataset,o)var u=o.dgst;o=u,n=Error(q(419)),n.stack="",n.digest=o,ig({value:n,source:null,stack:null}),t=pw(e,t,r)}else if(er||Oh(e,t,r,!1),o=(r&e.childLanes)!==0,er||o){if(o=be,o!==null&&(n=rF(o,r),n!==0&&n!==l.retryLane))throw l.retryLane=n,$f(e,n),xn(o,e,n),sO;wM(s)||iS(),t=pw(e,t,r)}else wM(s)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Me=Ta(s.nextSibling),Or=t,Jt=!0,Js=null,ya=!1,e!==null&&RF(t,e),t=cM(t,n.children),t.flags|=4096);return t}return a?(Bs(),s=n.fallback,a=t.mode,l=e.child,u=l.sibling,n=Po(l,{mode:"hidden",children:n.children}),n.subtreeFlags=l.subtreeFlags&65011712,u!==null?s=Po(u,s):(s=ju(s,a,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,np(null,n),n=t.child,s=e.child.memoizedState,s===null?s=hw(r):(a=s.cachePool,a!==null?(l=tr._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=PF(),s={baseLanes:s.baseLanes|r,cachePool:a}),n.memoizedState=s,n.childLanes=dw(e,o,r),t.memoizedState=vw,np(e.child,n)):(ks(t),r=e.child,e=r.sibling,r=Po(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=r,t.memoizedState=null,r)}function cM(e,t){return t=eS({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eS(e,t){return e=Rn(22,e,null,t),e.lanes=0,e}function pw(e,t,r){return lf(t,e.child,null,r),e=cM(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ZN(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),QC(e.return,t,r)}function gw(e,t,r,n,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a,o.treeForkCount=i)}function M6(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var o=We.current,s=(o&2)!==0;if(s?(o=o&1|2,t.flags|=128):o&=1,Te(We,o),Cr(e,t,n,r),n=Jt?ag:0,!s&&e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ZN(e,r,t);else if(e.tag===19)ZN(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&K_(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),gw(t,!1,a,r,i,n);break;case"backwards":case"unstable_legacy-backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&K_(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}gw(t,!0,r,null,i,n);break;case"together":gw(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function qo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,!(r&t.childLanes))if(e!==null){if(Oh(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,r=Po(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Po(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function lO(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&X_(e)))}function ctt(e,t,r){switch(t.tag){case 3:H_(t,t.stateNode.containerInfo),Ns(t,tr,e.memoizedState.cache),of();break;case 27:case 5:VC(t);break;case 4:H_(t,t.stateNode.containerInfo);break;case 10:Ns(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,aM(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(ks(t),t.flags|=128,null):r&t.child.childLanes?C6(e,t,r):(ks(t),e=qo(e,t,r),e!==null?e.sibling:null);ks(t);break;case 19:var a=(e.flags&128)!==0;if(n=(r&t.childLanes)!==0,n||(Oh(e,t,r,!1),n=(r&t.childLanes)!==0),a){if(n)return M6(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Te(We,We.current),n)break;return null;case 22:return t.lanes=0,A6(e,t,r,t.pendingProps);case 24:Ns(t,tr,e.memoizedState.cache)}return qo(e,t,r)}function D6(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)er=!0;else{if(!lO(e,r)&&!(t.flags&128))return er=!1,ctt(e,t,r);er=!!(e.flags&131072)}else er=!1,Jt&&t.flags&1048576&&OF(t,ag,t.index);switch(t.lanes=0,t.tag){case 16:t:{var n=t.pendingProps;if(e=wu(t.elementType),t.type=e,typeof e=="function")GE(e)?(n=ff(e,n),t.tag=1,t=$N(null,t,e,n,r)):(t.tag=0,t=fM(null,t,e,n,r));else{if(e!=null){var a=e.$$typeof;if(a===CE){t.tag=11,t=UN(null,t,e,n,r);break t}else if(a===ME){t.tag=14,t=FN(null,t,e,n,r);break t}}throw t=BC(e)||e,Error(q(306,t,""))}}return t;case 0:return fM(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,a=ff(n,t.pendingProps),$N(e,t,n,a,r);case 3:t:{if(H_(t,t.stateNode.containerInfo),e===null)throw Error(q(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,eM(e,t),Cp(t,n,null,r);var o=t.memoizedState;if(n=o.cache,Ns(t,tr,n),n!==i.cache&&JC(t,[tr],r,!0),Ap(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=XN(e,t,n,r);break t}else if(n!==a){a=ga(Error(q(424)),t),ig(a),t=XN(e,t,n,r);break t}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Me=Ta(e.firstChild),Or=t,Jt=!0,Js=null,ya=!0,r=BF(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(of(),n===a){t=qo(e,t,r);break t}Cr(e,t,n,r)}t=t.child}return t;case 26:return e_(e,t),e===null?(r=pk(t.type,null,t.pendingProps,null))?t.memoizedState=r:Jt||(r=t.type,e=t.pendingProps,n=uS(Qs.current).createElement(r),n[Er]=t,n[Tn]=e,Pr(n,r,e),_r(n),t.stateNode=n):t.memoizedState=pk(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return VC(t),e===null&&Jt&&(n=t.stateNode=m8(t.type,t.pendingProps,Qs.current),Or=t,ya=!0,a=Me,Pl(t.type)?(AM=a,Me=Ta(n.firstChild)):Me=a),Cr(e,t,t.pendingProps.children,r),e_(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Jt&&((a=n=Me)&&(n=Htt(n,t.type,t.pendingProps,ya),n!==null?(t.stateNode=n,Or=t,Me=Ta(n.firstChild),ya=!1,a=!0):a=!1),a||ml(t)),VC(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,n=i.children,bM(a,i)?n=null:o!==null&&bM(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=ZE(e,t,rtt,null,null,r),cg._currentValue=a),e_(e,t),Cr(e,t,n,r),t.child;case 6:return e===null&&Jt&&((e=r=Me)&&(r=Utt(r,t.pendingProps,ya),r!==null?(t.stateNode=r,Or=t,Me=null,e=!0):e=!1),e||ml(t)),null;case 13:return C6(e,t,r);case 4:return H_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=lf(t,null,n,r):Cr(e,t,n,r),t.child;case 11:return UN(e,t,t.type,t.pendingProps,r);case 7:return Cr(e,t,t.pendingProps,r),t.child;case 8:return Cr(e,t,t.pendingProps.children,r),t.child;case 12:return Cr(e,t,t.pendingProps.children,r),t.child;case 10:return n=t.pendingProps,Ns(t,t.type,n.value),Cr(e,t,n.children,r),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,sf(t),a=Ir(a),n=n(a),t.flags|=1,Cr(e,t,n,r),t.child;case 14:return FN(e,t,t.type,t.pendingProps,r);case 15:return T6(e,t,t.type,t.pendingProps,r);case 19:return M6(e,t,r);case 31:return ftt(e,t,r);case 22:return A6(e,t,r,t.pendingProps);case 24:return sf(t),n=Ir(tr),e===null?(a=YE(),a===null&&(a=be,i=FE(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=r),a=i),t.memoizedState={parent:n,cache:a},WE(t),Ns(t,tr,a)):(e.lanes&r&&(eM(e,t),Cp(t,null,null,r),Ap()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ns(t,tr,n)):(n=i.cache,Ns(t,tr,n),n!==a.cache&&JC(t,[tr],r,!0))),Cr(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function fo(e){e.flags|=4}function yw(e,t,r,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Q6())e.flags|=8192;else throw $u=Z_,jE}else e.flags&=-16777217}function qN(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!b8(t))if(Q6())e.flags|=8192;else throw $u=Z_,jE}function um(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?JU():536870912,e.lanes|=t,Qv|=t)}function pd(e,t){if(!Jt)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 Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function vtt(e,t,r){var n=t.pendingProps;switch(UE(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return Ce(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),No(tr),Wv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_c(t)?fo(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,lw())),Ce(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(fo(t),i!==null?(Ce(t),qN(t,i)):(Ce(t),yw(t,a,null,n,r))):i?i!==e.memoizedState?(fo(t),Ce(t),qN(t,i)):(Ce(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&fo(t),Ce(t),yw(t,a,e,n,r)),null;case 27:if(U_(t),r=Qs.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&fo(t);else{if(!n){if(t.stateNode===null)throw Error(q(166));return Ce(t),null}e=Ri.current,_c(t)?AN(t):(e=m8(a,n,r),t.stateNode=e,fo(t))}return Ce(t),null;case 5:if(U_(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&fo(t);else{if(!n){if(t.stateNode===null)throw Error(q(166));return Ce(t),null}if(i=Ri.current,_c(t))AN(t);else{var o=uS(Qs.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}i[Er]=t,i[Tn]=n;t:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break t;for(;o.sibling===null;){if(o.return===null||o.return===t)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;t:switch(Pr(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&fo(t)}}return Ce(t),yw(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&fo(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(q(166));if(e=Qs.current,_c(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,a=Or,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Er]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||d8(e.nodeValue,r)),e||ml(t,!0)}else e=uS(e).createTextNode(n),e[Er]=t,t.stateNode=e}return Ce(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=_c(t),r!==null){if(e===null){if(!n)throw Error(q(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(557));e[Er]=t}else of(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ce(t),e=!1}else r=lw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(En(t),t):(En(t),null);if(t.flags&128)throw Error(q(558))}return Ce(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=_c(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[Er]=t}else of(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ce(t),a=!1}else a=lw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(En(t),t):(En(t),null)}return En(t),t.flags&128?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),um(t,t.updateQueue),Ce(t),null);case 4:return Wv(),e===null&&pO(t.stateNode.containerInfo),Ce(t),null;case 10:return No(t.type),Ce(t),null;case 19:if(br(We),n=t.memoizedState,n===null)return Ce(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)pd(n,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=K_(e),i!==null){for(t.flags|=128,pd(n,!1),e=i.updateQueue,t.updateQueue=e,um(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)LF(r,e),r=r.sibling;return Te(We,We.current&1|2),Jt&&xo(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Hn()>nS&&(t.flags|=128,a=!0,pd(n,!1),t.lanes=4194304)}else{if(!a)if(e=K_(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,um(t,e),pd(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Jt)return Ce(t),null}else 2*Hn()-n.renderingStartTime>nS&&r!==536870912&&(t.flags|=128,a=!0,pd(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Hn(),e.sibling=null,r=We.current,Te(We,a?r&1|2:r&1),Jt&&xo(t,n.treeForkCount),e):(Ce(t),null);case 22:case 23:return En(t),$E(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?r&536870912&&!(t.flags&128)&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),r=t.updateQueue,r!==null&&um(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&br(Wu),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),No(tr),Ce(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function htt(e,t){switch(UE(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return No(tr),Wv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return U_(t),null;case 31:if(t.memoizedState!==null){if(En(t),t.alternate===null)throw Error(q(340));of()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(En(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));of()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return br(We),null;case 4:return Wv(),null;case 10:return No(t.type),null;case 22:case 23:return En(t),$E(),e!==null&&br(Wu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return No(tr),null;case 25:return null;default:return null}}function L6(e,t){switch(UE(t),t.tag){case 3:No(tr),Wv();break;case 26:case 27:case 5:U_(t);break;case 4:Wv();break;case 31:t.memoizedState!==null&&En(t);break;case 13:En(t);break;case 19:br(We);break;case 10:No(t.type);break;case 22:case 23:En(t),$E(),e!==null&&br(Wu);break;case 24:No(tr)}}function yy(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var a=n.next;r=a;do{if((r.tag&e)===e){n=void 0;var i=r.create,o=r.inst;n=i(),o.destroy=n}r=r.next}while(r!==a)}}catch(s){he(t,t.return,s)}}function _l(e,t,r){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var o=n.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,a=t;var l=r,u=s;try{u()}catch(f){he(a,l,f)}}}n=n.next}while(n!==i)}}catch(f){he(t,t.return,f)}}function E6(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{VF(t,r)}catch(n){he(e,e.return,n)}}}function O6(e,t,r){r.props=ff(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){he(e,t,n)}}function Dp(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(a){he(e,t,a)}}function wi(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(a){he(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(a){he(e,t,a)}else r.current=null}function R6(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{t:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break t;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(a){he(e,e.return,a)}}function mw(e,t,r){try{var n=e.stateNode;Ntt(n,e.type,r,t),n[Tn]=t}catch(a){he(e,e.return,a)}}function I6(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pl(e.type)||e.tag===4}function _w(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||I6(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.tag===27&&Pl(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vM(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Do));else if(n!==4&&(n===27&&Pl(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(vM(e,t,r),e=e.sibling;e!==null;)vM(e,t,r),e=e.sibling}function rS(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&&(n===27&&Pl(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(rS(e,t,r),e=e.sibling;e!==null;)rS(e,t,r),e=e.sibling}function P6(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Pr(t,n,r),t[Er]=e,t[Tn]=r}catch(i){he(e,e.return,i)}}var wo=!1,Qe=!1,Sw=!1,KN=typeof WeakSet=="function"?WeakSet:Set,yr=null;function dtt(e,t){if(e=e.containerInfo,_M=hS,e=bF(e),BE(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break t}var o=0,s=-1,l=-1,u=0,f=0,c=e,v=null;e:for(;;){for(var h;c!==r||a!==0&&c.nodeType!==3||(s=o+a),c!==i||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)v=c,c=h;for(;;){if(c===e)break e;if(v===r&&++u===a&&(s=o),v===i&&++f===n&&(l=o),(h=c.nextSibling)!==null)break;c=v,v=c.parentNode}c=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(SM={focusedElem:e,selectionRange:r},hS=!1,yr=t;yr!==null;)if(t=yr,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yr=e;else for(;yr!==null;){switch(t=yr,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)a=e[r],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,r=t,a=i.memoizedProps,i=i.memoizedState,n=r.stateNode;try{var d=ff(r.type,a);e=n.getSnapshotBeforeUpdate(d,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(p){he(r,r.return,p)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)xM(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xM(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(q(163))}if(e=t.sibling,e!==null){e.return=t.return,yr=e;break}yr=t.return}}function N6(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:vo(e,r),n&4&&yy(5,r);break;case 1:if(vo(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(o){he(r,r.return,o)}else{var a=ff(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){he(r,r.return,o)}}n&64&&E6(r),n&512&&Dp(r,r.return);break;case 3:if(vo(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{VF(e,t)}catch(o){he(r,r.return,o)}}break;case 27:t===null&&n&4&&P6(r);case 26:case 5:vo(e,r),t===null&&n&4&&R6(r),n&512&&Dp(r,r.return);break;case 12:vo(e,r);break;case 31:vo(e,r),n&4&&z6(e,r);break;case 13:vo(e,r),n&4&&V6(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=wtt.bind(null,r),Ftt(e,r))));break;case 22:if(n=r.memoizedState!==null||wo,!n){t=t!==null&&t.memoizedState!==null||Qe,a=wo;var i=Qe;wo=n,(Qe=t)&&!i?_o(e,r,(r.subtreeFlags&8772)!==0):vo(e,r),wo=a,Qe=i}break;case 30:break;default:vo(e,r)}}function k6(e){var t=e.alternate;t!==null&&(e.alternate=null,k6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&OE(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,gn=!1;function co(e,t,r){for(r=r.child;r!==null;)B6(e,t,r),r=r.sibling}function B6(e,t,r){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(fy,r)}catch{}switch(r.tag){case 26:Qe||wi(r,t),co(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Qe||wi(r,t);var n=Ie,a=gn;Pl(r.type)&&(Ie=r.stateNode,gn=!1),co(e,t,r),Rp(r.stateNode),Ie=n,gn=a;break;case 5:Qe||wi(r,t);case 6:if(n=Ie,a=gn,Ie=null,co(e,t,r),Ie=n,gn=a,Ie!==null)if(gn)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(r.stateNode)}catch(i){he(r,t,i)}else try{Ie.removeChild(r.stateNode)}catch(i){he(r,t,i)}break;case 18:Ie!==null&&(gn?(e=Ie,fk(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),rh(e)):fk(Ie,r.stateNode));break;case 4:n=Ie,a=gn,Ie=r.stateNode.containerInfo,gn=!0,co(e,t,r),Ie=n,gn=a;break;case 0:case 11:case 14:case 15:_l(2,r,t),Qe||_l(4,r,t),co(e,t,r);break;case 1:Qe||(wi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&O6(r,t,n)),co(e,t,r);break;case 21:co(e,t,r);break;case 22:Qe=(n=Qe)||r.memoizedState!==null,co(e,t,r),Qe=n;break;default:co(e,t,r)}}function z6(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{rh(e)}catch(r){he(t,t.return,r)}}}function V6(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{rh(e)}catch(r){he(t,t.return,r)}}function ptt(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new KN),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new KN),t;default:throw Error(q(435,e.tag))}}function fm(e,t){var r=ptt(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var a=Ttt.bind(null,e,n);n.then(a,a)}})}function hn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n],i=e,o=t,s=o;t:for(;s!==null;){switch(s.tag){case 27:if(Pl(s.type)){Ie=s.stateNode,gn=!1;break t}break;case 5:Ie=s.stateNode,gn=!1;break t;case 3:case 4:Ie=s.stateNode.containerInfo,gn=!0;break t}s=s.return}if(Ie===null)throw Error(q(160));B6(i,o,a),Ie=null,gn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)G6(t,e),t=t.sibling}var Fa=null;function G6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hn(t,e),dn(e),n&4&&(_l(3,e,e.return),yy(3,e),_l(5,e,e.return));break;case 1:hn(t,e),dn(e),n&512&&(Qe||r===null||wi(r,r.return)),n&64&&wo&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var a=Fa;if(hn(t,e),dn(e),n&512&&(Qe||r===null||wi(r,r.return)),n&4){var i=r!==null?r.memoizedState:null;if(n=e.memoizedState,r===null)if(n===null)if(e.stateNode===null){t:{n=e.type,r=e.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[hy]||i[Er]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Pr(i,n,r),i[Er]=e,_r(i),n=i;break t;case"link":var o=yk("link","href",a).get(n+(r.href||""));if(o){for(var s=0;s<o.length;s++)if(i=o[s],i.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&i.getAttribute("rel")===(r.rel==null?null:r.rel)&&i.getAttribute("title")===(r.title==null?null:r.title)&&i.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){o.splice(s,1);break e}}i=a.createElement(n),Pr(i,n,r),a.head.appendChild(i);break;case"meta":if(o=yk("meta","content",a).get(n+(r.content||""))){for(s=0;s<o.length;s++)if(i=o[s],i.getAttribute("content")===(r.content==null?null:""+r.content)&&i.getAttribute("name")===(r.name==null?null:r.name)&&i.getAttribute("property")===(r.property==null?null:r.property)&&i.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&i.getAttribute("charset")===(r.charSet==null?null:r.charSet)){o.splice(s,1);break e}}i=a.createElement(n),Pr(i,n,r),a.head.appendChild(i);break;default:throw Error(q(468,n))}i[Er]=e,_r(i),n=i}e.stateNode=n}else mk(a,e.type,e.stateNode);else e.stateNode=gk(a,n,e.memoizedProps);else i!==n?(i===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):i.count--,n===null?mk(a,e.type,e.stateNode):gk(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&mw(e,e.memoizedProps,r.memoizedProps)}break;case 27:hn(t,e),dn(e),n&512&&(Qe||r===null||wi(r,r.return)),r!==null&&n&4&&mw(e,e.memoizedProps,r.memoizedProps);break;case 5:if(hn(t,e),dn(e),n&512&&(Qe||r===null||wi(r,r.return)),e.flags&32){a=e.stateNode;try{Xv(a,"")}catch(d){he(e,e.return,d)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,mw(e,a,r!==null?r.memoizedProps:a)),n&1024&&(Sw=!0);break;case 6:if(hn(t,e),dn(e),n&4){if(e.stateNode===null)throw Error(q(162));n=e.memoizedProps,r=e.stateNode;try{r.nodeValue=n}catch(d){he(e,e.return,d)}}break;case 3:if(a_=null,a=Fa,Fa=fS(t.containerInfo),hn(t,e),Fa=a,dn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{rh(t.containerInfo)}catch(d){he(e,e.return,d)}Sw&&(Sw=!1,H6(e));break;case 4:n=Fa,Fa=fS(e.stateNode.containerInfo),hn(t,e),dn(e),Fa=n;break;case 12:hn(t,e),dn(e);break;case 31:hn(t,e),dn(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fm(e,n)));break;case 13:hn(t,e),dn(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(gb=Hn()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fm(e,n)));break;case 22:a=e.memoizedState!==null;var l=r!==null&&r.memoizedState!==null,u=wo,f=Qe;if(wo=u||a,Qe=f||l,hn(t,e),Qe=f,wo=u,dn(e),n&8192)t:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(r===null||l||wo||Qe||Tu(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){l=r=t;try{if(i=l.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{s=l.stateNode;var c=l.memoizedProps.style,v=c!=null&&c.hasOwnProperty("display")?c.display:null;s.style.display=v==null||typeof v=="boolean"?"":(""+v).trim()}}catch(d){he(l,l.return,d)}}}else if(t.tag===6){if(r===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(d){he(l,l.return,d)}}}else if(t.tag===18){if(r===null){l=t;try{var h=l.stateNode;a?ck(h,!0):ck(l.stateNode,!1)}catch(d){he(l,l.return,d)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,fm(e,r))));break;case 19:hn(t,e),dn(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fm(e,n)));break;case 30:break;case 21:break;default:hn(t,e),dn(e)}}function dn(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(I6(n)){r=n;break}n=n.return}if(r==null)throw Error(q(160));switch(r.tag){case 27:var a=r.stateNode,i=_w(e);rS(e,i,a);break;case 5:var o=r.stateNode;r.flags&32&&(Xv(o,""),r.flags&=-33);var s=_w(e);rS(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,u=_w(e);vM(e,u,l);break;default:throw Error(q(161))}}catch(f){he(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function H6(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;H6(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)N6(e,t.alternate,t),t=t.sibling}function Tu(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_l(4,t,t.return),Tu(t);break;case 1:wi(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&O6(t,t.return,r),Tu(t);break;case 27:Rp(t.stateNode);case 26:case 5:wi(t,t.return),Tu(t);break;case 22:t.memoizedState===null&&Tu(t);break;case 30:Tu(t);break;default:Tu(t)}e=e.sibling}}function _o(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:_o(a,i,r),yy(4,i);break;case 1:if(_o(a,i,r),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){he(n,n.return,u)}if(n=i,a=n.updateQueue,a!==null){var s=n.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)zF(l[a],s)}catch(u){he(n,n.return,u)}}r&&o&64&&E6(i),Dp(i,i.return);break;case 27:P6(i);case 26:case 5:_o(a,i,r),r&&n===null&&o&4&&R6(i),Dp(i,i.return);break;case 12:_o(a,i,r);break;case 31:_o(a,i,r),r&&o&4&&z6(a,i);break;case 13:_o(a,i,r),r&&o&4&&V6(a,i);break;case 22:i.memoizedState===null&&_o(a,i,r),Dp(i,i.return);break;case 30:break;default:_o(a,i,r)}t=t.sibling}}function uO(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&py(r))}function fO(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&py(e))}function Ba(e,t,r,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)U6(e,t,r,n),t=t.sibling}function U6(e,t,r,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ba(e,t,r,n),a&2048&&yy(9,t);break;case 1:Ba(e,t,r,n);break;case 3:Ba(e,t,r,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&py(e)));break;case 12:if(a&2048){Ba(e,t,r,n),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,s=i.onPostCommit;typeof s=="function"&&s(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){he(t,t.return,l)}}else Ba(e,t,r,n);break;case 31:Ba(e,t,r,n);break;case 13:Ba(e,t,r,n);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Ba(e,t,r,n):Lp(e,t):i._visibility&2?Ba(e,t,r,n):(i._visibility|=2,Kc(e,t,r,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&uO(o,t);break;case 24:Ba(e,t,r,n),a&2048&&fO(t.alternate,t);break;default:Ba(e,t,r,n)}}function Kc(e,t,r,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,s=r,l=n,u=o.flags;switch(o.tag){case 0:case 11:case 15:Kc(i,o,s,l,a),yy(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Kc(i,o,s,l,a):Lp(i,o):(f._visibility|=2,Kc(i,o,s,l,a)),a&&u&2048&&uO(o.alternate,o);break;case 24:Kc(i,o,s,l,a),a&&u&2048&&fO(o.alternate,o);break;default:Kc(i,o,s,l,a)}t=t.sibling}}function Lp(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,a=n.flags;switch(n.tag){case 22:Lp(r,n),a&2048&&uO(n.alternate,n);break;case 24:Lp(r,n),a&2048&&fO(n.alternate,n);break;default:Lp(r,n)}t=t.sibling}}var ap=8192;function Sc(e,t,r){if(e.subtreeFlags&ap)for(e=e.child;e!==null;)F6(e,t,r),e=e.sibling}function F6(e,t,r){switch(e.tag){case 26:Sc(e,t,r),e.flags&ap&&e.memoizedState!==null&&eet(r,Fa,e.memoizedState,e.memoizedProps);break;case 5:Sc(e,t,r);break;case 3:case 4:var n=Fa;Fa=fS(e.stateNode.containerInfo),Sc(e,t,r),Fa=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ap,ap=16777216,Sc(e,t,r),ap=n):Sc(e,t,r));break;default:Sc(e,t,r)}}function Y6(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];yr=n,W6(n,e)}Y6(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)j6(e),e=e.sibling}function j6(e){switch(e.tag){case 0:case 11:case 15:gd(e),e.flags&2048&&_l(9,e,e.return);break;case 3:gd(e);break;case 12:gd(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,r_(e)):gd(e);break;default:gd(e)}}function r_(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];yr=n,W6(n,e)}Y6(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),r_(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,r_(t));break;default:r_(t)}e=e.sibling}}function W6(e,t){for(;yr!==null;){var r=yr;switch(r.tag){case 0:case 11:case 15:_l(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:py(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,yr=n;else t:for(r=e;yr!==null;){n=yr;var a=n.sibling,i=n.return;if(k6(n),n===r){yr=null;break t}if(a!==null){a.return=i,yr=a;break t}yr=i}}}var gtt={getCacheForType:function(e){var t=Ir(tr),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Ir(tr).controller.signal}},ytt=typeof WeakMap=="function"?WeakMap:Map,ie=0,be=null,Kt=null,Qt=0,ce=0,Mn=null,Hs=!1,Ih=!1,cO=!1,Ko=0,Ge=0,Sl=0,Xu=0,vO=0,Bn=0,Qv=0,Ep=null,yn=null,hM=!1,gb=0,$6=0,nS=1/0,aS=null,rl=null,lr=0,nl=null,Jv=null,ko=0,dM=0,pM=null,X6=null,Op=0,gM=null;function Yn(){return ie&2&&Qt!==0?Qt&-Qt:Pt.T!==null?dO():nF()}function Z6(){if(Bn===0)if(!(Qt&536870912)||Jt){var e=rm;rm<<=1,!(rm&3932160)&&(rm=262144),Bn=e}else Bn=536870912;return e=Zn.current,e!==null&&(e.flags|=32),Bn}function xn(e,t,r){(e===be&&(ce===2||ce===9)||e.cancelPendingCommit!==null)&&(th(e,0),Us(e,Qt,Bn,!1)),vy(e,r),(!(ie&2)||e!==be)&&(e===be&&(!(ie&2)&&(Xu|=r),Ge===4&&Us(e,Qt,Bn,!1)),no(e))}function q6(e,t,r){if(ie&6)throw Error(q(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||cy(e,t),a=n?Stt(e,t):bw(e,t,!0),i=n;do{if(a===0){Ih&&!n&&Us(e,t,0,!1);break}else{if(r=e.current.alternate,i&&!mtt(r)){a=bw(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;t:{var s=e;a=Ep;var l=s.current.memoizedState.isDehydrated;if(l&&(th(s,o).flags|=256),o=bw(s,o,!1),o!==2){if(cO&&!l){s.errorRecoveryDisabledLanes|=i,Xu|=i,a=4;break t}i=yn,yn=a,i!==null&&(yn===null?yn=i:yn.push.apply(yn,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){th(e,0),Us(e,t,0,!0);break}t:{switch(n=e,i=a,i){case 0:case 1:throw Error(q(345));case 4:if((t&4194048)!==t)break;case 6:Us(n,t,Bn,!Hs);break t;case 2:yn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(a=gb+300-Hn(),10<a)){if(Us(n,t,Bn,!Hs),ib(n,0,!0)!==0)break t;ko=t,n.timeoutHandle=g8(QN.bind(null,n,r,yn,aS,hM,t,Bn,Xu,Qv,Hs,i,"Throttled",-0,0),a);break t}QN(n,r,yn,aS,hM,t,Bn,Xu,Qv,Hs,i,null,-0,0)}}break}while(!0);no(e)}function QN(e,t,r,n,a,i,o,s,l,u,f,c,v,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Do},F6(t,i,c);var d=(i&62914560)===i?gb-Hn():(i&4194048)===i?$6-Hn():0;if(d=ret(c,d),d!==null){ko=i,e.cancelPendingCommit=d(tk.bind(null,e,t,i,r,n,a,o,s,l,f,c,null,v,h)),Us(e,i,o,!u);return}}tk(e,t,i,r,n,a,o,s,l)}function mtt(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!Xn(i(),a))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 Us(e,t,r,n){t&=~vO,t&=~Xu,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-Fn(a),o=1<<i;n[i]=-1,a&=~o}r!==0&&tF(e,r,t)}function yb(){return ie&6?!0:(my(0),!1)}function hO(){if(Kt!==null){if(ce===0)var e=Kt.return;else e=Kt,Lo=Xf=null,QE(e),Lv=null,og=0,e=Kt;for(;e!==null;)L6(e.alternate,e),e=e.return;Kt=null}}function th(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,ztt(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),ko=0,hO(),be=e,Kt=r=Po(e.current,null),Qt=t,ce=0,Mn=null,Hs=!1,Ih=cy(e,t),cO=!1,Qv=Bn=vO=Xu=Sl=Ge=0,yn=Ep=null,hM=!1,t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Fn(n),i=1<<a;t|=e[a],n&=~i}return Ko=t,ub(),r}function K6(e,t){Ft=null,Pt.H=lg,t===Rh||t===cb?(t=EN(),ce=3):t===jE?(t=EN(),ce=4):ce=t===sO?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mn=t,Kt===null&&(Ge=1,tS(e,ga(t,e.current)))}function Q6(){var e=Zn.current;return e===null?!0:(Qt&4194048)===Qt?wa===null:(Qt&62914560)===Qt||Qt&536870912?e===wa:!1}function J6(){var e=Pt.H;return Pt.H=lg,e===null?lg:e}function t8(){var e=Pt.A;return Pt.A=gtt,e}function iS(){Ge=4,Hs||(Qt&4194048)!==Qt&&Zn.current!==null||(Ih=!0),!(Sl&134217727)&&!(Xu&134217727)||be===null||Us(be,Qt,Bn,!1)}function bw(e,t,r){var n=ie;ie|=2;var a=J6(),i=t8();(be!==e||Qt!==t)&&(aS=null,th(e,t)),t=!1;var o=Ge;t:do try{if(ce!==0&&Kt!==null){var s=Kt,l=Mn;switch(ce){case 8:hO(),o=6;break t;case 3:case 2:case 9:case 6:Zn.current===null&&(t=!0);var u=ce;if(ce=0,Mn=null,dv(e,s,l,u),r&&Ih){o=0;break t}break;default:u=ce,ce=0,Mn=null,dv(e,s,l,u)}}_tt(),o=Ge;break}catch(f){K6(e,f)}while(!0);return t&&e.shellSuspendCounter++,Lo=Xf=null,ie=n,Pt.H=a,Pt.A=i,Kt===null&&(be=null,Qt=0,ub()),o}function _tt(){for(;Kt!==null;)e8(Kt)}function Stt(e,t){var r=ie;ie|=2;var n=J6(),a=t8();be!==e||Qt!==t?(aS=null,nS=Hn()+500,th(e,t)):Ih=cy(e,t);t:do try{if(ce!==0&&Kt!==null){t=Kt;var i=Mn;e:switch(ce){case 1:ce=0,Mn=null,dv(e,t,i,1);break;case 2:case 9:if(LN(i)){ce=0,Mn=null,JN(t);break}t=function(){ce!==2&&ce!==9||be!==e||(ce=7),no(e)},i.then(t,t);break t;case 3:ce=7;break t;case 4:ce=5;break t;case 7:LN(i)?(ce=0,Mn=null,JN(t)):(ce=0,Mn=null,dv(e,t,i,7));break;case 5:var o=null;switch(Kt.tag){case 26:o=Kt.memoizedState;case 5:case 27:var s=Kt;if(o?b8(o):s.stateNode.complete){ce=0,Mn=null;var l=s.sibling;if(l!==null)Kt=l;else{var u=s.return;u!==null?(Kt=u,mb(u)):Kt=null}break e}}ce=0,Mn=null,dv(e,t,i,5);break;case 6:ce=0,Mn=null,dv(e,t,i,6);break;case 8:hO(),Ge=6;break t;default:throw Error(q(462))}}btt();break}catch(f){K6(e,f)}while(!0);return Lo=Xf=null,Pt.H=n,Pt.A=a,ie=r,Kt!==null?0:(be=null,Qt=0,ub(),Ge)}function btt(){for(;Kt!==null&&!YQ();)e8(Kt)}function e8(e){var t=D6(e.alternate,e,Ko);e.memoizedProps=e.pendingProps,t===null?mb(e):Kt=t}function JN(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=WN(r,t,t.pendingProps,t.type,void 0,Qt);break;case 11:t=WN(r,t,t.pendingProps,t.type.render,t.ref,Qt);break;case 5:QE(t);default:L6(r,t),t=Kt=LF(t,Ko),t=D6(r,t,Ko)}e.memoizedProps=e.pendingProps,t===null?mb(e):Kt=t}function dv(e,t,r,n){Lo=Xf=null,QE(t),Lv=null,og=0;var a=t.return;try{if(utt(e,a,t,r,Qt)){Ge=1,tS(e,ga(r,e.current)),Kt=null;return}}catch(i){if(a!==null)throw Kt=a,i;Ge=1,tS(e,ga(r,e.current)),Kt=null;return}t.flags&32768?(Jt||n===1?e=!0:Ih||Qt&536870912?e=!1:(Hs=e=!0,(n===2||n===9||n===3||n===6)&&(n=Zn.current,n!==null&&n.tag===13&&(n.flags|=16384))),r8(t,e)):mb(t)}function mb(e){var t=e;do{if(t.flags&32768){r8(t,Hs);return}e=t.return;var r=vtt(t.alternate,t,Ko);if(r!==null){Kt=r;return}if(t=t.sibling,t!==null){Kt=t;return}Kt=t=e}while(t!==null);Ge===0&&(Ge=5)}function r8(e,t){do{var r=htt(e.alternate,e);if(r!==null){r.flags&=32767,Kt=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Kt=e;return}Kt=e=r}while(e!==null);Ge=6,Kt=null}function tk(e,t,r,n,a,i,o,s,l){e.cancelPendingCommit=null;do _b();while(lr!==0);if(ie&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(i=t.lanes|t.childLanes,i|=zE,tJ(e,r,i,o,s,l),e===be&&(Kt=be=null,Qt=0),Jv=t,nl=e,ko=r,dM=i,pM=a,X6=n,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Att(F_,function(){return s8(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=Pt.T,Pt.T=null,a=se.p,se.p=2,o=ie,ie|=4;try{dtt(e,t,r)}finally{ie=o,se.p=a,Pt.T=n}}lr=1,n8(),a8(),i8()}}function n8(){if(lr===1){lr=0;var e=nl,t=Jv,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=Pt.T,Pt.T=null;var n=se.p;se.p=2;var a=ie;ie|=4;try{G6(t,e);var i=SM,o=bF(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(o!==s&&s&&s.ownerDocument&&SF(s.ownerDocument.documentElement,s)){if(l!==null&&BE(s)){var u=l.start,f=l.end;if(f===void 0&&(f=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(f,s.value.length);else{var c=s.ownerDocument||document,v=c&&c.defaultView||window;if(v.getSelection){var h=v.getSelection(),d=s.textContent.length,p=Math.min(l.start,d),g=l.end===void 0?p:Math.min(l.end,d);!h.extend&&p>g&&(o=g,g=p,p=o);var y=xN(s,p),m=xN(s,g);if(y&&m&&(h.rangeCount!==1||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var _=c.createRange();_.setStart(y.node,y.offset),h.removeAllRanges(),p>g?(h.addRange(_),h.extend(m.node,m.offset)):(_.setEnd(m.node,m.offset),h.addRange(_))}}}}for(c=[],h=s;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<c.length;s++){var S=c[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}hS=!!_M,SM=_M=null}finally{ie=a,se.p=n,Pt.T=r}}e.current=t,lr=2}}function a8(){if(lr===2){lr=0;var e=nl,t=Jv,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=Pt.T,Pt.T=null;var n=se.p;se.p=2;var a=ie;ie|=4;try{N6(e,t.alternate,t)}finally{ie=a,se.p=n,Pt.T=r}}lr=3}}function i8(){if(lr===4||lr===3){lr=0,jQ();var e=nl,t=Jv,r=ko,n=X6;t.subtreeFlags&10256||t.flags&10256?lr=5:(lr=0,Jv=nl=null,o8(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(rl=null),EE(r),t=t.stateNode,Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(fy,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=Pt.T,a=se.p,se.p=2,Pt.T=null;try{for(var i=e.onRecoverableError,o=0;o<n.length;o++){var s=n[o];i(s.value,{componentStack:s.stack})}}finally{Pt.T=t,se.p=a}}ko&3&&_b(),no(e),a=e.pendingLanes,r&261930&&a&42?e===gM?Op++:(Op=0,gM=e):Op=0,my(0)}}function o8(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,py(t)))}function _b(){return n8(),a8(),i8(),s8()}function s8(){if(lr!==5)return!1;var e=nl,t=dM;dM=0;var r=EE(ko),n=Pt.T,a=se.p;try{se.p=32>r?32:r,Pt.T=null,r=pM,pM=null;var i=nl,o=ko;if(lr=0,Jv=nl=null,ko=0,ie&6)throw Error(q(331));var s=ie;if(ie|=4,j6(i.current),U6(i,i.current,o,r),ie=s,my(0,!1),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(fy,i)}catch{}return!0}finally{se.p=a,Pt.T=n,o8(e,t)}}function ek(e,t,r){t=ga(r,t),t=uM(e.stateNode,t,2),e=el(e,t,2),e!==null&&(vy(e,2),no(e))}function he(e,t,r){if(e.tag===3)ek(e,e,r);else for(;t!==null;){if(t.tag===3){ek(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(rl===null||!rl.has(n))){e=ga(r,e),r=x6(2),n=el(t,r,2),n!==null&&(w6(r,n,t,e),vy(n,2),no(n));break}}t=t.return}}function xw(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new ytt;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(cO=!0,a.add(r),e=xtt.bind(null,e,t,r),t.then(e,e))}function xtt(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,be===e&&(Qt&r)===r&&(Ge===4||Ge===3&&(Qt&62914560)===Qt&&300>Hn()-gb?!(ie&2)&&th(e,0):vO|=r,Qv===Qt&&(Qv=0)),no(e)}function l8(e,t){t===0&&(t=JU()),e=$f(e,t),e!==null&&(vy(e,t),no(e))}function wtt(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),l8(e,r)}function Ttt(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(q(314))}n!==null&&n.delete(t),l8(e,r)}function Att(e,t){return DE(e,t)}var oS=null,Qc=null,yM=!1,sS=!1,ww=!1,Fs=0;function no(e){e!==Qc&&e.next===null&&(Qc===null?oS=Qc=e:Qc=Qc.next=e),sS=!0,yM||(yM=!0,Mtt())}function my(e,t){if(!ww&&sS){ww=!0;do for(var r=!1,n=oS;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-Fn(42|e)+1)-1,i&=a&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(r=!0,rk(n,i))}else i=Qt,i=ib(n,n===be?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(i&3)||cy(n,i)||(r=!0,rk(n,i));n=n.next}while(r);ww=!1}}function Ctt(){u8()}function u8(){sS=yM=!1;var e=0;Fs!==0&&Btt()&&(e=Fs);for(var t=Hn(),r=null,n=oS;n!==null;){var a=n.next,i=f8(n,t);i===0?(n.next=null,r===null?oS=a:r.next=a,a===null&&(Qc=r)):(r=n,(e!==0||i&3)&&(sS=!0)),n=a}lr!==0&&lr!==5||my(e),Fs!==0&&(Fs=0)}function f8(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Fn(i),s=1<<o,l=a[o];l===-1?(!(s&r)||s&n)&&(a[o]=JQ(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(t=be,r=Qt,r=ib(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(ce===2||ce===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Kx(n),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||cy(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&Kx(n),EE(r)){case 2:case 8:r=KU;break;case 32:r=F_;break;case 268435456:r=QU;break;default:r=F_}return n=c8.bind(null,e),r=DE(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&Kx(n),e.callbackPriority=2,e.callbackNode=null,2}function c8(e,t){if(lr!==0&&lr!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(_b()&&e.callbackNode!==r)return null;var n=Qt;return n=ib(e,e===be?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(q6(e,n,t),f8(e,Hn()),e.callbackNode!=null&&e.callbackNode===r?c8.bind(null,e):null)}function rk(e,t){if(_b())return null;q6(e,t,!0)}function Mtt(){Vtt(function(){ie&6?DE(qU,Ctt):u8()})}function dO(){if(Fs===0){var e=Zv;e===0&&(e=em,em<<=1,!(em&261888)&&(em=256)),Fs=e}return Fs}function nk(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$0(""+e)}function ak(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function Dtt(e,t,r,n,a){if(t==="submit"&&r&&r.stateNode===a){var i=nk((a[Tn]||null).action),o=n.submitter;o&&(t=(t=o[Tn]||null)?nk(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var s=new ob("action","action",null,n,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Fs!==0){var l=o?ak(a,o):new FormData(a);sM(r,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=o?ak(a,o):new FormData(a),sM(r,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var Tw=0;Tw<ZC.length;Tw++){var Aw=ZC[Tw],Ltt=Aw.toLowerCase(),Ett=Aw[0].toUpperCase()+Aw.slice(1);ri(Ltt,"on"+Ett)}ri(wF,"onAnimationEnd");ri(TF,"onAnimationIteration");ri(AF,"onAnimationStart");ri("dblclick","onDoubleClick");ri("focusin","onFocus");ri("focusout","onBlur");ri(WJ,"onTransitionRun");ri($J,"onTransitionStart");ri(XJ,"onTransitionCancel");ri(CF,"onTransitionEnd");$v("onMouseEnter",["mouseout","mouseover"]);$v("onMouseLeave",["mouseout","mouseover"]);$v("onPointerEnter",["pointerout","pointerover"]);$v("onPointerLeave",["pointerout","pointerover"]);Yf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yf("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ug="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(" "),Ott=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ug));function v8(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;t:{var i=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!==i&&a.isPropagationStopped())break t;i=s,a.currentTarget=u;try{i(a)}catch(f){j_(f)}a.currentTarget=null,i=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break t;i=s,a.currentTarget=u;try{i(a)}catch(f){j_(f)}a.currentTarget=null,i=l}}}}function qt(e,t){var r=t[HC];r===void 0&&(r=t[HC]=new Set);var n=e+"__bubble";r.has(n)||(h8(t,e,2,!1),r.add(n))}function Cw(e,t,r){var n=0;t&&(n|=4),h8(r,e,n,t)}var cm="_reactListening"+Math.random().toString(36).slice(2);function pO(e){if(!e[cm]){e[cm]=!0,aF.forEach(function(r){r!=="selectionchange"&&(Ott.has(r)||Cw(r,!1,e),Cw(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cm]||(t[cm]=!0,Cw("selectionchange",!1,t))}}function h8(e,t,r,n){switch(C8(t)){case 2:var a=iet;break;case 8:a=oet;break;default:a=_O}r=a.bind(null,t,r,e),a=void 0,!WC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Mw(e,t,r,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===a)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;s!==null;){if(o=iv(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){n=i=o;continue t}s=s.parentNode}}n=n.return}vF(function(){var u=i,f=IE(r),c=[];t:{var v=MF.get(e);if(v!==void 0){var h=ob,d=e;switch(e){case"keypress":if(Z0(r)===0)break t;case"keydown":case"keyup":h=TJ;break;case"focusin":d="focus",h=rw;break;case"focusout":d="blur",h=rw;break;case"beforeblur":case"afterblur":h=rw;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=vN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=vJ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=MJ;break;case wF:case TF:case AF:h=pJ;break;case CF:h=LJ;break;case"scroll":case"scrollend":h=fJ;break;case"wheel":h=OJ;break;case"copy":case"cut":case"paste":h=yJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=dN;break;case"toggle":case"beforetoggle":h=IJ}var p=(t&4)!==0,g=!p&&(e==="scroll"||e==="scrollend"),y=p?v!==null?v+"Capture":null:v;p=[];for(var m=u,_;m!==null;){var S=m;if(_=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||_===null||y===null||(S=eg(m,y),S!=null&&p.push(fg(m,S,_))),g)break;m=m.return}0<p.length&&(v=new h(v,d,null,r,f),c.push({event:v,listeners:p}))}}if(!(t&7)){t:{if(v=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",v&&r!==jC&&(d=r.relatedTarget||r.fromElement)&&(iv(d)||d[Lh]))break t;if((h||v)&&(v=f.window===f?f:(v=f.ownerDocument)?v.defaultView||v.parentWindow:window,h?(d=r.relatedTarget||r.toElement,h=u,d=d?iv(d):null,d!==null&&(g=uy(d),p=d.tag,d!==g||p!==5&&p!==27&&p!==6)&&(d=null)):(h=null,d=u),h!==d)){if(p=vN,S="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=dN,S="onPointerLeave",y="onPointerEnter",m="pointer"),g=h==null?v:rp(h),_=d==null?v:rp(d),v=new p(S,m+"leave",h,r,f),v.target=g,v.relatedTarget=_,S=null,iv(f)===u&&(p=new p(y,m+"enter",d,r,f),p.target=_,p.relatedTarget=g,S=p),g=S,h&&d)e:{for(p=Rtt,y=h,m=d,_=0,S=y;S;S=p(S))_++;S=0;for(var b=m;b;b=p(b))S++;for(;0<_-S;)y=p(y),_--;for(;0<S-_;)m=p(m),S--;for(;_--;){if(y===m||m!==null&&y===m.alternate){p=y;break e}y=p(y),m=p(m)}p=null}else p=null;h!==null&&ik(c,v,h,p,!1),d!==null&&g!==null&&ik(c,g,d,p,!0)}}t:{if(v=u?rp(u):window,h=v.nodeName&&v.nodeName.toLowerCase(),h==="select"||h==="input"&&v.type==="file")var x=mN;else if(yN(v))if(mF)x=FJ;else{x=HJ;var w=GJ}else h=v.nodeName,!h||h.toLowerCase()!=="input"||v.type!=="checkbox"&&v.type!=="radio"?u&&RE(u.elementType)&&(x=mN):x=UJ;if(x&&(x=x(e,u))){yF(c,x,r,f);break t}w&&w(e,v,u),e==="focusout"&&u&&v.type==="number"&&u.memoizedProps.value!=null&&YC(v,"number",v.value)}switch(w=u?rp(u):window,e){case"focusin":(yN(w)||w.contentEditable==="true")&&(lv=w,$C=u,xp=null);break;case"focusout":xp=$C=lv=null;break;case"mousedown":XC=!0;break;case"contextmenu":case"mouseup":case"dragend":XC=!1,wN(c,r,f);break;case"selectionchange":if(jJ)break;case"keydown":case"keyup":wN(c,r,f)}var A;if(kE)t:{switch(e){case"compositionstart":var T="onCompositionStart";break t;case"compositionend":T="onCompositionEnd";break t;case"compositionupdate":T="onCompositionUpdate";break t}T=void 0}else sv?pF(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(dF&&r.locale!=="ko"&&(sv||T!=="onCompositionStart"?T==="onCompositionEnd"&&sv&&(A=hF()):(Gs=f,PE="value"in Gs?Gs.value:Gs.textContent,sv=!0)),w=lS(u,T),0<w.length&&(T=new hN(T,e,null,r,f),c.push({event:T,listeners:w}),A?T.data=A:(A=gF(r),A!==null&&(T.data=A)))),(A=NJ?kJ(e,r):BJ(e,r))&&(T=lS(u,"onBeforeInput"),0<T.length&&(w=new hN("onBeforeInput","beforeinput",null,r,f),c.push({event:w,listeners:T}),w.data=A)),Dtt(c,e,u,r,f)}v8(c,t)})}function fg(e,t,r){return{instance:e,listener:t,currentTarget:r}}function lS(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=eg(e,r),a!=null&&n.unshift(fg(e,a,i)),a=eg(e,t),a!=null&&n.push(fg(e,a,i))),e.tag===3)return n;e=e.return}return[]}function Rtt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ik(e,t,r,n,a){for(var i=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===n)break;s!==5&&s!==26&&s!==27||u===null||(l=u,a?(u=eg(r,i),u!=null&&o.unshift(fg(r,u,l))):a||(u=eg(r,i),u!=null&&o.push(fg(r,u,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var Itt=/\r\n?/g,Ptt=/\u0000|\uFFFD/g;function ok(e){return(typeof e=="string"?e:""+e).replace(Itt,`
|
|
49
|
+
`).replace(Ptt,"")}function d8(e,t){return t=ok(t),ok(e)===t}function pe(e,t,r,n,a,i){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Xv(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Xv(e,""+n);break;case"className":am(e,"class",n);break;case"tabIndex":am(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":am(e,r,n);break;case"style":cF(e,n,i);break;case"data":if(t!=="object"){am(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=$0(""+n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(r==="formAction"?(t!=="input"&&pe(e,t,"name",a.name,a,null),pe(e,t,"formEncType",a.formEncType,a,null),pe(e,t,"formMethod",a.formMethod,a,null),pe(e,t,"formTarget",a.formTarget,a,null)):(pe(e,t,"encType",a.encType,a,null),pe(e,t,"method",a.method,a,null),pe(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=$0(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=Do);break;case"onScroll":n!=null&&qt("scroll",e);break;case"onScrollEnd":n!=null&&qt("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(q(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=r}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=$0(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""+n):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":qt("beforetoggle",e),qt("toggle",e),W0(e,"popover",n);break;case"xlinkActuate":uo(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":uo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":uo(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":uo(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":uo(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":uo(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":uo(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":uo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":uo(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":W0(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=lJ.get(r)||r,W0(e,r,n))}}function mM(e,t,r,n,a,i){switch(r){case"style":cF(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(q(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=r}}break;case"children":typeof n=="string"?Xv(e,n):(typeof n=="number"||typeof n=="bigint")&&Xv(e,""+n);break;case"onScroll":n!=null&&qt("scroll",e);break;case"onScrollEnd":n!=null&&qt("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Do);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!iF.hasOwnProperty(r))t:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),i=e[Tn]||null,i=i!=null?i[r]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,n,a);break t}r in e?e[r]=n:n===!0?e.setAttribute(r,""):W0(e,r,n)}}}function Pr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",e),qt("load",e);var n=!1,a=!1,i;for(i in r)if(r.hasOwnProperty(i)){var o=r[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:pe(e,t,i,o,r,null)}}a&&pe(e,t,"srcSet",r.srcSet,r,null),n&&pe(e,t,"src",r.src,r,null);return;case"input":qt("invalid",e);var s=i=o=a=null,l=null,u=null;for(n in r)if(r.hasOwnProperty(n)){var f=r[n];if(f!=null)switch(n){case"name":a=f;break;case"type":o=f;break;case"checked":l=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:pe(e,t,n,f,r,null)}}lF(e,i,s,l,u,o,a,!1);return;case"select":qt("invalid",e),n=o=i=null;for(a in r)if(r.hasOwnProperty(a)&&(s=r[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":n=s;default:pe(e,t,a,s,r,null)}t=i,r=o,e.multiple=!!n,t!=null?Cv(e,!!n,t,!1):r!=null&&Cv(e,!!n,r,!0);return;case"textarea":qt("invalid",e),i=a=n=null;for(o in r)if(r.hasOwnProperty(o)&&(s=r[o],s!=null))switch(o){case"value":n=s;break;case"defaultValue":a=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(q(91));break;default:pe(e,t,o,s,r,null)}fF(e,n,a,i);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(n=r[l],n!=null))switch(l){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:pe(e,t,l,n,r,null)}return;case"dialog":qt("beforetoggle",e),qt("toggle",e),qt("cancel",e),qt("close",e);break;case"iframe":case"object":qt("load",e);break;case"video":case"audio":for(n=0;n<ug.length;n++)qt(ug[n],e);break;case"image":qt("error",e),qt("load",e);break;case"details":qt("toggle",e);break;case"embed":case"source":case"link":qt("error",e),qt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:pe(e,t,u,n,r,null)}return;default:if(RE(t)){for(f in r)r.hasOwnProperty(f)&&(n=r[f],n!==void 0&&mM(e,t,f,n,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(n=r[s],n!=null&&pe(e,t,s,n,r,null))}function Ntt(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,s=null,l=null,u=null,f=null;for(h in r){var c=r[h];if(r.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=c;default:n.hasOwnProperty(h)||pe(e,t,h,null,n,c)}}for(var v in n){var h=n[v];if(c=r[v],n.hasOwnProperty(v)&&(h!=null||c!=null))switch(v){case"type":i=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":f=h;break;case"value":o=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:h!==c&&pe(e,t,v,h,n,c)}}FC(e,o,s,l,u,f,i,a);return;case"select":h=o=s=v=null;for(i in r)if(l=r[i],r.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":h=l;default:n.hasOwnProperty(i)||pe(e,t,i,null,n,l)}for(a in n)if(i=n[a],l=r[a],n.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":v=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:i!==l&&pe(e,t,a,i,n,l)}t=s,r=o,n=h,v!=null?Cv(e,!!r,v,!1):!!n!=!!r&&(t!=null?Cv(e,!!r,t,!0):Cv(e,!!r,r?[]:"",!1));return;case"textarea":h=v=null;for(s in r)if(a=r[s],r.hasOwnProperty(s)&&a!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:pe(e,t,s,null,n,a)}for(o in n)if(a=n[o],i=r[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":v=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(q(91));break;default:a!==i&&pe(e,t,o,a,n,i)}uF(e,v,h);return;case"option":for(var d in r)if(v=r[d],r.hasOwnProperty(d)&&v!=null&&!n.hasOwnProperty(d))switch(d){case"selected":e.selected=!1;break;default:pe(e,t,d,null,n,v)}for(l in n)if(v=n[l],h=r[l],n.hasOwnProperty(l)&&v!==h&&(v!=null||h!=null))switch(l){case"selected":e.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:pe(e,t,l,v,n,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var p in r)v=r[p],r.hasOwnProperty(p)&&v!=null&&!n.hasOwnProperty(p)&&pe(e,t,p,null,n,v);for(u in n)if(v=n[u],h=r[u],n.hasOwnProperty(u)&&v!==h&&(v!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(q(137,t));break;default:pe(e,t,u,v,n,h)}return;default:if(RE(t)){for(var g in r)v=r[g],r.hasOwnProperty(g)&&v!==void 0&&!n.hasOwnProperty(g)&&mM(e,t,g,void 0,n,v);for(f in n)v=n[f],h=r[f],!n.hasOwnProperty(f)||v===h||v===void 0&&h===void 0||mM(e,t,f,v,n,h);return}}for(var y in r)v=r[y],r.hasOwnProperty(y)&&v!=null&&!n.hasOwnProperty(y)&&pe(e,t,y,null,n,v);for(c in n)v=n[c],h=r[c],!n.hasOwnProperty(c)||v===h||v==null&&h==null||pe(e,t,c,v,n,h)}function sk(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ktt(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var a=r[n],i=a.transferSize,o=a.initiatorType,s=a.duration;if(i&&s&&sk(o)){for(o=0,s=a.responseEnd,n+=1;n<r.length;n++){var l=r[n],u=l.startTime;if(u>s)break;var f=l.transferSize,c=l.initiatorType;f&&sk(c)&&(l=l.responseEnd,o+=f*(l<s?1:(s-u)/(l-u)))}if(--n,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _M=null,SM=null;function uS(e){return e.nodeType===9?e:e.ownerDocument}function lk(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function p8(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function bM(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dw=null;function Btt(){var e=window.event;return e&&e.type==="popstate"?e===Dw?!1:(Dw=e,!0):(Dw=null,!1)}var g8=typeof setTimeout=="function"?setTimeout:void 0,ztt=typeof clearTimeout=="function"?clearTimeout:void 0,uk=typeof Promise=="function"?Promise:void 0,Vtt=typeof queueMicrotask=="function"?queueMicrotask:typeof uk<"u"?function(e){return uk.resolve(null).then(e).catch(Gtt)}:g8;function Gtt(e){setTimeout(function(){throw e})}function Pl(e){return e==="head"}function fk(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(a),rh(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")Rp(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Rp(r);for(var i=r.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[hy]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||r.removeChild(i),i=o}}else r==="body"&&Rp(e.ownerDocument.body);r=a}while(r);rh(t)}function ck(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function xM(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":xM(r),OE(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function Htt(e,t,r,n){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[hy])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ta(e.nextSibling),e===null)break}return null}function Utt(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Ta(e.nextSibling),e===null))return null;return e}function y8(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ta(e.nextSibling),e===null))return null;return e}function wM(e){return e.data==="$?"||e.data==="$~"}function TM(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ftt(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ta(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var AM=null;function vk(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Ta(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function hk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function m8(e,t,r){switch(t=uS(r),e){case"html":if(e=t.documentElement,!e)throw Error(q(452));return e;case"head":if(e=t.head,!e)throw Error(q(453));return e;case"body":if(e=t.body,!e)throw Error(q(454));return e;default:throw Error(q(451))}}function Rp(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);OE(e)}var Da=new Map,dk=new Set;function fS(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var hs=se.d;se.d={f:Ytt,r:jtt,D:Wtt,C:$tt,L:Xtt,m:Ztt,X:Ktt,S:qtt,M:Qtt};function Ytt(){var e=hs.f(),t=yb();return e||t}function jtt(e){var t=Eh(e);t!==null&&t.tag===5&&t.type==="form"?c6(t):hs.r(e)}var Ph=typeof document>"u"?null:document;function _8(e,t,r){var n=Ph;if(n&&typeof t=="string"&&t){var a=pa(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),dk.has(a)||(dk.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Pr(t,"link",e),_r(t),n.head.appendChild(t)))}}function Wtt(e){hs.D(e),_8("dns-prefetch",e,null)}function $tt(e,t){hs.C(e,t),_8("preconnect",e,t)}function Xtt(e,t,r){hs.L(e,t,r);var n=Ph;if(n&&e&&t){var a='link[rel="preload"][as="'+pa(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+pa(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+pa(r.imageSizes)+'"]')):a+='[href="'+pa(e)+'"]';var i=a;switch(t){case"style":i=eh(e);break;case"script":i=Nh(e)}Da.has(i)||(e=Re({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Da.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(_y(i))||t==="script"&&n.querySelector(Sy(i))||(t=n.createElement("link"),Pr(t,"link",e),_r(t),n.head.appendChild(t)))}}function Ztt(e,t){hs.m(e,t);var r=Ph;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+pa(n)+'"][href="'+pa(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Nh(e)}if(!Da.has(i)&&(e=Re({rel:"modulepreload",href:e},t),Da.set(i,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Sy(i)))return}n=r.createElement("link"),Pr(n,"link",e),_r(n),r.head.appendChild(n)}}}function qtt(e,t,r){hs.S(e,t,r);var n=Ph;if(n&&e){var a=Av(n).hoistableStyles,i=eh(e);t=t||"default";var o=a.get(i);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(_y(i)))s.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Da.get(i))&&gO(e,r);var l=o=n.createElement("link");_r(l),Pr(l,"link",e),l._p=new Promise(function(u,f){l.onload=u,l.onerror=f}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,n_(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},a.set(i,o)}}}function Ktt(e,t){hs.X(e,t);var r=Ph;if(r&&e){var n=Av(r).hoistableScripts,a=Nh(e),i=n.get(a);i||(i=r.querySelector(Sy(a)),i||(e=Re({src:e,async:!0},t),(t=Da.get(a))&&yO(e,t),i=r.createElement("script"),_r(i),Pr(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Qtt(e,t){hs.M(e,t);var r=Ph;if(r&&e){var n=Av(r).hoistableScripts,a=Nh(e),i=n.get(a);i||(i=r.querySelector(Sy(a)),i||(e=Re({src:e,async:!0,type:"module"},t),(t=Da.get(a))&&yO(e,t),i=r.createElement("script"),_r(i),Pr(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function pk(e,t,r,n){var a=(a=Qs.current)?fS(a):null;if(!a)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=eh(r.href),r=Av(a).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=eh(r.href);var i=Av(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(_y(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Da.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Da.set(e,r),i||Jtt(a,e,r,o.state))),t&&n===null)throw Error(q(528,""));return o}if(t&&n!==null)throw Error(q(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Nh(r),r=Av(a).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function eh(e){return'href="'+pa(e)+'"'}function _y(e){return'link[rel="stylesheet"]['+e+"]"}function S8(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function Jtt(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Pr(t,"link",r),_r(t),e.head.appendChild(t))}function Nh(e){return'[src="'+pa(e)+'"]'}function Sy(e){return"script[async]"+e}function gk(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+pa(r.href)+'"]');if(n)return t.instance=n,_r(n),n;var a=Re({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),_r(n),Pr(n,"style",a),n_(n,r.precedence,e),t.instance=n;case"stylesheet":a=eh(r.href);var i=e.querySelector(_y(a));if(i)return t.state.loading|=4,t.instance=i,_r(i),i;n=S8(r),(a=Da.get(a))&&gO(n,a),i=(e.ownerDocument||e).createElement("link"),_r(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Pr(i,"link",n),t.state.loading|=4,n_(i,r.precedence,e),t.instance=i;case"script":return i=Nh(r.src),(a=e.querySelector(Sy(i)))?(t.instance=a,_r(a),a):(n=r,(a=Da.get(i))&&(n=Re({},r),yO(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),_r(a),Pr(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,n_(n,r.precedence,e));return t.instance}function n_(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===t)i=s;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function gO(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yO(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var a_=null;function yk(e,t,r){if(a_===null){var n=new Map,a=a_=new Map;a.set(r,n)}else a=a_,n=a.get(r),n||(n=new Map,a.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var i=r[a];if(!(i[hy]||i[Er]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var s=n.get(o);s?s.push(i):n.set(o,[i])}}return n}function mk(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function tet(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function b8(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function eet(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=eh(n.href),i=t.querySelector(_y(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cS.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=i,_r(i);return}i=t.ownerDocument||t,n=S8(n),(a=Da.get(a))&&gO(n,a),i=i.createElement("link"),_r(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Pr(i,"link",n),r.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=cS.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Lw=0;function ret(e,t){return e.stylesheets&&e.count===0&&i_(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&i_(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Lw===0&&(Lw=62500*ktt());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&i_(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Lw?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function cS(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)i_(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vS=null;function i_(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vS=new Map,t.forEach(net,e),vS=null,cS.call(e))}function net(e,t){if(!(t.state.loading&4)){var r=vS.get(e);if(r)var n=r.get(null);else{r=new Map,vS.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}a=t.instance,o=a.getAttribute("data-precedence"),i=r.get(o)||n,i===n&&r.set(null,a),r.set(o,a),this.count++,n=cS.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var cg={$$typeof:Mo,Provider:null,Consumer:null,_currentValue:Yu,_currentValue2:Yu,_threadCount:0};function aet(e,t,r,n,a,i,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qx(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qx(0),this.hiddenUpdates=Qx(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function x8(e,t,r,n,a,i,o,s,l,u,f,c){return e=new aet(e,t,r,o,l,u,f,c,s),t=1,i===!0&&(t|=24),i=Rn(3,null,null,t),e.current=i,i.stateNode=e,t=FE(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:r,cache:t},WE(i),e}function w8(e){return e?(e=cv,e):cv}function T8(e,t,r,n,a,i){a=w8(a),n.context===null?n.context=a:n.pendingContext=a,n=tl(t),n.payload={element:r},i=i===void 0?null:i,i!==null&&(n.callback=i),r=el(e,n,t),r!==null&&(xn(r,e,t),Tp(r,e,t))}function _k(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function mO(e,t){_k(e,t),(e=e.alternate)&&_k(e,t)}function A8(e){if(e.tag===13||e.tag===31){var t=$f(e,67108864);t!==null&&xn(t,e,67108864),mO(e,67108864)}}function Sk(e){if(e.tag===13||e.tag===31){var t=Yn();t=LE(t);var r=$f(e,t);r!==null&&xn(r,e,t),mO(e,t)}}var hS=!0;function iet(e,t,r,n){var a=Pt.T;Pt.T=null;var i=se.p;try{se.p=2,_O(e,t,r,n)}finally{se.p=i,Pt.T=a}}function oet(e,t,r,n){var a=Pt.T;Pt.T=null;var i=se.p;try{se.p=8,_O(e,t,r,n)}finally{se.p=i,Pt.T=a}}function _O(e,t,r,n){if(hS){var a=CM(n);if(a===null)Mw(e,t,n,dS,r),bk(e,n);else if(uet(a,e,t,r,n))n.stopPropagation();else if(bk(e,n),t&4&&-1<set.indexOf(e)){for(;a!==null;){var i=Eh(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=xu(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-Fn(o);s.entanglements[1]|=l,o&=~l}no(i),!(ie&6)&&(nS=Hn()+500,my(0))}}break;case 31:case 13:s=$f(i,2),s!==null&&xn(s,i,2),yb(),mO(i,2)}if(i=CM(n),i===null&&Mw(e,t,n,dS,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else Mw(e,t,n,null,r)}}function CM(e){return e=IE(e),SO(e)}var dS=null;function SO(e){if(dS=null,e=iv(e),e!==null){var t=uy(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=jU(t),e!==null)return e;e=null}else if(r===31){if(e=WU(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 dS=e,null}function C8(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(WQ()){case qU:return 2;case KU:return 8;case F_:case $Q:return 32;case QU:return 268435456;default:return 32}default:return 32}}var MM=!1,al=null,il=null,ol=null,vg=new Map,hg=new Map,zs=[],set="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".split(" ");function bk(e,t){switch(e){case"focusin":case"focusout":al=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":vg.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hg.delete(t.pointerId)}}function yd(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Eh(t),t!==null&&A8(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function uet(e,t,r,n,a){switch(t){case"focusin":return al=yd(al,e,t,r,n,a),!0;case"dragenter":return il=yd(il,e,t,r,n,a),!0;case"mouseover":return ol=yd(ol,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return vg.set(i,yd(vg.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,hg.set(i,yd(hg.get(i)||null,e,t,r,n,a)),!0}return!1}function M8(e){var t=iv(e.target);if(t!==null){var r=uy(t);if(r!==null){if(t=r.tag,t===13){if(t=jU(r),t!==null){e.blockedOn=t,iN(e.priority,function(){Sk(r)});return}}else if(t===31){if(t=WU(r),t!==null){e.blockedOn=t,iN(e.priority,function(){Sk(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 o_(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=CM(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);jC=n,r.target.dispatchEvent(n),jC=null}else return t=Eh(r),t!==null&&A8(t),e.blockedOn=r,!1;t.shift()}return!0}function xk(e,t,r){o_(e)&&r.delete(t)}function fet(){MM=!1,al!==null&&o_(al)&&(al=null),il!==null&&o_(il)&&(il=null),ol!==null&&o_(ol)&&(ol=null),vg.forEach(xk),hg.forEach(xk)}function vm(e,t){e.blockedOn===t&&(e.blockedOn=null,MM||(MM=!0,vr.unstable_scheduleCallback(vr.unstable_NormalPriority,fet)))}var hm=null;function wk(e){hm!==e&&(hm=e,vr.unstable_scheduleCallback(vr.unstable_NormalPriority,function(){hm===e&&(hm=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(SO(n||r)===null)continue;break}var i=Eh(r);i!==null&&(e.splice(t,3),t-=3,sM(i,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function rh(e){function t(l){return vm(l,e)}al!==null&&vm(al,e),il!==null&&vm(il,e),ol!==null&&vm(ol,e),vg.forEach(t),hg.forEach(t);for(var r=0;r<zs.length;r++){var n=zs[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<zs.length&&(r=zs[0],r.blockedOn===null);)M8(r),r.blockedOn===null&&zs.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var a=r[n],i=r[n+1],o=a[Tn]||null;if(typeof i=="function")o||wk(r);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[Tn]||null)s=o.formAction;else if(SO(a)!==null)continue}else s=o.action;typeof s=="function"?r[n+1]=s:(r.splice(n,3),n-=3),wk(r)}}}function D8(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function bO(e){this._internalRoot=e}Sb.prototype.render=bO.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var r=t.current,n=Yn();T8(r,n,e,t,null,null)};Sb.prototype.unmount=bO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;T8(e.current,2,null,e,null,null),yb(),t[Lh]=null}};function Sb(e){this._internalRoot=e}Sb.prototype.unstable_scheduleHydration=function(e){if(e){var t=nF();e={blockedOn:null,target:e,priority:t};for(var r=0;r<zs.length&&t!==0&&t<zs[r].priority;r++);zs.splice(r,0,e),r===0&&M8(e)}};var Tk=FU.version;if(Tk!=="19.2.7")throw Error(q(527,Tk,"19.2.7"));se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=VQ(t),e=e!==null?$U(e):null,e=e===null?null:e.stateNode,e};var cet={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Pt,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dm.isDisabled&&dm.supportsFiber)try{fy=dm.inject(cet),Un=dm}catch{}}nb.createRoot=function(e,t){if(!YU(e))throw Error(q(299));var r=!1,n="",a=_6,i=S6,o=b6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=x8(e,1,!1,null,null,r,n,null,a,i,o,D8),e[Lh]=t.current,pO(e),new bO(t)};nb.hydrateRoot=function(e,t,r){if(!YU(e))throw Error(q(299));var n=!1,a="",i=_6,o=S6,s=b6,l=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(i=r.onUncaughtError),r.onCaughtError!==void 0&&(o=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=x8(e,1,!0,t,r??null,n,a,l,i,o,s,D8),t.context=w8(null),r=t.current,n=Yn(),n=LE(n),a=tl(n),a.callback=null,el(r,a,n),r=n,t.current.lanes=r,vy(t,r),no(t),e[Lh]=t.current,pO(e),new Sb(t)};nb.version="19.2.7";function L8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L8)}catch(e){console.error(e)}}L8(),EU.exports=nb;var vet=EU.exports;function re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var het={};function bb(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:het}var E8=Object.assign,pS=Object.getOwnPropertyDescriptor,Ii=Object.defineProperty,xb=Object.prototype,DM=[];Object.freeze(DM);var O8={};Object.freeze(O8);var det=typeof Proxy<"u",pet=Object.toString();function R8(){det||re("Proxy not available")}function I8(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var pv=function(){};function Ka(e){return typeof e=="function"}function cf(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function wb(e){return e!==null&&typeof e=="object"}function Qo(e){if(!wb(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===pet}function P8(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function by(e,t,r){Ii(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function N8(e,t,r){Ii(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Zf(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return wb(n)&&n[r]===!0}}function kh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function get(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function To(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var k8=typeof Object.getOwnPropertySymbols<"u";function yet(e){var t=Object.keys(e);if(!k8)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return xb.propertyIsEnumerable.call(e,n)})):t}var nh=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:k8?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function B8(e){return e===null?null:typeof e=="object"?""+e:e}function Bo(e,t){return xb.hasOwnProperty.call(e,t)}var met=Object.getOwnPropertyDescriptors||function(t){var r={};return nh(t).forEach(function(n){r[n]=pS(t,n)}),r};function In(e,t){return!!(e&t)}function Pn(e,t,r){return r?e|=t:e&=~t,e}function Ak(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _et(e,t,r){if(z8())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&dg(a,r.prototype),a}function bet(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tet(n.key),n)}}function Bh(e,t,r){return t&&bet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gv(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Aet(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
50
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vf.apply(null,arguments)}function LM(e){return LM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},LM(e)}function xO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dg(e,t)}function xet(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function z8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z8=function(){return!!e})()}function dg(e,t){return dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},dg(e,t)}function wet(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Tet(e){var t=wet(e,"string");return typeof t=="symbol"?t:t+""}function Aet(e,t){if(e){if(typeof e=="string")return Ak(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ak(e,t):void 0}}function EM(e){var t=typeof Map=="function"?new Map:void 0;return EM=function(r){if(r===null||!xet(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return _et(r,arguments,LM(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),dg(n,r)},EM(e)}var Ti=Symbol("mobx-stored-annotations");function Pi(e){function t(r,n){if(wy(n))return e.decorate_20223_(r,n);xy(r,n,e)}return Object.assign(t,e)}function xy(e,t,r){Bo(e,Ti)||by(e,Ti,vf({},e[Ti])),Ret(r)||(e[Ti][t]=r)}function Cet(e){return Bo(e,Ti)||by(e,Ti,vf({},e[Ti])),e[Ti]}function wy(e){return typeof e=="object"&&typeof e.kind=="string"}var It=Symbol("mobx administration"),Nl=function(){function e(r){r===void 0&&(r="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ae.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return t7(this)},t.reportChanged=function(){ba(),e7(this),xa()},t.toString=function(){return this.name_},Bh(e,[{key:"isBeingObserved",get:function(){return In(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return In(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return In(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Pn(this.flags_,e.diffValueMask_,n===1)}}])}();Nl.isBeingObservedMask_=1;Nl.isPendingUnobservationMask_=2;Nl.diffValueMask_=4;var wO=Zf("Atom",Nl);function V8(e,t,r){t===void 0&&(t=pv),r===void 0&&(r=pv);var n=new Nl(e);return t!==pv&&krt(n,t),r!==pv&&o7(n,r),n}function Met(e,t){return m7(e,t)}function Det(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var gS={structural:Met,default:Det};function hf(e,t,r){return f7(e)?e:Array.isArray(e)?Rr.array(e,{name:r}):Qo(e)?Rr.object(e,void 0,{name:r}):kh(e)?Rr.map(e,{name:r}):To(e)?Rr.set(e,{name:r}):typeof e=="function"&&!ah(e)&&!gg(e)?P8(e)?ih(e):pg(r,e):e}function Let(e,t,r){if(e==null||Lb(e)||Db(e)||Kf(e)||mi(e))return e;if(Array.isArray(e))return Rr.array(e,{name:r,deep:!1});if(Qo(e))return Rr.object(e,void 0,{name:r,deep:!1});if(kh(e))return Rr.map(e,{name:r,deep:!1});if(To(e))return Rr.set(e,{name:r,deep:!1})}function Tb(e){return e}function Eet(e,t){return m7(e,t)?t:e}var Oet="override";function Ret(e){return e.annotationType_===Oet}function Ty(e,t){return{annotationType_:e,options_:t,make_:Iet,extend_:Pet,decorate_20223_:Net}}function Iet(e,t,r,n){var a;if((a=this.options_)!=null&&a.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(ah(r.value))return 1;var i=G8(e,this,t,r,!1);return Ii(n,t,i),2}function Pet(e,t,r,n){var a=G8(e,this,t,r);return e.defineProperty_(t,a,n)}function Net(e,t){var r=t.kind,n=t.name,a=t.addInitializer,i=this,o=function(u){var f,c,v,h;return df((f=(c=i.options_)==null?void 0:c.name)!=null?f:n.toString(),u,(v=(h=i.options_)==null?void 0:h.autoAction)!=null?v:!1)};if(r=="field")return function(l){var u,f=l;return ah(f)||(f=o(f)),(u=i.options_)!=null&&u.bound&&(f=f.bind(this),f.isMobxAction=!0),f};if(r=="method"){var s;return ah(e)||(e=o(e)),(s=this.options_)!=null&&s.bound&&a(function(){var l=this,u=l[n].bind(l);u.isMobxAction=!0,l[n]=u}),e}re("Cannot apply '"+i.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
|
|
51
|
+
'`+i.annotationType_+"' can only be used on properties with a function value."))}function ket(e,t,r,n){t.annotationType_,n.value}function G8(e,t,r,n,a){var i,o,s,l,u,f,c;a===void 0&&(a=ft.safeDescriptors),ket(e,t,r,n);var v=n.value;if((i=t.options_)!=null&&i.bound){var h;v=v.bind((h=e.proxy_)!=null?h:e.target_)}return{value:df((o=(s=t.options_)==null?void 0:s.name)!=null?o:r.toString(),v,(l=(u=t.options_)==null?void 0:u.autoAction)!=null?l:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function H8(e,t){return{annotationType_:e,options_:t,make_:Bet,extend_:zet,decorate_20223_:Vet}}function Bet(e,t,r,n){var a;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!Bo(e.target_,t)||!gg(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(gg(r.value))return 1;var i=U8(e,this,t,r,!1,!1);return Ii(n,t,i),2}function zet(e,t,r,n){var a,i=U8(e,this,t,r,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,i,n)}function Vet(e,t){var r,n=t.name,a=t.addInitializer;return gg(e)||(e=ih(e)),(r=this.options_)!=null&&r.bound&&a(function(){var i=this,o=i[n].bind(i);o.isMobXFlow=!0,i[n]=o}),e}function Get(e,t,r,n){t.annotationType_,n.value}function U8(e,t,r,n,a,i){i===void 0&&(i=ft.safeDescriptors),Get(e,t,r,n);var o=n.value;if(gg(o)||(o=ih(o)),a){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function TO(e,t){return{annotationType_:e,options_:t,make_:Het,extend_:Uet,decorate_20223_:Fet}}function Het(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Uet(e,t,r,n){return Yet(e,this,t,r),e.defineComputedProperty_(t,vf({},this.options_,{get:r.get,set:r.set}),n)}function Fet(e,t){var r=this,n=t.name,a=t.addInitializer,i;function o(s,l){var u=vf({},r.options_,{get:e,context:s});return u.name||(u.name="ObservableObject."+n.toString()),new jn(u)}return a(function(){var s,l=Qf(this)[It],u=this,f=l.values_.get(n);f instanceof jn&&f.derivation!==e&&l.values_.delete(n),((s=l.lazyComputedKeys_)!=null?s:l.lazyComputedKeys_=new Map).set(n,function(){return o(u)})}),function(){var s=this[It],l=s.values_.get(n);if(l instanceof jn&&l.derivation!==e){var u,f=(u=i)==null?void 0:u.get(this);if(!f){var c;f=o(this),((c=i)!=null?c:i=new WeakMap).set(this,f)}return f.get()}return s.getObservablePropValue_(n)}}function Yet(e,t,r,n){t.annotationType_,n.get}function Ab(e,t){return{annotationType_:e,options_:t,make_:jet,extend_:Wet,decorate_20223_:$et}}function jet(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Wet(e,t,r,n){var a,i;return Xet(e,this),e.defineObservableProperty_(t,r.value,(a=(i=this.options_)==null?void 0:i.enhancer)!=null?a:hf,n)}function $et(e,t){var r=this,n=t.kind,a=t.name;if(n!=="accessor")return;function i(o,s){var l,u=Qf(o)[It];return((l=u.lazyObservableKeys_)!=null?l:u.lazyObservableKeys_=new Map).set(a,function(){var f,c;return new Zu(s,(f=(c=r.options_)==null?void 0:c.enhancer)!=null?f:hf,"ObservableObject."+a.toString(),!1)}),u}return{get:function(){var s,l=(s=this[It])!=null?s:i(this,e.get.call(this));return l.getObservablePropValue_(a)},set:function(s){var l,u=(l=this[It])!=null?l:i(this,s);return u.setObservablePropValue_(a,s)},init:function(s){return i(this,s),s}}}function Xet(e,t,r,n){t.annotationType_}var Zet="true",qet=F8();function F8(e){return{annotationType_:Zet,options_:e,make_:Ket,extend_:Qet,decorate_20223_:Jet}}function Ket(e,t,r,n){var a,i;if(r.get)return Cb.make_(e,t,r,n);if(r.set){var o=ah(r.set)?r.set:df(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:ft.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(Ii(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(P8(r.value)){var l,u=(l=this.options_)!=null&&l.autoBind?ih.bound:ih;return u.make_(e,t,r,n)}var f=(s=this.options_)!=null&&s.autoBind?pg.bound:pg;return f.make_(e,t,r,n)}var c=((a=this.options_)==null?void 0:a.deep)===!1?Rr.ref:Rr;if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var v;r.value=r.value.bind((v=e.proxy_)!=null?v:e.target_)}return c.make_(e,t,r,n)}function Qet(e,t,r,n){var a,i;if(r.get)return Cb.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:ft.safeDescriptors?e.isPlainObject_:!0,set:df(t.toString(),r.set)},n);if(typeof r.value=="function"&&(a=this.options_)!=null&&a.autoBind){var o;r.value=r.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((i=this.options_)==null?void 0:i.deep)===!1?Rr.ref:Rr;return s.extend_(e,t,r,n)}function Jet(e,t){re("'"+this.annotationType_+"' cannot be used as a decorator")}var trt="observable",ert="observable.ref",rrt="observable.shallow",nrt="observable.struct",Y8={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Y8);function pm(e){return e||Y8}var OM=Ab(trt),art=Ab(ert,{enhancer:Tb}),irt=Ab(rrt,{enhancer:Let}),ort=Ab(nrt,{enhancer:Eet}),j8=Pi(OM);function gm(e){return e.deep===!0?hf:e.deep===!1?Tb:lrt(e.defaultDecorator)}function srt(e){var t;return e?(t=e.defaultDecorator)!=null?t:F8(e):void 0}function lrt(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:hf}function W8(e,t,r){if(wy(t))return OM.decorate_20223_(e,t);if(cf(t)){xy(e,t,OM);return}return f7(e)?e:Qo(e)?Rr.object(e,t,r):Array.isArray(e)?Rr.array(e,t):kh(e)?Rr.map(e,t):To(e)?Rr.set(e,t):typeof e=="object"&&e!==null?e:Rr.box(e,t)}E8(W8,j8);var urt={box:function(t,r){var n=pm(r);return new Zu(t,gm(n),n.name,!0,n.equals)},array:function(t,r){var n=pm(r);return(ft.useProxies===!1||n.proxy===!1?lnt:Qrt)(t,gm(n),n.name)},map:function(t,r){var n=pm(r);return new v7(t,gm(n),n.name)},set:function(t,r){var n=pm(r);return new h7(t,gm(n),n.name)},object:function(t,r,n){return kl(function(){return l7(ft.useProxies===!1||(n==null?void 0:n.proxy)===!1?Qf({},n):$rt({},n),t,r)})},ref:Pi(art),shallow:Pi(irt),deep:j8,struct:Pi(ort)},Rr=E8(W8,urt),$8="computed",frt="computed.struct",RM=TO($8),crt=TO(frt,{equals:gS.structural}),Cb=function(t,r){if(wy(r))return RM.decorate_20223_(t,r);if(cf(r))return xy(t,r,RM);if(Qo(t))return Pi(TO($8,t));var n=Qo(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new jn(n)};Object.assign(Cb,RM);Cb.struct=Pi(crt);var Ck,Mk,yS=0,vrt=1,hrt=(Ck=(Mk=pS(function(){},"name"))==null?void 0:Mk.configurable)!=null?Ck:!1,Dk={value:"action",configurable:!0,writable:!1,enumerable:!1};function df(e,t,r,n){r===void 0&&(r=!1);function a(){return drt(e,r,t,n||this,arguments)}return a.isMobxAction=!0,a.toString=function(){return t.toString()},hrt&&(Dk.value=e,Ii(a,"name",Dk)),a}function drt(e,t,r,n,a){var i=prt(e,t);try{return r.apply(n,a)}catch(o){throw i.error_=o,o}finally{grt(i)}}function prt(e,t,r,n){var a=!1,i=0,o=ft.trackingDerivation,s=!t||!o;ba();var l=ft.allowStateChanges;s&&(qf(),l=AO(!0));var u=MO(!0),f={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:a,startTime_:i,actionId_:vrt++,parentActionId_:yS};return yS=f.actionId_,f}function grt(e){yS!==e.actionId_&&re(30),yS=e.parentActionId_,e.error_!==void 0&&(ft.suppressReactionErrors=!0),CO(e.prevAllowStateChanges_),Ip(e.prevAllowStateReads_),xa(),e.runAsAction_&&zo(e.prevDerivation_),ft.suppressReactionErrors=!1}function AO(e){var t=ft.allowStateChanges;return ft.allowStateChanges=e,t}function CO(e){ft.allowStateChanges=e}var Zu=function(e){function t(n,a,i,o,s){var l;return i===void 0&&(i="ObservableValue"),s===void 0&&(s=gS.default),l=e.call(this,i)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=a,l.name_=i,l.equals=s,l.value_=a(n,void 0,i),l}xO(t,e);var r=t.prototype;return r.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},r.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==ft.UNCHANGED&&this.setNewValue_(a)},r.prepareNewValue_=function(a){if(ma(this)){var i=_a(this,{object:this,type:Ni,newValue:a});if(!i)return ft.UNCHANGED;a=i.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?ft.UNCHANGED:a},r.setNewValue_=function(a){var i=this.value_;this.value_=a,this.reportChanged(),ja(this)&&Wa(this,{type:Ni,object:this,newValue:a,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(a){return Ay(this,a)},r.observe_=function(a,i){return i&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:Ni,newValue:this.value_,oldValue:void 0}),Cy(this,a)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return B8(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Nl),jn=function(){function e(r){this.dependenciesState_=ae.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ae.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new _S(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=mS.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||re(31),this.derivation=r.get,this.name_=r.name||"ComputedValue",r.set&&(this.setter_=df("ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?gS.structural:gS.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){brt(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&re(32,this.name_,this.derivation),ft.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)IM(this)&&(this.warnAboutUntrackedRead_(),ba(),this.value_=this.computeValue_(!1),xa());else if(t7(this),IM(this)){var n=ft.trackingContext;this.keepAlive_&&!n&&(ft.trackingContext=this),this.trackAndCompute()&&Srt(this),ft.trackingContext=n}var a=this.value_;if(s_(a))throw a.cause;return a},t.set=function(n){if(this.setter_){this.isRunningSetter&&re(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else re(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,a=this.dependenciesState_===ae.NOT_TRACKING_,i=this.computeValue_(!0),o=a||s_(n)||s_(i)||!this.equals_(n,i);return o&&(this.value_=i),o},t.computeValue_=function(n){this.isComputing=!0;var a=AO(!1),i;if(n)i=X8(this,this.derivation,this.scope_);else if(ft.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(o){i=new _S(o)}return CO(a),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(PM(this),this.value_=void 0)},t.observe_=function(n,a){var i=this,o=!0,s=void 0;return Ort(function(){var l=i.get();if(!o||a){var u=qf();n({observableKind:"computed",debugObjectName:i.name_,type:Ni,object:i,newValue:l,oldValue:s}),zo(u)}o=!1,s=l})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return B8(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Bh(e,[{key:"isComputing",get:function(){return In(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return In(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return In(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return In(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return In(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Pn(this.flags_,e.diffValueMask_,n===1)}}])}();jn.isComputingMask_=1;jn.isRunningSetterMask_=2;jn.isBeingObservedMask_=4;jn.isPendingUnobservationMask_=8;jn.diffValueMask_=16;var Mb=Zf("ComputedValue",jn),ae;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ae||(ae={}));var mS;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(mS||(mS={}));var _S=function(t){this.cause=void 0,this.cause=t};function s_(e){return e instanceof _S}function IM(e){switch(e.dependenciesState_){case ae.UP_TO_DATE_:return!1;case ae.NOT_TRACKING_:case ae.STALE_:return!0;case ae.POSSIBLY_STALE_:{for(var t=MO(!0),r=qf(),n=e.observing_,a=n.length,i=0;i<a;i++){var o=n[i];if(Mb(o)){if(ft.disableErrorBoundaries)o.get();else try{o.get()}catch{return zo(r),Ip(t),!0}if(e.dependenciesState_===ae.STALE_)return zo(r),Ip(t),!0}}return q8(e),zo(r),Ip(t),!1}}}function X8(e,t,r){var n=MO(!0);q8(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ft.runId;var a=ft.trackingDerivation;ft.trackingDerivation=e,ft.inBatch++;var i;if(ft.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(o){i=new _S(o)}return ft.inBatch--,ft.trackingDerivation=a,yrt(e),Ip(n),i}function yrt(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=ae.UP_TO_DATE_,a=0,i=e.unboundDepsCount_,o=0;o<i;o++){var s=r[o];s.diffValue===0&&(s.diffValue=1,a!==o&&(r[a]=s),a++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=a,e.newObserving_=null,i=t.length;i--;){var l=t[i];l.diffValue===0&&Q8(l,e),l.diffValue=0}for(;a--;){var u=r[a];u.diffValue===1&&(u.diffValue=0,_rt(u,e))}n!==ae.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function PM(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)Q8(t[r],e);e.dependenciesState_=ae.NOT_TRACKING_}function Z8(e){var t=qf();try{return e()}finally{zo(t)}}function qf(){var e=ft.trackingDerivation;return ft.trackingDerivation=null,e}function zo(e){ft.trackingDerivation=e}function MO(e){var t=ft.allowStateReads;return ft.allowStateReads=e,t}function Ip(e){ft.allowStateReads=e}function q8(e){if(e.dependenciesState_!==ae.UP_TO_DATE_){e.dependenciesState_=ae.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=ae.UP_TO_DATE_}}var l_=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},u_=!0,K8=!1,ft=function(){var e=bb();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(u_=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new l_().version&&(u_=!1),u_?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new l_):(setTimeout(function(){K8||re(35)},1),new l_)}();function mrt(){if((ft.pendingReactions.length||ft.inBatch||ft.isRunningReactions)&&re(36),K8=!0,u_){var e=bb();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),ft=new l_}}function _rt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Q8(e,t){e.observers_.delete(t),e.observers_.size===0&&J8(e)}function J8(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,ft.pendingUnobservations.push(e))}function ba(){ft.inBatch++}function xa(){if(--ft.inBatch===0){r7();for(var e=ft.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof jn&&r.suspend_())}ft.pendingUnobservations=[]}}function t7(e){var t=ft.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ft.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&ft.inBatch>0&&J8(e),!1)}function e7(e){e.lowestObserverState_!==ae.STALE_&&(e.lowestObserverState_=ae.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ae.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ae.STALE_}))}function Srt(e){e.lowestObserverState_!==ae.STALE_&&(e.lowestObserverState_=ae.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ae.POSSIBLY_STALE_?t.dependenciesState_=ae.STALE_:t.dependenciesState_===ae.UP_TO_DATE_&&(e.lowestObserverState_=ae.UP_TO_DATE_)}))}function brt(e){e.lowestObserverState_===ae.UP_TO_DATE_&&(e.lowestObserverState_=ae.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ae.UP_TO_DATE_&&(t.dependenciesState_=ae.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Jo=function(){function e(r,n,a,i){r===void 0&&(r="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ae.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=mS.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=a,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ft.pendingReactions.push(this),r7())},t.runReaction_=function(){if(!this.isDisposed){ba(),this.isScheduled=!1;var n=ft.trackingContext;if(ft.trackingContext=this,IM(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}ft.trackingContext=n,xa()}},t.track=function(n){if(!this.isDisposed){ba(),this.isRunning=!0;var a=ft.trackingContext;ft.trackingContext=this;var i=X8(this,n,void 0);ft.trackingContext=a,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&PM(this),s_(i)&&this.reportExceptionInDerivation_(i.cause),xa()}},t.reportExceptionInDerivation_=function(n){var a=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(ft.disableErrorBoundaries)throw n;var i="[mobx] uncaught error in '"+this+"'";ft.suppressReactionErrors||console.error(i,n),ft.globalReactionErrorHandlers.forEach(function(o){return o(n,a)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(ba(),PM(this),xa()))},t.getDisposer_=function(n){var a=this,i=function o(){a.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",o)};return n==null||n.addEventListener==null||n.addEventListener("abort",i),i[It]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(i[Symbol.dispose]=i),i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){},Bh(e,[{key:"isDisposed",get:function(){return In(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return In(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return In(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return In(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=Pn(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return In(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Pn(this.flags_,e.diffValueMask_,n===1)}}])}();Jo.isDisposedMask_=1;Jo.isScheduledMask_=2;Jo.isTrackPendingMask_=4;Jo.isRunningMask_=8;Jo.diffValueMask_=16;var xrt=100,NM=function(t){return t()};function r7(){ft.inBatch>0||ft.isRunningReactions||NM(wrt)}function wrt(){ft.isRunningReactions=!0;for(var e=ft.pendingReactions,t=0;e.length>0;){++t===xrt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,a=r.length;n<a;n++)r[n].runReaction_()}ft.isRunningReactions=!1}var SS=Zf("Reaction",Jo);function Trt(e){var t=NM;NM=function(n){return e(function(){return t(n)})}}function Pp(){return!1}function Art(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var n7="action",Crt="action.bound",a7="autoAction",Mrt="autoAction.bound",Drt="<unnamed action>",kM=Ty(n7),Lrt=Ty(Crt,{bound:!0}),BM=Ty(a7,{autoAction:!0}),Ert=Ty(Mrt,{autoAction:!0,bound:!0});function i7(e){var t=function(n,a){if(Ka(n))return df(n.name||Drt,n,e);if(Ka(a))return df(n,a,e);if(wy(a))return(e?BM:kM).decorate_20223_(n,a);if(cf(a))return xy(n,a,e?BM:kM);if(cf(n))return Pi(Ty(e?a7:n7,{name:n,autoAction:e}))};return t}var yv=i7(!1);Object.assign(yv,kM);var pg=i7(!0);Object.assign(pg,BM);yv.bound=Pi(Lrt);pg.bound=Pi(Ert);function ah(e){return Ka(e)&&e.isMobxAction===!0}function Ort(e,t){var r,n,a,i;t===void 0&&(t=O8);var o=(r=(n=t)==null?void 0:n.name)!=null?r:"Autorun",s=!t.scheduler&&!t.delay,l;if(s)l=new Jo(o,function(){this.track(c)},t.onError,t.requiresObservable);else{var u=Irt(t),f=!1;l=new Jo(o,function(){f||(f=!0,u(function(){f=!1,l.isDisposed||l.track(c)}))},t.onError,t.requiresObservable)}function c(){e(l)}return(a=t)!=null&&(a=a.signal)!=null&&a.aborted||l.schedule_(),l.getDisposer_((i=t)==null?void 0:i.signal)}var Rrt=function(t){return t()};function Irt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Rrt}var Prt="onBO",Nrt="onBUO";function krt(e,t,r){return s7(Prt,e,t,r)}function o7(e,t,r){return s7(Nrt,e,t,r)}function s7(e,t,r,n){var a=wS(t),i=Ka(n)?n:r,o=e+"L";return a[o]?a[o].add(i):a[o]=new Set([i]),function(){var s=a[o];s&&(s.delete(i),s.size===0&&delete a[o])}}var Brt="never",ym="always",zrt="observed";function Vrt(e){e.isolateGlobalState===!0&&mrt();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(ft.useProxies=t===ym?!0:t===Brt?!1:typeof Proxy<"u"),t==="ifavailable"&&(ft.verifyProxies=!0),r!==void 0){var n=r===ym?ym:r===zrt;ft.enforceActions=n,ft.allowStateChanges=!(n===!0||n===ym)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(a){a in e&&(ft[a]=!!e[a])}),ft.allowStateReads=!ft.observableRequiresReaction,e.reactionScheduler&&Trt(e.reactionScheduler)}function l7(e,t,r,n){var a=met(t);return kl(function(){var i=Qf(e,n)[It];nh(a).forEach(function(o){i.extend_(o,a[o],r&&o in r?r[o]:!0)})}),e}function Grt(e,t){return u7(wS(e,t))}function u7(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Hrt(e.observing_).map(u7)),t}function Hrt(e){return Array.from(new Set(e))}var Urt=0,Frt=function(e){function t(){var n;return n=e.call(this,"FLOW_CANCELLED")||this,Object.setPrototypeOf(n,(this instanceof t?this.constructor:void 0).prototype),n.name="FlowCancellationError",n}xO(t,e);var r=t.prototype;return r.toString=function(){return"Error: "+this.message},t}(EM(Error)),Ew=H8("flow"),Yrt=H8("flow.bound",{bound:!0}),ih=Object.assign(function(t,r){if(wy(r))return Ew.decorate_20223_(t,r);if(cf(r))return xy(t,r,Ew);var n=t,a=n.name||"<unnamed flow>",i=function(){var s=this,l=arguments,u=++Urt,f=yv(a+" - runid: "+u+" - init",n).apply(s,l),c,v=void 0,h=new Promise(function(d,p){var g=0;c=p;function y(S){v=void 0;var b;try{b=yv(a+" - runid: "+u+" - yield "+g++,f.next).call(f,S)}catch(x){return p(x)}_(b)}function m(S){v=void 0;var b;try{b=yv(a+" - runid: "+u+" - yield "+g++,f.throw).call(f,S)}catch(x){return p(x)}_(b)}function _(S){if(Ka(S==null?void 0:S.then)){S.then(_,p);return}return S.done?d(S.value):(v=Promise.resolve(S.value),v.then(y,m))}y(void 0)});return h.cancel=yv(a+" - runid: "+u+" - cancel",function(){try{v&&Lk(v);var d=f.return(void 0),p=Promise.resolve(d.value);p.then(pv,pv),Lk(p),c(new Frt)}catch(g){c(g)}}),h};return i.isMobXFlow=!0,i},Ew);ih.bound=Pi(Yrt);function Lk(e){Ka(e.cancel)&&e.cancel()}function gg(e){return(e==null?void 0:e.isMobXFlow)===!0}function jrt(e,t){return e?Lb(e)||!!e[It]||wO(e)||SS(e)||Mb(e):!1}function f7(e){return jrt(e)}function Ao(e,t){t===void 0&&(t=void 0),ba();try{return e.apply(t)}finally{xa()}}function bc(e){return e[It]}var Wrt={has:function(t,r){return bc(t).has_(r)},get:function(t,r){return bc(t).get_(r)},set:function(t,r,n){var a;return cf(r)?(a=bc(t).set_(r,n,!0))!=null?a:!0:!1},deleteProperty:function(t,r){var n;return cf(r)?(n=bc(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var a;return(a=bc(t).defineProperty_(r,n))!=null?a:!0},ownKeys:function(t){return bc(t).ownKeys_()},preventExtensions:function(t){re(13)}};function $rt(e,t){var r,n;return R8(),e=Qf(e,t),(n=(r=e[It]).proxy_)!=null?n:r.proxy_=new Proxy(e,Wrt)}function ma(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Ay(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),I8(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function _a(e,t){var r=qf();try{for(var n=[].concat(e.interceptors_||[]),a=0,i=n.length;a<i&&(t=n[a](t),t&&!t.type&&re(14),!!t);a++);return t}finally{zo(r)}}function ja(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Cy(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),I8(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Wa(e,t){var r=qf(),n=e.changeListeners_;if(n){n=n.slice();for(var a=0,i=n.length;a<i;a++)n[a](t);zo(r)}}function Xrt(e,t,r){return kl(function(){var n,a=Qf(e,r)[It];(n=t)!=null||(t=Cet(e)),nh(t).forEach(function(i){return a.make_(i,t[i])})}),e}var Ow=Symbol("mobx-keys");function Zrt(e,t,r){return Qo(e)?l7(e,e,t,r):(kl(function(){var n=Qf(e,r)[It];if(!e[Ow]){var a=Object.getPrototypeOf(e),i=new Set([].concat(nh(e),nh(a)));i.delete("constructor"),i.delete(It),by(a,Ow,i)}e[Ow].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}),e)}var Ek="splice",Ni="update",qrt=1e4,Krt={get:function(t,r){var n=t[It];return r===It?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):Bo(bS,r)?bS[r]:t[r]},set:function(t,r,n){var a=t[It];return r==="length"&&a.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:a.set_(parseInt(r),n),!0},preventExtensions:function(){re(15)}},DO=function(){function e(r,n,a,i){r===void 0&&(r="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=a,this.legacyMode_=i,this.atom_=new Nl(r),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Ay(this,n)},t.observe_=function(n,a){return a===void 0&&(a=!1),a&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Cy(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&re("Out of range: "+n);var a=this.values_.length;if(n!==a)if(n>a){for(var i=new Array(n-a),o=0;o<n-a;o++)i[o]=void 0;this.spliceWithArray_(a,0,i)}else this.spliceWithArray_(n,a-n)},t.updateArrayLength_=function(n,a){n!==this.lastKnownLength_&&re(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&y7(n+a+1)},t.spliceWithArray_=function(n,a,i){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?a=s-n:a==null?a=0:a=Math.max(0,Math.min(a,s-n)),i===void 0&&(i=DM),ma(this)){var l=_a(this,{object:this.proxy_,type:Ek,index:n,removedCount:a,added:i});if(!l)return DM;a=l.removedCount,i=l.added}if(i=i.length===0?i:i.map(function(c){return o.enhancer_(c,void 0)}),this.legacyMode_){var u=i.length-a;this.updateArrayLength_(s,u)}var f=this.spliceItemsIntoValues_(n,a,i);return(a!==0||i.length!==0)&&this.notifyArraySplice_(n,i,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(n,a,i){if(i.length<qrt){var o;return(o=this.values_).splice.apply(o,[n,a].concat(i))}else{var s=this.values_.slice(n,n+a),l=this.values_.slice(n+a);this.values_.length+=i.length-a;for(var u=0;u<i.length;u++)this.values_[n+u]=i[u];for(var f=0;f<l.length;f++)this.values_[n+i.length+f]=l[f];return s}},t.notifyArrayChildUpdate_=function(n,a,i){var o=!this.owned_&&Pp(),s=ja(this),l=s||o?{observableKind:"array",object:this.proxy_,type:Ni,debugObjectName:this.atom_.name_,index:n,newValue:a,oldValue:i}:null;this.atom_.reportChanged(),s&&Wa(this,l)},t.notifyArraySplice_=function(n,a,i){var o=!this.owned_&&Pp(),s=ja(this),l=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ek,index:n,removed:i,added:a,removedCount:i.length,addedCount:a.length}:null;this.atom_.reportChanged(),s&&Wa(this,l)},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn("[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,a){var i=this.values_;if(this.legacyMode_&&n>i.length&&re(17,n,i.length),n<i.length){this.atom_;var o=i[n];if(ma(this)){var s=_a(this,{type:Ni,object:this.proxy_,index:n,newValue:a});if(!s)return;a=s.newValue}a=this.enhancer_(a,o);var l=a!==o;l&&(i[n]=a,this.notifyArrayChildUpdate_(n,a,o))}else{for(var u=new Array(n+1-i.length),f=0;f<u.length-1;f++)u[f]=void 0;u[u.length-1]=a,this.spliceWithArray_(i.length,0,u)}},e}();function Qrt(e,t,r,n){return r===void 0&&(r="ObservableArray"),n===void 0&&(n=!1),R8(),kl(function(){var a=new DO(r,t,n,!1);N8(a.values_,It,a);var i=new Proxy(a.values_,Krt);return a.proxy_=i,e&&e.length&&a.spliceWithArray_(0,0,e),i})}var bS={clear:function(){return this.splice(0)},replace:function(t){var r=this[It];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];var o=this[It];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,r)}return o.spliceWithArray_(t,r,a)},spliceWithArray:function(t,r,n){return this[It].spliceWithArray_(t,r,n)},push:function(){for(var t=this[It],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[It].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[It],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return ft.trackingDerivation&&re(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ft.trackingDerivation&&re(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[It],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};Ae("at",Kn);Ae("concat",Kn);Ae("flat",Kn);Ae("includes",Kn);Ae("indexOf",Kn);Ae("join",Kn);Ae("lastIndexOf",Kn);Ae("slice",Kn);Ae("toString",Kn);Ae("toLocaleString",Kn);Ae("toSorted",Kn);Ae("toSpliced",Kn);Ae("with",Kn);Ae("every",ni);Ae("filter",ni);Ae("find",ni);Ae("findIndex",ni);Ae("findLast",ni);Ae("findLastIndex",ni);Ae("flatMap",ni);Ae("forEach",ni);Ae("map",ni);Ae("some",ni);Ae("toReversed",ni);Ae("reduce",c7);Ae("reduceRight",c7);function Ae(e,t){typeof Array.prototype[e]=="function"&&(bS[e]=t(e))}function Kn(e){return function(){var t=this[It];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function ni(e){return function(t,r){var n=this,a=this[It];a.atom_.reportObserved();var i=a.dehanceValues_(a.values_);return i[e](function(o,s){return t.call(r,o,s,n)})}}function c7(e){return function(){var t=this,r=this[It];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),a=arguments[0];return arguments[0]=function(i,o,s){return a(i,o,s,t)},n[e].apply(n,arguments)}}var Jrt=Zf("ObservableArrayAdministration",DO);function Db(e){return wb(e)&&Jrt(e[It])}var tnt={},Ys="add",xS="delete",v7=function(){function e(r,n,a){var i=this;n===void 0&&(n=hf),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[It]=tnt,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=a,Ka(Map)||re(18),kl(function(){i.keysAtom_=V8("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,r&&i.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var a=this;if(!ft.trackingDerivation)return this.has_(n);var i=this.hasMap_.get(n);if(!i){var o=i=new Zu(this.has_(n),Tb,"ObservableMap.key?",!1);this.hasMap_.set(n,o),o7(o,function(){return a.hasMap_.delete(n)})}return i.get()},t.set=function(n,a){var i=this.has_(n);if(ma(this)){var o=_a(this,{type:i?Ni:Ys,object:this,newValue:a,name:n});if(!o)return this;a=o.newValue}return i?this.updateValue_(n,a):this.addValue_(n,a),this},t.delete=function(n){var a=this;if(this.keysAtom_,ma(this)){var i=_a(this,{type:xS,object:this,name:n});if(!i)return!1}if(this.has_(n)){var o=Pp(),s=ja(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:xS,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return Ao(function(){var u;a.keysAtom_.reportChanged(),(u=a.hasMap_.get(n))==null||u.setNewValue_(!1);var f=a.data_.get(n);f.setNewValue_(void 0),a.data_.delete(n)}),s&&Wa(this,l),!0}return!1},t.updateValue_=function(n,a){var i=this.data_.get(n);if(a=i.prepareNewValue_(a),a!==ft.UNCHANGED){var o=Pp(),s=ja(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:Ni,object:this,oldValue:i.value_,name:n,newValue:a}:null;i.setNewValue_(a),s&&Wa(this,l)}},t.addValue_=function(n,a){var i=this;this.keysAtom_,Ao(function(){var u,f=new Zu(a,i.enhancer_,"ObservableMap.key",!1);i.data_.set(n,f),a=f.value_,(u=i.hasMap_.get(n))==null||u.setNewValue_(!0),i.keysAtom_.reportChanged()});var o=Pp(),s=ja(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:Ys,object:this,name:n,newValue:a}:null;s&&Wa(this,l)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.getOrInsert=function(n,a){return this.has(n)||this.set(n,a),this.get(n)},t.getOrInsertComputed=function(n,a){return this.has(n)||this.set(n,a(n)),this.get(n)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,a=this.keys();return Ok({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:n.get(l)}}})},t.entries=function(){var n=this,a=this.keys();return Ok({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:[l,n.get(l)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,a){for(var i=gv(this),o;!(o=i()).done;){var s=o.value,l=s[0],u=s[1];n.call(a,u,l,this)}},t.merge=function(n){var a=this;return Kf(n)&&(n=new Map(n)),Ao(function(){Qo(n)?yet(n).forEach(function(i){return a.set(i,n[i])}):Array.isArray(n)?n.forEach(function(i){var o=i[0],s=i[1];return a.set(o,s)}):kh(n)?(get(n)||re(19,n),n.forEach(function(i,o){return a.set(o,i)})):n!=null&&re(20,n)}),this},t.clear=function(){var n=this;Ao(function(){Z8(function(){for(var a=gv(n.keys()),i;!(i=a()).done;){var o=i.value;n.delete(o)}})})},t.replace=function(n){var a=this;return Ao(function(){for(var i=ent(n),o=new Map,s=!1,l=gv(a.data_.keys()),u;!(u=l()).done;){var f=u.value;if(!i.has(f)){var c=a.delete(f);if(c)s=!0;else{var v=a.data_.get(f);o.set(f,v)}}}for(var h=gv(i.entries()),d;!(d=h()).done;){var p=d.value,g=p[0],y=p[1],m=a.data_.has(g);if(a.set(g,y),a.data_.has(g)){var _=a.data_.get(g);o.set(g,_),m||(s=!0)}}if(!s)if(a.data_.size!==o.size)a.keysAtom_.reportChanged();else for(var S=a.data_.keys(),b=o.keys(),x=S.next(),w=b.next();!x.done;){if(x.value!==w.value){a.keysAtom_.reportChanged();break}x=S.next(),w=b.next()}a.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,a){return Cy(this,n)},t.intercept_=function(n){return Ay(this,n)},Bh(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Kf=Zf("ObservableMap",v7);function Ok(e){return e[Symbol.toStringTag]="MapIterator",EO(e)}function ent(e){if(kh(e)||Kf(e))return e;if(Array.isArray(e))return new Map(e);if(Qo(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return re(21,e)}var rnt={},h7=function(){function e(r,n,a){var i=this;n===void 0&&(n=hf),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[It]=rnt,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=a,Ka(Set)||re(22),this.enhancer_=function(o,s){return n(o,s,a)},kl(function(){i.atom_=V8(i.name_),r&&i.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;Ao(function(){Z8(function(){for(var a=gv(n.data_.values()),i;!(i=a()).done;){var o=i.value;n.delete(o)}})})},t.forEach=function(n,a){for(var i=gv(this),o;!(o=i()).done;){var s=o.value;n.call(a,s,s,this)}},t.add=function(n){var a=this;if(this.atom_,ma(this)){var i=_a(this,{type:Ys,object:this,newValue:n});if(!i)return this;n=i.newValue}if(!this.has(n)){Ao(function(){a.data_.add(a.enhancer_(n,void 0)),a.atom_.reportChanged()});var o=!1,s=ja(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:Ys,object:this,newValue:n}:null;s&&Wa(this,l)}return this},t.delete=function(n){var a=this;if(ma(this)){var i=_a(this,{type:xS,object:this,oldValue:n});if(!i)return!1}if(this.has(n)){var o=!1,s=ja(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:xS,object:this,oldValue:n}:null;return Ao(function(){a.atom_.reportChanged(),a.data_.delete(n)}),s&&Wa(this,l),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=this.values();return Rk({next:function(){var i=n.next(),o=i.value,s=i.done;return s?{value:void 0,done:s}:{value:[o,o],done:s}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,a=this.data_.values();return Rk({next:function(){var o=a.next(),s=o.value,l=o.done;return l?{value:void 0,done:l}:{value:n.dehanceValue_(s),done:l}}})},t.intersection=function(n){if(To(n)&&!mi(n))return n.intersection(this);var a=new Set(this);return a.intersection(n)},t.union=function(n){if(To(n)&&!mi(n))return n.union(this);var a=new Set(this);return a.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(To(n)&&!mi(n))return n.symmetricDifference(this);var a=new Set(this);return a.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(To(n)&&!mi(n))return n.isDisjointFrom(this);var a=new Set(this);return a.isDisjointFrom(n)},t.replace=function(n){var a=this;return mi(n)&&(n=new Set(n)),Ao(function(){Array.isArray(n)?(a.clear(),n.forEach(function(i){return a.add(i)})):To(n)?(a.clear(),n.forEach(function(i){return a.add(i)})):n!=null&&re("Cannot initialize set from "+n)}),this},t.observe_=function(n,a){return Cy(this,n)},t.intercept_=function(n){return Ay(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Bh(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),mi=Zf("ObservableSet",h7);function Rk(e){return e[Symbol.toStringTag]="SetIterator",EO(e)}var Ik=Object.create(null),Pk="remove",d7=function(){function e(r,n,a,i){n===void 0&&(n=new Map),i===void 0&&(i=qet),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=r,this.values_=n,this.name_=a,this.defaultAnnotation_=i,this.keysAtom_=new Nl("ObservableObject.keys"),this.isPlainObject_=Qo(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){var a,i,o=(a=(i=this.values_.get(n))!=null?i:this.materializeLazyComputed_(n))!=null?a:this.materializeLazyObservable_(n);return o.get()},t.materializeLazyComputed_=function(n){var a,i=(a=this.lazyComputedKeys_)==null?void 0:a.get(n);if(i){this.lazyComputedKeys_.delete(n),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);var o=i();return this.values_.set(n,o),o}},t.materializeLazyObservable_=function(n){var a,i=(a=this.lazyObservableKeys_)==null?void 0:a.get(n);if(i){this.lazyObservableKeys_.delete(n),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);var o=i();return this.values_.set(n,o),o}},t.setObservablePropValue_=function(n,a){var i,o,s=(i=(o=this.values_.get(n))!=null?o:this.materializeLazyComputed_(n))!=null?i:this.materializeLazyObservable_(n);if(s instanceof jn)return s.set(a),!0;if(ma(this)){var l=_a(this,{type:Ni,object:this.proxy_||this.target_,name:n,newValue:a});if(!l)return null;a=l.newValue}if(a=s.prepareNewValue_(a),a!==ft.UNCHANGED){var u=ja(this),f=!1,c=u||f?{type:Ni,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:n,newValue:a}:null;s.setNewValue_(a),u&&Wa(this,c)}return!0},t.get_=function(n){return ft.trackingDerivation&&!Bo(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,a,i){return i===void 0&&(i=!1),Bo(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,a):i?Reflect.set(this.target_,n,a):(this.target_[n]=a,!0):this.extend_(n,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(n){if(!ft.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(n);return a||(a=new Zu(n in this.target_,Tb,"ObservableObject.key?",!1),this.pendingKeys_.set(n,a)),a.get()},t.make_=function(n,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(n in this.target_)){var i;if((i=this.target_[Ti])!=null&&i[n])return;re(1,a.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==xb;){var s=pS(o,n);if(s){var l=a.make_(this,n,s,o);if(l===0)return;if(l===1)break}o=Object.getPrototypeOf(o)}kk(this,a,n)}},t.extend_=function(n,a,i,o){if(o===void 0&&(o=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(n,a,o);var s=i.extend_(this,n,a,o);return s&&kk(this,i,n),s},t.defineProperty_=function(n,a,i){i===void 0&&(i=!1),this.keysAtom_;try{ba();var o=this.delete_(n);if(!o)return o;if(ma(this)){var s=_a(this,{object:this.proxy_||this.target_,name:n,type:Ys,newValue:a.value});if(!s)return null;var l=s.newValue;a.value!==l&&(a=vf({},a,{value:l}))}if(i){if(!Reflect.defineProperty(this.target_,n,a))return!1}else Ii(this.target_,n,a);this.notifyPropertyAddition_(n,a.value)}finally{xa()}return!0},t.defineObservableProperty_=function(n,a,i,o){o===void 0&&(o=!1),this.keysAtom_;try{ba();var s=this.delete_(n);if(!s)return s;if(ma(this)){var l=_a(this,{object:this.proxy_||this.target_,name:n,type:Ys,newValue:a});if(!l)return null;a=l.newValue}var u=Nk(n),f={configurable:ft.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,n,f))return!1}else Ii(this.target_,n,f);var c=new Zu(a,i,"ObservableObject.key",!1);this.values_.set(n,c),this.notifyPropertyAddition_(n,c.value_)}finally{xa()}return!0},t.defineComputedProperty_=function(n,a,i){i===void 0&&(i=!1),this.keysAtom_;try{ba();var o=this.delete_(n);if(!o)return o;if(ma(this)){var s=_a(this,{object:this.proxy_||this.target_,name:n,type:Ys,newValue:void 0});if(!s)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var l=Nk(n),u={configurable:ft.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(i){if(!Reflect.defineProperty(this.target_,n,u))return!1}else Ii(this.target_,n,u);this.values_.set(n,new jn(a)),this.notifyPropertyAddition_(n,void 0)}finally{xa()}return!0},t.delete_=function(n,a){if(a===void 0&&(a=!1),this.keysAtom_,!Bo(this.target_,n))return!0;if(ma(this)){var i=_a(this,{object:this.proxy_||this.target_,name:n,type:Pk});if(!i)return null}try{var o;ba();var s=ja(this),l=!1,u=this.values_.get(n),f=void 0;if(!u&&(s||l)){var c;f=(c=pS(this.target_,n))==null?void 0:c.value}if(a){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(u&&(this.values_.delete(n),u instanceof Zu&&(f=u.value_),e7(u)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(o=o.get(n))==null||o.set(n in this.target_),s||l){var v={type:Pk,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:n};s&&Wa(this,v)}}finally{xa()}return!0},t.observe_=function(n,a){return Cy(this,n)},t.intercept_=function(n){return Ay(this,n)},t.notifyPropertyAddition_=function(n,a){var i,o=ja(this),s=!1;if(o||s){var l=o||s?{type:Ys,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:a}:null;o&&Wa(this,l)}(i=this.pendingKeys_)==null||(i=i.get(n))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),nh(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Qf(e,t){var r;if(Bo(e,It))return e;var n=(r=t==null?void 0:t.name)!=null?r:"ObservableObject",a=new d7(e,new Map,String(n),srt(t));return by(e,It,a),e}var nnt=Zf("ObservableObjectAdministration",d7);function Nk(e){return Ik[e]||(Ik[e]={get:function(){return this[It].getObservablePropValue_(e)},set:function(r){return this[It].setObservablePropValue_(e,r)}})}function Lb(e){return wb(e)?nnt(e[It]):!1}function kk(e,t,r){var n;(n=e.target_[Ti])==null||delete n[r]}var ant=g7(0),int=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Rw=0,p7=function(){};function ont(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}ont(p7,Array.prototype);var LO=function(e){function t(n,a,i,o){var s;return i===void 0&&(i="ObservableArray"),o===void 0&&(o=!1),s=e.call(this)||this,kl(function(){var l=new DO(i,a,o,!0);l.proxy_=s,N8(s,It,l),n&&n.length&&s.spliceWithArray(0,0,n),int&&Object.defineProperty(s,"0",ant)}),s}xO(t,e);var r=t.prototype;return r.concat=function(){this[It].atom_.reportObserved();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return Array.prototype.concat.apply(this.slice(),i.map(function(s){return Db(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,a=0;return EO({next:function(){return a<n.length?{value:n[a++],done:!1}:{done:!0,value:void 0}}})},Bh(t,[{key:"length",get:function(){return this[It].getArrayLength_()},set:function(a){this[It].setArrayLength_(a)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(p7);Object.entries(bS).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&by(LO.prototype,t,r)});function g7(e){return{enumerable:!1,configurable:!0,get:function(){return this[It].get_(e)},set:function(r){this[It].set_(e,r)}}}function snt(e){Ii(LO.prototype,""+e,g7(e))}function y7(e){if(e>Rw){for(var t=Rw;t<e+100;t++)snt(t);Rw=e}}y7(1e3);function lnt(e,t,r){return new LO(e,t,r)}function wS(e,t){if(typeof e=="object"&&e!==null){if(Db(e))return t!==void 0&&re(23),e[It].atom_;if(mi(e))return e.atom_;if(Kf(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||re(25,t,zM(e)),r}if(Lb(e)){var n,a;if(!t)return re(26);var i=e[It],o=(n=(a=i.values_.get(t))!=null?a:i.materializeLazyComputed_(t))!=null?n:i.materializeLazyObservable_(t);return o||re(27,t,zM(e)),o}if(wO(e)||Mb(e)||SS(e))return e}else if(Ka(e)&&SS(e[It]))return e[It];re(28)}function unt(e,t){if(e||re(29),wO(e)||Mb(e)||SS(e)||Kf(e)||mi(e))return e;if(e[It])return e[It];re(24,e)}function zM(e,t){var r;if(t!==void 0)r=wS(e,t);else{if(ah(e))return e.name;Lb(e)||Kf(e)||mi(e)?r=unt(e):r=wS(e)}return r.name_}function kl(e){var t=qf(),r=AO(!0);ba();try{return e()}finally{xa(),CO(r),zo(t)}}var Bk=xb.toString;function m7(e,t,r){return r===void 0&&(r=-1),VM(e,t,r)}function VM(e,t,r,n,a){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var o=Bk.call(e);if(o!==Bk.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=zk(e),t=zk(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(Ka(l)&&l instanceof l&&Ka(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],a=a||[];for(var f=n.length;f--;)if(n[f]===e)return a[f]===t;if(n.push(e),a.push(t),s){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!VM(e[f],t[f],r-1,n,a))return!1}else{var c=Object.keys(e),v=c.length;if(Object.keys(t).length!==v)return!1;for(var h=0;h<v;h++){var d=c[h];if(!(Bo(t,d)&&VM(e[d],t[d],r-1,n,a)))return!1}}return n.pop(),a.pop(),!0}function zk(e){return Db(e)?e.slice():kh(e)||Kf(e)||To(e)||mi(e)?Array.from(e.entries()):e}var Vk,fnt=bb(),cnt=((Vk=fnt.Iterator)==null?void 0:Vk.prototype)||{};function EO(e){return e[Symbol.iterator]=vnt,Object.assign(Object.create(cnt),e)}function vnt(){return this}["Symbol","Map","Set"].forEach(function(e){var t=bb();typeof t[e]>"u"&&re("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Art,extras:{getDebugName:zM},$mobx:It});if(!k.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Xrt)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function hnt(e){e()}function dnt(e){e||(e=hnt),Vrt({reactionScheduler:e})}function pnt(e){return Grt(e)}var gnt=1e4,ynt=1e4,mnt=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=gnt),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var a=Date.now();r.registrations.forEach(function(i,o){a-i.registeredAt>=n&&(r.finalize(i.value),r.registrations.delete(o))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ynt))}}),e}(),_nt=typeof FinalizationRegistry<"u"?FinalizationRegistry:mnt,GM=new _nt(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),_7={exports:{}},S7={};/**
|
|
52
|
+
* @license React
|
|
53
|
+
* use-sync-external-store-shim.production.js
|
|
54
|
+
*
|
|
55
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the MIT license found in the
|
|
58
|
+
* LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var oh=k;function Snt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bnt=typeof Object.is=="function"?Object.is:Snt,xnt=oh.useState,wnt=oh.useEffect,Tnt=oh.useLayoutEffect,Ant=oh.useDebugValue;function Cnt(e,t){var r=t(),n=xnt({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];return Tnt(function(){a.value=r,a.getSnapshot=t,Iw(a)&&i({inst:a})},[e,r,t]),wnt(function(){return Iw(a)&&i({inst:a}),e(function(){Iw(a)&&i({inst:a})})},[e]),Ant(r),r}function Iw(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bnt(e,r)}catch{return!0}}function Mnt(e,t){return t()}var Dnt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Mnt:Cnt;S7.useSyncExternalStore=oh.useSyncExternalStore!==void 0?oh.useSyncExternalStore:Dnt;_7.exports=S7;var b7=_7.exports;function Gk(e){e.reaction=new Jo("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Lnt(e,t){t===void 0&&(t="observed");var r=V_.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(s){return GM.unregister(n),n.onStoreChange=s,n.reaction||(Gk(n),n.stateVersion=Symbol()),function(){var l;n.onStoreChange=null,(l=n.reaction)===null||l===void 0||l.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var a=r.current;a.reaction||(Gk(a),GM.register(r,a,a)),V_.useDebugValue(a.reaction,pnt),b7.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot);var i,o;if(a.reaction.track(function(){try{i=e()}catch(s){o=s}}),o)throw o;return i}var Pw,Nw,x7=typeof Symbol=="function"&&Symbol.for,Ent=(Nw=(Pw=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Pw===void 0?void 0:Pw.configurable)!==null&&Nw!==void 0?Nw:!1,Hk=x7?Symbol.for("react.forward_ref"):typeof k.forwardRef=="function"&&k.forwardRef(function(e){return null}).$$typeof,Uk=x7?Symbol.for("react.memo"):typeof k.memo=="function"&&k.memo(function(e){return null}).$$typeof;function My(e,t){var r;if(Uk&&e.$$typeof===Uk)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,a=e,i=e.displayName||e.name;if(Hk&&e.$$typeof===Hk&&(n=!0,a=e.render,typeof a!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(s,l){return Lnt(function(){return a(s,l)},i)};return o.displayName=e.displayName,Ent&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes),n&&(o=k.forwardRef(o)),o=k.memo(o),Rnt(e,o),o}var Ont={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Rnt(e,t){Object.keys(e).forEach(function(r){Ont[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var kw;dnt(Ff.unstable_batchedUpdates);kw=GM.finalizeAllImmediately;var Bw={};const kt=e=>typeof e=="string",md=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},Fk=e=>e==null?"":""+e,Int=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Pnt=/###/g,Yk=e=>e&&e.indexOf("###")>-1?e.replace(Pnt,"."):e,jk=e=>!e||kt(e),Np=(e,t,r)=>{const n=kt(t)?t.split("."):t;let a=0;for(;a<n.length-1;){if(jk(e))return{};const i=Yk(n[a]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return jk(e)?{}:{obj:e,k:Yk(n[a])}},Wk=(e,t,r)=>{const{obj:n,k:a}=Np(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let i=t[t.length-1],o=t.slice(0,t.length-1),s=Np(e,o,Object);for(;s.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=Np(e,o,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Nnt=(e,t,r,n)=>{const{obj:a,k:i}=Np(e,t,Object);a[i]=a[i]||[],a[i].push(r)},TS=(e,t)=>{const{obj:r,k:n}=Np(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},knt=(e,t,r)=>{const n=TS(e,r);return n!==void 0?n:TS(t,r)},w7=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?kt(e[n])||e[n]instanceof String||kt(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):w7(e[n],t[n],r):e[n]=t[n]);return e},jl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Bnt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const znt=e=>kt(e)?e.replace(/[&<>"'\/]/g,t=>Bnt[t]):e;class Vnt{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Gnt=[" ",",","?","!",";"],Hnt=new Vnt(20),Unt=(e,t,r)=>{t=t||"",r=r||"";const n=Gnt.filter(o=>t.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const a=Hnt.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!a.test(e);if(!i){const o=e.indexOf(r);o>0&&!a.test(e.substring(0,o))&&(i=!0)}return i},HM=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let a=e;for(let i=0;i<n.length;){if(!a||typeof a!="object")return;let o,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],o=a[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;i+=l-i+1;break}a=o}return a},yg=e=>e==null?void 0:e.replace(/_/g,"-"),Fnt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class AS{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||Fnt,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(kt(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new AS(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new AS(this.logger,t)}}var Ai=new AS;class Eb{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a.apply(a,[t,...r])})}}class $k extends Eb{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n,a={}){var u,f;const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):kt(n)&&i?s.push(...n.split(i)):s.push(n)));const l=TS(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!o||!kt(n)?l:HM((f=(u=this.data)==null?void 0:u[t])==null?void 0:f[r],n,i)}addResource(t,r,n,a,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),a=r,r=s[1]),this.addNamespaces(r),Wk(this.data,s,a),i.silent||this.emit("added",t,r,n,a)}addResources(t,r,n,a={silent:!1}){for(const i in n)(kt(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,i,o={silent:!1,skipCopy:!1}){let s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),a=n,n=r,r=s[1]),this.addNamespaces(r);let l=TS(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?w7(l,n,i):l={...l,...n},Wk(this.data,s,l),o.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var T7={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(i=>{var o;t=((o=this.processors[i])==null?void 0:o.process(t,r,n,a))??t}),t}};const A7=Symbol("i18next/PATH_KEY");function Ynt(){const e=[],t=Object.create(null);let r;return t.get=(n,a)=>{var i;return(i=r==null?void 0:r.revoke)==null||i.call(r),a===A7?e:(e.push(a),r=Proxy.revocable(n,t),r.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Rv(e,t){const{[A7]:r}=e(Ynt()),n=(t==null?void 0:t.keySeparator)??".",a=(t==null?void 0:t.nsSeparator)??":";if(r.length>1&&a){const i=t==null?void 0:t.ns,o=Array.isArray(i)?i:null;if(o&&o.length>1&&o.slice(1).includes(r[0]))return`${r[0]}${a}${r.slice(1).join(n)}`}return r.join(n)}const Xk={},zw=e=>!kt(e)&&typeof e!="boolean"&&typeof e!="number";class CS extends Eb{constructor(t,r={}){super(),Int(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ai.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const n={...r};if(t==null)return!1;const a=this.resolve(t,n);if((a==null?void 0:a.res)===void 0)return!1;const i=zw(a.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Unt(t,n,a);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:kt(i)?[i]:i};const u=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(a)}return{key:t,namespaces:kt(i)?[i]:i}}translate(t,r,n){let a=typeof r=="object"?{...r}:r;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=Rv(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map(L=>typeof L=="function"?Rv(L,{...this.options,...a}):String(L));const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],a),u=l[l.length-1];let f=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const c=a.lng||this.language,v=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return v?i?{res:`${u}${f}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${f}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:s;const h=this.resolve(t,a);let d=h==null?void 0:h.res;const p=(h==null?void 0:h.usedKey)||s,g=(h==null?void 0:h.exactUsedKey)||s,y=["[object Number]","[object Function]","[object RegExp]"],m=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,S=a.count!==void 0&&!kt(a.count),b=CS.hasDefaultValue(a),x=S?this.pluralResolver.getSuffix(c,a.count,a):"",w=a.ordinal&&S?this.pluralResolver.getSuffix(c,a.count,{ordinal:!1}):"",A=S&&!a.ordinal&&a.count===0,T=A&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${x}`]||a[`defaultValue${w}`]||a.defaultValue;let C=d;_&&!d&&b&&(C=T);const M=zw(C),E=Object.prototype.toString.apply(C);if(_&&C&&M&&y.indexOf(E)<0&&!(kt(m)&&Array.isArray(C))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,C,{...a,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(h.res=L,h.usedParams=this.getUsedParamsDetails(a),h):L}if(o){const L=Array.isArray(C),R=L?[]:{},I=L?g:p;for(const O in C)if(Object.prototype.hasOwnProperty.call(C,O)){const N=`${I}${o}${O}`;b&&!d?R[O]=this.translate(N,{...a,defaultValue:zw(T)?T[O]:void 0,joinArrays:!1,ns:l}):R[O]=this.translate(N,{...a,joinArrays:!1,ns:l}),R[O]===N&&(R[O]=C[O])}d=R}}else if(_&&kt(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,t,a,n));else{let L=!1,R=!1;!this.isValidLookup(d)&&b&&(L=!0,d=T),this.isValidLookup(d)||(R=!0,d=s);const O=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:d,N=b&&T!==d&&this.options.updateMissing;if(R||L||N){if(this.logger.log(N?"updateKey":"missingKey",c,u,s,N?T:d),o){const H=this.resolve(s,{...a,keySeparator:!1});H&&H.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let P=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let H=0;H<B.length;H++)P.push(B[H]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(a.lng||this.language):P.push(a.lng||this.language);const z=(H,F,$)=>{var tt;const j=b&&$!==d?$:O;this.options.missingKeyHandler?this.options.missingKeyHandler(H,u,F,j,N,a):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(H,u,F,j,N,a),this.emit("missingKey",H,u,F,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?P.forEach(H=>{const F=this.pluralResolver.getSuffixes(H,a);A&&a[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach($=>{z([H],s+$,a[`defaultValue${$}`]||T)})}):z(P,s,T))}d=this.extendTranslation(d,t,a,h,n),R&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${u}${f}${s}`),(R||L)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${f}${s}`:s,L?d:void 0,a))}return i?(h.res=d,h.usedParams=this.getUsedParamsDetails(a),h):d}extendTranslation(t,r,n,a,i){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=kt(t)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let v=n.replace&&!kt(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,n.lng||this.language||a.usedLng,n),f){const h=t.match(this.interpolator.nestingRegexp),d=h&&h.length;c<d&&(n.nest=!1)}!n.lng&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(i==null?void 0:i[0])===h[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`),null):this.translate(...h,r),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,s=kt(o)?[o]:o;return t!=null&&(s!=null&&s.length)&&n.applyPostProcessor!==!1&&(t=T7.handle(s,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,a,i,o,s;return kt(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?Rv(l,{...this.options,...r}):l)),t.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),f=u.key;a=f;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const v=r.count!==void 0&&!kt(r.count),h=v&&!r.ordinal&&r.count===0,d=r.context!==void 0&&(kt(r.context)||typeof r.context=="number")&&r.context!=="",p=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);c.forEach(g=>{var y,m;this.isValidLookup(n)||(s=g,!Xk[`${p[0]}-${g}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((m=this.utils)!=null&&m.hasLoadedNamespace(s))&&(Xk[`${p[0]}-${g}`]=!0,this.logger.warn(`key "${a}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(_=>{var x;if(this.isValidLookup(n))return;o=_;const S=[f];if((x=this.i18nFormat)!=null&&x.addLookupKeys)this.i18nFormat.addLookupKeys(S,f,_,g,r);else{let w;v&&(w=this.pluralResolver.getSuffix(_,r.count,r));const A=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(r.ordinal&&w.indexOf(T)===0&&S.push(f+w.replace(T,this.options.pluralSeparator)),S.push(f+w),h&&S.push(f+A)),d){const C=`${f}${this.options.contextSeparator||"_"}${r.context}`;S.push(C),v&&(r.ordinal&&w.indexOf(T)===0&&S.push(C+w.replace(T,this.options.pluralSeparator)),S.push(C+w),h&&S.push(C+A))}}let b;for(;b=S.pop();)this.isValidLookup(n)||(i=b,n=this.getResource(_,g,b,r))}))})}),{res:n,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,a={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!kt(t.replace);let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const i of r)delete a[i]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class Zk{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ai.create("languageUtils")}getScriptPartFromCode(t){if(t=yg(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=yg(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(kt(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getScriptPartFromCode(n);if(this.isSupportedCode(a))return r=a;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),kt(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),a=[],i=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return kt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):kt(t)&&i(this.formatLanguageCode(t)),n.forEach(o=>{a.indexOf(o)<0&&i(this.formatLanguageCode(o))}),a}}const qk={zero:0,one:1,two:2,few:3,many:4,other:5},Kk={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class jnt{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=Ai.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const n=yg(t==="dev"?"en":t),a=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Kk;if(!t.match(/-|_/))return Kk;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,r)}return this.pluralRulesCache[i]=o,o}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((a,i)=>qk[a]-qk[i]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,r,n={}){const a=this.getRule(t,n);return a?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const Qk=(e,t,r,n=".",a=!0)=>{let i=knt(e,t,r);return!i&&a&&kt(r)&&(i=HM(e,r,n),i===void 0&&(i=HM(t,r,n))),i},Vw=e=>e.replace(/\$/g,"$$$$");class Jk{constructor(t={}){var r;this.logger=Ai.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:c,nestingPrefix:v,nestingPrefixEscaped:h,nestingSuffix:d,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=t.interpolation;this.escape=r!==void 0?r:znt,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?jl(i):o||"{{",this.suffix=s?jl(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=v?jl(v):h||jl("$t("),this.nestingSuffix=d?jl(d):p||jl(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,a){var h;let i,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const m=Qk(r,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,n,{...a,...r,interpolationkey:d}):m}const p=d.split(this.formatSeparator),g=p.shift().trim(),y=p.join(this.formatSeparator).trim();return this.format(Qk(r,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),y,n,{...a,...r,interpolationkey:g})};this.resetRegExp();const f=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((h=a==null?void 0:a.interpolation)==null?void 0:h.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>Vw(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?Vw(this.escape(d)):Vw(d)}].forEach(d=>{for(s=0;i=d.regex.exec(t);){const p=i[1].trim();if(o=u(p),o===void 0)if(typeof f=="function"){const y=f(t,i,a);o=kt(y)?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))o="";else if(c){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),o="";else!kt(o)&&!this.useRawValueToEscape&&(o=Fk(o));const g=d.safeValue(o);if(t=t.replace(i[0],g),c?(d.regex.lastIndex+=o.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r,n={}){let a,i,o;const s=(l,u)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const c=l.split(new RegExp(`${jl(f)}[ ]*{`));let v=`{${c[1]}`;l=c[0],v=this.interpolate(v,o);const h=v.match(/'/g),d=v.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!d||((d==null?void 0:d.length)??0)%2!==0)&&(v=v.replace(/'/g,'"'));try{o=JSON.parse(v),u&&(o={...u,...o})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${f}${v}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];o={...n},o=o.replace&&!kt(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(u!==-1&&(l=a[1].slice(u).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),a[1]=a[1].slice(0,u)),i=r(s.call(this,a[1].trim(),o),o),i&&a[0]===t&&!kt(i))return i;kt(i)||(i=Fk(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((f,c)=>this.format(f,c,n.lng,{...n,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const Wnt=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=s.trim();r[f]||(r[f]=u),u==="false"&&(r[f]=!1),u==="true"&&(r[f]=!0),isNaN(u)||(r[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},tB=e=>{const t={};return(r,n,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=n+JSON.stringify(i);let s=t[o];return s||(s=e(yg(n),a),t[o]=s),s(r)}},$nt=e=>(t,r,n)=>e(yg(r),n)(t);class Xnt{constructor(t={}){this.logger=Ai.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?tB:$nt;this.formats={number:n((a,i)=>{const o=new Intl.NumberFormat(a,{...i});return s=>o.format(s)}),currency:n((a,i)=>{const o=new Intl.NumberFormat(a,{...i,style:"currency"});return s=>o.format(s)}),datetime:n((a,i)=>{const o=new Intl.DateTimeFormat(a,{...i});return s=>o.format(s)}),relativetime:n((a,i)=>{const o=new Intl.RelativeTimeFormat(a,{...i});return s=>o.format(s,i.range||"day")}),list:n((a,i)=>{const o=new Intl.ListFormat(a,{...i});return s=>o.format(s)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=tB(r)}format(t,r,n,a={}){const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var c;const{formatName:u,formatOptions:f}=Wnt(l);if(this.formats[u]){let v=s;try{const h=((c=a==null?void 0:a.formatParams)==null?void 0:c[a.interpolationkey])||{},d=h.locale||h.lng||a.locale||a.lng||n;v=this.formats[u](s,d,{...f,...a,...h})}catch(h){this.logger.warn(h)}return v}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Znt=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qnt extends Eb{constructor(t,r,n,a={}){var i,o;super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=Ai.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(o=(i=this.backend)==null?void 0:i.init)==null||o.call(i,n,a.backend,a)}queueLoad(t,r,n,a){const i={},o={},s={},l={};return t.forEach(u=>{let f=!0;r.forEach(c=>{const v=`${u}|${c}`;!n.reload&&this.store.hasResourceBundle(u,c)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?o[v]===void 0&&(o[v]=!0):(this.state[v]=1,f=!1,o[v]===void 0&&(o[v]=!0),i[v]===void 0&&(i[v]=!0),l[c]===void 0&&(l[c]=!0)))}),f||(s[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const a=t.split("|"),i=a[0],o=a[1];r&&this.emit("failedLoading",i,o,r),!r&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Nnt(l.loaded,[i],o),Znt(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const f=l.loaded[u];f.length&&f.forEach(c=>{s[u][c]===void 0&&(s[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,a=0,i=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:i,callback:o});return}this.readingCalls++;const s=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&f&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,i*2,o)},i);return}o(u,f)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(t,r);u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,r,s)}prepareLoading(t,r,n={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();kt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),kt(r)&&(r=[r]);const i=this.queueLoad(t,r,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){const n=t.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${r}loading namespace ${i} for language ${a} failed`,o),!o&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${a}`,s),this.loaded(t,o,s)})}saveMissing(t,r,n,a,i,o={},s=()=>{}){var l,u,f,c,v;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((c=(f=this.services)==null?void 0:f.utils)!=null&&c.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((v=this.backend)!=null&&v.create){const h={...o,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let p;d.length===5?p=d(t,r,n,a,h):p=d(t,r,n,a),p&&typeof p.then=="function"?p.then(g=>s(null,g)).catch(s):s(null,p)}catch(p){s(p)}else d(t,r,n,a,s,h)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const Gw=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),kt(e[1])&&(t.defaultValue=e[1]),kt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),eB=e=>{var t,r;return kt(e.ns)&&(e.ns=[e.ns]),kt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),kt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},mm=()=>{},Knt=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},C7="__i18next_supportNoticeShown",Qnt=()=>!!(typeof globalThis<"u"&&globalThis[C7]||typeof process<"u"&&Bw&&Bw.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&Bw),Jnt=()=>{typeof globalThis<"u"&&(globalThis[C7]=!0)},tat=e=>{var t,r,n,a,i,o,s,l,u,f,c,v,h;return!!(((n=(r=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:r.name)==null?void 0:n.indexOf("Locize"))>0||((s=(o=(i=(a=e==null?void 0:e.modules)==null?void 0:a.backend)==null?void 0:i.constructor)==null?void 0:o.name)==null?void 0:s.indexOf("Locize"))>0||(u=(l=e==null?void 0:e.options)==null?void 0:l.backend)!=null&&u.backends&&e.options.backend.backends.some(d=>{var p,g,y;return((p=d==null?void 0:d.name)==null?void 0:p.indexOf("Locize"))>0||((y=(g=d==null?void 0:d.constructor)==null?void 0:g.name)==null?void 0:y.indexOf("Locize"))>0})||(c=(f=e==null?void 0:e.options)==null?void 0:f.backend)!=null&&c.projectId||(h=(v=e==null?void 0:e.options)==null?void 0:v.backend)!=null&&h.backendOptions&&e.options.backend.backendOptions.some(d=>d==null?void 0:d.projectId))};class kp extends Eb{constructor(t={},r){if(super(),this.options=eB(t),this.services={},this.logger=Ai,this.modules={external:[]},Knt(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(kt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=Gw();this.options={...n,...this.options,...eB(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!tat(this)&&!Qnt()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Jnt());const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Ai.init(a(this.modules.logger),this.options):Ai.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Xnt;const f=new Zk(this.options);this.store=new $k(this.options.resources,this.options);const c=this.services;c.logger=Ai,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new jnt(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=a(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Jk(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new qnt(a(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.languageDetector&&(c.languageDetector=a(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=a(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new CS(this.services,this.options),this.translator.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=mm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...f)=>this.store[u](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...f)=>(this.store[u](...f),this)});const s=md(),l=()=>{const u=(f,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(c),r(f,c)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,r=mm){var i,o;let n=r;const a=kt(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(o=(i=this.options.preload)==null?void 0:i.forEach)==null||o.call(i,u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(t,r,n){const a=md();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=mm),this.services.backendConnector.reload(t,r,i=>{a.resolve(),n(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&T7.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;const n=md();this.emit("languageChanging",t);const a=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...u)=>this.t(...u)),r&&r(s,(...u)=>this.t(...u))},o=s=>{var f,c;!t&&!s&&this.services.languageDetector&&(s=[]);const l=kt(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(kt(s)?[s]:s);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(c=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||c.call(f,u)),this.loadResources(u,v=>{i(v,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),n}getFixedT(t,r,n){const a=(i,o,...s)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([i,o].concat(s)):l={...o},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||a.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=Rv(l.keyPrefix,u));const f=this.options.keySeparator||".";let c;return l.keyPrefix&&Array.isArray(i)?c=i.map(v=>(typeof v=="function"&&(v=Rv(v,u)),`${l.keyPrefix}${f}${v}`)):(typeof i=="function"&&(i=Rv(i,u)),c=l.keyPrefix?`${l.keyPrefix}${f}${i}`:i),this.t(c,l)};return kt(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(...t){var r;return(r=this.translator)==null?void 0:r.translate(...t)}exists(...t){var r;return(r=this.translator)==null?void 0:r.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(r.precheck){const s=r.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,t)&&(!a||o(i,t)))}loadNamespaces(t,r){const n=md();return this.options.ns?(kt(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=md();kt(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=a.concat(i),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(t){var a,i;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new Zk(Gw());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){const n=new kp(t,r);return n.createInstance=kp.createInstance,n}cloneInstance(t={},r=mm){const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new kp(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((f,c)=>(f[c]={...l[u][c]},f),l[u]),l),{});i.store=new $k(s,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...Gw().interpolation,...this.options.interpolation,...t.interpolation},u={...a,interpolation:l};i.services.interpolator=new Jk(u)}return i.translator=new CS(i.services,a),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(a,r),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ur=kp.createInstance();Ur.createInstance;Ur.dir;Ur.init;Ur.loadResources;Ur.reloadResources;Ur.use;Ur.changeLanguage;Ur.getFixedT;Ur.t;Ur.exists;Ur.setDefaultNamespace;Ur.hasLoadedNamespace;Ur.loadNamespaces;Ur.loadLanguages;const eat=(e,t,r,n)=>{var i,o,s,l;const a=[r,{code:t,...n||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);pf(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},rB={},UM=(e,t,r,n)=>{pf(r)&&rB[r]||(pf(r)&&(rB[r]=new Date),eat(e,t,r,n))},M7=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},FM=(e,t,r)=>{e.loadNamespaces(t,M7(e,r))},nB=(e,t,r,n)=>{if(pf(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return FM(e,r,n);r.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,M7(e,n))},rat=(e,t,r={})=>!t.languages||!t.languages.length?(UM(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}),pf=e=>typeof e=="string",nat=e=>typeof e=="object"&&e!==null,aat=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,iat={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},oat=e=>iat[e],sat=e=>e.replace(aat,oat);let YM={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:sat,transDefaultProps:void 0};const lat=(e={})=>{YM={...YM,...e}},uat=()=>YM;let D7;const fat=e=>{D7=e},cat=()=>D7,vat={type:"3rdParty",init(e){lat(e.options.react),fat(e)}},hat=k.createContext();class dat{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const pat=(e,t)=>{if(pf(t))return t;if(nat(t)&&pf(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const r=e[e.length-1];return typeof r=="function"?"":r}return e},gat={t:pat,ready:!1},yat=()=>()=>{},Ob=(e,t={})=>{var T,C,M;const{i18n:r}=t,{i18n:n,defaultNS:a}=k.useContext(hat)||{},i=r||n||cat();i&&!i.reportNamespaces&&(i.reportNamespaces=new dat),i||UM(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=k.useMemo(()=>{var E;return{...uat(),...(E=i==null?void 0:i.options)==null?void 0:E.react,...t}},[i,t]),{useSuspense:s,keyPrefix:l}=o,u=a||((T=i==null?void 0:i.options)==null?void 0:T.defaultNS),f=pf(u)?[u]:u||["translation"],c=k.useMemo(()=>f,f);(M=(C=i==null?void 0:i.reportNamespaces)==null?void 0:C.addUsedNamespaces)==null||M.call(C,c);const v=k.useRef(0),h=k.useCallback(E=>{if(!i)return yat;const{bindI18n:L,bindI18nStore:R}=o,I=()=>{v.current+=1,E()};return L&&i.on(L,I),R&&i.store.on(R,I),()=>{L&&L.split(" ").forEach(O=>i.off(O,I)),R&&R.split(" ").forEach(O=>i.store.off(O,I))}},[i,o]),d=k.useRef(),p=k.useCallback(()=>{if(!i)return gat;const E=!!(i.isInitialized||i.initializedStoreOnce)&&c.every(P=>rat(P,i,o)),L=t.lng||i.language,R=v.current,I=d.current;if(I&&I.ready===E&&I.lng===L&&I.keyPrefix===l&&I.revision===R)return I;const N={t:i.getFixedT(L,o.nsMode==="fallback"?c:c[0],l),ready:E,lng:L,keyPrefix:l,revision:R};return d.current=N,N},[i,c,l,o,t.lng]),[g,y]=k.useState(0),{t:m,ready:_}=b7.useSyncExternalStore(h,p,p);k.useEffect(()=>{if(i&&!_&&!s){const E=()=>y(L=>L+1);t.lng?nB(i,t.lng,c,E):FM(i,c,E)}},[i,t.lng,c,_,s,g]);const S=i||{},b=k.useRef(null),x=k.useRef(),w=E=>{const L=Object.getOwnPropertyDescriptors(E);L.__original&&delete L.__original;const R=Object.create(Object.getPrototypeOf(E),L);if(!Object.prototype.hasOwnProperty.call(R,"__original"))try{Object.defineProperty(R,"__original",{value:E,writable:!1,enumerable:!1,configurable:!1})}catch{}return R},A=k.useMemo(()=>{const E=S,L=E==null?void 0:E.language;let R=E;E&&(b.current&&b.current.__original===E?x.current!==L?(R=w(E),b.current=R,x.current=L):R=b.current:(R=w(E),b.current=R,x.current=L));const I=!_&&!s?(...N)=>(UM(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),m(...N)):m,O=[I,R,_];return O.t=I,O.i18n=R,O.ready=_,O},[m,S,_,S.resolvedLanguage,S.language,S.languages]);if(i&&s&&!_)throw new Promise(E=>{const L=()=>E();t.lng?nB(i,t.lng,c,L):FM(i,c,L)});return A};var jM={exports:{}},WM={exports:{}},$M={exports:{}},XM={exports:{}},ZM={exports:{}};(function(e,t){var r=Object.prototype.toString;t=function(n){return r.call(n)},e.exports=t})(ZM,ZM.exports);var Jf=ZM.exports;(function(e,t){var r=Jf;t=function(n){return r(n)==="[object Number]"},e.exports=t})(XM,XM.exports);var OO=XM.exports,qM={exports:{}};(function(e,t){var r=Jf;t=function(n){var a=r(n);return a==="[object Function]"||a==="[object GeneratorFunction]"||a==="[object AsyncFunction]"},e.exports=t})(qM,qM.exports);var zh=qM.exports;(function(e,t){var r=OO,n=zh,a=Math.pow(2,53)-1;t=function(i){if(!i)return!1;var o=i.length;return r(o)&&o>=0&&o<=a&&!n(i)},e.exports=t})($M,$M.exports);var Rb=$M.exports,KM={exports:{}},QM={exports:{}};(function(e,t){var r=Object.prototype.hasOwnProperty;t=function(n,a){return r.call(n,a)},e.exports=t})(QM,QM.exports);var RO=QM.exports;(function(e,t){var r=RO;Object.keys?t=Object.keys:t=function(n){var a=[];for(var i in n)r(n,i)&&a.push(i);return a},e.exports=t})(KM,KM.exports);var tc=KM.exports,JM={exports:{}},tD={exports:{}};(function(e,t){t=function(r){return r===void 0},e.exports=t})(tD,tD.exports);var Ib=tD.exports;(function(e,t){var r=Ib;t=function(n,a,i){if(r(a))return n;switch(i??3){case 1:return function(o){return n.call(a,o)};case 3:return function(o,s,l){return n.call(a,o,s,l)};case 4:return function(o,s,l,u){return n.call(a,o,s,l,u)}}return function(){return n.apply(a,arguments)}},e.exports=t})(JM,JM.exports);var L7=JM.exports;(function(e,t){var r=Rb,n=tc,a=L7;t=function(i,o,s){o=a(o,s);var l,u;if(r(i))for(l=0,u=i.length;l<u;l++)o(i[l],l,i);else{var f=n(i);for(l=0,u=f.length;l<u;l++)o(i[f[l]],f[l],i)}return i},e.exports=t})(WM,WM.exports);var Dy=WM.exports,eD={exports:{}};(function(e,t){var r=Jf;t=function(n){return r(n)==="[object String]"},e.exports=t})(eD,eD.exports);var Pb=eD.exports,rD={exports:{}};(function(e,t){var r=Jf;Array.isArray?t=Array.isArray:t=function(n){return r(n)==="[object Array]"},e.exports=t})(rD,rD.exports);var ec=rD.exports,nD={exports:{}};(function(e,t){t=function(r){var n=typeof r;return!!r&&(n==="function"||n==="object")},e.exports=t})(nD,nD.exports);var rc=nD.exports;(function(e,t){var r=Dy,n=Pb,a=OO,i=ec,o=rc;t=function(){var s=[];return r(arguments,function(l){if(l){if(n(l)||a(l))return s.push(l);if(i(l))return s.push(t.apply(null,l));o(l)&&r(l,function(u,f){u&&s.push(f)})}}),s.join(" ")},e.exports=t})(jM,jM.exports);var mat=jM.exports;const an=ly(mat);var aD={exports:{}},iD={exports:{}};(function(e,t){Date.now?t=Date.now:t=function(){return new Date().getTime()},e.exports=t})(iD,iD.exports);var _at=iD.exports;(function(e,t){var r=_at;t=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:250;function o(){return new Promise(function(s,l){try{s(n())}catch(u){l(u)}})}return new Promise(function(s,l){var u=r(),f=function(){o().then(function(c){var v=r()-u;c?s(c):a&&v>=a?l(Error("Wait timed out after ".concat(a," ms"))):setTimeout(f,i)},l)};f()})},e.exports=t})(aD,aD.exports);var Sat=aD.exports;const bat=ly(Sat);var oD={exports:{}},sD={exports:{}},lD={exports:{}},uD={exports:{}},fD={exports:{}},cD={exports:{}};(function(e,t){var r=Ib,n=Dy;t=function(a,i){return function(o){return n(arguments,function(s,l){if(l!==0){var u=a(s);n(u,function(f){(!i||r(o[f]))&&(o[f]=s[f])})}}),o}},e.exports=t})(cD,cD.exports);var IO=cD.exports,vD={exports:{}},hD={exports:{}};(function(e,t){var r=rc,n=zh,a=Object.getPrototypeOf,i={}.constructor;t=function(o){if(r(o)){if(a)return a(o);var s=o.__proto__;if(s||s===null)return s;if(n(o.constructor))return o.constructor.prototype;if(o instanceof i)return i.prototype}},e.exports=t})(hD,hD.exports);var xat=hD.exports,dD={exports:{}},pD={exports:{}},gD={exports:{}},yD={exports:{}},mD={exports:{}};(function(e,t){var r=tc,n=IO;t=n(r),e.exports=t})(mD,mD.exports);var wat=mD.exports,_D={exports:{}};(function(e,t){var r=tc;t=function(n,a){var i=r(a),o=i.length;if(n==null)return!o;n=Object(n);for(var s=0;s<o;s++){var l=i[s];if(a[l]!==n[l]||!(l in n))return!1}return!0},e.exports=t})(_D,_D.exports);var Tat=_D.exports;(function(e,t){var r=wat,n=Tat;t=function(a){return a=r({},a),function(i){return n(i,a)}},e.exports=t})(yD,yD.exports);var Aat=yD.exports,SD={exports:{}};(function(e,t){t=function(r){return r},e.exports=t})(SD,SD.exports);var Cat=SD.exports,bD={exports:{}},xD={exports:{}},wD={exports:{}};(function(e,t){var r=RO,n=ec;t=function(o,s){if(n(o))return o;if(s&&r(s,o))return[o];var l=[];return o.replace(a,function(u,f,c,v){l.push(c?v.replace(i,"$1"):f||u)}),l};var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=t})(wD,wD.exports);var Mat=wD.exports;(function(e,t){var r=Ib,n=Mat;t=function(a,i){i=n(i,a);var o;for(o=i.shift();!r(o);){if(a=a[o],a==null)return;o=i.shift()}return a},e.exports=t})(xD,xD.exports);var E7=xD.exports;(function(e,t){var r=ec,n=E7;t=function(i){return r(i)?function(o){return n(o,i)}:a(i)};function a(i){return function(o){return o==null?void 0:o[i]}}e.exports=t})(bD,bD.exports);var Dat=bD.exports;(function(e,t){var r=zh,n=rc,a=ec,i=L7,o=Aat,s=Cat,l=Dat;t=function(u,f,c){return u==null?s:r(u)?i(u,f,c):n(u)&&!a(u)?o(u):l(u)},e.exports=t})(gD,gD.exports);var O7=gD.exports;(function(e,t){var r=O7,n=Dy;t=function(a,i,o){var s=[];return i=r(i,o),n(a,function(l,u,f){i(l,u,f)&&s.push(l)}),s},e.exports=t})(pD,pD.exports);var Lat=pD.exports;(function(e,t){var r=Lat;t=function(a,i){return i=i||n,r(a,function(o,s,l){for(var u=l.length;++s<u;)if(i(o,l[s]))return!1;return!0})};function n(a,i){return a===i}e.exports=t})(dD,dD.exports);var Eat=dD.exports;(function(e,t){var r=tc,n=xat,a=Eat,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;t=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.prototype,f=u===void 0?!0:u,c=l.unenumerable,v=c===void 0?!1:c,h=l.symbol,d=h===void 0?!1:h,p=[];if((v||d)&&i){var g=r;v&&i&&(g=i);do p=p.concat(g(s)),d&&o&&(p=p.concat(o(s)));while(f&&(s=n(s))&&s!==Object.prototype);p=a(p)}else if(f)for(var y in s)p.push(y);else p=r(s);return p},e.exports=t})(vD,vD.exports);var R7=vD.exports;(function(e,t){var r=IO,n=R7;t=r(n),e.exports=t})(fD,fD.exports);var I7=fD.exports,TD={exports:{}},AD={exports:{}};(function(e,t){var r=O7,n=tc,a=Rb;t=function(i,o,s){o=r(o,s);for(var l=!a(i)&&n(i),u=(l||i).length,f=Array(u),c=0;c<u;c++){var v=l?l[c]:c;f[c]=o(i[v],v,i)}return f},e.exports=t})(AD,AD.exports);var Oat=AD.exports;(function(e,t){var r=Rb,n=Oat,a=ec,i=Pb;t=function(o){return o?a(o)?o:r(o)&&!i(o)?n(o):[o]:[]},e.exports=t})(TD,TD.exports);var PO=TD.exports,CD={exports:{}},MD={exports:{}};(function(e,t){var r=rc;t=function(a){if(!r(a))return{};if(n)return n(a);function i(){}return i.prototype=a,new i};var n=Object.create;e.exports=t})(MD,MD.exports);var Rat=MD.exports;(function(e,t){var r=Rat;t=function(n,a){n.prototype=r(a.prototype)},e.exports=t})(CD,CD.exports);var Iat=CD.exports,DD={exports:{}};(function(e,t){var r=zh;t=typeof wx<"u"&&r(wx.openLocation),e.exports=t})(DD,DD.exports);var Pat=DD.exports;(function(e,t){var r=I7,n=PO,a=Iat,i=E7,o=Pat;t=function(u,f){return l.extend(u,f)};function s(u,f,c){c=c||{};var v=f.className||i(f,"initialize.name")||"";delete f.className;var h=function(){var d=n(arguments);return this.initialize?this.initialize.apply(this,d)||this:this};if(!o)try{h=new Function("toArr","return function "+v+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(n)}catch{}return a(h,u),h.prototype.constructor=h,h.extend=function(d,p){return s(h,d,p)},h.inherits=function(d){a(h,d)},h.methods=function(d){return r(h.prototype,d),h},h.statics=function(d){return r(h,d),h},h.methods(f).statics(c),h}var l=t.Base=s(Object,{className:"Base",callSuper:function(u,f,c){var v=u.prototype[f];return v.apply(this,c)},toString:function(){return this.constructor.name}});e.exports=t})(uD,uD.exports);var Nat=uD.exports,LD={exports:{}};(function(e,t){t=function(r,n,a){var i=r.length;n==null?n=0:n<0?n=Math.max(i+n,0):n=Math.min(n,i),a==null?a=i:a<0?a=Math.max(i+a,0):a=Math.min(a,i);for(var o=[];n<a;)o.push(r[n++]);return o},e.exports=t})(LD,LD.exports);var kat=LD.exports,ED={exports:{}},OD={exports:{}},RD={exports:{}};(function(e,t){t=function(r,n){return n=n==null?r.length-1:+n,function(){var a=Math.max(arguments.length-n,0),i=new Array(a),o;for(o=0;o<a;o++)i[o]=arguments[o+n];switch(n){case 0:return r.call(this,i);case 1:return r.call(this,arguments[0],i);case 2:return r.call(this,arguments[0],arguments[1],i)}var s=new Array(n+1);for(o=0;o<n;o++)s[o]=arguments[o];return s[n]=i,r.apply(this,s)}},e.exports=t})(RD,RD.exports);var Bat=RD.exports;(function(e,t){var r=Bat,n=PO;t=r(function(a,i){return function(){var o=[];return o=o.concat(i),o=o.concat(n(arguments)),a.apply(this,o)}}),e.exports=t})(OD,OD.exports);var zat=OD.exports,ID={exports:{}};(function(e,t){t=function(r,n){var a;return function(){return--r>0&&(a=n.apply(this,arguments)),r<=1&&(n=null),a}},e.exports=t})(ID,ID.exports);var Vat=ID.exports;(function(e,t){var r=zat,n=Vat;t=r(n,2),e.exports=t})(ED,ED.exports);var Gat=ED.exports,PD={exports:{}};(function(e,t){var r=rc,n=ec,a=I7;t=function(i){return r(i)?n(i)?i.slice():a({},i):i},e.exports=t})(PD,PD.exports);var Hat=PD.exports;(function(e,t){var r=Nat,n=RO,a=Dy,i=kat,o=Gat,s=Hat;t=r({initialize:function(){this._events=this._events||{}},on:function(l,u){return this._events[l]=this._events[l]||[],this._events[l].push(u),this},off:function(l,u){var f=this._events;if(n(f,l)){var c=f[l].indexOf(u);return c>-1&&f[l].splice(c,1),this}},once:function(l,u){return this.on(l,o(u)),this},emit:function(l){var u=this;if(n(this._events,l)){var f=i(arguments,1),c=s(this._events[l]);return a(c,function(v){return v.apply(u,f)},this),this}},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this}},{mixin:function(l){a(["on","off","once","emit","removeAllListeners"],function(u){l[u]=t.prototype[u]}),l._events=l._events||{}}}),e.exports=t})(lD,lD.exports);var Uat=lD.exports;(function(e,t){var r=Uat,n=Pb,a=rc,i=Dy,o=PO;t=r.extend({initialize:function(l){this.callSuper(r,"initialize",arguments),this._data=l||{},this.save(this._data)},set:function(s,l){var u;n(s)?(u={},u[s]=l):a(s)&&(u=s);var f=this;i(u,function(c,v){var h=f._data[v];f._data[v]=c,f.emit("change",v,c,h)}),this.save(this._data)},get:function(s){var l=this._data;if(n(s))return l[s];var u={};return i(s,function(f){u[f]=l[f]}),u},remove:function(s){s=o(s);var l=this._data;i(s,function(u){delete l[u]}),this.save(l)},clear:function(){this._data={},this.save(this._data)},each:function(s){i(this._data,s)},save:function(s){this._data=s}}),e.exports=t})(sD,sD.exports);var Fat=sD.exports,ND={exports:{}},kD={exports:{}};(function(e,t){var r=tc;t={getItem:function(l){return(a[l]?n[l]:this[l])||null},setItem:function(l,u){a[l]?n[l]=u:this[l]=u},removeItem:function(l){a[l]?delete n[l]:delete this[l]},key:function(l){var u=i();return l>=0&&l<u.length?u[l]:null},clear:function(){for(var l=o(),u=0,f;f=l[u];u++)delete this[f];l=s();for(var c=0,v;v=l[c];c++)delete n[v]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return i().length}});var n={},a={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function i(){return o().concat(s())}function o(){return r(t).filter(function(l){return!a[l]})}function s(){return r(n)}e.exports=t})(kD,kD.exports);var Yat=kD.exports;(function(e,t){var r=Yat;t=function(n){n=n||"local";var a;switch(n){case"local":a=window.localStorage;break;case"session":a=window.sessionStorage;break}try{var i="test-localStorage-"+Date.now();a.setItem(i,i);var o=a.getItem(i);if(a.removeItem(i),o!==i)throw new Error}catch{return r}return a},e.exports=t})(ND,ND.exports);var jat=ND.exports,BD={exports:{}},zD={exports:{}};(function(e,t){var r=Jf;t=function(n){return r(n)==="[object Arguments]"},e.exports=t})(zD,zD.exports);var Wat=zD.exports;(function(e,t){var r=Rb,n=ec,a=Pb,i=Wat,o=tc;t=function(s){return s==null?!0:r(s)&&(n(s)||a(s)||i(s))?s.length===0:o(s).length===0},e.exports=t})(BD,BD.exports);var $at=BD.exports,VD={exports:{}},GD={exports:{}},HD={exports:{}};(function(e,t){var r=OO;t=function(n){return r(n)&&n!==+n},e.exports=t})(HD,HD.exports);var Xat=HD.exports,UD={exports:{}},FD={exports:{}};(function(e,t){t=function(r){return r==null?"":r.toString()},e.exports=t})(FD,FD.exports);var P7=FD.exports;(function(e,t){var r=P7;t=function(n){return r(n).toLocaleLowerCase()},e.exports=t})(UD,UD.exports);var Zat=UD.exports,YD={exports:{}};(function(e,t){var r=zh;t=function(n){return n==null?!1:n._isBuffer?!0:n.constructor&&r(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},e.exports=t})(YD,YD.exports);var qat=YD.exports;(function(e,t){var r=Jf,n=Xat,a=Zat,i=qat;t=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return s===null&&(u="Null"),s===void 0&&(u="Undefined"),n(s)&&(u="NaN"),i(s)&&(u="Buffer"),u||(u=r(s).match(o),u&&(u=u[1])),u?l?a(u):u:""};var o=/^\[object\s+(.*?)]$/;e.exports=t})(GD,GD.exports);var Kat=GD.exports,jD={exports:{}};(function(e,t){t=function(r){return r.length<1?r:r[0].toUpperCase()+r.slice(1)},e.exports=t})(jD,jD.exports);var Qat=jD.exports,WD={exports:{}};(function(e,t){var r=Jf;t=function(n){return r(n)==="[object RegExp]"},e.exports=t})(WD,WD.exports);var Jat=WD.exports;(function(e,t){var r=Kat,n=Qat,a=P7,i=Ib,o=zh,s=Jat;t=function(u,f){return JSON.stringify(u,l(),f)};function l(){var u=[],f=[];return function(c,v){if(u.length>0){var h=u.indexOf(this);h>-1?(u.splice(h+1),f.splice(h,1/0,c)):(u.push(this),f.push(c));var d=u.indexOf(v);d>-1&&(u[0]===v?v="[Circular ~]":v="[Circular ~."+f.slice(0,d).join(".")+"]")}else u.push(v);return s(v)||o(v)?v="["+n(r(v))+" "+a(v)+"]":i(v)&&(v=null),v}}e.exports=t})(VD,VD.exports);var tit=VD.exports,$D={exports:{}};(function(e,t){var r=IO,n=R7;t=r(n,!0),e.exports=t})($D,$D.exports);var eit=$D.exports;(function(e,t){var r=Fat,n=jat,a=$at,i=tit,o=eit,s=rc,l=n("local");t=r.extend({initialize:function(f,c){this._name=f,c=c||{};var v=l.getItem(f);try{v=JSON.parse(v)}catch{v={}}s(v)||(v={}),c=o(v,c),this.callSuper(r,"initialize",[c])},save:function(u){if(a(u))return l.removeItem(this._name);l.setItem(this._name,i(u))}}),e.exports=t})(oD,oD.exports);var rit=oD.exports;const nit=ly(rit);function aB(){return new Date().toISOString().split("T")[0]}function N7(e){return e==="zh-CN"?"zh-CN":"en-US"}function iB(){return{total:{inputTokens:0,outputTokens:0,cacheCreationTokens:0,cacheReadTokens:0,totalTokens:0,sessionCount:0},byDay:[]}}const oB=new nit("tinker-token-usage"),sB="dataSource";class ait{constructor(){Fl(this,"dataSource","claude-code");Fl(this,"usageData",iB());Fl(this,"loading",!1);Fl(this,"error",null);Fl(this,"dateRange",(()=>{const t=aB();return{start:t,end:t}})());Fl(this,"seriesVisibility",{inputTokens:!0,outputTokens:!0,totalTokens:!1,sessionCount:!0});Zrt(this),this.loadFromStorage(),this.init()}loadFromStorage(){const t=oB.get(sB);(t==="claude-code"||t==="codex")&&(this.dataSource=t)}async init(){await bat(()=>typeof tokenUsage<"u"),this.loadUsageData()}setDataSource(t){this.dataSource=t,oB.set(sB,t)}async switchDataSource(t){this.setDataSource(t),await this.loadUsageData()}setUsageData(t){this.usageData=t}setLoading(t){this.loading=t}setError(t){this.error=t}setDateRange(t,r){this.dateRange={start:t,end:r}}toggleSeriesVisibility(t){Object.values(this.seriesVisibility).filter(n=>n).length===1&&this.seriesVisibility[t]||(this.seriesVisibility[t]=!this.seriesVisibility[t])}get filteredStats(){var a;if(!this.usageData||!this.dateRange)return((a=this.usageData)==null?void 0:a.total)||null;const{start:t,end:r}=this.dateRange,n=this.usageData.byDay.filter(i=>i.date>=t&&i.date<=r);return n.length===0?this.usageData.total:{inputTokens:n.reduce((i,o)=>i+o.inputTokens,0),outputTokens:n.reduce((i,o)=>i+o.outputTokens,0),cacheCreationTokens:n.reduce((i,o)=>i+o.cacheCreationTokens,0),cacheReadTokens:n.reduce((i,o)=>i+o.cacheReadTokens,0),totalTokens:n.reduce((i,o)=>i+o.totalTokens,0),sessionCount:n.reduce((i,o)=>i+o.sessionCount,0)}}async loadUsageData(){this.setLoading(!0),this.setError(null);try{const t=await tokenUsage.getUsage(this.dataSource);if(this.setUsageData(t),t.byDay&&t.byDay.length>0){const r=t.byDay[0].date,n=t.byDay[t.byDay.length-1].date;this.setDateRange(r,n)}}catch(t){console.error("Failed to load token usage data:",t),this.setError(t instanceof Error?t.message:Ur.t("unknownError"));const r=aB();this.setUsageData(iB()),this.setDateRange(r,r)}finally{this.setLoading(!1)}}async refresh(){await this.loadUsageData()}}const ze=new ait,xt={background:{primary:"bg-gradient-to-br from-neutral-50 via-neutral-100 to-neutral-50 dark:from-neutral-950 dark:via-neutral-900 dark:to-neutral-950",card:"bg-white/80 dark:bg-neutral-900/80 backdrop-blur-xl",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-800/50"},text:{primary:"text-neutral-900 dark:text-neutral-100",secondary:"text-neutral-700 dark:text-neutral-300",muted:"text-neutral-500 dark:text-neutral-400",white:"text-white"},border:{card:"border border-neutral-300 dark:border-neutral-700"},gradient:{blue:"from-blue-500 to-blue-600 dark:from-blue-400 dark:to-blue-500",green:"from-green-500 to-green-600 dark:from-green-400 dark:to-green-500",purple:"from-purple-500 to-purple-600 dark:from-purple-400 dark:to-purple-500",orange:"from-orange-500 to-orange-600 dark:from-orange-400 dark:to-orange-500"},button:{primary:{base:"bg-gradient-to-br from-[#df754f] to-[#d66638] dark:from-[#f08a65] dark:to-[#df754f]",hover:"hover:scale-105 active:scale-95",disabled:"disabled:from-neutral-300 disabled:to-neutral-400 dark:disabled:from-neutral-700 dark:disabled:to-neutral-800 disabled:shadow-none disabled:cursor-not-allowed disabled:scale-100",transition:"transition-all duration-200"}},select:{trigger:{base:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border transition-colors min-w-[140px] justify-between",background:"bg-white dark:bg-neutral-800",border:"border-neutral-300 dark:border-neutral-700",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-700",focus:"focus:outline-none focus:ring-2 focus:ring-[#df754f] dark:focus:ring-[#f08a65]",disabled:"data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed"},content:{base:"overflow-hidden rounded-md border shadow-lg z-50",background:"bg-white dark:bg-neutral-800",border:"border-neutral-300 dark:border-neutral-700"},item:{base:"relative flex items-center gap-2 px-8 py-2 text-sm rounded cursor-pointer outline-none data-[state=checked]:font-medium",highlighted:"data-[highlighted]:bg-[#df754f] dark:data-[highlighted]:bg-[#f08a65] data-[highlighted]:text-white"}},error:{background:"bg-gradient-to-br from-red-50 to-red-100/50 dark:from-red-950/30 dark:to-red-900/20",border:"border border-red-200 dark:border-red-800/50",icon:{background:"bg-red-100 dark:bg-red-900/30",border:"border border-red-200 dark:border-red-800",text:"text-red-600 dark:text-red-400"},text:{title:"text-red-900 dark:text-red-300",content:"text-red-800 dark:text-red-400"}},chart:{colors:["#3b82f6","#10b981","#a855f7","#f59e0b"],tooltip:{background:"rgba(255, 255, 255, 0.95)",border:"rgba(148, 163, 184, 0.35)",text:"#0f172a"},axis:{label:"#64748b",line:"rgba(148, 163, 184, 0.35)",split:"rgba(148, 163, 184, 0.18)"},zoom:{border:"rgba(148, 163, 184, 0.35)",filler:"rgba(59, 130, 246, 0.12)",handle:"rgba(59, 130, 246, 0.6)"},spinner:"#df754f"}},ku=e=>e.toLocaleString(),k7=(e,t,r)=>{try{return new Date(e).toLocaleDateString(t,{month:"short",day:"numeric",...r})}catch{return e}},_m=({label:e,value:t,color:r="blue",isActive:n=!0,onClick:a})=>{const i={blue:xt.gradient.blue,green:xt.gradient.green,purple:xt.gradient.purple,orange:xt.gradient.orange};return X.jsxs("div",{onClick:a,className:an(xt.background.card,"rounded-lg p-2",xt.border.card,a&&"cursor-pointer transition-all duration-200",a&&xt.background.hover),children:[X.jsx("div",{className:`text-[10px] font-medium ${xt.text.muted} tracking-wider mb-1`,children:e}),X.jsx("div",{className:an("text-xl font-bold",n?"bg-gradient-to-br bg-clip-text text-transparent":xt.text.muted,n&&i[r]),children:t})]})};/**
|
|
60
|
+
* @license lucide-react v0.564.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const B7=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
65
|
+
* @license lucide-react v0.564.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const iit=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
70
|
+
* @license lucide-react v0.564.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const oit=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
|
|
75
|
+
* @license lucide-react v0.564.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const lB=e=>{const t=oit(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
80
|
+
* @license lucide-react v0.564.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/var sit={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
85
|
+
* @license lucide-react v0.564.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const lit=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
90
|
+
* @license lucide-react v0.564.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const uit=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...s},l)=>k.createElement("svg",{ref:l,...sit,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:B7("lucide",a),...!i&&!lit(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>k.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
|
|
95
|
+
* @license lucide-react v0.564.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Nb=(e,t)=>{const r=k.forwardRef(({className:n,...a},i)=>k.createElement(uit,{ref:i,iconNode:t,className:B7(`lucide-${iit(lB(e))}`,`lucide-${e}`,n),...a}));return r.displayName=lB(e),r};/**
|
|
100
|
+
* @license lucide-react v0.564.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const fit=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cit=Nb("check",fit);/**
|
|
105
|
+
* @license lucide-react v0.564.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const vit=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hit=Nb("chevron-down",vit);/**
|
|
110
|
+
* @license lucide-react v0.564.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const dit=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],pit=Nb("circle-alert",dit);/**
|
|
115
|
+
* @license lucide-react v0.564.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const git=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],yit=Nb("refresh-cw",git),mit=My(()=>{const{t:e}=Ob(),{error:t}=ze;return t?X.jsx("div",{className:an("mb-4 p-4 rounded-lg",xt.error.background,xt.error.border),children:X.jsxs("div",{className:"flex items-start gap-4",children:[X.jsx("div",{className:an("flex-shrink-0 w-10 h-10 flex items-center justify-center rounded-full",xt.error.icon.background,xt.error.icon.border),children:X.jsx(pit,{className:an("w-5 h-5",xt.error.icon.text)})}),X.jsxs("div",{className:"flex-1",children:[X.jsx("h3",{className:an("font-bold mb-2",xt.error.text.title),children:e("errorTitle")}),X.jsx("p",{className:an("text-sm font-mono",xt.error.text.content),children:t})]})]})}):null}),_it=My(()=>{const{loading:e}=ze;return X.jsx("button",{onClick:()=>ze.refresh(),disabled:e,className:an("p-1 rounded-md",xt.button.primary.base,xt.text.white,xt.button.primary.hover,xt.button.primary.disabled,xt.button.primary.transition),children:X.jsx(yit,{className:an("w-4 h-4",e&&"animate-spin")})})});var XD=function(e,t){return XD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},XD(e,t)};function z7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");XD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Nn=function(){return Nn=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Nn.apply(this,arguments)};function NO(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function uB(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(f){try{u(n.next(f))}catch(c){o(c)}}function l(f){try{u(n.throw(f))}catch(c){o(c)}}function u(f){f.done?i(f.value):a(f.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function fB(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(f){u=[6,f],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Sit(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}/*! *****************************************************************************
|
|
120
|
+
Copyright (c) Microsoft Corporation.
|
|
121
|
+
|
|
122
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
123
|
+
purpose with or without fee is hereby granted.
|
|
124
|
+
|
|
125
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
126
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
127
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
128
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
129
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
130
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
131
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
132
|
+
***************************************************************************** */var ZD=function(e,t){return ZD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},ZD(e,t)};function G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bit=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),xit=function(){function e(){this.browser=new bit,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}(),Bt=new xit;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Bt.wxa=!0,Bt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Bt.worker=!0:!Bt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Bt.node=!0,Bt.svgSupported=!0):wit(navigator.userAgent,Bt);function wit(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[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);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var kO=12,V7="sans-serif",ts=kO+"px "+V7,Tit=20,Ait=100,Cit="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Mit(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-Tit)/Ait;t[n]=a}return t}var Dit=Mit(Cit),fr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=fr.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||ts),e.measureText(r);r=r||"",n=n||ts;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||kO,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Dit[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},getTime:function(){return Date.now?Date.now():+new Date}};function G7(e){for(var t in fr)fr.hasOwnProperty(t)&&e[t]&&(fr[t]=e[t])}var H7=La(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),U7=La(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Vh=Object.prototype.toString,kb=Array.prototype,Lit=kb.forEach,Eit=kb.filter,BO=kb.slice,Oit=kb.map,cB=(function(){}).constructor,Sm=cB?cB.prototype:null,zO="__proto__",Hw=2311,Rit=Math.pow(2,53)-1;function VO(){return Hw>=Rit&&(Hw=0),Hw++}function Bb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ut(e){if(e==null||typeof e!="object")return e;var t=e,r=Vh.call(e);if(r==="[object Array]"){if(!Iv(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ut(e[n])}}else if(U7[r]){if(!Iv(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!H7[r]&&!Iv(e)&&!gf(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==zO&&(t[o]=ut(e[o]))}return t}function wt(e,t,r){if(!gt(t)||!gt(e))return r?ut(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==zO){var a=e[n],i=t[n];gt(i)&>(a)&&!Y(i)&&!Y(a)&&!gf(i)&&!gf(a)&&!qD(i)&&!qD(a)&&!Iv(i)&&!Iv(a)?wt(a,i,r):(r||!(n in e))&&(e[n]=ut(t[n]))}return e}function zb(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=wt(r,e[n],t);return r}function U(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==zO&&(e[r]=t[r]);return e}function F7(e,t,r){e=e||{};for(var n=0;n<r.length;n++){var a=r[n];e[a]=t[a]}return e}function pt(e,t,r){for(var n=Nt(t),a=0,i=n.length;a<i;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var Iit=fr.createCanvas;function bt(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 GO(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Ye(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),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else pt(e,t,r)}function Br(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Lit)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function W(e,t,r){if(!e)return[];if(!t)return Vb(e);if(e.map&&e.map===Oit)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function La(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Xt(e,t,r){if(!e)return[];if(!t)return Vb(e);if(e.filter&&e.filter===Eit)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function ds(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function Nt(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 Pit(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(BO.call(arguments)))}}var et=Sm&&ct(Sm.bind)?Sm.call.bind(Sm.bind):Pit;function Mt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(BO.call(arguments)))}}function Y(e){return Array.isArray?Array.isArray(e):Vh.call(e)==="[object Array]"}function ct(e){return typeof e=="function"}function K(e){return typeof e=="string"}function MS(e){return Vh.call(e)==="[object String]"}function Vt(e){return typeof e=="number"}function gt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function qD(e){return!!H7[Vh.call(e)]}function un(e){return!!U7[Vh.call(e)]}function gf(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ly(e){return e.colorStops!=null}function Y7(e){return e.image!=null}function j7(e){return Vh.call(e)==="[object RegExp]"}function Nr(e){return e!==e}function Xr(){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 ot(e,t){return e??t}function wn(e,t,r){return e??t??r}function Vb(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return BO.apply(e,t)}function Ey(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 zr(e,t){if(!e)throw new Error(t)}function zn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var W7="__ec_primitive__";function mg(e){e[W7]=!0}function Iv(e){return e[W7]}var Nit=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 Nt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),$7=typeof Map=="function";function kit(){return $7?new Map:new Nit}var X7=function(){function e(t){var r=Y(t);this.data=kit();var n=this;t instanceof e?t.each(a):t&&D(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}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,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return $7?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function rt(e){return new X7(e)}function sh(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function Oy(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&U(r,t),r}function HO(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function nt(e,t){return e.hasOwnProperty(t)}function Ee(){}var Bp=180/Math.PI,Bit=Number.EPSILON||Math.pow(2,-52);const zit=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:Bit,HashMap:X7,RADIAN_TO_DEGREE:Bp,assert:zr,assignProps:F7,bind:et,clone:ut,concatArray:sh,createCanvas:Iit,createHashMap:rt,createObject:Oy,curry:Mt,defaults:pt,disableUserSelect:HO,each:D,eqNaN:Nr,extend:U,filter:Xt,find:ds,guid:VO,hasOwn:nt,indexOf:bt,inherits:GO,isArray:Y,isArrayLike:Br,isBuiltInObject:qD,isDom:gf,isFunction:ct,isGradientObject:Ly,isImagePatternObject:Y7,isNumber:Vt,isObject:gt,isPrimitive:Iv,isRegExp:j7,isString:K,isStringSafe:MS,isTypedArray:un,keys:Nt,logError:Bb,map:W,merge:wt,mergeAll:zb,mixin:Ye,noop:Ee,normalizeCssArray:Ey,reduce:La,retrieve:Xr,retrieve2:ot,retrieve3:wn,setAsPrimitive:mg,slice:Vb,trim:zn},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
133
|
+
Copyright (c) Microsoft Corporation.
|
|
134
|
+
|
|
135
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
136
|
+
purpose with or without fee is hereby granted.
|
|
137
|
+
|
|
138
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
139
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
140
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
141
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
142
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
143
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
144
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
145
|
+
***************************************************************************** */var KD=function(e,t){return KD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},KD(e,t)};function ye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");KD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Bl(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Mr(e,t){return e[0]=t[0],e[1]=t[1],e}function ki(e){return[e[0],e[1]]}function Vo(e,t,r){return e[0]=t,e[1]=r,e}function QD(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function DS(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function js(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function _g(e){return Math.sqrt(UO(e))}var Vit=_g;function UO(e){return e[0]*e[0]+e[1]*e[1]}var Git=UO;function Hit(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function Uit(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Fit(e,t){return e[0]*t[0]+e[1]*t[1]}function zp(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function nc(e,t){var r=_g(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function LS(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Eo=LS;function Z7(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var sl=Z7;function Yit(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Vp(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 Oe(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Oo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ro(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const jit=Object.freeze(Object.defineProperty({__proto__:null,add:QD,applyTransform:Oe,clone:ki,copy:Mr,create:Bl,dist:Eo,distSquare:sl,distance:LS,distanceSquare:Z7,div:Uit,dot:Fit,len:_g,lenSquare:UO,length:Vit,lengthSquare:Git,lerp:Vp,max:Ro,min:Oo,mul:Hit,negate:Yit,normalize:nc,scale:zp,scaleAndAdd:DS,set:Vo,sub:js},Symbol.toStringTag,{value:"Module"}));var xc=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Wit=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 xc(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new xc(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new xc(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new xc(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new xc(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new xc(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Pa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[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 a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.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 i&&i.afterTrigger&&i.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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),$it=Math.log(2);function JD(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/$it);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*e[r][v]*JD(e,t-1,f,u,a|d,i),h++)}return i[o]=c,c}function vB(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={},a=JD(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*JD(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var ES="___zrEVENTSAVED",Uw=[];function Xit(e,t,r,n,a){return t2(Uw,t,n,a,!0)&&t2(e,r,Uw[0],Uw[1])}function Zit(e,t){e&&r(e),t&&r(t);function r(n){var a=n[ES];a&&(a.clearMarkers&&a.clearMarkers(),delete n[ES])}}function t2(e,t,r,n,a){if(t.getBoundingClientRect&&Bt.domSupported&&!q7(t)){var i=t[ES]||(t[ES]={}),o=qit(t,i),s=Kit(o,i,a);if(s)return s(e,r,n),!0}return!1}function qit(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>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",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function Kit(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?vB(s,o):vB(o,s))}function q7(e){return e.nodeName.toUpperCase()==="CANVAS"}var Qit=/([&<>"'])/g,Jit={"&":"&","<":"<",">":">",'"':""","'":"'"};function $r(e){return e==null?"":(e+"").replace(Qit,function(t,r){return Jit[r]})}var tot=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Fw=[],eot=Bt.browser.firefox&&+Bt.browser.version.split(".")[0]<39;function e2(e,t,r,n){return r=r||{},n?hB(e,t,r):eot&&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):hB(e,t,r),r}function hB(e,t,r){if(Bt.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(q7(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(t2(Fw,e,n,a)){r.zrX=Fw[0],r.zrY=Fw[1];return}}r.zrX=r.zrY=0}function FO(e){return e||window.event}function oa(e,t,r){if(t=FO(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&e2(e,o,t,r)}else{e2(e,t,t,r);var i=rot(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&tot.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function rot(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function r2(e,t,r,n){e.addEventListener(t,r,n)}function not(e,t,r,n){e.removeEventListener(t,r,n)}var es=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function dB(e){return e.which===2||e.which===3}var aot=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 a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=e2(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in Yw)if(Yw.hasOwnProperty(r)){var n=Yw[r](this._track,t);if(n)return n}},e}();function pB(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function iot(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Yw={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=pB(n)/pB(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=iot(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Se(){return[1,0,0,1,0,0]}function ac(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function bl(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 Wn(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=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]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Qa(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 ps(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),c=Math.cos(r);return e[0]=a*c+s*f,e[1]=-a*f+s*c,e[2]=i*c+l*f,e[3]=-i*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function Gb(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function qn(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function K7(e){var t=Se();return bl(t,e),t}const oot=Object.freeze(Object.defineProperty({__proto__:null,clone:K7,copy:bl,create:Se,identity:ac,invert:qn,mul:Wn,rotate:ps,scale:Gb,translate:Qa},Symbol.toStringTag,{value:"Module"}));var yt=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,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),Bu=Math.min,mv=Math.max,n2=Math.abs,gB=["x","y"],sot=["width","height"],Wl=new yt,$l=new yt,Xl=new yt,Zl=new yt,Ln=tY(),ip=Ln.minTv,a2=Ln.maxTv,Gp=[0,0],dt=function(){function e(t,r,n,a){jw(this,t,r,n,a)}return e.set=function(t,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),t.x=r,t.y=n,t.width=a,t.height=i,t},e.prototype.union=function(t){var r=Bu(t.x,this.x),n=Bu(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mv(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mv(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){return Q7(Se(),this,t)},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,a){n&&yt.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!r)return!1;t instanceof e||(t=jw(uot,t.x,t.y,t.width,t.height)),r instanceof e||(r=jw(fot,r.x,r.y,r.width,r.height));var s=!!n;Ln.reset(a,s);var l=Ln.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f<h||d<u||v<p||g<c);return(s||i)&&(Gp[0]=1/0,Gp[1]=0,yB(u,f,h,d,0,s,i,o),yB(c,v,p,g,1,s,i,o),s&&yt.copy(n,y?Ln.useDir?Ln.dirMinTv:ip:a2)),y},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){lh(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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&lh(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Wl.x=Xl.x=r.x,Wl.y=Zl.y=r.y,$l.x=Zl.x=r.x+r.width,$l.y=Xl.y=r.y+r.height,Wl.transform(n),Zl.transform(n),$l.transform(n),Xl.transform(n),t.x=Bu(Wl.x,$l.x,Xl.x,Zl.x),t.y=Bu(Wl.y,$l.y,Xl.y,Zl.y);var l=mv(Wl.x,$l.x,Xl.x,Zl.x),u=mv(Wl.y,$l.y,Xl.y,Zl.y);t.width=l-t.x,t.height=u-t.y},e.calculateTransform=function(t,r,n){var a=n.width/r.width,i=n.height/r.height;return t=ac(t||[]),Qa(t,t,Vo(Ww,-r.x,-r.y)),Gb(t,t,Vo(Ww,a,i)),Qa(t,t,Vo(Ww,n.x,n.y)),t},e}(),Hb=dt.create,jw=dt.set,lh=dt.copy,Q7=dt.calculateTransform,J7=dt.applyTransform,lot=dt.contain,uot=new dt(0,0,0,0),fot=new dt(0,0,0,0),Ww=[];function yB(e,t,r,n,a,i,o,s){var l=n2(t-r),u=n2(n-e),f=Bu(l,u),c=gB[a],v=gB[1-a],h=sot[a];t<r||n<e?l<u?(i&&(a2[c]=-l),s&&(o[c]=t,o[h]=0)):(i&&(a2[c]=u),s&&(o[c]=e,o[h]=0)):(o&&(o[c]=mv(e,r),o[h]=Bu(t,n)-o[c]),i&&(f<Gp[0]||Ln.useDir)&&(Gp[0]=Bu(f,Gp[0]),(l<u||!Ln.bidirectional)&&(ip[c]=l,ip[v]=0,Ln.useDir&&Ln.calcDirMTV()),(l>=u||!Ln.bidirectional)&&(ip[c]=-u,ip[v]=0,Ln.useDir&&Ln.calcDirMTV())))}function tY(){var e=0,t=new yt,r=new yt,n={minTv:new yt,maxTv:new yt,useDir:!1,dirMinTv:new yt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=mv(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(e),u=Math.cos(e),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return n2(i)<1e-10}return n}var eY="silent";function cot(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:vot}}function vot(){es(this.event)}var hot=function(e){ye(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}(Pa),_d=function(){function e(t,r){this.x=t,this.y=r}return e}(),dot=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$w=new dt(0,0,0,0),rY=function(e){ye(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new _d(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new hot,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Wit(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(dot,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,a=r.zrY,i=nY(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new _d(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.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 _d(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.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,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=cot(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.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,a){var i=this.storage.getDisplayList(),o=new _d(r,n);if(mB(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new dt(r-u,n-u,l,l),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&($w.copy(v.getBoundingRect()),v.transform&&$w.applyTransform(v.transform),$w.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=r+g*Math.cos(y),_=n+g*Math.sin(y);if(mB(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new aot);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new _d;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Pa);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){rY.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=nY(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.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||Eo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function pot(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?eY:!0}return!1}function mB(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=pot(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==eY)){t.target=o;break}}}function nY(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var aY=32,Sd=7;function got(e){for(var t=0;e>=aY;)t|=e&1,e>>=1;return e+t}function _B(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;yot(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function yot(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function SB(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,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]=i}}function Xw(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])>0?o=f+1:l=f}return l}function Zw(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])<0?l=f:o=f+1}return l}function mot(e,t){var r=Sd,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=a[h],g=n[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=Zw(e[g],e,d,p,0,t);d+=m,p-=m,p!==0&&(y=Xw(e[d+p-1],e,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):v(d,p,g,y)))}function c(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=e[h+y];var m=0,_=p,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<d;y++)e[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m];return}for(var b=r,x,w,A;;){x=0,w=0,A=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],w++,x=0,--g===0){A=!0;break}}else if(e[S++]=o[m++],x++,w=0,--d===1){A=!0;break}while((x|w)<b);if(A)break;do{if(x=Zw(e[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)e[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){A=!0;break}}if(e[S++]=e[_++],--g===0){A=!0;break}if(w=Xw(o[m],e,_,g,0,t),w!==0){for(y=0;y<w;y++)e[S+y]=e[_+y];if(S+=w,_+=w,g-=w,g===0){A=!0;break}}if(e[S++]=o[m++],--d===1){A=!0;break}b--}while(x>=Sd||w>=Sd);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[S+y]=o[m+y]}}function v(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=e[p+y];var m=h+d-1,_=g-1,S=p+g-1,b=0,x=0;if(e[S--]=e[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)e[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)e[x+y]=e[b+y];e[S]=o[_];return}for(var w=r;;){var A=0,T=0,C=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],A++,T=0,--d===0){C=!0;break}}else if(e[S--]=o[_--],T++,A=0,--g===1){C=!0;break}while((A|T)<w);if(C)break;do{if(A=d-Zw(o[_],e,h,d,d-1,t),A!==0){for(S-=A,m-=A,d-=A,x=S+1,b=m+1,y=A-1;y>=0;y--)e[x+y]=e[b+y];if(d===0){C=!0;break}}if(e[S--]=o[_--],--g===1){C=!0;break}if(T=g-Xw(e[m],o,0,g,g-1,t),T!==0){for(S-=T,_-=T,g-=T,x=S+1,b=_+1,y=0;y<T;y++)e[x+y]=o[b+y];if(g<=1){C=!0;break}}if(e[S--]=e[m--],--d===0){C=!0;break}w--}while(A>=Sd||T>=Sd);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)e[x+y]=e[b+y];e[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)e[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function f_(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<aY){i=_B(e,r,n,t),SB(e,r,n,r+i,t);return}var o=mot(e,t),s=got(a);do{if(i=_B(e,r,n,t),i<s){var l=a;l>s&&(l=s),SB(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Sn=1,op=2,Jc=4,bB=!1;function qw(){bB||(bB=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function xB(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var _ot=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=xB}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,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,f_(n,xB)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),v=0;v<c.length;v++){var h=c[v];t.__dirty&&(h.__dirty|=Sn),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(qw(),d.z=0),isNaN(d.z2)&&(qw(),d.z2=0),isNaN(d.zlevel)&&(qw(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,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 a=bt(this._roots,t);a>=0&&this._roots.splice(a,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}(),OS;OS=Bt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Hp={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-Hp.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?Hp.bounceIn(e*2)*.5:Hp.bounceOut(e*2-1)*.5+.5}},bm=Math.pow,ll=Math.sqrt,RS=1e-8,iY=1e-4,wB=ll(3),xm=1/3,_i=Bl(),da=Bl(),Pv=Bl();function Ws(e){return e>-RS&&e<RS}function oY(e){return e>RS||e<-RS}function sr(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function TB(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function IS(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Ws(f)&&Ws(c))if(Ws(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Ws(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=ll(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-bm(-_,xm):_=bm(_,xm),S<0?S=-bm(-S,xm):S=bm(S,xm);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*ll(f*f*f)),x=Math.acos(b)/3,w=ll(f),A=Math.cos(x),d=(-s-2*w*A)/(3*o),y=(-s+w*(A+wB*Math.sin(x)))/(3*o),T=(-s+w*(A-wB*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),T>=0&&T<=1&&(i[h++]=T)}}return h}function sY(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ws(o)){if(oY(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Ws(f))a[0]=-i/(2*o);else if(f>0){var c=ll(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function xl(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function lY(e,t,r,n,a,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;_i[0]=l,_i[1]=u;for(var m=0;m<1;m+=.05)da[0]=sr(e,r,a,o,m),da[1]=sr(t,n,i,s,m),g=sl(_i,da),g<h&&(c=m,h=g);h=1/0;for(var _=0;_<32&&!(v<iY);_++)d=c-v,p=c+v,da[0]=sr(e,r,a,o,d),da[1]=sr(t,n,i,s,d),g=sl(da,_i),d>=0&&g<h?(c=d,h=g):(Pv[0]=sr(e,r,a,o,p),Pv[1]=sr(t,n,i,s,p),y=sl(Pv,_i),p<=1&&y<h?(c=p,h=y):v*=.5);return f&&(f[0]=sr(e,r,a,o,c),f[1]=sr(t,n,i,s,c)),ll(h)}function Sot(e,t,r,n,a,i,o,s,l){for(var u=e,f=t,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=sr(e,r,a,o,d),g=sr(t,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function mr(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function i2(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function bot(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ws(i)){if(oY(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Ws(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=ll(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function uY(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Sg(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function fY(e,t,r,n,a,i,o,s,l){var u,f=.005,c=1/0;_i[0]=o,_i[1]=s;for(var v=0;v<1;v+=.05){da[0]=mr(e,r,a,v),da[1]=mr(t,n,i,v);var h=sl(_i,da);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<iY);d++){var p=u-f,g=u+f;da[0]=mr(e,r,a,p),da[1]=mr(t,n,i,p);var h=sl(da,_i);if(p>=0&&h<c)u=p,c=h;else{Pv[0]=mr(e,r,a,g),Pv[1]=mr(t,n,i,g);var y=sl(Pv,_i);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=mr(e,r,a,u),l[1]=mr(t,n,i,u)),ll(c)}function xot(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=mr(e,r,a,v),d=mr(t,n,i,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var wot=/cubic-bezier\(([0-9,\.e ]+)\)/;function YO(e){var t=e&&wot.exec(e);if(t){var r=t[1].split(","),n=+zn(r[0]),a=+zn(r[1]),i=+zn(r[2]),o=+zn(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:IS(0,n,i,1,l,s)&&sr(0,a,o,1,s[0])}}}var Tot=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||Ee,this.ondestroy=t.ondestroy||Ee,this.onrestart=t.onrestart||Ee,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,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%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=ct(t)?t:Hp[t]||YO(t)},e}(),cY=function(){function e(t){this.value=t}return e}(),Aot=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new cY(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}(),uh=function(){function e(t){this._list=new Aot,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new cY(r),s.key=t,n.insertEntry(s),a[t]=s}return i},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}(),AB={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 $a(e){return e=Math.round(e),e<0?0:e>255?255:e}function Cot(e){return e=Math.round(e),e<0?0:e>360?360:e}function bg(e){return e<0?0:e>1?1:e}function c_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$a(parseFloat(t)/100*255):$a(parseInt(t,10))}function Go(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?bg(parseFloat(t)/100):bg(parseFloat(t))}function Kw(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 $s(e,t,r){return e+(t-e)*r}function aa(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function o2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vY=new uh(20),wm=null;function wc(e,t){wm&&o2(wm,t),wm=vY.put(e,wm||t.slice())}function Zr(e,t){if(e){t=t||[];var r=vY.get(e);if(r)return o2(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in AB)return o2(t,AB[n]),wc(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){aa(t,0,0,0,1);return}return aa(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),wc(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){aa(t,0,0,0,1);return}return aa(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),wc(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?aa(t,+u[0],+u[1],+u[2],1):aa(t,0,0,0,1);f=Go(u.pop());case"rgb":if(u.length>=3)return aa(t,c_(u[0]),c_(u[1]),c_(u[2]),u.length===3?f:Go(u[3])),wc(e,t),t;aa(t,0,0,0,1);return;case"hsla":if(u.length!==4){aa(t,0,0,0,1);return}return u[3]=Go(u[3]),s2(u,t),wc(e,t),t;case"hsl":if(u.length!==3){aa(t,0,0,0,1);return}return s2(u,t),wc(e,t),t;default:return}}aa(t,0,0,0,1)}}function s2(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Go(e[1]),a=Go(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],aa(t,$a(Kw(o,i,r+1/3)*255),$a(Kw(o,i,r)*255),$a(Kw(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Mot(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;t===i?l=v-c:r===i?l=1/3+f-v:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function PS(e,t){var r=Zr(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 Aa(r,r.length===4?"rgba":"rgb")}}function Dot(e){var t=Zr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Up(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=$a($s(o[0],s[0],l)),r[1]=$a($s(o[1],s[1],l)),r[2]=$a($s(o[2],s[2],l)),r[3]=bg($s(o[3],s[3],l)),r}}var Lot=Up;function jO(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Zr(t[a]),s=Zr(t[i]),l=n-a,u=Aa([$a($s(o[0],s[0],l)),$a($s(o[1],s[1],l)),$a($s(o[2],s[2],l)),bg($s(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var Eot=jO;function Ho(e,t,r,n){var a=Zr(e);if(e)return a=Mot(a),t!=null&&(a[0]=Cot(ct(t)?t(a[0]):t)),r!=null&&(a[1]=Go(ct(r)?r(a[1]):r)),n!=null&&(a[2]=Go(ct(n)?n(a[2]):n)),Aa(s2(a),"rgba")}function xg(e,t){var r=Zr(e);if(r&&t!=null)return r[3]=bg(t),Aa(r,"rgba")}function Aa(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 wg(e,t){var r=Zr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Oot(){return Aa([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var CB=new uh(100);function NS(e){if(K(e)){var t=CB.get(e);return t||(t=PS(e,-.1),CB.put(e,t)),t}else if(Ly(e)){var r=U({},e);return r.colorStops=W(e.colorStops,function(n){return{offset:n.offset,color:PS(n.color,-.1)}}),r}return e}const Rot=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Up,fastMapToColor:Lot,lerp:jO,lift:PS,liftColor:NS,lum:wg,mapToColor:Eot,modifyAlpha:xg,modifyHSL:Ho,parse:Zr,parseCssFloat:Go,parseCssInt:c_,random:Oot,stringify:Aa,toHex:Dot},Symbol.toStringTag,{value:"Module"}));var kS=Math.round;function Tg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Zr(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var MB=1e-4;function Xs(e){return e<MB&&e>-MB}function Tm(e){return kS(e*1e3)/1e3}function l2(e){return kS(e*1e4)/1e4}function Iot(e){return"matrix("+Tm(e[0])+","+Tm(e[1])+","+Tm(e[2])+","+Tm(e[3])+","+l2(e[4])+","+l2(e[5])+")"}var Pot={left:"start",right:"end",center:"middle",middle:"middle"};function Not(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function kot(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Bot(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 hY(e){return e&&!!e.image}function zot(e){return e&&!!e.svgElement}function WO(e){return hY(e)||zot(e)}function dY(e){return e.type==="linear"}function pY(e){return e.type==="radial"}function gY(e){return e&&(e.type==="linear"||e.type==="radial")}function Ub(e){return"url(#"+e+")"}function yY(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 mY(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Bp,a=ot(e.scaleX,1),i=ot(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+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+kS(o*Bp)+"deg, "+kS(s*Bp)+"deg)"),l.join(" ")}var Vot=function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}}(),u2=Array.prototype.slice;function So(e,t,r){return(t-e)*r+e}function Qw(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=So(t[i],r[i],n);return e}function Got(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=So(t[o][s],r[o][s],n)}return e}function Am(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function DB(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Hot(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Uot(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:u2.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Fp(e){if(Br(e)){var t=e.length;if(Br(e[0])){for(var r=[],n=0;n<t;n++)r.push(u2.call(e[n]));return r}return u2.call(e)}return e}function v_(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 Fot(e){return Br(e&&e[0])?2:1}var Cm=0,h_=1,_Y=2,sp=3,f2=4,c2=5,LB=6;function EB(e){return e===f2||e===c2}function Mm(e){return e===h_||e===_Y}var bd=[0,0,0,0],Yot=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 a=this.keyframes,i=a.length,o=!1,s=LB,l=r;if(Br(r)){var u=Fot(r);s=u,(u===1&&!Vt(r[0])||u===2&&!Vt(r[0][0]))&&(o=!0)}else if(Vt(r)&&!Nr(r))s=Cm;else if(K(r))if(!isNaN(+r))s=Cm;else{var f=Zr(r);f&&(l=f,s=sp)}else if(Ly(r)){var c=U({},l);c.colorStops=W(r.colorStops,function(h){return{offset:h.offset,color:Zr(h.color)}}),dY(r)?s=f2:pY(r)&&(s=c2),l=c}i===0?this.valType=s:(s!==this.valType||s===LB)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ct(n)?n:Hp[n]||YO(n)),a.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Mm(a),u=EB(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==i-1?Uot(v,h,a):u&&Hot(v.colorStops,h.colorStops))}if(!s&&a!==c2&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===Cm?n[f].additiveValue=n[f].value-d:a===sp?n[f].additiveValue=Am([],n[f].value,d,-1):Mm(a)&&(n[f].additiveValue=a===h_?Am([],n[f].value,d,-1):DB([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===sp,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,y=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?bd:t[l];if((Mm(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Mm(i))i===h_?Qw(m,h[a],d[a],y):Got(m,h[a],d[a],y);else if(EB(i)){var _=h[a],S=d[a],b=i===f2;t[l]={type:b?"linear":"radial",x:So(_.x,S.x,y),y:So(_.y,S.y,y),colorStops:W(_.colorStops,function(w,A){var T=S.colorStops[A];return{offset:So(w.offset,T.offset,y),color:v_(Qw([],w.color,T.color,y))}}),global:S.global},b?(t[l].x2=So(_.x2,S.x2,y),t[l].y2=So(_.y2,S.y2,y)):t[l].r=So(_.r,S.r,y)}else if(u)Qw(m,h[a],d[a],y),n||(t[l]=v_(m));else{var x=So(h[a],d[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Cm?t[n]=t[n]+a:r===sp?(Zr(t[n],bd),Am(bd,bd,a,1),t[n]=v_(bd)):r===h_?Am(t[n],t[n],a,1):r===_Y&&DB(t[n],t[n],a,1)},e}(),$O=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Bb("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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,Nt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Yot(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===sp&&u&&(u=v_(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Fp(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Fp(r[s]),a)}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 a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Tot({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.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 W(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,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Fp(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Nt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function _v(){return new Date().getTime()}var jot=function(e){ye(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,a=r.next;n?n.next=a:this._head=a,a?a.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=_v()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(OS(n),!r._paused&&r.update())}OS(n)},t.prototype.start=function(){this._running||(this._time=_v(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_v(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_v()-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 a=new $O(r,n.loop);return this.addAnimator(a),a},t}(Pa),Wot=300,Jw=Bt.domSupported,tT=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=W(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),OB={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},RB=!1;function v2(e){var t=e.pointerType;return t==="pen"||t==="touch"}function $ot(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 eT(e){e&&(e.zrByTouch=!0)}function Xot(e,t){return oa(e.dom,new Zot(e,t),!0)}function SY(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 Zot=function(){function e(t,r){this.stopPropagation=Ee,this.stopImmediatePropagation=Ee,this.preventDefault=Ee,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ga={mousedown:function(e){e=oa(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=oa(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=oa(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=oa(this.dom,e);var t=e.toElement||e.relatedTarget;SY(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){RB=!0,e=oa(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){RB||(e=oa(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=oa(this.dom,e),eT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ga.mousemove.call(this,e),Ga.mousedown.call(this,e)},touchmove:function(e){e=oa(this.dom,e),eT(e),this.handler.processGesture(e,"change"),Ga.mousemove.call(this,e)},touchend:function(e){e=oa(this.dom,e),eT(e),this.handler.processGesture(e,"end"),Ga.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Wot&&Ga.click.call(this,e)},pointerdown:function(e){Ga.mousedown.call(this,e)},pointermove:function(e){v2(e)||Ga.mousemove.call(this,e)},pointerup:function(e){Ga.mouseup.call(this,e)},pointerout:function(e){v2(e)||Ga.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){Ga[e]=function(t){t=oa(this.dom,t),this.trigger(e,t)}});var h2={pointermove:function(e){v2(e)||h2.mousemove.call(this,e)},pointerup:function(e){h2.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 qot(e,t){var r=t.domHandlers;Bt.pointerEventsSupported?D(tT.pointer,function(n){d_(t,n,function(a){r[n].call(e,a)})}):(Bt.touchEventsSupported&&D(tT.touch,function(n){d_(t,n,function(a){r[n].call(e,a),$ot(t)})}),D(tT.mouse,function(n){d_(t,n,function(a){a=FO(a),t.touching||r[n].call(e,a)})}))}function Kot(e,t){Bt.pointerEventsSupported?D(OB.pointer,r):Bt.touchEventsSupported||D(OB.mouse,r);function r(n){function a(i){i=FO(i),SY(e,i.target)||(i=Xot(e,i),t.domHandlers[n].call(e,i))}d_(t,n,a,{capture:!0})}}function d_(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,r2(e.domTarget,t,r,n)}function rT(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&¬(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var IB=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Qot=function(e){ye(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new IB(r,Ga),Jw&&(a._globalHandlerScope=new IB(document,h2)),qot(a,a._localHandlerScope),a}return t.prototype.dispose=function(){rT(this._localHandlerScope),Jw&&rT(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,Jw&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Kot(this,n):rT(n)}},t}(Pa),bY=1;Bt.hasGlobalWindow&&(bY=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var BS=bY,d2=.4,p2="#333",g2="#ccc",Jot="#eee",PB=ac,NB=5e-5;function ql(e){return e>NB||e<-NB}var Kl=[],Tc=[],nT=Se(),aT=Math.abs,ao=function(){function e(){}return e.prototype.getLocalTransform=function(t){return wl(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 ql(this.rotation)||ql(this.x)||ql(this.y)||ql(this.scaleX-1)||ql(this.scaleY-1)||ql(this.skewX)||ql(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(PB(n),this.invTransform=null);return}n=n||Se(),r?this.getLocalTransform(n):PB(n),t&&(r?Wn(n,t,n):bl(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Se(),qn(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Kl);var n=Kl[0]<0?-1:1,a=Kl[1]<0?-1:1,i=((Kl[0]-n)*r+n)/Kl[0]||0,o=((Kl[1]-a)*r+a)/Kl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}},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],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,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||Se(),Wn(Tc,t.invTransform,r),r=Tc);var n=this.originX,a=this.originY;(n||a)&&(nT[4]=n,nT[5]=a,Wn(Tc,r,nT),Tc[4]-=n,Tc[5]-=a,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],a=this.invTransform;return a&&Oe(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Oe(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&aT(t[0]-1)>1e-10&&aT(t[3]-1)>1e-10?Math.sqrt(aT(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Wi(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;r[4]=-d*i-v*p*o,r[5]=-p*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=v*o,u&&ps(r,r,u),r[4]+=n+f,r[5]+=a+c,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}(),wl=ao.getLocalTransform;function Nv(){return new ao}var rs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Wi(e,t){return F7(e,t,rs)}function Bi(e){Dm||(Dm=new uh(100)),e=e||ts;var t=Dm.get(e);return t||(t={font:e,strWidthCache:new uh(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:fr.measureText("国",e).width,asciiCharWidth:fr.measureText("a",e).width},Dm.put(e,t)),t}var Dm;function tst(e){if(!(iT>=kB)){e=e||ts;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=fr.measureText(String.fromCharCode(n),e).width;var a=+new Date-r;return a>16?iT=kB:a>2&&iT++,t}}var iT=0,kB=5;function xY(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=tst(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function zi(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=fr.measureText(t,e.font).width,r.put(t,n)),n}function BB(e,t,r,n){var a=zi(Bi(t),e),i=Ry(t),o=fh(0,a,r),s=qu(0,i,n),l=new dt(o,s,a,i);return l}function Fb(e,t,r,n){var a=((e||"")+"").split(`
|
|
146
|
+
`),i=a.length;if(i===1)return BB(a[0],t,r,n);for(var o=new dt(0,0,0,0),s=0;s<a.length;s++){var l=BB(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function fh(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function qu(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Ry(e){return Bi(e).stWideCharWidth}function $i(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function zS(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=$i(n[0],r.width),u+=$i(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var oT="__zr_normal__",sT=rs.concat(["ignore"]),est=La(rs,function(e,t){return e[t]=!0,e},{ignore:!1}),Ac={},rst=new dt(0,0,0,0),Lm=[],p_=0,Yb=1,jb=function(){function e(t){this.id=VO(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[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,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=rst,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ac,n,v):zS(Ac,n,v),i.x=Ac.x,i.y=Ac.y,o=Ac.align,s=Ac.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=$i(h[0],v.width),p=$i(h[1],v.height)),u=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+p+(a?0:v.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new dt(0,0,0,0);i.getLocalTransform(Lm),qn(Lm,Lm),dt.copy(m,v),m.applyTransform(Lm)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Sn,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()?g2:p2},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Zr(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Aa(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||{},U(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(gt(t))for(var n=t,a=Nt(n),i=0;i<a.length;i++){var o=a[i];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 a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==oT)){var o=a.targetName,s=o?r[o]:r;a.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,sT)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},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(oT,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===oT,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Bb("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,c=zB(this,f,u,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(t,u,this._normalState,r,GB(this,n,l),l);var v=this._textGuide;return f&&f.useState(t,r,n,!!c),v&&v.useState(t,r,n,!!c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=p_,this.__dirty&=~Sn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],v=this._textContent,h=zB(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,GB(this,r,p),p);var g=this._textGuide;v&&v.useStates(t,r,!!h),g&&g.useStates(t,r,!!h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=p_,this.__dirty&=~Sn)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},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=bt(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 a=this.currentStates.slice(),i=bt(a,t),o=bt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];U(r,i),i.textConfig&&(n=n||{},U(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){if(this.__inHover!==Yb){var s=!(r&&a);r&&r.textConfig?(this.textConfig=U({},a?this.textConfig:n.textConfig),U(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<sT.length;f++){var c=sT[f],v=i&&est[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]: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 ao,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),U(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|=Sn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},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 a=t?this[t]:this,i=new $O(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=bt(i,t);o>=0&&i.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,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){lT(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){lT(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=lT(this,r,n,a),o=0;o<i.length;o++)i[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.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=p_,t.__dirty=Sn;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Ye(jb,Pa);Ye(jb,ao);function lT(e,t,r,n,a){r=r||{};var i=[];wY(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,p){r.during(p)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function uT(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function nst(e){return Br(e[0])}function ast(e,t,r){if(Br(t[r]))if(Br(e[r])||(e[r]=[]),un(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),uT(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(nst(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?uT(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else uT(i,a,o);i.length=a.length}else e[r]=t[r]}function ist(e,t){return e===t||Br(e)&&Br(t)&&ost(e,t)}function ost(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 wY(e,t,r,n,a,i,o,s){for(var l=Nt(n),u=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!gt(i),d=e.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&r[y]!=null&&(h||i[y]))if(gt(m)&&!Br(m)&&!Ly(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}wY(e,y,r[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var x=b.stopTracks(p);if(x){var w=bt(d,b);d.splice(w,1)}}}if(a.force||(p=Xt(p,function(M){return!ist(n[M],r[M])}),_=p.length),_>0||a.force&&!o.length){var A=void 0,T=void 0,C=void 0;if(s){T={},v&&(A={});for(var S=0;S<_;S++){var y=p[S];T[y]=r[y],v?A[y]=n[y]:r[y]=n[y]}}else if(v){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=Fp(r[y]),ast(r,n,y)}}var b=new $O(r,!1,!1,c?Xt(d,function(E){return E.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),v&&A&&b.whenWithKeys(0,A,p),C&&b.whenWithKeys(0,C,p),b.whenWithKeys(u??500,s?T:n,p).delay(f||0),e.addAnimator(b,t),o.push(b)}}function zB(e,t,r,n){return!(r&&r.hoverLayer||n)||VB(e)||t&&VB(t)?p_:Yb}function VB(e){return e.type==="text"||e.type==="tspan"}function GB(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}var ht=function(e){ye(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,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},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 a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=bt(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.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,a=this._children,i=bt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.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 a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new dt(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(dt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(jb);ht.prototype.type="group";/*!
|
|
147
|
+
* ZRender, a high performance 2d drawing library.
|
|
148
|
+
*
|
|
149
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
150
|
+
* All rights reserved.
|
|
151
|
+
*
|
|
152
|
+
* LICENSE
|
|
153
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
154
|
+
*/var g_={},zu={};function sst(e){delete zu[e]}function lst(e){if(!e)return!1;if(typeof e=="string")return wg(e,1)<d2;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=wg(t[a].color,1);return r/=n,r<d2}return!1}var ust=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new _ot,o=n.renderer||"canvas";g_[o]||(o=Nt(g_)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new g_[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Bt.node&&!Bt.worker&&!l?new Qot(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Bt.touchEventsSupported:!!f,v=44,h;c&&(h=ot(n.pointerSize,v)),this.handler=new rY(i,s,u,s.root,h),this.animation=new jot({stage:{update:l?null:function(){return a._flush(!1)}}}),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=lst(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||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var r,n=_v(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(r=!0,this._refresh({animUpdate:t,refresh:a,refreshHover:i}));var o=_v();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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 ht&&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,sst(this.id))},e}();function y2(e,t){var r=new ust(VO(),e,t);return zu[r.id]=r,r}function fst(e){e.dispose()}function cst(){for(var e in zu)zu.hasOwnProperty(e)&&zu[e].dispose();zu={}}function vst(e){return zu[e]}function TY(e,t){g_[e]=t}var m2;function AY(e){if(typeof m2=="function")return m2(e)}function CY(e){m2=e}var hst="6.1.0";const dst=Object.freeze(Object.defineProperty({__proto__:null,dispose:fst,disposeAll:cst,getElementSSRData:AY,getInstance:vst,init:y2,registerPainter:TY,registerSSRDataGetter:CY,version:hst},Symbol.toStringTag,{value:"Module"}));var HB=1e-4,VS=20,pst=14;function gst(e){return e.replace(/^\s+|\s+$/g,"")}var te=Math.min,Dt=Math.max,Le=Math.abs,Xi=Math.round,Ea=Math.floor,ic=Math.ceil,oc=Math.pow,yf=Math.log,Ag=Math.LN10,GS=Math.PI,yst=Math.random;function Wt(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}var J=mst;function mst(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return HS(e,t,r)}function HS(e,t,r){return K(e)?MY(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function _st(e){return K(e)&&MY(e)}function MY(e){return!!gst(e).match(/%$/)}function Yt(e,t,r){return isNaN(t)?r?""+e:+e:(t=te(Dt(0,t),VS),e=(+e).toFixed(t),r?e:+e)}function Sst(e,t,r){return t==null&&(t=10),Yt(e,t,r)}function Sr(e){return e.sort(function(t,r){return t-r}),e}function Ci(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Xi(e*t)/t===e)return r}return DY(e)}function DY(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Dt(0,o-n)}function bst(e,t){var r=Ea(yf(e[1]-e[0])/Ag),n=Xi(yf(Le(t[1]-t[0]))/Ag),a=te(Dt(-r+n,0),VS);return isFinite(a)?a:VS}function XO(e,t,r){var n=Le(e[1]-e[0]);if(!isFinite(n)||n===0)return NaN;var a=yf(2*Le(r||1)*Le(n))/Ag,i=yf(Le(t))/Ag,o=Dt(0,ic(-a+i));return isFinite(o)||(o=NaN),o}function xst(e,t,r){if(!e[t])return 0;var n=LY(e,r);return n[t]||0}function LY(e,t){var r=La(e,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=oc(10,t),a=W(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=W(a,function(h){return Ea(h)}),s=La(o,function(h,d){return h+d},0),l=W(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return W(o,function(h){return h/n})}function Au(e,t){var r=Dt(Ci(e),Ci(t)),n=e+t;return r>VS?n:Yt(n,r)}var Cg=oc(2,53)-1;function ZO(e){var t=GS*2;return(e%t+t)%t}function mf(e){return e>-HB&&e<HB}var wst=/^(?:(\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 io(e){if(e instanceof Date)return e;if(K(e)){var t=wst.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(Xi(e))}function qO(e){return oc(10,Wb(e))}function Wb(e){if(e===0)return 0;var t=Ea(yf(e)/Ag);return e/oc(10,t)>=10&&t++,t}var EY=2;function $b(e,t){var r=Wb(e),n=oc(10,r),a=e/n,i;return t===EY?i=1:t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,Yt(e,-r)}function y_(e,t){var r=(e.length-1)*t+1,n=Ea(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function _2(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 a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Zi(e){var t=parseFloat(e);return t==e&&(t!==0||!K(e)||e.indexOf("x")<=0)?t:NaN}function KO(e){return!isNaN(Zi(e))}function QO(){return Xi(yst()*9)}function OY(e,t){return t===0?e:OY(t,e%t)}function UB(e,t){return e==null?t:t==null?e:e*t/OY(e,t)}function Oa(e){return e!=null&&isFinite(e)}var Tst="[ECharts] ",Ast=typeof console<"u"&&console.warn&&console.log;function Cst(e,t,r){Ast&&console[e](Tst+t)}function RY(e,t){Cst("error",e)}function $t(e){throw new Error(e)}function FB(e,t,r){return(t-e)*r+e}var IY="series\0",PY="\0_ec_\0";function le(e){return e instanceof Array?e:e==null?[]:[e]}function _f(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var YB=["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 Gh(e){return gt(e)&&!Y(e)&&!(e instanceof Date)?e.value:e}function Mst(e){return gt(e)&&!(e instanceof Array)}function NY(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=rt();D(t,function(l,u){if(!gt(l)){t[u]=null;return}});var s=Dst(e,o,r);return(n||a)&&Lst(s,e,o,t),n&&Est(s,t),n||a?Ost(s,t,a):i&&Rst(s,t),Ist(s),s}function Dst(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||Mg(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function Lst(e,t,r,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=Yp(a.id),s=r.get(o);if(s!=null){var l=e[s];zr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function Est(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!Mg(r)&&!Mg(i)&&kY("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function Ost(e,t,r){D(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||Mg(a.existing)||a.existing&&n.id!=null&&!kY("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function Rst(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Ist(e){var t=rt();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;zr(!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 a=r.existing,i=r.newOption,o=r.keyInfo;if(gt(i)){if(o.name=i.name!=null?Yp(i.name):a?a.name:IY+n,a)o.id=Yp(a.id);else if(i.id!=null)o.id=Yp(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function kY(e,t,r){var n=rr(t[e],null),a=rr(r[e],null);return n!=null&&a!=null&&n===a}function Yp(e){return rr(e,"")}function rr(e,t){return e==null?t:K(e)?e:Vt(e)||MS(e)?e+"":t}function JO(e){var t=e.name;return!!(t&&t.indexOf(IY))}function Mg(e){return e&&e.id!=null&&Yp(e.id).indexOf(PY)===0}function Pst(e){return PY+e}function Nst(e,t,r){D(e,function(n){var a=n.newOption;gt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=kst(t,a,n.existing,r))})}function kst(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Bst(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=rr(o[u].seriesId,null);if(c==null)return;for(var v=le(o[u].dataIndex),h=l&&l[c],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Sf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?W(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?W(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Tt(){var e="__ec_inner_"+zst++;return function(t){return t[e]||(t[e]={})}}var zst=QO();function kv(e,t,r){var n=tR(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=Hh(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function tR(e,t){var r;if(K(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=rt(),i={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&bt(t.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Pe={useDefault:!0,enableAll:!1,enableNone:!1},Vst={useDefault:!1,enableAll:!0,enableNone:!0};function Hh(e,t,r,n){n=n||Pe;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s}function eR(e,t,r){var n={};n[t+"Id"]=e[t+"Id"],n[t+"Index"]=e[t+"Index"],n[t+"Name"]=e[t+"Name"];var a={mainType:t,query:n};return r&&(a.subType=r),a}function BY(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Gst(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Hst(e){return e==="auto"?Bt.domSupported?"html":"richText":e||"html"}function S2(e,t){var r=rt(),n=[];return D(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function zY(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Vt(n)){var o=FB(r||0,n,a);return Yt(o,i?Math.max(Ci(r||0),Ci(n)):t)}else{if(K(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=e.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=FB(h,d,a);s[c]=Yt(o,i?Math.max(Ci(h),Ci(d)):t)}}return s}}var ul=function(){function e(){}return e.prototype.reset=function(t,r,n,a){return this._list=t,this._step=a=a||1,this._idx=r,this._end=n??(a>0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e}();function fT(e){e.option=e.parentModel=e.ecModel=null}function Lr(){return[1/0,-1/0]}function b2(e,t){ns(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function VY(e,t){ns(t)&&t<e[0]&&(e[0]=t)}function GY(e,t){ns(t)&&t>e[1]&&(e[1]=t)}function Ust(e,t){bf(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function ns(e){return e!=null&&isFinite(e)}function bf(e,t){return ns(e)&&ns(t)&&e<=t}function Fst(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function m_(e){bf(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Uh(){var e="__ec_once_"+Yst++;return function(t,r){nt(t,e)||(t[e]=1,r())}}var Yst=QO();function Xb(e,t,r){var n=rt(),a=0;D(e,function(i){var o=t(i),s=n.get(o)||0;r&&r(i,s),!s&&!r&&(e[a++]=i),n.set(o,s+1)}),r||(e.length=a)}function jst(e){return e.value+""}function Wst(e){return e+""}function Vi(e,t){return ot(t,!0)?e.seriesIndex+2:0}function HY(e,t,r){var n=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,large:e.get("large")&&n>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function ir(e,t){return{seriesType:e,overallReset:t}}function Iy(e){return{overallReset:e}}var $st=".",Ql="___EC__COMPONENT__CONTAINER___",UY="___EC__EXTENDED_CLASS___";function Mi(e){var t={main:"",sub:""};if(e){var r=e.split($st);t.main=r[0]||"",t.sub=r[1]||""}return t}function Xst(e){zr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Zst(e){return!!(e&&e[UY])}function rR(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return qst(n)?a=function(i){G(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},GO(a,this)),U(a.prototype,r),a[UY]=!0,a.extend=this.extend,a.superCall=Jst,a.superApply=tlt,a.superClass=n,a}}function qst(e){return ct(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function FY(e,t){e.extend=t.extend}var Kst=Math.round(Math.random()*10);function Qst(e){var t=["__\0is_clz",Kst++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Jst(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 tlt(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Zb(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Xst(a),n.prototype.type=a;var i=Mi(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Ql){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Ql]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=Mi(n),i=[],o=t[a.main];return o&&o[Ql]?D(o,function(s,l){l!==Ql&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=Mi(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=Mi(n),i=t[a.main];return i&&i[Ql]};function r(n){var a=t[n.main];return(!a||!a[Ql])&&(a=t[n.main]={},a[Ql]=!0),a}}function xf(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,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&bt(a,l)>=0||i&&bt(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var elt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],rlt=xf(elt),nlt=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return rlt(this,t,r)},e}(),x2=new uh(50);function alt(e){if(typeof e=="string"){var t=x2.get(e);return t&&t.image}else return e}function nR(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=x2.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!qb(t)&&i.pending.push(o)):(t=fr.loadImage(e,jB,jB),t.__zrImageSrc=e,x2.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function jB(){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 qb(e){return e&&e.width&&e.height}var cT=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ilt(e,t,r,n,a){var i={};return YY(i,e,t,r,n,a),i.text}function YY(e,t,r,n,a,i){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
155
|
+
`);i=jY(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)WY(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
|
|
156
|
+
`),e.isTruncated=s}function jY(e,t,r,n){n=n||{};var a=U({},n);r=ot(r,"..."),a.maxIterations=ot(n.maxIterations,2);var i=a.minChar=ot(n.minChar,0),o=a.fontMeasureInfo=Bi(t),s=o.asciiCharWidth;a.placeholder=ot(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<i&&l>=s;u++)l-=s;var f=zi(o,r);return f>l&&(r="",f=0),l=e-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=e,a}function WY(e,t,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=zi(i,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?olt(t,a,i):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=zi(i,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function olt(e,t,r){for(var n=0,a=0,i=e.length;a<i&&n<t;a++)n+=xY(r,e.charCodeAt(a));return a}function slt(e,t,r,n){var a=aR(e),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",c=Ry(u),v=ot(t.lineHeight,c),h=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?$Y(a,t.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
|
|
157
|
+
`):[];var m=y.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(a&&f&&p!=null)for(var S=jY(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},x=0;x<y.length;x++)WY(b,y[x],S),y[x]=b.textLine,d=d||b.isTruncated;for(var w=g,A=0,T=Bi(u),x=0;x<y.length;x++)A=Math.max(zi(T,y[x]),A);p==null&&(p=A);var C=p;return w+=l,C+=s,{lines:y,height:g,outerWidth:C,outerHeight:w,lineHeight:v,calculatedLineHeight:c,contentWidth:A,contentHeight:m,width:p,isTruncated:d}}var llt=function(){function e(){}return e}(),WB=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),ult=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function flt(e,t,r,n,a){var i=new ult,o=aR(e);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var v=t.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=cT.lastIndex=0,p;(p=cT.exec(o))!=null;){var g=p.index;g>d&&vT(i,o.substring(d,g),t,h),vT(i,p[2],t,h,p[1]),d=cT.lastIndex}d<o.length&&vT(i,o.substring(d,o.length),t,h);var y=[],m=0,_=0,S=v==="truncate",b=t.lineOverflow==="truncate",x={};function w(_t,lt,it){_t.width=lt,_t.lineHeight=it,m+=it,_=Math.max(_,lt)}t:for(var A=0;A<i.lines.length;A++){for(var T=i.lines[A],C=0,M=0,E=0;E<T.tokens.length;E++){var L=T.tokens[E],R=L.styleName&&t.rich[L.styleName]||{},I=L.textPadding=R.padding,O=I?I[1]+I[3]:0,N=L.font=R.font||t.font;L.contentHeight=Ry(N);var P=ot(R.height,L.contentHeight);if(L.innerHeight=P,I&&(P+=I[0]+I[2]),L.height=P,L.lineHeight=wn(R.lineHeight,t.lineHeight,P),L.align=R&&R.align||a,L.verticalAlign=R&&R.verticalAlign||"middle",b&&c!=null&&m+L.lineHeight>c){var B=i.lines.length;E>0?(T.tokens=T.tokens.slice(0,E),w(T,M,C),i.lines=i.lines.slice(0,A+1)):i.lines=i.lines.slice(0,A),i.isTruncated=i.isTruncated||i.lines.length<B;break t}var z=R.width,H=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")L.percentWidth=z,y.push(L),L.contentWidth=zi(Bi(N),L.text);else{if(H){var F=R.backgroundColor,$=F&&F.image;$&&($=alt($),qb($)&&(L.width=Math.max(L.width,$.width*P/$.height)))}var j=S&&f!=null?f-M:null;j!=null&&j<L.width?!H||j<O?(L.text="",L.width=L.contentWidth=0):(YY(x,L.text,j-O,N,t.ellipsis,{minChar:t.truncateMinChar}),L.text=x.text,i.isTruncated=i.isTruncated||x.isTruncated,L.width=L.contentWidth=zi(Bi(N),L.text)):L.contentWidth=zi(Bi(N),L.text)}L.width+=O,M+=L.width,R&&(C=Math.max(C,L.lineHeight))}w(T,M,C)}i.outerWidth=i.width=ot(f,_),i.outerHeight=i.height=ot(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var A=0;A<y.length;A++){var L=y[A],tt=L.percentWidth;L.width=parseInt(tt,10)/100*i.width}return i}function vT(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=$i(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
|
|
158
|
+
`),u=!0),n.accumWidth=d}else{var p=$Y(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(`
|
|
159
|
+
`));for(var g=Bi(l),y=0;y<f.length;y++){var m=f[y],_=new llt;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[y]:zi(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new WB)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(m||!b||i)&&S.push(_)}else s.push(new WB([_]))}}function clt(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var vlt=La(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hlt(e){return clt(e)?!!vlt[e]:!0}function $Y(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=Bi(t),v=0;v<e.length;v++){var h=e.charAt(v);if(h===`
|
|
160
|
+
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=xY(c,h.charCodeAt(0)),p=n?!1:!hlt(h);if(i.length?f+d>r:a+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function $B(e,t,r,n,a,i){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;dt.set(XB,fh(r,o,a),qu(n,s,i),o,s),dt.intersect(t,XB,null,ZB);var l=ZB.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=fh(l.x,l.width,a,!0),e.baseY=qu(l.y,l.height,i,!0)}}var XB=new dt(0,0,0,0),ZB={outIntersectRect:{},clamp:!0};function aR(e){return e!=null?e+="":e=""}function dlt(e){var t=aR(e.text),r=e.font,n=zi(Bi(r),t),a=Ry(r);return w2(e,n,a,null)}function w2(e,t,r,n){var a=new dt(fh(e.x||0,t,e.textAlign),qu(e.y||0,r,e.textBaseline),t,r),i=n??(XY(e)?e.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function XY(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var T2="__zr_style_"+Math.round(Math.random()*10),Ku={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kb={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ku[T2]=!0;var qB=["z","z2","invisible"],plt=["invisible"],Ra=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Nt(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(r){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&glt(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&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 a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new dt(0,0,0,0)),n?dt.applyTransform(r,a,n):r.copy(a),(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 dt(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:U(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=op,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&op)},t.prototype.styleUpdated=function(){this.__dirty&=~op},t.prototype.createStyle=function(r){return Oy(Ku,r)},t.prototype.useStyle=function(r){r[T2]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},t.prototype._useHoverStyle=function(r){this.__hoverStyle=r},t.prototype.isStyleObject=function(r){return r[T2]},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,qB)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===Yb,f;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):l&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=Nt(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=Nt(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?plt:qB,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return U(r,n),r},t.prototype.getAnimationStyleProps=function(){return Kb},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=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Sn|op}(),t}(jb),hT=new dt(0,0,0,0),dT=new dt(0,0,0,0);function glt(e,t,r){return hT.copy(e.getBoundingRect()),e.transform&&hT.applyTransform(e.transform),dT.width=t,dT.height=r,!hT.intersect(dT)}var mn=Math.min,_n=Math.max,pT=Math.sin,gT=Math.cos,Jl=Math.PI*2,Em=Bl(),Om=Bl(),Rm=Bl();function Qb(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=mn(a,n[0]),i=_n(i,n[0]),o=mn(o,n[1]),s=_n(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function KB(e,t,r,n,a,i){a[0]=mn(e,r),a[1]=mn(t,n),i[0]=_n(e,r),i[1]=_n(t,n)}var QB=[],JB=[];function ylt(e,t,r,n,a,i,o,s,l,u){var f=sY,c=sr,v=f(e,r,a,o,QB);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(e,r,a,o,QB[h]);l[0]=mn(d,l[0]),u[0]=_n(d,u[0])}v=f(t,n,i,s,JB);for(var h=0;h<v;h++){var p=c(t,n,i,s,JB[h]);l[1]=mn(p,l[1]),u[1]=_n(p,u[1])}l[0]=mn(e,l[0]),u[0]=_n(e,u[0]),l[0]=mn(o,l[0]),u[0]=_n(o,u[0]),l[1]=mn(t,l[1]),u[1]=_n(t,u[1]),l[1]=mn(s,l[1]),u[1]=_n(s,u[1])}function mlt(e,t,r,n,a,i,o,s){var l=uY,u=mr,f=_n(mn(l(e,r,a),1),0),c=_n(mn(l(t,n,i),1),0),v=u(e,r,a,f),h=u(t,n,i,c);o[0]=mn(e,a,v),o[1]=mn(t,i,h),s[0]=_n(e,a,v),s[1]=_n(t,i,h)}function _lt(e,t,r,n,a,i,o,s,l){var u=Oo,f=Ro,c=Math.abs(a-i);if(c%Jl<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Em[0]=gT(a)*r+e,Em[1]=pT(a)*n+t,Om[0]=gT(i)*r+e,Om[1]=pT(i)*n+t,u(s,Em,Om),f(l,Em,Om),a=a%Jl,a<0&&(a=a+Jl),i=i%Jl,i<0&&(i=i+Jl),a>i&&!o?i+=Jl:a<i&&o&&(a+=Jl),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(Rm[0]=gT(h)*r+e,Rm[1]=pT(h)*n+t,u(s,Rm,s),f(l,Rm,l))}var fe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tu=[],eu=[],si=[],Ss=[],li=[],ui=[],yT=Math.min,mT=Math.max,ru=Math.cos,nu=Math.sin,ho=Math.abs,A2=Math.PI,Ds=A2*2,_T=typeof Float32Array<"u",xd=[];function ST(e){var t=Math.round(e/A2*1e8)/1e8;return t%2*A2}function Jb(e,t){var r=ST(e[0]);r<0&&(r+=Ds);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Ds?a=r+Ds:t&&r-a>=Ds?a=r-Ds:!t&&r>a?a=r+(Ds-ST(r-a)):t&&r<a&&(a=r-(Ds-ST(a-r))),e[0]=r,e[1]=a}var qi=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=ho(n/BS/t)||0,this._uy=ho(n/BS/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(fe.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=ho(t-this._xi),a=ho(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(fe.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(fe.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(fe.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),xd[0]=a,xd[1]=i,Jb(xd,o),a=xd[0],i=xd[1];var s=i-a;return this.addData(fe.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=ru(i)*n+t,this._yi=nu(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(fe.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(fe.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){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&_T&&(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){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();var o=this.data;if(_T&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},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,_T&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){si[0]=si[1]=li[0]=li[1]=Number.MAX_VALUE,Ss[0]=Ss[1]=ui[0]=ui[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case fe.M:r=a=t[o++],n=i=t[o++],li[0]=a,li[1]=i,ui[0]=a,ui[1]=i;break;case fe.L:KB(r,n,t[o],t[o+1],li,ui),r=t[o++],n=t[o++];break;case fe.C:ylt(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],li,ui),r=t[o++],n=t[o++];break;case fe.Q:mlt(r,n,t[o++],t[o++],t[o],t[o+1],li,ui),r=t[o++],n=t[o++];break;case fe.A:var u=t[o++],f=t[o++],c=t[o++],v=t[o++],h=t[o++],d=t[o++]+h;o+=1;var p=!t[o++];l&&(a=ru(h)*c+u,i=nu(h)*v+f),_lt(u,f,c,v,h,d,p,li,ui),r=ru(d)*c+u,n=nu(d)*v+f;break;case fe.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];KB(a,i,a+g,i+y,li,ui);break;case fe.Z:r=a,n=i;break}Oo(si,si,li),Ro(Ss,Ss,ui)}return o===0&&(si[0]=si[1]=Ss[0]=Ss[1]=0),new dt(si[0],si[1],Ss[0]-si[0],Ss[1]-si[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=t[v++],d=v===1;d&&(i=t[v],o=t[v+1],s=i,l=o);var p=-1;switch(h){case fe.M:i=s=t[v++],o=l=t[v++];break;case fe.L:{var g=t[v++],y=t[v++],m=g-i,_=y-o;(ho(m)>n||ho(_)>a||v===r-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case fe.C:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++],x=t[v++],w=t[v++];p=Sot(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case fe.Q:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++];p=xot(i,o,S,b,g,y,10),i=g,o=y;break}case fe.A:var A=t[v++],T=t[v++],C=t[v++],M=t[v++],E=t[v++],L=t[v++],R=L+E;v+=1,d&&(s=ru(E)*C+A,l=nu(E)*M+T),p=mT(C,M)*yT(Ds,Math.abs(L)),i=ru(R)*C+A,o=nu(R)*M+T;break;case fe.R:{s=i=t[v++],l=o=t[v++];var I=t[v++],O=t[v++];p=I*2+O*2;break}case fe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,g=0,y=0,m,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))t:for(var x=0;x<o;){var w=n[x++],A=x===1;switch(A&&(u=n[x],f=n[x+1],s=u,l=f),w!==fe.L&&_>0&&(t.lineTo(S,b),_=0),w){case fe.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case fe.L:{c=n[x++],v=n[x++];var T=ho(c-u),C=ho(v-f);if(T>a||C>i){if(h){var M=d[y++];if(g+M>m){var E=(m-g)/M;t.lineTo(u*(1-E)+c*E,f*(1-E)+v*E);break t}g+=M}t.lineTo(c,v),u=c,f=v,_=0}else{var L=T*T+C*C;L>_&&(S=c,b=v,_=L)}break}case fe.C:{var R=n[x++],I=n[x++],O=n[x++],N=n[x++],P=n[x++],B=n[x++];if(h){var M=d[y++];if(g+M>m){var E=(m-g)/M;xl(u,R,O,P,E,tu),xl(f,I,N,B,E,eu),t.bezierCurveTo(tu[1],eu[1],tu[2],eu[2],tu[3],eu[3]);break t}g+=M}t.bezierCurveTo(R,I,O,N,P,B),u=P,f=B;break}case fe.Q:{var R=n[x++],I=n[x++],O=n[x++],N=n[x++];if(h){var M=d[y++];if(g+M>m){var E=(m-g)/M;Sg(u,R,O,E,tu),Sg(f,I,N,E,eu),t.quadraticCurveTo(tu[1],eu[1],tu[2],eu[2]);break t}g+=M}t.quadraticCurveTo(R,I,O,N),u=O,f=N;break}case fe.A:var z=n[x++],H=n[x++],F=n[x++],$=n[x++],j=n[x++],tt=n[x++],_t=n[x++],lt=!n[x++],it=F>$?F:$,Q=ho(F-$)>.001,st=j+tt,Z=!1;if(h){var M=d[y++];g+M>m&&(st=j+tt*(m-g)/M,Z=!0),g+=M}if(Q&&t.ellipse?t.ellipse(z,H,F,$,_t,j,st,lt):t.arc(z,H,it,j,st,lt),Z)break t;A&&(s=ru(j)*F+z,l=nu(j)*$+H),u=ru(st)*F+z,f=nu(st)*$+H;break;case fe.R:s=u=n[x],l=f=n[x+1],c=n[x++],v=n[x++];var at=n[x++],Ht=n[x++];if(h){var M=d[y++];if(g+M>m){var Ct=m-g;t.moveTo(c,v),t.lineTo(c+yT(Ct,at),v),Ct-=at,Ct>0&&t.lineTo(c+at,v+yT(Ct,Ht)),Ct-=Ht,Ct>0&&t.lineTo(c+mT(at-Ct,0),v+Ht),Ct-=at,Ct>0&&t.lineTo(c,v+mT(Ht-Ct,0));break t}g+=M}t.rect(c,v,at,Ht);break;case fe.Z:if(h){var M=d[y++];if(g+M>m){var E=(m-g)/M;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}g+=M}t.closePath(),u=s,f=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.prototype.canSave=function(){return!!this._saveData},e.CMD=fe,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Is(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function Slt(e,t,r,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>e+c&&u>r+c&&u>a+c&&u>o+c||u<e-c&&u<r-c&&u<a-c&&u<o-c)return!1;var v=lY(e,t,r,n,a,i,o,s,u,f,null);return v<=c/2}function ZY(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var f=fY(e,t,r,n,a,i,s,l,null);return f<=u/2}var tz=Math.PI*2;function Vn(e){return e%=tz,e<0&&(e+=tz),e}var wd=Math.PI*2;function blt(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%wd<1e-4)return!0;if(i){var c=n;n=Vn(a),a=Vn(c)}else n=Vn(n),a=Vn(a);n>a&&(a+=wd);var v=Math.atan2(l,s);return v<0&&(v+=wd),v>=n&&v<=a||v+wd>=n&&v+wd<=a}function bo(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-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===a?1/0:l>a?s:0}var bs=qi.CMD,au=Math.PI*2,xlt=1e-4;function wlt(e,t){return Math.abs(e-t)<xlt}var en=[-1,-1,-1],ua=[-1,-1];function Tlt(){var e=ua[0];ua[0]=ua[1],ua[1]=e}function Alt(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=IS(t,n,i,s,u,en);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=en[p],y=g===0||g===1?.5:1,m=sr(e,r,a,o,g);m<l||(v<0&&(v=sY(t,n,i,s,ua),ua[1]<ua[0]&&v>1&&Tlt(),h=sr(t,n,i,s,ua[0]),v>1&&(d=sr(t,n,i,s,ua[1]))),v===2?g<ua[0]?c+=h<t?y:-y:g<ua[1]?c+=d<h?y:-y:c+=s<d?y:-y:g<ua[0]?c+=h<t?y:-y:c+=s<h?y:-y)}return c}function Clt(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=bot(t,n,i,s,en);if(l===0)return 0;var u=uY(t,n,i);if(u>=0&&u<=1){for(var f=0,c=mr(t,n,i,u),v=0;v<l;v++){var h=en[v]===0||en[v]===1?.5:1,d=mr(e,r,a,en[v]);d<o||(en[v]<u?f+=c<t?h:-h:f+=i<c?h:-h)}return f}else{var h=en[0]===0||en[0]===1?.5:1,d=mr(e,r,a,en[0]);return d<o?0:i<t?h:-h}}function Mlt(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);en[0]=-l,en[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=au-1e-4){n=0,a=au;var f=i?1:-1;return o>=en[0]+e&&o<=en[1]+e?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=au,a+=au);for(var v=0,h=0;h<2;h++){var d=en[h];if(d+e>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=au+p),(p>=n&&p<=a||p+au>=n&&p+au<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function qY(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===bs.M&&d>1&&(r||(s+=bo(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case bs.M:f=i[d++],c=i[d++],l=f,u=c;break;case bs.L:if(r){if(Is(l,u,i[d],i[d+1],t,n,a))return!0}else s+=bo(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case bs.C:if(r){if(Slt(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Alt(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case bs.Q:if(r){if(ZY(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Clt(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case bs.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(b)*_+y,h=Math.sin(b)*S+m,g?(f=v,c=h):s+=bo(l,u,v,h,n,a);var A=(n-y)*S/_+y;if(r){if(blt(y,m,S,b,b+x,w,t,A,a))return!0}else s+=Mlt(y,m,S,b,b+x,w,A,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case bs.R:f=l=i[d++],c=u=i[d++];var T=i[d++],C=i[d++];if(v=f+T,h=c+C,r){if(Is(f,c,v,c,t,n,a)||Is(v,c,v,h,t,n,a)||Is(v,h,f,h,t,n,a)||Is(f,h,f,c,t,n,a))return!0}else s+=bo(v,c,v,h,n,a),s+=bo(f,h,f,c,n,a);break;case bs.Z:if(r){if(Is(l,u,f,c,t,n,a))return!0}else s+=bo(l,u,f,c,n,a);l=f,u=c;break}}return!r&&!wlt(u,c)&&(s+=bo(l,u,f,c,n,a)||0),s!==0}function Dlt(e,t,r){return qY(e,0,!1,t,r)}function Llt(e,t,r,n){return qY(e,t,!0,r,n)}var US=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ku),Elt={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kb.style)},bT=rs.concat(["invisible","culling","z","z2","zlevel","parent"]),Rt=function(e){ye(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 a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<bT.length;++s)a[bT[s]]=this[bT[s]];a.__dirty|=Sn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Nt(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?U(this.style,s):this.useStyle(s):o==="shape"?U(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(K(r)){var n=wg(r,0);return n>.5?p2:n>.2?Jot:g2}else if(r)return g2}return p2},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(K(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=wg(r,0)<d2;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Jc},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 qi(!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,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Jc)&&(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||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??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 a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.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)),Llt(s,l/u,r,n)))return!0}if(this.hasFill())return Dlt(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Jc,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 a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:U(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Jc)},t.prototype.createStyle=function(r){return Oy(US,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=U({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){if(e.prototype._applyStateObj.call(this,r,n,a,i,o,s),this.__inHover!==Yb){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=U({},a.shape),U(u,n.shape)):(u=U({},i?this.shape:a.shape),U(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=U({},this.shape);for(var f={},c=Nt(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Elt},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){ye(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ut(r.style)},o.prototype.getDefaultShape=function(){return ut(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);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=Sn|op|Jc}(),t}(Ra),Olt=pt({strokeFirst:!0,font:ts,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},US),ch=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return XY(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Oy(Olt,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=dlt(this.style)),this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ra);ch.prototype.type="tspan";var Rlt=pt({x:0,y:0},Ku),Ilt={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kb.style)};function Plt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var dr=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Oy(Rlt,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=Plt(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ilt},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new dt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ra);dr.prototype.type="image";function Nlt(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+f,n+i),f!==0&&e.arc(r+f,n+i-f,f,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),e.closePath()}var Sv=Math.round;function tx(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(Sv(n*2)===Sv(a*2)&&(e.x1=e.x2=Gn(n,s,!0)),Sv(i*2)===Sv(o*2)&&(e.y1=e.y2=Gn(i,s,!0))),e}}function KY(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Gn(n,s,!0),e.y=Gn(a,s,!0),e.width=Math.max(Gn(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Gn(a+o,s,!1)-e.y,o===0?0:1)),e}}function Gn(e,t,r){if(!t)return e;var n=Sv(e*2);return(n+Sv(t))%2===0?n/2:(n+(r?1:-1))/2}var klt=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Blt={},Lt=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new klt},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=KY(Blt,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Nlt(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Rt);Lt.prototype.type="rect";var ez={fill:"#000"},rz=2,fi={},zlt={style:pt({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},Kb.style)},zt=function(e){ye(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ez,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,Hlt(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 dt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||ez},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return U(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=Nt(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},U(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return zlt},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||ts,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";$B(fi,i.overflowRect,o,s,l,u),o=fi.baseX,s=fi.baseY;var f=uz(r),c=slt(f,r,fi.outerWidth,fi.outerHeight),v=xT(r),h=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,y=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=qu(s,c.contentHeight,u);if(v||a){var S=fh(o,p,l),b=qu(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=y/2,a&&(m=lz(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var x=0,w=!1,A=!1,T=sz("fill"in r?r.fill:(A=!0,i.fill)),C=oz("stroke"in r?r.stroke:!h&&(!i.autoStroke||A)?(x=rz,w=!0,i.stroke):null),M=r.textShadowBlur>0,E=0;E<g.length;E++){var L=this._getOrCreateChild(ch),R=L.createStyle();L.useStyle(R),R.text=g[E],R.x=m,R.y=_,R.textAlign=l,R.textBaseline="middle",R.opacity=r.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=r.textShadowBlur||0,R.shadowColor=r.textShadowColor||"transparent",R.shadowOffsetX=r.textShadowOffsetX||0,R.shadowOffsetY=r.textShadowOffsetY||0),R.stroke=C,R.fill=T,C&&(R.lineWidth=r.lineWidth||x,R.lineDash=r.lineDash,R.lineDashOffset=r.lineDashOffset||0),R.font=n,az(R,r),_+=y,L.setBoundingRect(w2(R,c.contentWidth,c.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;$B(fi,n.overflowRect,o,s,a,i),o=fi.baseX,s=fi.baseY;var l=uz(r),u=flt(l,r,fi.outerWidth,fi.outerHeight,a),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=fh(o,c,a),p=qu(s,v,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;xT(r)&&this._renderBackground(r,r,d,p,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],x=b.tokens,w=x.length,A=b.lineHeight,T=b.width,C=0,M=g,E=m,L=w-1,R=void 0;C<w&&(R=x[C],!R.align||R.align==="left");)this._placeToken(R,r,A,y,M,"left",_),T-=R.width,M+=R.width,C++;for(;L>=0&&(R=x[L],R.align==="right");)this._placeToken(R,r,A,y,E,"right",_),T-=R.width,E-=R.width,L--;for(M+=(f-(M-g)-(m-E)-T)/2;C<=L;)R=x[C],this._placeToken(R,r,A,y,M+R.width/2,"center",_),M+=R.width,C++;y+=A}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=i+a/2;f==="top"?c=i+r.height/2:f==="bottom"&&(c=i+a-r.height/2);var v=!r.isLineHolder&&xT(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=lz(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(ch),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=sz("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=oz("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=rz,S=!0,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(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||ts,g.opacity=wn(u.opacity,n.opacity,1),az(g,u),x&&(g.lineWidth=wn(u.lineWidth,n.lineWidth,_),g.lineDash=ot(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(w2(g,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Lt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ot(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(dr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ot(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=wn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return JY(r)&&(n=[r.fontStyle,r.fontWeight,QY(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&zn(n)||r.textFont||r.font},t}(Ra),Vlt={left:!0,right:1,center:1},Glt={top:1,bottom:1,middle:1},nz=["fontStyle","fontWeight","fontSize","fontFamily"];function QY(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?kO+"px":e+"px"}function az(e,t){for(var r=0;r<nz.length;r++){var n=nz[r],a=t[n];a!=null&&(e[n]=a)}}function JY(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Hlt(e){return iz(e),D(e.rich,iz),e}function iz(e){if(e){e.font=zt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Vlt[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Glt[r]?r:"top";var n=e.padding;n&&(e.padding=Ey(e.padding))}}function oz(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function sz(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function lz(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function uz(e){var t=e.text;return t!=null&&(t+=""),t}function xT(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var mt=Tt(),C2=function(e,t,r,n){if(n){var a=mt(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=mt(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Fh="undefined",Ki="series",t9=rt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qn="original",xr="arrayRows",Jn="objectRows",ai="keyedColumns",fl="typedArray",e9="unknown",Xa="column",sc="row",r9="Roam",Ult=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],n9=function(){function e(t){D(Ult,function(r){this[r]=et(t[r],t)},this)}return e}();function a9(e,t){return t.mainType===Ki?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var fz=1,cz={},i9=Tt(),iR=Tt(),oR=0,Py=1,ex=2,fn=["emphasis","blur","select"],Dg=["normal","emphasis","blur","select"],Yh=10,Flt=9,Qu="highlight",__="downplay",FS="select",M2="unselect",YS="toggleSelect",sR="selectchanged";function Cc(e){return e!=null&&e!=="none"}function rx(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function o9(e){rx(e,"emphasis",ex)}function s9(e){e.hoverState===ex&&rx(e,"normal",oR)}function lR(e){rx(e,"blur",Py)}function l9(e){e.hoverState===Py&&rx(e,"normal",oR)}function Ylt(e){e.selected=!0}function jlt(e){e.selected=!1}function vz(e,t,r){t(e,r)}function gs(e,t,r){vz(e,t,r),e.isGroup&&e.traverse(function(n){vz(n,t,r)})}function jS(e,t){switch(t){case"emphasis":e.hoverState=ex;break;case"normal":e.hoverState=oR;break;case"blur":e.hoverState=Py;break;case"select":e.selected=!0}}function Wlt(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[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(i,t)}return i}function $lt(e,t,r,n){var a=r&&bt(r,"select")>=0,i=!1;if(e instanceof Rt){var o=i9(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Cc(s)||Cc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=U({},n),u=U({},u),u.fill=s):!Cc(u.fill)&&Cc(s)?(i=!0,n=U({},n),u=U({},u),u.fill=NS(s)):!Cc(u.stroke)&&Cc(l)&&(i||(n=U({},n),u=U({},u)),u.stroke=NS(l)),n.style=u}}if(n&&n.z2==null){i||(n=U({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??Yh)}return n}function Xlt(e,t,r){if(r&&r.z2==null){r=U({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Flt)}return r}function Zlt(e,t,r){var n=bt(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:Wlt(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=U({},r),o=U({opacity:n?a:i.opacity*.1},o),r.style=o),r}function wT(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return $lt(this,e,t,r);if(e==="blur")return Zlt(this,e,r);if(e==="select")return Xlt(this,e,r)}return r}function wf(e){e.stateProxy=wT;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=wT),r&&(r.stateProxy=wT)}function hz(e,t){!v9(e,t)&&!e.__highByOuter&&gs(e,o9)}function dz(e,t){!v9(e,t)&&!e.__highByOuter&&gs(e,s9)}function as(e,t){e.__highByOuter|=1<<(t||0),gs(e,o9)}function is(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gs(e,s9)}function u9(e){gs(e,lR)}function uR(e){gs(e,l9)}function f9(e){gs(e,Ylt)}function c9(e){gs(e,jlt)}function v9(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function h9(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=iR(i),s=a9(e,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){l9(u)}),l&&r.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function D2(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&uR(v)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||lR(g)}),Br(t))i(u.getData(),t);else if(gt(t))for(var d=Nt(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),iR(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function L2(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){iR(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){lR(i)})}}}function qlt(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=Sf(a,t);i=(Y(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=mt(o);D2(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&D2(n,f,c,r)}}}function fR(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(mt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Klt(e,t,r){var n=mt(e),a=fR(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&L2(n.componentMainType,n.componentIndex,r),D(i,function(s){return hz(s,t)})):(D2(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&L2(n.componentMainType,n.componentIndex,r),hz(e,t))}function Qlt(e,t,r){h9(r);var n=mt(e),a=fR(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?D(a,function(i){return dz(i,t)}):dz(e,t)}function Jlt(e,t,r){if(O2(t)){var n=t.dataType,a=e.getData(n),i=Sf(a,t);Y(i)||(i=[i]),e[t.type===YS?"toggleSelect":t.type===FS?"select":"unselect"](i,n)}}function pz(e){var t=e.getAllData();D(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?f9(i):c9(i)})})}function tut(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function cl(e,t,r){Vu(e,!0),gs(e,wf),E2(e,t,r)}function eut(e){Vu(e,!1)}function xe(e,t,r,n){n?eut(e):cl(e,t,r)}function E2(e,t,r){var n=mt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var gz=["emphasis","blur","select"],rut={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function nr(e,t,r,n){r=r||"itemStyle";for(var a=0;a<gz.length;a++){var i=gz[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[rut[r]]()}}function Vu(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 Lg(e){return!!(e&&e.__highDownDispatcher)}function nut(e,t,r){var n=mt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function aut(e){var t=cz[e];return t==null&&fz<=32&&(t=cz[e]=fz++),t}function O2(e){var t=e.type;return t===FS||t===M2||t===YS}function yz(e){var t=e.type;return t===Qu||t===__}function iut(e){var t=i9(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 Mc=qi.CMD,out=[[],[],[]],mz=Math.sqrt,sut=Math.atan2;function d9(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,f=Mc.M,c=Mc.C,v=Mc.L,h=Mc.R,d=Mc.A,p=Mc.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=mz(t[0]*t[0]+t[1]*t[1]),_=mz(t[2]*t[2]+t[3]*t[3]),S=sut(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Oe(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Oe(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var b=out[l];b[0]=r[o++],b[1]=r[o++],Oe(b,b,t),r[s++]=b[0],r[s++]=b[1]}}e.increaseVersion()}}var TT=Math.sqrt,Im=Math.sin,Pm=Math.cos,Td=Math.PI;function _z(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function R2(e,t){return(e[0]*t[0]+e[1]*t[1])/(_z(e)*_z(t))}function Sz(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(R2(e,t))}function bz(e,t,r,n,a,i,o,s,l,u,f){var c=l*(Td/180),v=Pm(c)*(e-r)/2+Im(c)*(t-n)/2,h=-1*Im(c)*(e-r)/2+Pm(c)*(t-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=TT(d),s*=TT(d));var p=(a===i?-1:1)*TT((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(e+r)/2+Pm(c)*g-Im(c)*y,_=(t+n)/2+Im(c)*g+Pm(c)*y,S=Sz([1,0],[(v-g)/o,(h-y)/s]),b=[(v-g)/o,(h-y)/s],x=[(-1*v-g)/o,(-1*h-y)/s],w=Sz(b,x);if(R2(b,x)<=-1&&(w=Td),R2(b,x)>=1&&(w=0),w<0){var A=Math.round(w/Td*1e6)/1e6;w=Td*2+A%2*Td}f.addData(u,m,_,o,s,S,w,c,i)}var lut=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,uut=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fut(e){var t=new qi;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=qi.CMD,l=e.match(lut);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(uut)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,A=r,T=n,C=void 0,M=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],v=s.L,t.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,t.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,t.addData(v,r,n),a=r,i=n,c="l";break;case"M":r=h[g++],n=h[g++],v=s.M,t.addData(v,r,n),a=r,i=n,c="L";break;case"h":r+=h[g++],v=s.L,t.addData(v,r,n);break;case"H":r=h[g++],v=s.L,t.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,t.addData(v,r,n);break;case"V":n=h[g++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,t.addData(v,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":y=r,m=n,C=t.len(),M=t.data,o===s.C&&(y+=r-M[C-4],m+=n-M[C-3]),v=s.C,A=h[g++],T=h[g++],r=h[g++],n=h[g++],t.addData(v,y,m,A,T,r,n);break;case"s":y=r,m=n,C=t.len(),M=t.data,o===s.C&&(y+=r-M[C-4],m+=n-M[C-3]),v=s.C,A=r+h[g++],T=n+h[g++],r+=h[g++],n+=h[g++],t.addData(v,y,m,A,T,r,n);break;case"Q":A=h[g++],T=h[g++],r=h[g++],n=h[g++],v=s.Q,t.addData(v,A,T,r,n);break;case"q":A=h[g++]+r,T=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,t.addData(v,A,T,r,n);break;case"T":y=r,m=n,C=t.len(),M=t.data,o===s.Q&&(y+=r-M[C-4],m+=n-M[C-3]),r=h[g++],n=h[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"t":y=r,m=n,C=t.len(),M=t.data,o===s.Q&&(y+=r-M[C-4],m+=n-M[C-3]),r+=h[g++],n+=h[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"A":_=h[g++],S=h[g++],b=h[g++],x=h[g++],w=h[g++],A=r,T=n,r=h[g++],n=h[g++],v=s.A,bz(A,T,r,n,x,w,_,S,b,v,t);break;case"a":_=h[g++],S=h[g++],b=h[g++],x=h[g++],w=h[g++],A=r,T=n,r+=h[g++],n+=h[g++],v=s.A,bz(A,T,r,n,x,w,_,S,b,v,t);break}}(c==="z"||c==="Z")&&(v=s.Z,t.addData(v),r=a,n=i),o=v}return t.toStatic(),t}var p9=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Rt);function g9(e){return e.setData!=null}function y9(e,t){var r=fut(e),n=U({},t);return n.buildPath=function(a){var i=g9(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){d9(r,a),this.dirtyShape()},n}function m9(e,t){return new p9(y9(e,t))}function cut(e,t){var r=y9(e,t),n=function(a){ye(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(p9);return n}function vut(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Rt(t);return o.createPathProxy(),o.buildPath=function(s){if(g9(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function cR(e,t){t=t||{};var r=new Rt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?d9(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 hut=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),oo=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hut},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}(Rt);oo.prototype.type="circle";var dut=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Ny=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dut},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},t}(Rt);Ny.prototype.type="ellipse";var _9=Math.PI,AT=_9*2,iu=Math.sin,Dc=Math.cos,put=Math.acos,Yr=Math.atan2,xz=Math.abs,jp=Math.sqrt,lp=Math.max,ci=Math.min,Va=1e-4;function gut(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,v=c*l-f*u;if(!(v*v<Va))return v=(f*(t-i)-c*(e-a))/v,[e+v*l,t+v*u]}function Nm(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/jp(s*s+l*l),f=u*l,c=-u*s,v=e+f,h=t+c,d=r+f,p=n+c,g=(v+d)/2,y=(h+p)/2,m=d-v,_=p-h,S=m*m+_*_,b=a-i,x=v*p-d*h,w=(_<0?-1:1)*jp(lp(0,b*b*S-x*x)),A=(x*_-m*w)/S,T=(-x*m-_*w)/S,C=(x*_+m*w)/S,M=(-x*m+_*w)/S,E=A-g,L=T-y,R=C-g,I=M-y;return E*E+L*L>R*R+I*I&&(A=C,T=M),{cx:A,cy:T,x0:-f,y0:-c,x1:A*(a/b-1),y1:T*(a/b-1)}}function yut(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 mut(e,t){var r,n=lp(t.r,0),a=lp(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=xz(u-l),d=h>AT&&h%AT;if(d>Va&&(h=d),!(n>Va))e.moveTo(f,c);else if(h>AT-Va)e.moveTo(f+n*Dc(l),c+n*iu(l)),e.arc(f,c,n,l,u,!v),a>Va&&(e.moveTo(f+a*Dc(u),c+a*iu(u)),e.arc(f,c,a,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,A=void 0,T=void 0,C=void 0,M=void 0,E=void 0,L=void 0,R=void 0,I=n*Dc(l),O=n*iu(l),N=a*Dc(u),P=a*iu(u),B=h>Va;if(B){var z=t.cornerRadius;z&&(r=yut(z),p=r[0],g=r[1],y=r[2],m=r[3]);var H=xz(n-a)/2;if(_=ci(H,y),S=ci(H,m),b=ci(H,p),x=ci(H,g),T=w=lp(_,S),C=A=lp(b,x),(w>Va||A>Va)&&(M=n*Dc(u),E=n*iu(u),L=a*Dc(l),R=a*iu(l),h<_9)){var F=gut(I,O,L,R,M,E,N,P);if(F){var $=I-F[0],j=O-F[1],tt=M-F[0],_t=E-F[1],lt=1/iu(put(($*tt+j*_t)/(jp($*$+j*j)*jp(tt*tt+_t*_t)))/2),it=jp(F[0]*F[0]+F[1]*F[1]);T=ci(w,(n-it)/(lt+1)),C=ci(A,(a-it)/(lt-1))}}}if(!B)e.moveTo(f+I,c+O);else if(T>Va){var Q=ci(y,T),st=ci(m,T),Z=Nm(L,R,I,O,n,Q,v),at=Nm(M,E,N,P,n,st,v);e.moveTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),T<w&&Q===st?e.arc(f+Z.cx,c+Z.cy,T,Yr(Z.y0,Z.x0),Yr(at.y0,at.x0),!v):(Q>0&&e.arc(f+Z.cx,c+Z.cy,Q,Yr(Z.y0,Z.x0),Yr(Z.y1,Z.x1),!v),e.arc(f,c,n,Yr(Z.cy+Z.y1,Z.cx+Z.x1),Yr(at.cy+at.y1,at.cx+at.x1),!v),st>0&&e.arc(f+at.cx,c+at.cy,st,Yr(at.y1,at.x1),Yr(at.y0,at.x0),!v))}else e.moveTo(f+I,c+O),e.arc(f,c,n,l,u,!v);if(!(a>Va)||!B)e.lineTo(f+N,c+P);else if(C>Va){var Q=ci(p,C),st=ci(g,C),Z=Nm(N,P,M,E,a,-st,v),at=Nm(I,O,L,R,a,-Q,v);e.lineTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),C<A&&Q===st?e.arc(f+Z.cx,c+Z.cy,C,Yr(Z.y0,Z.x0),Yr(at.y0,at.x0),!v):(st>0&&e.arc(f+Z.cx,c+Z.cy,st,Yr(Z.y0,Z.x0),Yr(Z.y1,Z.x1),!v),e.arc(f,c,a,Yr(Z.cy+Z.y1,Z.cx+Z.x1),Yr(at.cy+at.y1,at.cx+at.x1),v),Q>0&&e.arc(f+at.cx,c+at.cy,Q,Yr(at.y1,at.x1),Yr(at.y0,at.x0),!v))}else e.lineTo(f+N,c+P),e.arc(f,c,a,u,l,v)}e.closePath()}}}var _ut=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}(),Vr=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _ut},t.prototype.buildPath=function(r,n){mut(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Rt);Vr.prototype.type="sector";var Sut=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),jh=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Sut},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(Rt);jh.prototype.type="ring";function but(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=e.length;v<h;v++)Oo(f,f,e[v]),Ro(c,c,e[v]);Oo(f,f,n[0]),Ro(c,c,n[1])}for(var v=0,h=e.length;v<h;v++){var d=e[v];if(r)l=e[v?v-1:h-1],u=e[(v+1)%h];else if(v===0||v===h-1){a.push(ki(e[v]));continue}else l=e[v-1],u=e[v+1];js(i,u,l),zp(i,i,t);var p=LS(d,l),g=LS(d,u),y=p+g;y!==0&&(p/=y,g/=y),zp(o,i,-p),zp(s,i,g);var m=QD([],d,o),_=QD([],d,s);n&&(Ro(m,m,f),Oo(m,m,c),Ro(_,_,f),Oo(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}function S9(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=but(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var xut=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Gr=function(e){ye(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xut},t.prototype.buildPath=function(r,n){S9(r,n,!0)},t}(Rt);Gr.prototype.type="polygon";var wut=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),wr=function(e){ye(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 wut},t.prototype.buildPath=function(r,n){S9(r,n,!1)},t}(Rt);wr.prototype.type="polyline";var Tut={},Aut=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),He=function(e){ye(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 Aut},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=tx(Tut,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(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}(Rt);He.prototype.type="line";var pn=[],Cut=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 wz(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?TB:sr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?TB:sr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?i2:mr)(e.x1,e.cpx1,e.x2,t),(r?i2:mr)(e.y1,e.cpy1,e.y2,t)]}var Wh=function(e){ye(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 Cut},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(a,i),f==null||c==null?(v<1&&(Sg(a,l,o,v,pn),l=pn[1],o=pn[2],Sg(i,u,s,v,pn),u=pn[1],s=pn[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(xl(a,l,f,o,v,pn),l=pn[1],f=pn[2],o=pn[3],xl(i,u,c,s,v,pn),u=pn[1],c=pn[2],s=pn[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return wz(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=wz(this.shape,r,!0);return nc(n,n)},t}(Rt);Wh.prototype.type="bezier-curve";var Mut=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}(),ky=function(e){ye(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 Mut},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,l,!u)},t}(Rt);ky.prototype.type="arc";var By=function(e){ye(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(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].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),Rt.prototype.getBoundingRect.call(this)},t}(Rt),b9=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),lc=function(e){ye(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(b9),vR=function(e){ye(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(b9),CT=Math.min,Dut=Math.max,km=Math.abs,ou=[0,0],su=[0,0],gr=tY(),Bm=gr.minTv,zm=gr.maxTv,x9=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new yt;for(var n=0;n<2;n++)this._axes[n]=new yt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);yt.sub(a[0],n[1],n[0]),yt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var a=!0,i=!r;return r&&yt.set(r,0,0),gr.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!gr.negativeSize&&yt.copy(r,a?gr.useDir?gr.dirMinTv:Bm:zm),a},e.prototype._intersectCheckOneSide=function(t,r,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ou),t._getProjMinMaxOnAxis(o,r._corners,su),gr.negativeSize||ou[1]<su[0]||ou[0]>su[1]){if(i=!1,gr.negativeSize||n)return i;var l=km(su[0]-ou[1]),u=km(ou[0]-su[1]);CT(l,u)>zm.len()&&(l<u?yt.scale(zm,s,-l*a):yt.scale(zm,s,u*a))}else if(!n){var l=km(su[0]-ou[1]),u=km(ou[0]-su[1]);(gr.useDir||CT(l,u)<Bm.len())&&((l<u||!gr.bidirectional)&&(yt.scale(Bm,s,l*a),gr.useDir&&gr.calcDirMTV()),(l>=u||!gr.bidirectional)&&(yt.scale(Bm,s,-u*a),gr.useDir&&gr.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[t];s=CT(f,s),l=Dut(f,l)}n[0]=s+gr.touchThreshold,n[1]=l-gr.touchThreshold,gr.negativeSize=n[1]<n[0]},e}(),w9=0,Lut=1,Eut=2,Out=1,S_=0,Rut=[],T9=function(e){ye(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Lut,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._useHoverStyle=function(){this.__hoverStyle=null},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 a=0;a<r.length;a++)this.addDisplayable(r[a],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 dt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Rut)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[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}(Ra),A9=Tt();function $h(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ot(n.duration,200),f=ot(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),ct(c)&&(c=c(r,a)),ct(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function hR(e,t,r,n,a,i,o){var s=!1,l;ct(a)?(o=i,i=a,a=null):gt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=$h(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function jt(e,t,r,n,a,i){hR("update",e,t,r,n,a,i)}function de(e,t,r,n,a,i){hR("enter",e,t,r,n,a,i)}function Bv(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 Tl(e,t,r,n,a,i){Bv(e)||hR("leave",e,t,r,n,a,i)}function Tz(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Tl(e,{style:{opacity:0}},t,r,n)}function Uo(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||Tz(a,t,r,n)}):Tz(e,t,r,n)}function Ia(e){A9(e).oldStyle=e.style}function Iut(e){return A9(e).oldStyle}var I2={},St=["x","y"],Ne=["width","height"],C9=0,M9=1,Xh=2;function D9(e){return Rt.extend(e)}var Put=cut;function L9(e,t){return Put(e,t)}function Na(e,t){I2[e]=t}function Eg(e){if(I2.hasOwnProperty(e))return I2[e]}function vh(e,t,r,n){var a=m9(e,t);return r&&(n==="center"&&(r=E9(r,a.getBoundingRect())),pR(a,r)),a}function dR(e,t,r){var n=new dr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(E9(t,i))}}});return n}function E9(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var kn=vut;function pR(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function hh(e,t){return tx(e,e,{lineWidth:t}),e}function Nut(e,t){return KY(e,e,t),e}var b_=Gn;function Ju(e,t){for(var r=ac([]);e&&e!==t;)Wn(r,e.getLocalTransform(),r),e=e.parent;return r}function Za(e,t,r){return t&&!Br(t)&&(t=ao.getLocalTransform(t)),r&&(t=qn([],t)),Oe([],e,t)}function nx(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Le(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Le(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=Za(i,t,r),Le(i[0])>Le(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Az(e){return!e.isGroup}function kut(e){return e.shape!=null}function zy(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Az(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return kut(o)&&(s.shape=ut(o.shape)),s}var i=n(e);t.traverse(function(o){if(Az(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),jt(o,l,r,mt(o).dataIndex)}}})}function gR(e,t){return W(e,function(r){var n=r[0];n=Dt(n,t.x),n=te(n,t.x+t.width);var a=r[1];return a=Dt(a,t.y),a=te(a,t.y+t.height),[n,a]})}function O9(e,t){var r=Dt(e.x,t.x),n=te(e.x+e.width,t.x+t.width),a=Dt(e.y,t.y),i=te(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Zh(e,t,r){var n=U({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),pt(a,r),new dr(n)):vh(e.replace("path://",""),n,r,"center")}function up(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(R9(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function R9(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,v=MT(f,c,l,u);if(But(v))return!1;var h=e-a,d=t-i,p=MT(h,d,l,u)/v;if(p<0||p>1)return!1;var g=MT(h,d,f,c)/v;return!(g<0||g>1)}function MT(e,t,r,n){return e*n-r*t}function But(e){return e<=1e-6&&e>=-1e-6}function Tf(e,t,r,n,a){return t==null||(Vt(t)?we[0]=we[1]=we[2]=we[3]=t:(we[0]=t[0],we[1]=t[1],we[2]=t[2],we[3]=t[3]),n&&(we[0]=Dt(0,we[0]),we[1]=Dt(0,we[1]),we[2]=Dt(0,we[2]),we[3]=Dt(0,we[3])),r&&(we[0]=-we[0],we[1]=-we[1],we[2]=-we[2],we[3]=-we[3]),Cz(e,we,"x","width",3,1,a&&a[0]||0),Cz(e,we,"y","height",0,2,a&&a[1]||0)),e}var we=[0,0,0,0];function Cz(e,t,r,n,a,i,o){var s=t[i]+t[a],l=e[n];e[n]+=s,o=Dt(0,te(o,l)),e[n]<o?(e[n]=o,e[r]+=t[a]>=0?-t[a]:t[i]>=0?l+t[i]:Le(s)>1e-8?(l-o)*t[a]/s:0):e[r]-=t[a]}function ys(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=K(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&D(Nt(l),function(f){nt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=mt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:pt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function P2(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function zl(e,t){if(e)if(Y(e))for(var r=0;r<e.length;r++)P2(e[r],t);else P2(e,t)}function yR(e){return!e||Le(e[1])<Vm&&Le(e[2])<Vm||Le(e[0])<Vm&&Le(e[3])<Vm}var Vm=1e-5;function Og(e,t){return e?dt.copy(e,t):t.clone()}function mR(e,t){return t?bl(e||Se(),t):void 0}function Af(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function I9(e){var t=-1/0,r=1/0;P2(e,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function ax(e,t,r){P9(e,t,r,-1/0)}function P9(e,t,r,n){if(e.ignoreModelZ)return n;var a=e.getTextContent(),i=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=Dt(P9(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=Dt(e.z2||0,n);if(a&&(a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var u=e.textGuideLineConfig;i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function _R(e){return e.animation={duration:0},e}function ix(e,t){return t?bl(fp.transform,t):ac(fp.transform),fp.decomposeTransform(),Wi(e,fp),e}var fp=new ao;fp.transform=Se();function N2(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}Na("circle",oo);Na("ellipse",Ny);Na("sector",Vr);Na("ring",jh);Na("polygon",Gr);Na("polyline",wr);Na("rect",Lt);Na("line",He);Na("bezierCurve",Wh);Na("arc",ky);const uc=Object.freeze(Object.defineProperty({__proto__:null,Arc:ky,BezierCurve:Wh,BoundingRect:dt,Circle:oo,CompoundPath:By,Ellipse:Ny,Group:ht,HOVER_LAYER_FOR_INCREMENTAL:Xh,HOVER_LAYER_FROM_THRESHOLD:M9,HOVER_LAYER_NO:C9,Image:dr,IncrementalDisplayable:T9,Line:He,LinearGradient:lc,OrientedBoundingRect:x9,Path:Rt,Point:yt,Polygon:Gr,Polyline:wr,RadialGradient:vR,Rect:Lt,Ring:jh,Sector:Vr,Text:zt,WH:Ne,XY:St,applyTransform:Za,calcZ2Range:I9,clipPointsByRect:gR,clipRectByRect:O9,createIcon:Zh,decomposeTransform:ix,ensureCopyRect:Og,ensureCopyTransform:mR,expandOrShrinkRect:Tf,extendPath:L9,extendShape:D9,getCurrentCanvasPainter:N2,getShapeClass:Eg,getTransform:Ju,groupTransition:zy,initProps:de,isBoundingRectAxisAligned:yR,isElementRemoved:Bv,lineLineIntersect:R9,linePolygonIntersect:up,makeImage:dR,makePath:vh,mergePath:kn,payloadDisableAnimation:_R,registerShape:Na,removeElement:Tl,removeElementWithFadeOut:Uo,resizePath:pR,retrieveZInfo:Af,setTooltipConfig:ys,subPixelOptimize:b_,subPixelOptimizeLine:hh,subPixelOptimizeRect:Nut,transformDirection:nx,traverseElements:zl,traverseUpdateZ:ax,updateProps:jt},Symbol.toStringTag,{value:"Module"}));var ox={};function N9(e,t){for(var r=0;r<fn.length;r++){var n=fn[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function k2(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ct(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<fn.length;u++){var f=fn[u],c=t[f];l[f]=ot(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function hr(e,t,r,n){r=r||ox;for(var a=e instanceof zt,i=!1,o=0;o<Dg.length;o++){var s=t[Dg[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new zt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=k2(r,t),f=t.normal,c=!!f.getShallow("show"),v=oe(f,n&&n.normal,r,!1,!a);v.text=u.normal,a||e.setTextConfig(WS(f,r,!1));for(var o=0;o<fn.length;o++){var h=fn[o],s=t[h];if(s){var d=l.ensureState(h),p=!!ot(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=oe(s,n&&n[h],r,!0,!a),d.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=WS(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(qh(l).setLabelText=function(y){var m=k2(r,t,y);N9(l,m)})}else l&&(l.ignore=!0);e.dirty()}function ar(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<fn.length;n++){var a=fn[n];r[a]=e.getModel([a,t])}return r}function oe(e,t,r,n,a){var i={};return zut(i,e,r,n,a),t&&U(i,t),i}function WS(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=ot(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function zut(e,t,r,n,a){r=r||ox;var i=t.ecModel,o=i&&i.option.textStyle,s=Vut(t),l;if(s){l={};var u="richInheritPlainLabel",f=ot(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=t.getModel(["rich",c]);Ez(l[c]={},v,o,t,f,r,n,a,!1,!0)}}l&&(e.rich=l);var h=t.get("overflow");h&&(e.overflow=h);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var p=e,g=t.get("minMargin");if(g!=null)g=Vt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=bv.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=Ey(y),p.__marginType=bv.textMargin)}Ez(e,t,o,null,null,r,n,a,!0,!1)}function Vut(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ox).rich;if(r){t=t||{};for(var n=Nt(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var Mz=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Dz=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Lz=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ez(e,t,r,n,a,i,o,s,l,u){r=!o&&r||ox;var f=i&&i.inheritColor,c=t.getShallow("color"),v=t.getShallow("textBorderColor"),h=ot(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(e.fill=c),v!=null&&(e.stroke=v);var d=ot(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=ot(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=ot(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(e.opacity=h),!o&&!s&&e.fill==null&&i.inheritColor&&(e.fill=i.inheritColor);for(var y=0;y<Mz.length;y++){var m=Mz[y],_=a!==!1&&n?wn(t.getShallow(m),n.getShallow(m),r[m]):ot(t.getShallow(m),r[m]);_!=null&&(e[m]=_)}for(var y=0;y<Dz.length;y++){var m=Dz[y],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<Lz.length;y++){var m=Lz[y],_=t.getShallow(m);_!=null&&(e[m]=_)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function SR(e,t){var r=t&&t.getModel("textStyle");return zn([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 qh=Tt();function k9(e,t,r,n){if(e){var a=qh(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function B9(e,t,r,n,a){var i=qh(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ot(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=zY(r,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var v=k2({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);N9(e,v)}e.percent=0,(i.prevValue==null?de:jt)(e,{percent:1},n,t,null,u)}var bv={minMargin:1,textMargin:2},Gut=["textStyle","color"],DT=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],LT=new zt,Hut=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Gut):null)},e.prototype.getFont=function(){return SR({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<DT.length;n++)r[DT[n]]=this.getShallow(DT[n]);return LT.useStyle(r),LT.update(),LT.getBoundingRect()},e}(),z9=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Uut=xf(z9),Fut=function(){function e(){}return e.prototype.getLineStyle=function(t){return Uut(this,t)},e}(),V9=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Yut=xf(V9),jut=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Yut(this,t,r)},e}(),Ot=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){wt(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,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,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(ut(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(!Bt.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 a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();rR(Ot);Qst(Ot);Ye(Ot,Fut);Ye(Ot,jut);Ye(Ot,nlt);Ye(Ot,Hut);var Wut=Math.round(Math.random()*10);function fc(e){return[e||"",Wut++].join("_")}function $ut(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=Mi(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=Mi(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function Xut(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(D(i,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),D(d.successor,p?y:g)}D(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){v[m]=!0,g(m)}};function r(i){var o={},s=[];return D(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(v){bt(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);bt(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){bt(o,l)>=0&&s.push(l)}),s}}function Vl(e,t){return wt(wt({},e,!0),t,!0)}const Zut={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:". "}}}},qut={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 $S="ZH",bR="EN",zv=bR,x_={},xR={},G9=Bt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zv).toUpperCase();return e.indexOf($S)>-1?$S:zv}():zv;function wR(e,t){e=e.toUpperCase(),xR[e]=new Ot(t),x_[e]=t}function Kut(e){if(K(e)){var t=x_[e.toUpperCase()]||{};return e===$S||e===bR?ut(t):wt(ut(t),ut(x_[zv]),!1)}else return wt(ut(e),ut(x_[zv]),!1)}function B2(e){return xR[e]}function Qut(){return xR[zv]}wR(bR,Zut);wR($S,qut);var z2=null;function Jut(e){z2||(z2=e)}function Ue(){return z2}function H9(e,t){var r=Ue(),n=t.breakOption,a=t.breakParsed;return!a&&r&&(a=r.parseAxisBreakOption(n,e)),a}function XS(e){var t=e.brk;return t?t.breaks:[]}function ZS(e){var t=e.brk;return t?t.hasBreaks():!1}var TR=1e3,AR=TR*60,Wp=AR*60,Sa=Wp*24,Oz=Sa*365,tft={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},w_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},eft="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Gm="{yyyy}-{MM}-{dd}",Rz={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gm,hour:Gm+" "+w_.hour,minute:Gm+" "+w_.minute,second:Gm+" "+w_.second,millisecond:eft},Dn=["year","month","day","hour","minute","second","millisecond"],rft=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function nft(e){return!K(e)&&!ct(e)?aft(e):e}function aft(e){e=e||{};var t={},r=!0;return D(Dn,function(n){r&&(r=e[n]==null)}),D(Dn,function(n,a){var i=e[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=Dn[s],u=gt(i)&&!Y(i)?i[l]:i,f=void 0;Y(u)?(f=u.slice(),o=f[0]||""):K(u)?(o=u,f=[o]):(o==null?o=w_[n]:tft[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function rn(e,t){return e+="","0000".substr(0,t-e.length)+e}function $p(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 ift(e){return e===$p(e)}function oft(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Vy(e,t,r,n){var a=io(e),i=a[U9(r)](),o=a[CR(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[MR(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[DR(r)](),c=(f-1)%12+1,v=a[LR(r)](),h=a[ER(r)](),d=a[OR(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Ot?n:B2(n||G9)||Qut(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,rn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,rn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,rn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,rn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,rn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,rn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,rn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,rn(d,3)).replace(/{S}/g,d+"")}function sft(e,t,r,n,a){var i=null;if(K(r))i=r;else if(ct(r)){var o={time:e.time,level:e.time?e.time.level:0},s=Ue();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),i=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Vv(e.value,a);i=r[f][f][0]}}return Vy(new Date(e.value),i,a,n)}function Vv(e,t){var r=io(e),n=r[CR(t)]()+1,a=r[MR(t)](),i=r[DR(t)](),o=r[LR(t)](),s=r[ER(t)](),l=r[OR(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&a===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function qS(e,t,r){switch(t){case"year":e[F9(r)](0);case"month":e[Y9(r)](1);case"day":e[j9(r)](0);case"hour":e[W9(r)](0);case"minute":e[$9(r)](0);case"second":e[X9(r)](0)}return e}function U9(e){return e?"getUTCFullYear":"getFullYear"}function CR(e){return e?"getUTCMonth":"getMonth"}function MR(e){return e?"getUTCDate":"getDate"}function DR(e){return e?"getUTCHours":"getHours"}function LR(e){return e?"getUTCMinutes":"getMinutes"}function ER(e){return e?"getUTCSeconds":"getSeconds"}function OR(e){return e?"getUTCMilliseconds":"getMilliseconds"}function lft(e){return e?"setUTCFullYear":"setFullYear"}function F9(e){return e?"setUTCMonth":"setMonth"}function Y9(e){return e?"setUTCDate":"setDate"}function j9(e){return e?"setUTCHours":"setHours"}function W9(e){return e?"setUTCMinutes":"setMinutes"}function $9(e){return e?"setUTCSeconds":"setSeconds"}function X9(e){return e?"setUTCMilliseconds":"setMilliseconds"}function uft(e,t,r,n,a,i,o,s){var l=new zt({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function RR(e){if(!KO(e))return K(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function IR(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 Kh=Ey;function V2(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&zn(f)?f:"-"}function i(f){return Oa(f)}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?io(e):e;if(isNaN(+l)){if(s)return"-"}else return Vy(l,n,r)}if(t==="ordinal")return MS(e)?a(e):Vt(e)&&i(e)?e+"":"-";var u=Zi(e);return i(u)?RR(u):MS(e)?a(e):typeof e=="boolean"?e+"":"-"}var Iz=["a","b","c","d","e","f","g"],ET=function(e,t){return"{"+e+(t??"")+"}"};function PR(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Iz[i];e=e.replace(ET(o),ET(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(ET(Iz[l],s),r?$r(u):u)}return e}function Z9(e,t,r){return D(t,function(n,a){e=e.replace("{"+a+"}",n)}),e}function q9(e,t){var r=K(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+$r(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+$r(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function fft(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
|
|
161
|
+
yyyy`);var n=io(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return e=e.replace("MM",rn(o,2)).replace("M",o).replace("yyyy",i).replace("yy",rn(i%100+"",2)).replace("dd",rn(s,2)).replace("d",s).replace("hh",rn(l,2)).replace("h",l).replace("mm",rn(u,2)).replace("m",u).replace("ss",rn(f,2)).replace("s",f).replace("SSS",rn(c,3)),e}function cft(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Cf(e,t){return t=t||"transparent",K(e)?e:gt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function KS(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var T_={},OT={},Qh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(T_),this._normalMasterList=n(OT);function n(a,i){var o=[];return D(a,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){D(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){T_[t]=r;return}OT[t]=r},e.get=function(t){return OT[t]||T_[t]},e}();function vft(e){return!!T_[e]}var hft=1,K9=2;function dft(e){Q9.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Q9=rt();function J9(e){var t=e.getShallow("coord",!0),r=hft;if(t==null){var n=Q9.get(e.type);n&&n.getCoord2&&(r=K9,t=n.getCoord2(e))}return{coord:t,from:r}}var Gv=0,A_=1,tj=2;function ej(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),a=Gv;if(r){var i=e.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=A_,i||(a=Gv)):n==="box"&&(a=tj,!i&&!vft(r)&&(a=Gv))}return{coordSysType:r,kind:a}}function Gy(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,a=e.isDefaultDataCoordSys;e.allowNotFound;var i=ej(t),o=i.kind,s=i.coordSysType;if(a&&o!==A_&&(o=A_,s=r),o===Gv||s!==r)return Gv;var l=n(r,t);return l?(o===A_?t.coordinateSystem=l:t.boxCoordinateSystem=l,o):Gv}var rj=function(e,t){var r=t.getReferringComponents(e,Pe).models[0];return r&&r.coordinateSystem},C_=D,nj=["left","right","top","bottom","width","height"],Gu=[["width","left","right"],["height","top","bottom"]];function NR(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(e==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=d+r)})}var tf=NR;Mt(NR,"vertical");Mt(NR,"horizontal");function aj(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function pft(e,t){var r=or(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),a,i;if(r.type===cp.point)i=r.refPoint,a=me(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=Y(o)?o:[o,o];a=me(n,r.refContainer),i=r.boxCoordFrom===K9?r.refPoint:[J(s[0],a.width)+a.x,J(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function ij(e,t){var r=pft(e,t),n=r.viewRect,a=r.center,i=e.get("radius");Y(i)||(i=[0,i]);var o=J(n.width,t.getWidth()),s=J(n.height,t.getHeight()),l=Math.min(o,s),u=J(i[0],l/2),f=J(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function me(e,t,r){r=Kh(r||0);var n=t.width,a=t.height,i=J(e.left,n),o=J(e.top,a),s=J(e.right,n),l=J(e.bottom,a),u=J(e.width,n),f=J(e.height,a),c=r[2]+r[0],v=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-c),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-v;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new dt((t.x||0)+i+r[3],(t.y||0)+o+r[0],u,f);return d.margin=r,d}function oj(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(a))<1e-9)return t;var i=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return a>r&&!l||a<r&&l?(s.width=t.height*r,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/r,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),me(s,t)}var cp={rect:1,point:2};function or(e,t,r){var n,a,i,o=e.boxCoordinateSystem,s;if(o){var l=J9(e),u=l.coord,f=l.from;if(o.dataToLayout){i=cp.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=cp.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=cp.rect),i===cp.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function sx(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new dt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=me(pt({width:u.width,height:u.height},t),r,n),v=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===e&&e.markRedraw(),!0}function gft(e,t){return e[Gu[t][0]]!=null||e[Gu[t][1]]!=null&&e[Gu[t][2]]!=null}function Rg(e){var t=e.layoutMode||e.constructor.layoutMode;return gt(t)?t:t?{type:t}:null}function Qi(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var a=o(Gu[0],0),i=o(Gu[1],1);l(Gu[0],e,a),l(Gu[1],e,i);function o(u,f){var c={},v=0,h={},d=0,p=2;if(C_(u,function(m){h[m]=e[m]}),C_(u,function(m){nt(t,m)&&(c[m]=h[m]=t[m]),s(c,m)&&v++,s(h,m)&&d++}),n[f])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var y=u[g];if(!nt(c,y)&&nt(e,y)){c[y]=e[y];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){C_(u,function(v){f[v]=c[v]})}}function cc(e){return sj({},e)}function sj(e,t){return t&&e&&C_(nj,function(r){nt(t,r)&&(e[r]=t[r])}),e}var yft=Tt(),Et=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=fc("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Rg(this),i=a?cc(r):{},o=n.getTheme();wt(r,o.get(this.mainType)),wt(r,this.getDefaultOption()),a&&Qi(r,i,a)},t.prototype.mergeOption=function(r,n){wt(this.option,r,!0);var a=Rg(this);a&&Qi(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Zst(r))return r.defaultOption;var n=yft(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=wt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Hh(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return aj(this,!1)},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}(Ot);FY(Et,Ot);Zb(Et);$ut(Et);Xut(Et,mft);function mft(e){var t=[];return D(Et.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=W(t,function(r){return Mi(r).main}),e!=="dataset"&&bt(t,"dataset")<=0&&t.unshift("dataset"),t}var V={color:{},darkColor:{},size:{}},Be=V.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};U(Be,{primary:Be.neutral80,secondary:Be.neutral70,tertiary:Be.neutral60,quaternary:Be.neutral50,disabled:Be.neutral20,border:Be.neutral30,borderTint:Be.neutral20,borderShade:Be.neutral40,background:Be.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Be.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Be.neutral70,axisLineTint:Be.neutral40,axisTick:Be.neutral70,axisTickMinor:Be.neutral60,axisLabel:Be.neutral70,axisSplitLine:Be.neutral15,axisMinorSplitLine:Be.neutral05});for(var lu in Be)if(Be.hasOwnProperty(lu)){var Pz=Be[lu];lu==="theme"?V.darkColor.theme=Be.theme.slice():lu==="highlight"?V.darkColor.highlight="rgba(255,231,130,0.4)":lu.indexOf("accent")===0?V.darkColor[lu]=Ho(Pz,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):V.darkColor[lu]=Ho(Pz,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}V.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var lj="";typeof navigator<"u"&&(lj=navigator.platform||"");var Lc="rgba(0, 0, 0, 0.2)",uj=V.color.theme[0],_ft=Ho(uj,null,null,.9);const fj={darkMode:"auto",colorBy:"series",color:V.color.theme,gradientColor:[_ft,uj],aria:{decal:{decals:[{color:Lc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Lc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Lc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Lc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Lc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Lc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lj.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 Ar={Must:1,Might:2,Not:3},cj=Tt();function Sft(e){cj(e).datasetMap=rt()}function vj(e,t,r){var n={},a=BR(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=cj(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),D(e,function(p,g){var y=gt(p)?p:e[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(e,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(n[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(n[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function kR(e,t,r){var n={},a=BR(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Jn||i===ai)&&D(o,function(f,c){(gt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=dj(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===Ar.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===Ar.Not)&&(f.n=h),y(f)&&v[f.n]!==Ar.Not)return f;g||(p===Ar.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function BR(e){var t=e.get("data",!0);if(!t)return Hh(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Pe).models[0]}function bft(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Hh(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Pe).models}function hj(e,t){return dj(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function dj(e,t,r,n,a,i){var o,s=5;if(un(e))return Ar.Not;var l,u;if(n){var f=n[i];gt(f)?(l=f.name,u=f.type):K(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ar.Must:Ar.Not;if(t===xr){var c=e;if(r===sc){for(var v=c[i],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[a+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(t===Jn){var p=e;if(!l)return Ar.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===ai){var y=e;if(!l)return Ar.Not;var v=y[l];if(!v||un(v))return Ar.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(t===Qn)for(var m=e,h=0;h<m.length&&h<s;h++){var g=m[h],_=Gh(g);if(!Y(_))return Ar.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=K(b);if(b!=null&&isFinite(Number(b))&&b!=="")return x?Ar.Might:Ar.Not;if(x&&b!=="-")return Ar.Must}return Ar.Not}var G2=rt();function xft(e,t){zr(G2.get(e)==null&&t),G2.set(e,t)}function wft(e,t,r){var n=G2.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var Nz=Tt(),Tft=Tt(),zR=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=le(this.get("color",!0)),i=this.get("colorLayer",!0);return pj(this,Nz,a,i,t,r,n)},e.prototype.clearColorPalette=function(){Cft(this,Nz)},e}();function H2(e,t,r,n){var a=le(e.get(["aria","decal","decals"]));return pj(e,Tft,a,null,t,r,n)}function Aft(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 pj(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?r:Aft(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function Cft(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Hm,Ad,kz,Bz="\0_ec_inner",Mft=1,VR=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ot(i),this._locale=new Ot(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=Gz(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Gz(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?kz(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=rt(),u=n&&n.replaceMergeMainTypeMap;Sft(this),D(r,function(c,v){c!=null&&(Et.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?ut(c):wt(a[v],c,!0))}),u&&u.each(function(c,v){Et.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Et.topologicalTravel(s,Et.getAllClassMainTypes(),f,this);function f(c){var v=wft(this,c,le(r[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=NY(h,v,d);Nst(p,c,Et),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var A=c==="series",T=Et.getClass(c,S.keyInfo.subType,!A);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===T)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var C=U({componentIndex:b},S.keyInfo);x=new T(w,this,this,C),U(x,C),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&Hm(this)}this._seriesIndices||Hm(this)},t.prototype.getOption=function(){var r=ut(this.option);return D(r,function(n,a){if(Et.hasClass(a)){for(var i=le(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Mg(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Bz],r},t.prototype.setTheme=function(r){this._theme=new Ot(r),this._resetOption("recreate",null)},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 a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(le(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=zz("id",i,s):o!=null?l=zz("name",o,s):l=Xt(s,function(u){return!!u}),Vz(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Xt(this._componentsMap.get(a),function(u){return!!u});return l(Vz(o,r));function s(u){var f=a+"Index",c=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?Xt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ct(r)){var o=n,s=r;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=K(r)?i.get(r):gt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=rr(r,null);return Xt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Xt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Xt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Ad(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Ad(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return D(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Ad(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Ad(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=rt(a)},t.prototype.restoreData=function(r){Hm(this);var n=this._componentsMap,a=[];n.each(function(i,o){Et.hasClass(o)&&a.push(o)}),Et.topologicalTravel(a,Et.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!Dft(o,r))&&o.restoreData()})})},t.internalField=function(){Hm=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=rt(n)},Ad=function(r){},kz=function(r,n){r.option={},r.option[Bz]=Mft,r._componentsMap=rt({series:[]}),r._componentsCount=rt();var a=n.aria;gt(a)&&a.enabled==null&&(a.enabled=!0),Lft(n,r._theme.option),wt(n,fj,!1),r._mergeOption(n,null)}}(),t}(Ot);function Dft(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function Lft(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,a){a==="colorLayer"&&r||a==="color"&&e.color||Et.hasClass(a)||(typeof n=="object"?e[a]=e[a]?wt(e[a],n,!1):ut(n):e[a]==null&&(e[a]=n))})}function zz(e,t,r){if(Y(t)){var n=rt();return D(t,function(i){if(i!=null){var o=rr(i,null);o!=null&&n.set(i,!0)}}),Xt(r,function(i){return i&&n.get(i[e])})}else{var a=rr(t,null);return Xt(r,function(i){return i&&a!=null&&i[e]===a})}}function Vz(e,t){return t.hasOwnProperty("subType")?Xt(e,function(r){return r&&r.subType===t.subType}):e}function Gz(e){var t=rt();return e&&D(le(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Ye(VR,zR);var Eft=/^(min|max)?(.+)$/,Oft=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(le(t.series),function(o){o&&o.data&&un(o.data)&&mg(o.data)}),D(le(t.dataset),function(o){o&&o.source&&un(o.source)&&mg(o.source)})),t=ut(t);var a=this._optionBackup,i=Rft(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ut(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ut(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Ift(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Nft(o,this._currentMediaIndices)&&(s=W(o,function(f){return ut(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},e}();function Rft(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(e.options=e.media=null),i=e),f&&Y(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),D(l,function(h){return v(h)}),D(n,function(h){return v(h.option)});function v(h){D(t,function(d){d(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Ift(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return D(e,function(i,o){var s=o.match(Eft);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Pft(n[u],i,l)||(a=!1)}}),a}function Pft(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Nft(e,t){return e.join(",")===t.join(",")}var za=D,Ig=gt,Hz=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function RT(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Hz.length;r<n;r++){var a=Hz[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?wt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?wt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Wr(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,pt(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function vp(e){Wr(e,"itemStyle"),Wr(e,"lineStyle"),Wr(e,"areaStyle"),Wr(e,"label"),Wr(e,"labelLine"),Wr(e,"upperLabel"),Wr(e,"edgeLabel")}function je(e,t){var r=Ig(e)&&e[t],n=Ig(r)&&r.textStyle;if(n)for(var a=0,i=YB.length;a<i;a++){var o=YB[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function sa(e){e&&(vp(e),je(e,"label"),e.emphasis&&je(e.emphasis,"label"))}function kft(e){if(Ig(e)){RT(e),vp(e),je(e,"label"),je(e,"upperLabel"),je(e,"edgeLabel"),e.emphasis&&(je(e.emphasis,"label"),je(e.emphasis,"upperLabel"),je(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(RT(t),sa(t));var r=e.markLine;r&&(RT(r),sa(r));var n=e.markArea;n&&sa(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!un(i))for(var o=0;o<i.length;o++)sa(i[o]);D(e.categories,function(u){vp(u)})}if(a&&!un(a))for(var o=0;o<a.length;o++)sa(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)sa(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Y(l[o])?(sa(l[o][0]),sa(l[o][1])):sa(l[o]);e.type==="gauge"?(je(e,"axisLabel"),je(e,"title"),je(e,"detail")):e.type==="treemap"?(Wr(e.breadcrumb,"itemStyle"),D(e.levels,function(u){vp(u)})):e.type==="tree"&&vp(e.leaves)}}function po(e){return Y(e)?e:e?[e]:[]}function Uz(e){return(Y(e)?e[0]:e)||{}}function Bft(e,t){za(po(e.series),function(n){Ig(n)&&kft(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),za(r,function(n){za(po(e[n]),function(a){a&&(je(a,"axisLabel"),je(a.axisPointer,"label"))})}),za(po(e.parallel),function(n){var a=n&&n.parallelAxisDefault;je(a,"axisLabel"),je(a&&a.axisPointer,"label")}),za(po(e.calendar),function(n){Wr(n,"itemStyle"),je(n,"dayLabel"),je(n,"monthLabel"),je(n,"yearLabel")}),za(po(e.radar),function(n){je(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)}),za(po(e.geo),function(n){Ig(n)&&(sa(n),za(po(n.regions),function(a){sa(a)}))}),za(po(e.timeline),function(n){sa(n),Wr(n,"label"),Wr(n,"itemStyle"),Wr(n,"controlStyle",!0);var a=n.data;Y(a)&&D(a,function(i){gt(i)&&(Wr(i,"label"),Wr(i,"itemStyle"))})}),za(po(e.toolbox),function(n){Wr(n,"iconStyle"),za(n.feature,function(a){Wr(a,"iconStyle")})}),je(Uz(e.axisPointer),"label"),je(Uz(e.tooltip).axisPointer,"label")}function zft(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function Vft(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function Fz(e){e&&D(Gft,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Gft=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Hft=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],IT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cd(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<IT.length;r++){var n=IT[r][1],a=IT[r][0];t[n]!=null&&(t[a]=t[n])}}function Yz(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function jz(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Uft(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function gj(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&gj(e[r].children,t)}function yj(e,t){Bft(e,t),e.series=le(e.series),D(e.series,function(r){if(gt(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),Yz(r.label);var a=r.data;if(a&&!un(a))for(var i=0;i<a.length;i++)Yz(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=zft(r,"pointer.color");o!=null&&Vft(r,"itemStyle.color",o)}else if(n==="bar"){Cd(r),Cd(r.backgroundStyle),Cd(r.emphasis);var a=r.data;if(a&&!un(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Cd(a[i]),Cd(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),jz(r),gj(r.data,jz)}else n==="graph"||n==="sankey"?Uft(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Fz(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(Hft,function(r){var n=e[r];n&&(Y(n)||(n=[n]),D(n,function(a){Fz(a)}))})}var Fft=Iy(Yft);function Yft(e){var t=rt();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),D(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),jft(r)}})}function jft(e){D(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return a;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=Au(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var lx=function(){function e(t){this.data=t.data||(t.sourceFormat===ai?{}:[]),this.sourceFormat=t.sourceFormat||e9,this.seriesLayoutBy=t.seriesLayoutBy||Xa,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 a=r[n];a.type==null&&hj(this,n)===Ar.Must&&(a.type="ordinal")}}return e}();function GR(e){return e instanceof lx}function U2(e,t,r){r=r||mj(e);var n=t.seriesLayoutBy,a=$ft(e,r,n,t.sourceHeader,t.dimensions),i=new lx({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ut(t)});return i}function HR(e){return new lx({data:e,sourceFormat:un(e)?fl:Qn})}function Wft(e){return new lx({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ut(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function mj(e){var t=e9;if(un(e))t=fl;else if(Y(e)){e.length===0&&(t=xr);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(Y(a)||un(a)){t=xr;break}else if(gt(a)){t=Jn;break}}}}else if(gt(e)){for(var i in e)if(nt(e,i)&&Br(e[i])){t=ai;break}}return t}function $ft(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:Wz(a),startIndex:o,dimensionsDetectedCount:i};if(t===xr){var s=e;n==="auto"||n==null?$z(function(u){u!=null&&u!=="-"&&(K(u)?o==null&&(o=1):o=0)},r,s,10):o=Vt(n)?n:n?1:0,!a&&o===1&&(a=[],$z(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===sc?s.length:s[0]?s[0].length:null}else if(t===Jn)a||(a=Xft(e));else if(t===ai)a||(a=[],D(e,function(u,f){a.push(f)}));else if(t===Qn){var l=Gh(e[0]);i=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Wz(a),dimensionsDetectedCount:i}}function Xft(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Nt(r)}function Wz(e){if(e){var t=rt();return W(e,function(r,n){r=gt(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function $z(e,t,r,n){if(t===sc)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function _j(e){var t=e.sourceFormat;return t===Jn||t===ai}var uu,fu,cu,vu,Xz,Zz,Sj=function(){function e(t,r){var n=GR(t)?t:HR(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===fl&&(this._offset=0,this._dimSize=r,this._data=a),Zz(this,a,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;Zz=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=Xz[UR(u,f)];if(U(o,h),u===fl)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=bj(u,f);o.getItem=et(d,null,s,c,v);var p=xj(u,f);o.count=et(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Xz=(t={},t[xr+"_"+Xa]={pure:!0,appendData:i},t[xr+"_"+sc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Jn]={pure:!0,appendData:i},t[ai]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Qn]={appendData:i},t[fl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Um=function(e){Y(e)||RY("series.data or dataset.source must be an array.")};uu={},uu[xr+"_"+Xa]=Um,uu[xr+"_"+sc]=Um,uu[Jn]=Um,uu[ai]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&RY("dimension name must not be null/undefined.")}},uu[Qn]=Um;var qz=function(e,t,r,n){return e[n]},Zft=(fu={},fu[xr+"_"+Xa]=function(e,t,r,n){return e[n+t]},fu[xr+"_"+sc]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},fu[Jn]=qz,fu[ai]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;i[o]=l?l[n]:null}return i},fu[Qn]=qz,fu);function bj(e,t){var r=Zft[UR(e,t)];return r}var Kz=function(e,t,r){return e.length},qft=(cu={},cu[xr+"_"+Xa]=function(e,t,r){return Math.max(0,e.length-t)},cu[xr+"_"+sc]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},cu[Jn]=Kz,cu[ai]=function(e,t,r){var n=r[0].name,a=n!=null?e[n]:null;return a?a.length:0},cu[Qn]=Kz,cu);function xj(e,t){var r=qft[UR(e,t)];return r}var PT=function(e,t,r){return e[t]},Kft=(vu={},vu[xr]=PT,vu[Jn]=function(e,t,r){return e[r]},vu[ai]=PT,vu[Qn]=function(e,t,r){var n=Gh(e);return n instanceof Array?n[t]:n},vu[fl]=PT,vu);function wj(e){var t=Kft[e];return t}function UR(e,t){return e===xr?e+"_"+t:e}function dh(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return wj(i)(n,o,s)}else{var l=n;return i===Qn&&(l=Gh(n)),l}}}}var Qft=/\{@(.+?)\}/g,ux=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Y(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ct(i))return l.status=r,l.dimensionIndex=a,i(l);if(K(i)){var f=PR(i,l);return f.replace(Qft,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=dh(s,t,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return dh(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Qz(e){var t,r;return gt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Xp(e){return new Jft(e)}var Jft=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 a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=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,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){Jz.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Jz.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 a=this._downstream;return a&&a.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}(),Jz=function(){var e,t,r,n,a,i={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function vl(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Vt(e)&&e!=null&&e!=="-"&&(e=+io(e)),e==null||e===""?NaN:Number(e))}var tct=rt({number:function(e){return parseFloat(e)},time:function(e){return+io(e)},trim:function(e){return K(e)?zn(e):e}});function Tj(e){return tct.get(e)}var Aj={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}},ect=function(){function e(t,r){if(!Vt(r)){var n="";$t(n)}this._opFn=Aj[t],this._rvalFloat=Zi(r)}return e.prototype.evaluate=function(t){return Vt(t)?this._opFn(t,this._rvalFloat):this._opFn(Zi(t),this._rvalFloat)},e}(),Cj=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=Vt(t)?t:Zi(t),a=Vt(r)?r:Zi(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=K(t),l=K(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),rct=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Zi(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=Zi(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function nct(e,t){return e==="eq"||e==="ne"?new rct(e==="eq",t):nt(Aj,e)?new ect(e,t):null}function Mj(e){var t="",r=-1/0,n=-1/0,a=1/0,i=1/0;return e&&(e.g!=null&&(t+="G"+e.g,r=e.g),e.ge!=null&&(t+="GE"+e.ge,n=e.ge),e.l!=null&&(t+="L"+e.l,a=e.l),e.le!=null&&(t+="LE"+e.le,i=e.le)),{key:t,g:r,ge:n,l:a,le:i}}function Dj(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var act=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 vl(t,r)},e}();function ict(e,t){var r=new act,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Xa&&$t(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";nt(l,y)&&$t(_),l[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=bj(a,Xa);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,i,s,p)},r.getRawData=et(oct,null,e)),r.cloneRawData=et(sct,null,e);var v=xj(a,Xa);r.count=et(v,null,n,i,s);var h=wj(a);r.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return r.getDimensionInfo=et(lct,null,s,l),r.cloneAllDimensionInfo=et(uct,null,s),r}function oct(e){var t=e.sourceFormat;if(!FR(t)){var r="";$t(r)}return e.data}function sct(e){var t=e.sourceFormat,r=e.data;if(!FR(t)){var n="";$t(n)}if(t===xr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===Jn){for(var a=[],i=0,o=r.length;i<o;i++)a.push(U({},r[i]));return a}}function lct(e,t,r){if(r!=null){if(Vt(r)||!isNaN(r)&&!nt(t,r))return e[r];if(nt(t,r))return t[r]}}function uct(e){return ut(e)}var Lj=rt();function fct(e){e=ut(e);var t=e.type,r="";t||$t(r);var n=t.split(":");n.length!==2&&$t(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,Lj.set(t,e)}function cct(e,t,r){var n=le(e),a=n.length,i="";a||$t(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=vct(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function vct(e,t,r,n){var a="";t.length||$t(a),gt(e)||$t(a);var i=e.type,o=Lj.get(i);o||$t(a);var s=W(t,function(u){return ict(u,o)}),l=le(o.transform({upstream:s[0],upstreamList:s,config:ut(e.config)}));return W(l,function(u,f){var c="";gt(u)||$t(c),u.data||$t(c);var v=mj(u.data);FR(v)||$t(c);var h,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Xa,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Xa,sourceHeader:0,dimensions:u.dimensions};return U2(u.data,h,null)})}function FR(e){return e===xr||e===Jn}var hct=typeof Uint32Array===Fh?Array:Uint32Array,dct=typeof Uint16Array===Fh?Array:Uint16Array,Ej=typeof Int32Array===Fh?Array:Int32Array,t5=typeof Float64Array===Fh?Array:Float64Array,Oj={float:t5,int:Ej,ordinal:Array,number:Array,time:t5},NT;function Ec(e){return e>65535?hct:dct}function pct(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function e5(e,t,r,n,a){var i=Oj[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var F2=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=rt()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=NT[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],_j(a),this._dimensions=W(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,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new Oj[r||"float"](this._rawCount),this._rawExtent[i]=Lr(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=Lr());for(var l=i[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.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 a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var f=a[u];e5(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var f=a[d],p=NT.arrayRows.call(this,t[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=W(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Lr()),e5(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var v=[],h=t;h<r;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.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=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],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 a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)}),Sr(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/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 a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Ec(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Ec(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<a&&(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 a=Nt(t),i=a.length;if(!i)return this;var o=r.count(),s=Ec(r._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],v=t[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=c&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=r.getRawIndex(y),m=h[a[0]][w];(m>=c&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var A=!0,w=r.getRawIndex(y),T=0;T<i;T++){var C=a[T],m=h[C][w];(m<t[C][0]||m>t[C][1])&&(A=!1)}A&&(l[u++]=r.getRawIndex(y))}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 a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=Lr();for(var c=0;c<s;c++){for(var v=t.getRawIndex(c),h=0;h<o;h++)l[h]=a[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],y=u[p],m=a[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(Ec(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,w=Math.min(d+l,o),A=d-1,T=i[u];f=-1,v=x;for(var C=-1,M=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,C<0&&(C=S);continue}c=Math.abs((A-y)*(b-T)-(A-_)*(m-T)),c>f&&(f=c,v=S)}M>0&&M<w-x&&(h[s++]=Math.min(C,v),v=Math.max(C,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/r),o=a[t],s=this.count(),l=new(Ec(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,c=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=i._rawExtent[t]=Lr(),v=new(Ec(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t,r){var n=this._chunks[t],a=Lr();if(!n)return a;var i=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=Mj(r),f=u.key,c=l[f];if(c)return c.slice();for(var v=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!r||Dj(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&La(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?pct(a[o]):a[o];else n._chunks=a;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=ut(this._extent),t._rawExtent=ut(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 a=0;a<n;a++)r[a]=this._indices[a]}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,a,i){return vl(r[i],this._dimensions[i])}NT={arrayRows:t,objectRows:function(r,n,a,i){return vl(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return vl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),Rj=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,a,i;if(Fm(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=un(s)?fl:Qn,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ot(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=ot(c.sourceHeader,v.sourceHeader),p=ot(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[U2(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[U2(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&n5(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&n5(c),s.push(f),l.push(u._getVersionSign())}),n?o=cct(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Wft(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 a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Fm(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new F2,s.initData(new Sj(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Fm(t)){var r=BR(t);return r?[r.getSourceManager()]:[]}else return W(bft(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(Fm(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function r5(e){var t=e.option.transform;t&&mg(e.option.transform)}function Fm(e){return e.mainType==="series"}function n5(e){throw new Error(e)}var gct="line-height:1";function Ij(e){var t=e.lineHeight;return t==null?gct:"line-height:"+$r(t+"")+"px"}function Pj(e,t){var r=e.color||V.color.tertiary,n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||V.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+$r(n+"")+"px;color:"+$r(r)+";font-weight:"+$r(a+""),valueStyle:"font-size:"+$r(o+"")+"px;color:"+$r(i)+";font-weight:"+$r(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var yct=[0,10,20,30],mct=["",`
|
|
162
|
+
`,`
|
|
163
|
+
|
|
164
|
+
`,`
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
`];function Xe(e,t){return t.type=e,t}function Y2(e){return e.type==="section"}function Nj(e){return Y2(e)?_ct:Sct}function kj(e){if(Y2(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(a){var i=kj(a);i>=t&&(t=i+ +(n&&(!i||Y2(a)&&!a.noHeader)))}),t}return 0}function _ct(e,t,r,n){var a=t.noHeader,i=bct(kj(t)),o=[],s=t.blocks||[];zr(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(nt(u,l)){var f=new Cj(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,g){var y=t.valueFormatter,m=Nj(p)(y?U(U({},e),{valueFormatter:y}):e,p,g>0?i.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(i.richText):j2(n,o.join(""),a?r:i.html);if(a)return c;var v=V2(t.header,"ordinal",e.useUTC),h=Pj(n,e.renderMode).nameStyle,d=Ij(n);return e.renderMode==="richText"?Bj(e,v,h)+i.richText+c:j2(n,'<div style="'+h+";"+d+';">'+$r(v)+"</div>"+c,r)}function Sct(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],W(S,function(b,x){return V2(b,Y(h)?h[x]:h,u)})};if(!(i&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||V.color.secondary,a),v=i?"":V2(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.rawDataIndex),p=!s||!i,g=!s&&i,y=Pj(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":Bj(e,v,m))+(o?"":Tct(e,d,p,g,_)):j2(n,(s?"":c)+(i?"":xct(v,!s,m))+(o?"":wct(d,p,g,_)),r)}}function a5(e,t,r,n,a,i){if(e){var o=Nj(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function bct(e){return{html:yct[e],richText:mct[e]}}function j2(e,t,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=Ij(e);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function xct(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+$r(e)+"</span>"}function wct(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Y(e)?e:[e],'<span style="'+i+";"+n+'">'+W(e,function(o){return $r(o)}).join(" ")+"</span>"}function Bj(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Tct(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,i)}function zj(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Cf(n)}function Vj(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var kT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QO()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=q9({color:r,type:t,renderMode:n,markerId:a});return K(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?D(r,function(i){return U(n,i)}):U(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function Gj(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=Y(s),u=zj(t,r),f,c,v,h;if(o>1||l&&!o){var d=Act(s,t,r,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=dh(a,r,i[0]),c=p.type}else h=f=l?s[0]:s;var g=JO(t),y=g&&t.name||"",m=a.getName(r),_=n?y:m;return Xe("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[Xe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zn(_),value:f,valueType:c,rawDataIndex:a.getRawIndex(r)})].concat(v||[])})}function Act(e,t,r,n,a){var i=t.getData(),o=La(e,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(dh(i,r,c),c)}):D(e,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Xe("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var xs=Tt();function Ym(e,t){return e.getName(t)||e.getId(t)}var M_="__universalTransitionEnabled",ne=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Xp({count:Mct,reset:Dct}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=xs(this).sourceManager=new Rj(this);i.prepareSource();var o=this.getInitialData(r,a);o5(o,this),this.dataTask.context.data=o,xs(this).dataBeforeProcessed=o,i5(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Rg(this),i=a?cc(r):{},o=this.subType;Et.hasClass(o)&&(o+="Series"),wt(r,n.getTheme().get(this.subType)),wt(r,this.getDefaultOption()),_f(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Qi(r,i,a)},t.prototype.mergeOption=function(r,n){r=wt(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Rg(this);a&&Qi(this.option,r,a);var i=xs(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);o5(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xs(this).dataBeforeProcessed=o,i5(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!un(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&_f(r[a],"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=W2(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return xs(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=W2(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}xs(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return rt(r)},t.prototype.getSourceManager=function(){return xs(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xs(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.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,y=p.count();g<y;g++){var m=p.get(d,g),_=l.dataToCoord(m),S=u-_,b=Math.abs(S);b<=i&&((b<c||b===c&&S>=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},t.prototype.formatTooltip=function(r,n,a){return Gj({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Bt.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,a){var i=this.ecModel,o=zR.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),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 a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Ym(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Nt(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Ym(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[M_])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){gt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=Ym(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=Ym(r,h);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=r.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Et.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}(Et);Ye(ne,ux);Ye(ne,zR);FY(ne,Et);function i5(e){var t=e.name;JO(e)||(e.name=Cct(e)||t)}function Cct(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Mct(e){return e.model.getRawData().count()}function Dct(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Lct}function Lct(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function o5(e,t){D(sh(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Mt(Ect,t))})}function Ect(e,t){var r=W2(e);return r&&r.setOutputEnd((t||this).count()),t}function W2(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var ue=function(){function e(){this.group=new ht,this.uid=fc("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();rR(ue);Zb(ue);function vc(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Hj=Tt(),Oct=vc(),ee=function(){function e(){this.group=new ht,this.uid=fc("viewChart"),this.renderTask=Xp({plan:Rct,reset:Ict}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&l5(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&l5(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){zl(this.group,t)},e.markUpdateMethod=function(t,r){Hj(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function s5(e,t,r){e&&Lg(e)&&(t==="emphasis"?as:is)(e,r)}function l5(e,t,r){var n=Sf(e,t),a=t&&t.highlightKey!=null?aut(t.highlightKey):null;n!=null?D(le(n),function(i){s5(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){s5(i,r,a)})}rR(ee);Zb(ee);function Rct(e){return Oct(e.model)}function Ict(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Hj(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),Pct[l]}var Pct={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)}}},QS="\0__throttleOriginMethod",u5="\0__throttleRate",f5="\0__throttleType";function fx(e,t,r){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Jh(e,t,r,n){var a=e[t];if(a){var i=a[QS]||a,o=a[f5],s=a[u5];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=fx(i,r,n==="debounce"),a[QS]=i,a[f5]=n,a[u5]=r}return a}}function Pg(e,t){var r=e[t];r&&r[QS]&&(r.clear&&r.clear(),e[t]=r[QS])}var c5=Tt(),v5={itemStyle:xf(V9,!0),lineStyle:xf(z9,!0)},Nct={lineStyle:"stroke",itemStyle:"fill"};function Uj(e,t){var r=e.visualStyleMapper||v5[t];return r||(console.warn("Unknown style type '"+t+"'."),v5.itemStyle)}function Fj(e,t){var r=e.visualDrawType||Nct[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var kct={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Uj(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Fj(e,n),u=o[l],f=ct(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ct(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ct(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=e.getDataParams(d),g=U({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},Md=new Ot,Bct={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Uj(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Md.option=l[n];var u=a(Md),f=o.ensureUniqueItemVisual(s,"style");U(f,u),Md.option.decal&&(o.setItemVisual(s,"decal",Md.option.decal),Md.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},zct={performRawSeries:!0,overallReset:function(e){var t=rt();e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();c5(r).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),a={},i=r.getData(),o=c5(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Fj(r,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},jm=Math.PI;function Vct(e,t){t=t||{},pt(t,{text:"loading",textColor:V.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:V.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ht,n=new Lt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new zt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Lt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new ky({shape:{startAngle:-jm/2,endAngle:-jm/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:jm*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jm*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.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),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Yj=function(){function e(t,r,n,a){this._stageTaskMap=rt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.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),a=t.__preparePipelineContext?t.__preparePipelineContext(r,n):HY(t,r,n);t.pipelineContext=n.context=a},e.prototype.restorePipelines=function(t,r){var n=this,a=n._pipelineMap=rt();r.eachSeries(function(i){var o=t.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";zr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},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,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||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,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Xp({plan:Yct,reset:jct,count:$ct}));h.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||Xp({reset:Gct});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=rt(),u=t.seriesType,f=t.getTargetSeries,c=t.dirtyOnOverallProgress,v=!1,h="";zr(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):D(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Xp({reset:Hct,onDirty:Fct})));y.context={model:p,dirtyOnOverallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ct(t)&&(t={overallReset:t,seriesType:Xct(t)}),t.uid=fc("stageHandler"),r&&(t.visualType=r),t},e}();function Gct(e){e.overallReset(e.ecModel,e.api,e.payload)}function Hct(e){return e.dirtyOnOverallProgress&&Uct}function Uct(){this.agent.dirty(),this.getDownstream().dirty()}function Fct(){this.agent&&this.agent.dirty()}function Yct(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function jct(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=le(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?W(t,function(r,n){return jj(n)}):Wct}var Wct=jj(0);function jj(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function $ct(e){return e.data.count()}function Xct(e){JS=null;try{e(Ng,Wj)}catch{}return JS}var Ng={},Wj={},JS;$j(Ng,VR);$j(Wj,n9);Ng.eachSeriesByType=Ng.eachRawSeriesByType=function(e){JS=e};Ng.eachComponent=function(e){e.mainType==="series"&&e.subType&&(JS=e.subType)};function $j(e,t){for(var r in t.prototype)e[r]=Ee}var vt=V.darkColor,h5=vt.background,Dd=function(){return{axisLine:{lineStyle:{color:vt.axisLine}},splitLine:{lineStyle:{color:vt.axisSplitLine}},splitArea:{areaStyle:{color:[vt.backgroundTint,vt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:vt.axisMinorSplitLine}},axisLabel:{color:vt.axisLabel},axisName:{}}},d5={label:{color:vt.secondary},itemStyle:{borderColor:vt.borderTint},dividerLineStyle:{color:vt.border}},Xj={darkMode:!0,color:vt.theme,backgroundColor:h5,axisPointer:{lineStyle:{color:vt.border},crossStyle:{color:vt.borderShade},label:{color:vt.tertiary}},legend:{textStyle:{color:vt.secondary},pageTextStyle:{color:vt.tertiary}},textStyle:{color:vt.secondary},title:{textStyle:{color:vt.primary},subtextStyle:{color:vt.quaternary}},toolbox:{iconStyle:{borderColor:vt.accent50},feature:{dataView:{backgroundColor:h5,textColor:vt.primary,textareaColor:vt.background,textareaBorderColor:vt.border,buttonColor:vt.accent50,buttonTextColor:vt.neutral00}}},tooltip:{backgroundColor:vt.neutral20,defaultBorderColor:vt.border,textStyle:{color:vt.tertiary}},dataZoom:{borderColor:vt.accent10,textStyle:{color:vt.tertiary},brushStyle:{color:vt.backgroundTint},handleStyle:{color:vt.neutral00,borderColor:vt.accent20},moveHandleStyle:{color:vt.accent40},emphasis:{handleStyle:{borderColor:vt.accent50}},dataBackground:{lineStyle:{color:vt.accent30},areaStyle:{color:vt.accent20}},selectedDataBackground:{lineStyle:{color:vt.accent50},areaStyle:{color:vt.accent30}}},visualMap:{textStyle:{color:vt.secondary},handleStyle:{borderColor:vt.neutral30}},timeline:{lineStyle:{color:vt.accent10},label:{color:vt.tertiary},controlStyle:{color:vt.accent30,borderColor:vt.accent30}},calendar:{itemStyle:{color:vt.neutral00,borderColor:vt.neutral20},dayLabel:{color:vt.tertiary},monthLabel:{color:vt.secondary},yearLabel:{color:vt.secondary}},matrix:{x:d5,y:d5,backgroundColor:{borderColor:vt.axisLine},body:{itemStyle:{borderColor:vt.borderTint}}},timeAxis:Dd(),logAxis:Dd(),valueAxis:Dd(),categoryAxis:Dd(),line:{symbol:"circle"},graph:{color:vt.theme},gauge:{title:{color:vt.secondary},axisLine:{lineStyle:{color:[[1,vt.neutral05]]}},axisLabel:{color:vt.axisLabel},detail:{color:vt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:vt.background}},radar:function(){var e=Dd();return e.axisName={color:vt.axisLabel},e.axisLine.lineStyle.color=vt.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:vt.neutral20,textStyle:{color:vt.secondary}},emphasis:{itemStyle:{color:vt.neutral30}}}},sunburst:{itemStyle:{borderColor:vt.background}},map:{itemStyle:{borderColor:vt.border,areaColor:vt.neutral10},label:{color:vt.tertiary},emphasis:{label:{color:vt.primary},itemStyle:{areaColor:vt.highlight}},select:{label:{color:vt.primary},itemStyle:{areaColor:vt.highlight}}},geo:{itemStyle:{borderColor:vt.border,areaColor:vt.neutral10},emphasis:{label:{color:vt.primary},itemStyle:{areaColor:vt.highlight}},select:{label:{color:vt.primary},itemStyle:{color:vt.highlight}}}};Xj.categoryAxis.splitLine.show=!1;var Zct=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(K(t)){var i=Mi(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),$2=["symbol","symbolSize","symbolRotate","symbolOffset"],p5=$2.concat(["symbolKeepAspect"]),qct={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={},a={},i=!1,o=0;o<$2.length;o++){var s=$2[o],l=e.get(s);ct(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(U({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Nt(a);function f(c,v){for(var h=e.getRawValue(v),d=e.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,a[g](h,d))}}return{dataEach:i?f:null}}},Kct={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<p5.length;s++){var l=p5[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function YR(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 Hy(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 Zj(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[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 qj(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=U({},a),o.dispatchAction(U(a,{type:n[1],seriesIndex:r(i,a)}))})})}function Oc(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Sf(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Y(v)?c.getName(v[0]):c.getName(v),selected:K(l)?l:U({},l)})}})}function Qct(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Oc("map","selectchanged",t,a,n),Oc("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Oc("map","selected",t,a,n),Oc("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Oc("map","unselected",t,a,n),Oc("pie","unselected",t,a,n))})}function Hu(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var ia=new Pa,Kj={};function Jct(e,t){Kj[e]=t}function Qj(e){return Kj[e]}var Jj={};function tW(e,t){Jj[e]=t}function tvt(e){return Jj[e]}var cx=Tt();function evt(e){cx(e).prepare={}}function rvt(e){cx(e).fullUpdate={}}function eW(e){return cx(e).prepare}function td(e){return cx(e).fullUpdate}var nvt=Math.round(Math.random()*9),avt=typeof Object.defineProperty=="function",ivt=function(){function e(){this._id="__ec_inner_"+nvt++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return avt?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}(),ovt=Rt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),svt=Rt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),lvt=Rt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),e.closePath()}}),uvt=Rt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),fvt={line:He,rect:Lt,roundRect:Lt,square:Lt,circle:oo,diamond:svt,pin:lvt,arrow:uvt,triangle:ovt},cvt={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},t1={};D(fvt,function(e,t){t1[t]=new e});var vvt=Rt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=zS(e,t,r),a=this.shape;return a&&a.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 a=t1[n];a||(n="rect",a=t1[n]),cvt[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function hvt(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||V.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Fe(e,t,r,n,a,i,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=dR(e.slice(8),new dt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=vh(e.slice(7),{},new dt(t,r,n,a),o?"center":"cover"):l=new vvt({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=hvt,i&&l.setColor(i),l}function ed(e){return Y(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function hc(e,t){if(e!=null)return Y(e)||(e=[e,e]),[J(e[0],t[0])||0,J(ot(e[1],e[0]),t[1])||0]}function Uu(e){return isFinite(e)}function dvt(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Uu(n)?n:0,a=Uu(a)?a:1,i=Uu(i)?i:0,o=Uu(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function pvt(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),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*a+r.y,l=l*i),o=Uu(o)?o:.5,s=Uu(s)?s:.5,l=l>=0&&Uu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function X2(e,t,r){for(var n=t.type==="radial"?pvt(e,t,r):dvt(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function gvt(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 Wm(e){return parseInt(e,10)}function xv(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["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[a]||Wm(s[n])||Wm(e.style[n]))-(Wm(s[i])||0)-(Wm(s[o])||0)||0}function yvt(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Vt(e)?[e]:Y(e)?e:null}function jR(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&yvt(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=W(r,function(i){return i/a}),n/=a)}return[r,n]}var mvt=new qi(!0);function e1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function g5(e){return typeof e=="string"&&e!=="none"}function r1(e){var t=e.fill;return t!=null&&t!=="none"}function y5(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 m5(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 Z2(e,t,r){var n=nR(t.image,t.__image,r);if(qb(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Bp),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function _vt(e,t,r,n,a){var i,o=e1(r),s=r1(r),l=r.strokePercent,u=l<1,f=!t.path;(!t.silent||u)&&f&&t.createPathProxy();var c=t.path||mvt,v=t.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0;(p||g)&&(w=t.getBoundingRect()),p&&(_=v?X2(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(S=v?X2(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(b=v||!t.__canvasFillPattern?Z2(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=v||!t.__canvasStrokePattern?Z2(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),p?e.fillStyle=_:y&&(b?e.fillStyle=b:s=!1),g?e.strokeStyle=S:m&&(x?e.strokeStyle=x:o=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var T,C;e.setLineDash&&r.lineDash&&(i=jR(t),T=i[0],C=i[1]);var M=!0;(f||v&Jc)&&(c.setDPR(e.dpr),u?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,u?l:1),T&&(e.setLineDash(T),e.lineDashOffset=C),n?(a.batchFill=s,a.batchStroke=o):r.strokeFirst?(o&&m5(e,r),s&&y5(e,r)):(s&&y5(e,r),o&&m5(e,r)),T&&e.setLineDash([])}function Svt(e,t,r){var n=t.__image=nR(r.image,t.__image,t,t.onload);if(!(!n||!qb(n))){var a=r.x||0,i=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,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;e.drawImage(n,u,f,c,v,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function bvt(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||ts,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=jR(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(e1(r)&&e.strokeText(a,r.x,r.y),r1(r)&&e.fillText(a,r.x,r.y)):(r1(r)&&e.fillText(a,r.x,r.y),e1(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var _5=["shadowBlur","shadowOffsetX","shadowOffsetY"],S5=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rW(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){on(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ku.opacity:o}(n||t.blend!==r.blend)&&(i||(on(e,a),i=!0),e.globalCompositeOperation=t.blend||Ku.blend);for(var s=0;s<_5.length;s++){var l=_5[s];(n||t[l]!==r[l])&&(i||(on(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(on(e,a),i=!0),e.shadowColor=t.shadowColor||Ku.shadowColor),i}function b5(e,t,r,n,a){var i=t.style,o=n?null:r&&r.style||{};if(i===o)return!1;var s=rW(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(on(e,a),s=!0),g5(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(on(e,a),s=!0),g5(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(on(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(on(e,a),s=!0),e.lineWidth=u)}for(var f=0;f<S5.length;f++){var c=S5[f],v=c[0];(n||i[v]!==o[v])&&(s||(on(e,a),s=!0),e[v]=i[v]||c[1])}return s}function xvt(e,t,r,n,a){return rW(e,t.style,r&&r.style,n,a)}function nW(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 wvt(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),nW(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function Tvt(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 x5=1,w5=2,T5=3,A5=4;function Avt(e){var t=r1(e),r=e1(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function on(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function WR(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Fu(e,t,r),Hv(e,r)}function Fu(e,t,r){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Sn,t.__isRendered=!1;return}var a=t.__clipPaths,i=r.prevElClipPaths,o=t.style,s=!1,l=!1;if((!i||gvt(a,i))&&(i&&(on(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(on(e,r),e.save(),wvt(a,e,r),s=!0,r.prevElClipPaths=a)),r.allClipped){t.__dirty&=~Sn,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof Rt&&t.autoBatch&&Avt(o);s||Tvt(n,u.transform)?(on(e,r),nW(e,t)):f||on(e,r),t instanceof Rt?(r.lastDrawType!==x5&&(l=!0,r.lastDrawType=x5),b5(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),_vt(e,t,o,f,r)):t instanceof ch?(r.lastDrawType!==T5&&(l=!0,r.lastDrawType=T5),b5(e,t,u,l,r),bvt(e,t,o)):t instanceof dr?(r.lastDrawType!==w5&&(l=!0,r.lastDrawType=w5),xvt(e,t,u,l,r),Svt(e,t,o)):t.getTemporalDisplayables&&(r.lastDrawType!==A5&&(l=!0,r.lastDrawType=A5),Cvt(e,t,r)),t.innerAfterBrush(),t.afterBrush&&(f&&on(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Hv(e,t){on(e,t),t.prevElClipPaths&&e.restore()}function Cvt(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Fu(e,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Hv(e,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Fu(e,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Hv(e,i),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var BT=new ivt,C5=new uh(100),M5=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ph(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&BT.delete(e);var i=BT.get(e);if(i)return i;var o=pt(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=a?1:1/r,BT.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<M5.length;++v){var h=o[M5[v]];if(h!=null&&!Y(h)&&!K(h)&&!Vt(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=C5.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=iW(o.dashArrayX),y=Mvt(o.dashArrayY),m=aW(o.symbol),_=Dvt(g),S=oW(y),b=!a&&fr.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),A;b&&(b.width=w.width*r,b.height=w.height*r,A=b.getContext("2d")),C(),c&&C5.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function T(){for(var M=1,E=0,L=_.length;E<L;++E)M=UB(M,_[E]);for(var R=1,E=0,L=m.length;E<L;++E)R=UB(R,m[E].length);M*=R;var I=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function C(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,b.width,b.height)));for(var M=0,E=0;E<y.length;++E)M+=y[E];if(M<=0)return;for(var L=-S,R=0,I=0,O=0;L<w.height;){if(R%2===0){for(var N=I/2%m.length,P=0,B=0,z=0;P<w.width*2;){for(var H=0,E=0;E<g[O].length;++E)H+=g[O][E];if(H<=0)break;if(B%2===0){var F=(1-o.symbolSize)*.5,$=P+g[O][B]*F,j=L+y[R]*F,tt=g[O][B]*o.symbolSize,_t=y[R]*o.symbolSize,lt=z/2%m[N].length;it($,j,tt,_t,m[N][lt])}P+=g[O][B],++z,++B,B===g[O].length&&(B=0)}++O,O===g.length&&(O=0)}L+=y[R],++I,++R,R===y.length&&(R=0)}function it(Q,st,Z,at,Ht){var Ct=a?1:r,Ut=Fe(Ht,Q*Ct,st*Ct,Z*Ct,at*Ct,o.color,o.symbolKeepAspect);if(a){var Zt=n.painter.renderOneToVNode(Ut);Zt&&x.children.push(Zt)}else WR(A,Ut)}}}}function aW(e){if(!e||e.length===0)return[["rect"]];if(K(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!K(e[r])){t=!1;break}if(t)return aW([e]);for(var n=[],r=0;r<e.length;++r)K(e[r])?n.push([e[r]]):n.push(e[r]);return n}function iW(e){if(!e||e.length===0)return[[0,0]];if(Vt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Vt(e[n])){r=!1;break}if(r)return iW([e]);for(var a=[],n=0;n<e.length;++n)if(Vt(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=W(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function Mvt(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Vt(e)){var t=Math.ceil(e);return[t,t]}var r=W(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Dvt(e){return W(e,function(t){return oW(t)})}function oW(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var Lvt=Iy(Evt);function Evt(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=ph(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ph(a,t)}}})}var Ovt="6.1.0",Rvt={zrender:"6.1.0"},Ivt=1,Pvt=800,Nvt=900,kvt=920,Bvt=1e3,zvt=2e3,D5=5e3,sW=1e3,Vvt=1100,$R=2e3,lW=3e3,Gvt=4e3,vx=4500,Hvt=4600,Uvt=5e3,Fvt=6e3,uW=7e3,fW={PROCESSOR:{SERIES_FILTER:Pvt,AXIS_STATISTICS:kvt,FILTER:Bvt,STATISTIC:D5,STATISTICS:D5},VISUAL:{LAYOUT:sW,PROGRESSIVE_LAYOUT:Vvt,GLOBAL:$R,CHART:lW,POST_CHART_LAYOUT:Hvt,COMPONENT:Gvt,BRUSH:Uvt,CHART_ITEM:vx,ARIA:Fvt,DECAL:uW}},qe="__flagInMainProcess",$m="__mainProcessVersion",pr="__pendingUpdate",zT="__needsUpdateStatus",L5=/^[a-zA-Z0-9_]+$/,VT="__connectUpdateStatus",E5=0,Yvt=1,jvt=2;function cW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return hW(this,e,t)}}function vW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hW(this,e,t)}}function hW(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Pa.prototype[t].apply(e,r)}var dW=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Pa),pW=dW.prototype;pW.on=vW("on");pW.off=vW("off");var hu,GT,Xm,go,Zm,HT,UT,Rc,Ic,O5,R5,FT,I5,qm,P5,gW,ea,N5,Pc,n1=function(e){G(t,e);function t(r,n,a){var i=e.call(this,new Zct)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=r;var o="canvas",s="auto",l=!1;i[$m]=1,a.ssr&&CY(function(v){var h=mt(v),d=h.dataIndex;if(d!=null){var p=rt();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=y2(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ot(a.useDirtyRect,l),useCoarsePointer:ot(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=fx(et(u.flush,u),17),i._updateTheme(n),i._locale=Kut(a.locale||G9),i._coordSysMgr=new Qh;var f=i._api=P5(i);function c(v,h){return v.__prio-h.__prio}return f_(i1,c),f_(Q2,c),i._scheduler=new Yj(i,f,Q2,i1),i._messageCenter=new dW,i._initEvents(),i.resize=et(i.resize,i),u.animation.on("frame",i._onframe,i),O5(u,i),R5(u,i),mg(i),i}return t.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,a=this._api;if(N5(this),this[pr]){var i=this[pr].silent;this[qe]=!0,Pc(this);try{hu(this),go.update.call(this,null,this[pr].updateParams)}catch(l){throw this[qe]=!1,this[pr]=null,l}this._zr.flush(),this[qe]=!1,this[pr]=null,Rc.call(this,i),Ic.call(this,i)}else if(r.unfinished){var o=Ivt;do{r.unfinished=!1;var s=fr.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),HT(this,n),r.performVisualTasks(n),qm(this,this._model,a,"remain",{}),o-=fr.getTime()-s}while(o>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,a){if(!this[qe]){if(this._disposed){this.id;return}var i,o,s;if(gt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[qe]=!0,Pc(this),!this._model||n){var l=new Oft(this._api),u=this._theme,f=this._model=new VR;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},J2);var c={seriesTransition:s,optionChanged:!0};if(a)this[pr]={silent:i,updateParams:c},this[qe]=!1,this.getZr().wakeUp();else{try{hu(this),go.update.call(this,null,c)}catch(v){throw this[pr]=null,this[qe]=!1,v}this._ssr||this._zr.flush(),this[pr]=null,this[qe]=!1,Rc.call(this,i),Ic.call(this,i)}}},t.prototype.setTheme=function(r,n){if(!this[qe]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[pr]&&(i==null&&(i=this[pr].silent),o=this[pr].updateParams,this[pr]=null),this[qe]=!0,Pc(this);try{this._updateTheme(r),a.setTheme(this._theme),hu(this),go.update.call(this,{type:"setTheme"},o)}catch(s){throw this[qe]=!1,s}this[qe]=!1,Rc.call(this,i),Ic.call(this,i)}}},t.prototype._updateTheme=function(r){K(r)&&(r=yW[r]),r&&(r=ut(r),r&&yj(r,!0),this._theme=r)},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||Bt.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(){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(o1[a]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(ef,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ut(r)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),v.push({dom:b,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=fr.createCanvas(),y=y2(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return D(v,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Lt({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),D(v,function(_){var S=new dr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,a){return Zm(this,"convertToPixel",r,n,a)},t.prototype.convertToLayout=function(r,n,a){return Zm(this,"convertToLayout",r,n,a)},t.prototype.convertFromPixel=function(r,n,a){return Zm(this,"convertFromPixel",r,n,a)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=kv(a,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=kv(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?YR(s,l,n):Hy(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(Wvt,function(a){var i=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Hu(l,function(p){var g=mt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=U({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(a,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;D(K2,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),Qct(n,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&&BY(this.getDom(),ZR,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),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 ef[n.id]},t.prototype.resize=function(r){if(!this[qe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[pr]&&(i==null&&(i=this[pr].silent),a=!0,this[pr]=null),this[qe]=!0,Pc(this);try{a&&hu(this),go.update.call(this,{type:"resize",animation:U({duration:0},r&&r.animation)})}catch(o){throw this[qe]=!1,o}this[qe]=!1,Rc.call(this,i),Ic.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(gt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!tL[r]){var a=tL[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},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=U({},r);return n.type=q2[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(gt(n)||(n={silent:!!n}),!!a1[r.type]&&this._model){if(this[qe]){this._pendingActions.push(r);return}var a=n.silent;UT.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Bt.browser.weChat&&this._throttledZrFlush(),Rc.call(this,a),Ic.call(this,a)}},t.prototype.updateLabelLayout=function(){ia.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){hu=function(c){evt(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),GT(c,!0),GT(c,!1),v.plan()},GT=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(x,w){x!=="series"&&S(w)}):h.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var A="_ec_"+x.id+"_"+x.type,T=!w&&g[A];if(!T){var C=Mi(x.type),M=v?ue.getClass(C.main,C.sub):ee.getClass(C.sub);T=new M,T.init(h,m),g[A]=T,p.push(T),y.add(T.group)}x.__viewId=T.__id=A,T.__alive=!0,T.__model=x,T.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(T,x,h,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),y.remove(b.group),b.dispose(h,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Xm=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){D([].concat(c._componentsViews).concat(c._chartsViews),S);return}var y=eR(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=rt(),D(le(m),function(b){var x=rr(b,null);x!=null&&_.set(x,!0)})),g&&g.eachComponent(y,function(b){var x=_&&_.get(b.id)!=null;if(!x)if(yz(h))if(b instanceof ne)h.type===Qu&&!h.notBlur&&!b.get(["emphasis","disabled"])&&qlt(b,h,c._api);else{var w=fR(b.mainType,b.componentIndex,h.name,c._api),A=w.focusSelf,T=w.dispatchers;h.type===Qu&&A&&!h.notBlur&&L2(b.mainType,b.componentIndex,c._api),T&&D(T,function(C){h.type===Qu?as(C):is(C)})}else O2(h)&&b instanceof ne&&(Jlt(b,h,c._api),pz(b),ea(c))},c),g&&g.eachComponent(y,function(b){var x=_&&_.get(b.id)!=null;x||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,c._api,h)}},go={prepareAndUpdate:function(c){hu(this),go.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){rvt(h),h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),g.create(h,d),ia.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,c),HT(this,h),g.update(h,d),n(h),y.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),FT(this,h,d,c,v),ia.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(y,m){if(y!==Ki){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=rt();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,c);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),qm(v,h,d,c,{},g),ia.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),ee.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),FT(this,v,this._api,c,{}),ia.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),ee.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),ia.trigger("afterupdate",h,this._api))},updateLayout:function(c){go.update.call(this,c)}};function r(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,y=c._coordSysMgr.getCoordinateSystems(),m,_=kv(g,h),S=0;S<y.length;S++){var b=y[S];if(b[v]&&(m=b[v](g,_,d,p))!=null)return m}}Zm=r,HT=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},UT=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=a1[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Mi(m[0]);this[qe]=!0,Pc(this);var b=[c],x=!1;c.batch&&(x=!0,b=W(c.batch,function(O){return O=pt(U({},O),c),O.batch=null,O}));var w=[],A,T=[],C=y.nonRefinedEventType,M=O2(c),E=yz(c);if(E&&h9(this._api),D(b,function(O){var N=y.action(O,d,h._api);if(y.refineEvent?T.push(N):A=N,A=A||U({},O),A.type=C,w.push(A),E){var P=tR(c),B=P.queryOptionMap,z=P.mainTypeSpecified,H=z?B.keys()[0]:"series";Xm(h,_,O,H),ea(h)}else M?(Xm(h,_,O,"series"),ea(h)):S&&Xm(h,_,O,S.main,S.sub)}),_!=="none"&&!E&&!M&&!S)try{this[pr]?(hu(this),go.update.call(this,c),this[pr]=null):go[_].call(this,c)}catch(O){throw this[qe]=!1,O}if(x?A={type:C,escapeConnect:g,batch:w}:A=w[0],this[qe]=!1,!v){var L=void 0;if(y.refineEvent){var R=y.refineEvent(T,c,d,this._api).eventContent;zr(gt(R)),L=pt({type:y.refinedEventType},R),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var I=this._messageCenter;I.trigger(A.type,A),L&&I.trigger(L.type,L)}},Rc=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();UT.call(this,h,c)}},Ic=function(c){!c&&this.trigger("updated")},O5=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[pr]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},R5=function(c,v){c.on("mouseover",function(h){var d=h.target,p=Hu(d,Lg);p&&(Klt(p,h,v._api),ea(v))}).on("mouseout",function(h){var d=h.target,p=Hu(d,Lg);p&&(Qlt(p,h,v._api),ea(v))}).on("click",function(h){var d=h.target,p=Hu(d,function(m){return mt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=mt(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function a(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=v.concat(h),g,y;f_(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}FT=function(c,v,h,d,p){a(v),I5(c,v,h,d,p),D(c._chartsViews,function(g){g.__alive=!1}),qm(c,v,h,d,p),D(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},I5=function(c,v,h,d,p,g){D(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),l(m,y),f(m,y)})},qm=function(c,v,h,d,p,g){var y=c._scheduler;p=U(p||{},{updatedSeries:v.getSeries()}),ia.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),pz(_)}),y.unfinished=m||y.unfinished,ia.trigger("series:layoutlabels",v,h,p),ia.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),ia.trigger("series:afterupdate",v,h,p)},ea=function(c){c[zT]=!0,c.getZr().wakeUp()},Pc=function(c){c[$m]=(c[$m]+1)%1e6},N5=function(c){c[zT]&&(c.getZr().storage.traverse(function(v){Bv(v)||i(v)}),c[zT]=!1)};function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===ex&&c.states.emphasis?v.push("emphasis"):c.hoverState===Py&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>ot(v.get("hoverLayerThreshold"),fj.hoverLayerThreshold)&&!Bt.node&&!Bt.worker;(c._usingTHL||g)&&(v.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=c._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Xh&&(S.hoverLayer=g?M9:C9)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=Af(c);v.eachRendered(function(d){return ax(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Bv(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Bv(y))return;if(y instanceof Rt&&iut(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}P5=function(c){return new(function(v){G(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){as(d,p),ea(c)},h.prototype.leaveEmphasis=function(d,p){is(d,p),ea(c)},h.prototype.enterBlur=function(d){u9(d),ea(c)},h.prototype.leaveBlur=function(d){uR(d),ea(c)},h.prototype.enterSelect=function(d){f9(d),ea(c)},h.prototype.leaveSelect=function(d){c9(d),ea(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[$m]},h.prototype.usingTHL=function(){return c._usingTHL},h}(n9))(c)},gW=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[VT]=d}}D(q2,function(h,d){c._messageCenter.on(d,function(p){if(o1[c.group]&&c[VT]!==E5){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];D(ef,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,E5),D(y,function(m){m[VT]!==Yvt&&m.dispatchAction(g)}),v(y,jvt)}})})}}(),t}(Pa),XR=n1.prototype;XR.on=cW("on");XR.off=cW("off");XR.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var Wvt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var a1={},q2={},K2={},Q2=[],J2=[],i1=[],yW={},tL={},ef={},o1={},$vt=+new Date-0,Xvt=+new Date-0,ZR="_echarts_instance_";function Zvt(e,t,r){var n=!(r&&r.ssr);if(n){var a=qR(e);if(a)return a}var i=new n1(e,t,r);return i.id="ec_"+$vt++,ef[i.id]=i,n&&BY(e,ZR,i.id),gW(i),ia.trigger("afterinit",i),i}function qvt(e){if(Y(e)){var t=e;e=null,D(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+Xvt++,D(t,function(r){r.group=e})}return o1[e]=!0,e}function mW(e){o1[e]=!1}var Kvt=mW;function Qvt(e){K(e)?e=ef[e]:e instanceof n1||(e=qR(e)),e instanceof n1&&!e.isDisposed()&&e.dispose()}function qR(e){return ef[Gst(e,ZR)]}function Jvt(e){return ef[e]}function KR(e,t){yW[e]=t}function QR(e){bt(J2,e)<0&&J2.push(e)}function JR(e,t){tI(Q2,e,t,zvt)}function _W(e){hx("afterinit",e)}function SW(e){hx("afterupdate",e)}function hx(e,t){ia.on(e,t)}function ii(e,t,r){var n,a,i,o,s;ct(t)&&(r=t,t=""),gt(e)?(n=e.type,a=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),i=e.refineEvent):(n=e,a=t);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;a1[n]||(zr(L5.test(n)&&L5.test(a)),i&&zr(a!==n),a1[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:i},K2[a]=1,i&&s&&(K2[u]=1),q2[u]=n)}function bW(e,t){Qh.register(e,t)}function tht(e){var t=Qh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function eht(e,t){tW(e,t)}function xW(e,t){tI(i1,e,t,sW,"layout")}function Gl(e,t){tI(i1,e,t,lW,"visual")}var k5=[];function tI(e,t,r,n,a,i){if((ct(t)||gt(t))&&(r=t,t=n),!(bt(k5,r)>=0)){k5.push(r);var o=Yj.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function eI(e,t){tL[e]=t}function rht(e){G7({createCanvas:e})}function wW(e,t,r){var n=Qj("registerMap");n&&n(e,t,r)}function nht(e){var t=Qj("getMap");return t&&t(e)}var TW=fct;Gl($R,kct);Gl(vx,Bct);Gl(vx,zct);Gl($R,qct);Gl(vx,Kct);Gl(uW,Lvt);QR(yj);JR(Nvt,Fft);eI("default",Vct);ii({type:Qu,event:Qu,update:Qu},Ee);ii({type:__,event:__,update:__},Ee);ii({type:FS,event:sR,update:FS,action:Ee,refineEvent:rI,publishNonRefinedEvent:!0});ii({type:M2,event:sR,update:M2,action:Ee,refineEvent:rI,publishNonRefinedEvent:!0});ii({type:YS,event:sR,update:YS,action:Ee,refineEvent:rI,publishNonRefinedEvent:!0});function rI(e,t,r,n){return{eventContent:{selected:tut(r),isFromClick:t.isFromClick||!1}}}KR("default",{});KR("dark",Xj);var aht={},B5=[],iht={registerPreprocessor:QR,registerProcessor:JR,registerPostInit:_W,registerPostUpdate:SW,registerUpdateLifecycle:hx,registerAction:ii,registerCoordinateSystem:bW,registerLayout:xW,registerVisual:Gl,registerTransform:TW,registerLoading:eI,registerMap:wW,registerImpl:Jct,PRIORITY:fW,ComponentModel:Et,ComponentView:ue,SeriesModel:ne,ChartView:ee,registerComponentModel:function(e){Et.registerClass(e)},registerComponentView:function(e){ue.registerClass(e)},registerSeriesModel:function(e){ne.registerClass(e)},registerChartView:function(e){ee.registerClass(e)},registerCustomSeries:function(e,t){tW(e,t)},registerSubTypeDefaulter:function(e,t){Et.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){TY(e,t)}};function At(e){if(Y(e)){D(e,function(t){At(t)});return}bt(B5,e)>=0||(B5.push(e),ct(e)&&(e={install:e}),e.install(iht))}function Ld(e){return e==null?0:e.length||1}function z5(e){return e}var os=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||z5,this._newKeyGetter=a||z5,this.context=i,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={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Ld(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=Ld(u),v=Ld(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Ld(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Ld(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),oht=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 sht(e,t){var r={},n=r.encode={},a=rt(),i=[],o=[],s={};D(e.dimensions,function(v){var h=e.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;YT(n,d)[p]=v,h.isExtraCoord||(a.set(d,1),lht(h.type)&&(i[0]=v),YT(s,d)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}t9.each(function(g,y){var m=YT(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=W(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new oht(s,t),r}function YT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function s1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function lht(e){return!(e==="ordinal"||e==="time")}var D_=function(){function e(t){this.otherDims={},t!=null&&U(this,t)}return e}(),uht=Tt(),fht={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},AW=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=MW(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ot(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=_j(this.source),n=!DW(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=fht[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function CW(e){return e instanceof AW}function nI(e){for(var t=rt(),r=0;r<(e||[]).length;r++){var n=e[r],a=gt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function MW(e){var t=uht(e);return t.dimNameMap||(t.dimNameMap=nI(e.dimensionsDefine))}function DW(e){return e>30}var Ed=gt,ws=W,cht=typeof Int32Array>"u"?Array:Int32Array,vht="e\0\0",V5=-1,hht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dht=["_approximateExtent"],G5,Km,Od,Rd,jT,Id,WT,qr=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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;CW(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=K(c)?new D_({name:c}):c instanceof D_?c:new D_(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),a&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=rt();D(o,function(g){p.set(i[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 a=this._schema.getSourceDimension(r);if(a)return a.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(Vt(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 a=n.encode[t];return a?a[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 a=this,i;if(t instanceof F2&&(i=t),!i){var o=this.dimensions,s=GR(t)||Br(t)?new Sj(t,o.length):t;i=new F2;var l=ws(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=sht(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&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&WT(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==fl&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Qn;if(l&&!a.pure)for(var u=[],f=t;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Mst(c)&&(this.hasItemOption=!0),c){var v=c.name;i[f]==null&&v!=null&&(i[f]=rr(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=rr(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)WT(this,f);G5(this)}},e.prototype.getApproximateExtent=function(t,r){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),r)},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){Ed(t)?U(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=Od(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Km(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},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,a=this._store;return Y(t)?a.getValues(ws(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;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],a=n&&n[r];return a==null||isNaN(a)?V5:a},e.prototype.each=function(t,r,n){ct(t)&&(n=r,r=t,t=[]);var a=n||this,i=ws(Rd(t),this._getStoreDimIndex,this);this._store.each(i,a?et(r,a):r)},e.prototype.filterSelf=function(t,r,n){ct(t)&&(n=r,r=t,t=[]);var a=n||this,i=ws(Rd(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?et(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=Nt(t);return D(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ct(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=ws(Rd(t),this._getStoreDimIndex,this),s=Id(this);return s._store=this._store.map(o,i?et(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=ws(Rd(t),this._getStoreDimIndex,this);this._store.modify(o,i?et(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=Id(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.minmaxDownSample=function(t,r){var n=Id(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Id(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 Ot(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new os(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Km(t,n)},function(n){return Km(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||{},Ed(t)?U(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),Y(i)?i=i.slice():Ed(i)&&(i=U({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Ed(r)?U(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ed(t)?U(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?U(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;C2(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,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ws(this.dimensions,this._getDimInfo,this),this.hostModel)),jT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ct(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(Vb(arguments)))})},e.internalField=function(){G5=function(t){var r=t._invertedIndicesMap;D(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new cht(o.categories.length);for(var l=0;l<n.length;l++)n[l]=V5;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Od=function(t,r,n){return rr(t._getCategory(r,n),null)},Km=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Od(t,t._idDimIdx,r)),n==null&&(n=vht+r),n},Rd=function(t){return Y(t)||(t=t!=null?[t]:[]),t},Id=function(t){var r=new e(t._schema?t._schema:ws(t.dimensions,t._getDimInfo,t),t.hostModel);return jT(r,t),r},jT=function(t,r){D(hht.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(dht,function(n){t[n]=ut(r[n])}),t._calculationInfo=U({},r._calculationInfo)},WT=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Od(t,i,r)),l==null&&o!=null&&(a[r]=l=Od(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}}}(),e}();function pht(e,t){return rd(e,t).dimensions}function rd(e,t){GR(e)||(e=HR(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=rt(),i=[],o=ght(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&DW(o),l=n===e.dimensionsDefine,u=l?MW(e):nI(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=rt(f),v=new Ej(o),h=0;h<v.length;h++)v[h]=-1;function d(T){var C=v[T];if(C<0){var M=n[T],E=gt(M)?M:{name:M},L=new D_,R=E.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var I=i.length;return v[T]=I,L.storeDimIndex=T,i.push(L),L}return i[C]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(T,C){var M=le(T).slice();if(M.length===1&&!K(M[0])&&M[0]<0){c.set(C,!1);return}var E=c.set(C,[]);D(M,function(L,R){var I=K(L)?u.get(L):L;I!=null&&I<o&&(E[R]=I,g(d(I),C,R))})});var p=0;D(r,function(T){var C,M,E,L;if(K(T))C=T,L={};else{L=T,C=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=U({},L),L.ordinalMeta=R,M=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(C);if(I!==!1){if(I=le(I),!I.length)for(var O=0;O<(M&&M.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}D(I,function(N,P){var B=d(N);if(l&&L.type!=null&&(B.type=L.type),g(pt(B,L),C,P),B.name==null&&M){var z=M[P];!gt(z)&&(z={name:z}),B.name=B.displayName=z.name,B.defaultTooltip=z.defaultTooltip}E&&pt(B.otherDims,E)})}});function g(T,C,M){t9.get(C)!=null?T.otherDims[C]=M:(T.coordDim=C,T.coordDimIndex=M,a.set(C,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(T){T.name==null&&(T.name=T.coordDim)}if(s)D(i,function(T){b(T)}),i.sort(function(T,C){return T.storeDimIndex-C.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),A=w.coordDim;A==null&&(w.coordDim=yht(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(hj(e,x)===Ar.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Xb(i,function(T){return T.name},function(T,C){C>0&&(T.name=T.name+(C-1))}),new AW({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function ght(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(i){var o;gt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function yht(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 mht=function(){function e(t){this.coordSysDims=[],this.axisMap=rt(),this.categoryAxisMap=rt(),this.coordSysName=t}return e}();function _ht(e){var t=e.get("coordinateSystem"),r=new mht(t),n=Sht[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Sht={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",Pe).models[0],i=e.getReferringComponents("yAxis",Pe).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Nc(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Nc(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",Pe).models[0];t.coordSysDims=["single"],r.set("single",a),Nc(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",Pe).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Nc(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Nc(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 a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Nc(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var a=e.getReferringComponents("matrix",Pe).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function Nc(e){return e.get("type")==="category"}function LW(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;bht(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(D(i,function(S,b){K(S)&&(i[b]=S={name:S}),d(S)||(h=!1)}),D(i,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;D(i,function(S){S.coordDim===p&&y++});var m={name:c,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:v,coordDim:v,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function bht(e){return!CW(e.schema)}function ss(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function aI(e,t){return ss(e,t)?e.getCalculationInfo("stackResultDimension"):t}function xht(e,t){var r=e.get("coordinateSystem"),n=Qh.get(r),a;return t&&t.coordSysDims&&(a=W(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=s1(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function wht(e,t,r){var n,a;return r&&D(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function so(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=HR(e)):(a=n.getSource(),i=a.sourceFormat===Qn);var o=_ht(t),s=xht(t,o),l=r.useEncodeDefaulter,u=ct(l)?l:l?Mt(vj,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=rd(a,f),v=wht(c.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=LW(t,{schema:c,store:h}),p=new qr(c,t);p.setCalculationInfo(d);var g=v!=null&&Tht(a)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function Tht(e){if(e.sourceFormat===Qn){var t=Aht(e.data||[]);return!Y(Gh(t))}}function Aht(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var oi=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Zb(oi);var Cht=0,kg=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Cht,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&W(n,Mht);return new e({categories:a,needCollect:!a,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(!K(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=rt(this.categories))},e}();function Mht(e){return gt(e)&&e.value!=null?e.value:e+""}var bn=0,Bg=1,Dht={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},EW=Nt(Dht),Fo=2,OW=3;function iI(e,t,r){var n;e=e||{};var a=Ue();if(a){var i=a.createBreakScaleMapper(t,r);i.hasBreaks()&&(D(EW,function(o){i[o]&&(e[o]=et(i[o],i))}),n=i)}return n==null&&eL(e,r),{brk:n,mapper:e}}function oI(e,t){D(EW,function(r){e[r]=t[r]})}function sI(e,t){e.freeze=Ee}function zg(e){return e.getExtentUnsafe(bn,Fo)}function l1(e,t){return e.getExtentUnsafe(Bg,t)||e.getExtentUnsafe(bn,t)}function Lht(e){var t=l1(e,OW);return t[1]-t[0]}function dx(e){var t=e.getExtentUnsafe(bn,OW);return t[1]-t[0]}function eL(e,t){var r=e||{},n=[];return r._extents=n,n[bn]=t?t.slice():Lr(),U(r,Eht),r}var Eht={needTransform:function(){return!1},normalize:function(e){var t=this._extents[Bg]||this._extents[bn];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[Bg]||this._extents[bn];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=l1(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[bn].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){H5(this._extents,bn,e,t)},setExtent2:function(e,t,r){var n=this._extents;n[e]||(n[e]=n[bn].slice()),H5(n,e,t,r)},freeze:function(){}};function H5(e,t,r,n){bf(r,n)&&(e[t][0]=r,e[t][1]=n)}function RW(e){return u1(e)||gh(e)}function u1(e){return e.type==="interval"}function Uy(e){return e.type==="time"}function gh(e){return e.type==="log"}function Kr(e){return e.type==="ordinal"}function Oht(e){var t=Wb(e),r=oc(10,t),n=Xi(e/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,Yt(n*r,-t)}function Mf(e){return Ci(e)+2}function Qm(e,t){return yf(e)/yf(t)}function $T(e,t,r){var n=r&&r.lookup;if(n){for(var a=0;a<n.from.length;a++)if(e===n.from[a])return n.to[a]}return oc(t,e)}function IW(e,t,r){var n=e.slice();if(n[0]===n[1]){var a=r&&r.ctnShp;if(n[0]!==0){var i=Le(n[0]);t[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!ns(n[0])||!ns(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function Rht(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function px(e,t){return e=e||t,Xi(Dt(e,1))}function PW(e,t,r){var n=zg(e),a=n[0],i=e.count(),o=Math.max((t||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var Vg=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="ordinal",n.parse=t.parse,oI(n,t.decoratedMethods);var a=r.ordinalMeta;a||(a=new kg({})),Y(a)&&(a=new kg({categories:W(a,function(o){return gt(o)?o.value:o})})),n._ordinalMeta=a;var i=iI(null,null,r.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,sI(n),n}return t.parse=function(r){return r==null?r=NaN:K(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Xi(r),r},t.prototype.getTicks=function(){var r=[];return PW(this,0,function(n){r.push(n)}),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,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=te(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=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),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){var r=zg(this._mapper);return r[1]-r[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Xi(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,a){return this._mapper.setExtent2(r,n,a)}},t}(oi);oi.registerClass(Vg);function lI(e,t,r,n){for(var a=e.getTicks({expandToNicedExtent:!0}),i=[],o=e.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/t,d=Mf(h);f<t-1;){var p=Yt(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=Ue();g&&g.pruneTicksByBreak("auto",c,r,function(y){return y},n,o),i.push(c)}}return i}var hl=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="interval",n.parse=t.parse,r=r||{};var a=H9(n,r),i=iI(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return t.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.getConfig=function(){return ut(this._cfg)},t.prototype.setConfig=function(r){var n=zg(this);this._cfg=r=ut(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Mf(r.interval))},t.prototype.getTicks=function(r){r=r||{};var n=this._cfg,a=n.interval,i=zg(this),o=n.niceExtent,s=n.intervalPrecision,l=Ue(),u=this.brk,f=l&&u,c=[];if(!a)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,i),c;var v=3e3;i[0]<o[0]&&c.push({value:r.expandToNicedExtent?Yt(o[0]-a,s):i[0]});for(var h=function(_,S){return Xi((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=te(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=Yt(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=Yt(p+y*a,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var m=c.length?c[c.length-1].value:o[1];return i[1]>m&&c.push({value:r.expandToNicedExtent?Yt(m+a,s):i[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,i),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},t.prototype.getMinorTicks=function(r){return lI(this,r,XS(this),this._cfg.interval)},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Ci(r.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=Yt(r.value,a,!0);return RR(i)},t.type="interval",t}(oi);oi.registerClass(hl);var Iht=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},NW=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="time",n.parse=t.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var a=H9(n,r),i=iI(n,a,null);return n.brk=i.brk,n}return t.prototype.getLabel=function(r){return Vy(r.value,Rz[oft($p(this._minLevelUnit))]||Rz.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(r,n,a){return sft(r,n,a,this._locale,this._useUTC)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=zg(this),i=Ue(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ue().addBreaksToTicks(l,o.breaks,a),l;l=Ght(this._minLevelUnit,this._approxInterval,u,a,dx(this),o);var f=Dn.length-1,c=0;return D(l,function(v){v.time&&(f=Math.min(f,bt(Dn,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&Ue().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,a),s&&r.breakTicks!=="none"&&Ue().addBreaksToTicks(l,o.breaks,a,function(v){for(var h=Math.max(bt(Dn,Vv(v.vmin,u)),bt(Dn,Vv(v.vmax,u))),d=0,p=0;p<Dn.length;p++)if(!kW(Dn[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:c,lowerTimeUnit:Dn[y],upperTimeUnit:Dn[g]}}),l},t.prototype.getMinorTicks=function(r){return lI(this,r,XS(this),this._interval)},t.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},t.parse=function(r){return Vt(r)?Math.round(r):+io(r)},t.type="time",t}(oi),Jm=[["second",TR],["minute",AR],["hour",Wp],["quarter-day",Wp*6],["half-day",Wp*12],["day",Sa*1.2],["half-week",Sa*3.5],["week",Sa*7],["month",Sa*31],["quarter",Sa*95],["half-year",Oz/2],["year",Oz]];function kW(e,t,r,n){return qS(new Date(t),e,n).getTime()===qS(new Date(r),e,n).getTime()}function Pht(e,t){return e/=Sa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Nht(e){var t=30*Sa;return e/=t,e>6?6:e>3?3:e>2?2:1}function kht(e){return e/=Wp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function U5(e,t){return e/=t?AR:TR,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Bht(e){return Dt($b(e,!0),1)}function zht(e,t,r){var n=Math.max(0,bt(Dn,t)-1);return qS(new Date(e),Dn[n],r).getTime()}function Vht(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function Ght(e,t,r,n,a,i){var o=3e3,s=rft,l=0;function u(O,N,P,B,z,H,F){for(var $=Vht(z,O),j=N,tt=new Date(j);j<P&&j<=n[1]&&(F.push({value:j}),!(l++>o));)if(tt[z](tt[B]()+O),j=tt.getTime(),i){var _t=i.calcNiceTickMultiple(j,$);_t>0&&(tt[z](tt[B]()+_t*O),j=tt.getTime())}F.push({value:j,notAdd:j>n[1]})}function f(O,N,P){var B=[],z=!N.length;if(!kW($p(O),n[0],n[1],r)){z&&(N=[{value:zht(n[0],O,r)},{value:n[1]}]);for(var H=0;H<N.length-1;H++){var F=N[H].value,$=N[H+1].value;if(F!==$){var j=void 0,tt=void 0,_t=void 0,lt=!1;switch(O){case"year":j=Math.max(1,Math.round(t/Sa/365)),tt=U9(r),_t=lft(r);break;case"half-year":case"quarter":case"month":j=Nht(t),tt=CR(r),_t=F9(r);break;case"week":case"half-week":case"day":j=Pht(t),tt=MR(r),_t=Y9(r),lt=!0;break;case"half-day":case"quarter-day":case"hour":j=kht(t),tt=DR(r),_t=j9(r);break;case"minute":j=U5(t,!0),tt=LR(r),_t=W9(r);break;case"second":j=U5(t,!1),tt=ER(r),_t=$9(r);break;case"millisecond":j=Bht(t),tt=OR(r),_t=X9(r);break}$>=n[0]&&F<=n[1]&&u(j,F,$,tt,_t,lt,B),O==="year"&&P.length>1&&H===0&&P.unshift({value:P[0].value-j})}}for(var H=0;H<B.length;H++)P.push(B[H])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=$p(s[p]);if(ift(s[p])){f(s[p],c[c.length-1]||[],v);var y=s[p+1]?$p(s[p+1]):null;if(g!==y){if(v.length){d=h,v.sort(function(O,N){return O.value-N.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=a/t;if(h>b*1.5&&d>b/1.5||(c.push(m),h>b||e===s[p]))break}v=[]}}}for(var x=Xt(W(c,function(O){return Xt(O,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(O){return O.length>0}),w=x.length-1,A=[],p=0;p<x.length;++p)for(var T=x[p],C=0;C<T.length;++C){var M=Vv(T[C].value,r);A.push({value:T[C].value,time:{level:w-p,upperTimeUnit:M,lowerTimeUnit:M}})}Xb(A,jst,null),A.sort(function(O,N){return O.value-N.value});var E=A[0],L=A[A.length-1],R=Vv(n[0],r),I=Vv(n[1],r);return(!E||E.value>n[0])&&A.unshift({value:n[0],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),(!L||L.value<n[1])&&A.push({value:n[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),A}var Hht=function(e,t){var r=e.getExtent();if(r[0]===r[1]&&(r[0]-=Sa,r[1]+=Sa),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Sa}e.setExtent(r[0],r[1]);var a=px(t.splitNumber,10),i=dx(e)/a,o=t.minInterval,s=t.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Jm.length,u=Math.min(Iht(Jm,i,0,l),l-1),f=Jm[u][1],c=Jm[Math.max(u-1,0)][0];e.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:c})};oi.registerClass(NW);var t0=0,e0=1,Uht=2,BW=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="log",n.parse=hl.parse,n.base=r.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[t0]=a[e0]=i[t0]=i[e0]=NaN,oI(n,t.mapperMethods);var s=Ue(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},Uht,u),n.powStub=new hl({breakParsed:u.original}),n.intervalStub=new hl({breakParsed:u.transformed}),sI(n,n.intervalStub),n}return t.prototype.getTicks=function(r){var n=this.base,a=this.powStub,i=Ue(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return W(o.getTicks(r||{}),function(f){var c=f.value,v=$T(c,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,XS(a),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},t.prototype.getMinorTicks=function(r){return lI(this,r,XS(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Qm(r,this.base))},scale:function(r){return $T(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Qm(r,this.base),n&&n.depth===Fo?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var a=n?n.depth:null;return F5.depth=a,Y5.lookup=this._lookup,$T(a===Fo?r:this.intervalStub.transformOut(r,F5),this.base,Y5)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(bn,r,n)},setExtent2:function(r,n,a){if(!(!bf(n,a)||n<=0||a<=0)){var i=j5,o=j5;if(r===bn){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[t0]=n,i[e0]=a);var l=this.base;this.intervalStub.setExtent2(r,o[t0]=Qm(n,l),o[e0]=Qm(a,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return bf(n[0],n[1])&&Oa(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},t}(oi);oi.registerClass(BW);var F5={},Y5={},j5=[],zW={value:1,category:1,time:1,log:1},VW=Tt();function Fy(e){var t=e.get("type");return(t==null||!nt(zW,t)&&!oi.getClass(t))&&(t="value"),t}function nd(e,t,r){var n=Ue(),a;switch(n&&(a=GW(e,t,r)),t){case"category":return new Vg({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Lr()});case"time":return new NW({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:a});case"log":return new BW({logBase:e.get("logBase"),breakOption:a});case"value":return new hl({breakOption:a});default:return new(oi.getClass(t)||hl)({})}}function Fht(e,t,r){var n=e.getExtentUnsafe(bn,null),a=n[0],i=n[1];return bf(a,i)?a===t||i===t?jht:a<t&&i>t?Yht:rL:rL}var Yht=1,jht=2,rL=3;function Wht(e){VW(e).noOnMyZero=!0}function $ht(e){return VW(e).noOnMyZero}function Yy(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=nft(t);return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}else{if(K(t))return function(a){var i=e.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(ct(t)){if(e.type==="category")return function(a,i){return t(f1(e,a),a.value-e.scale.getExtent()[0],null)};var n=Ue();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(f1(e,a),i,o)}}else return function(a){return e.scale.getLabel(a)}}}function f1(e,t){var r=e.scale;return Kr(r)?r.getLabel(t):t.value}function uI(e){var t=e.get("interval");return t??"auto"}function Xht(e){return e.type==="category"&&uI(e.getLabelModel())===0}function Zht(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[aI(e,n)]=!0}),Nt(r)}function yh(e){return e==="middle"||e==="center"}function Gg(e){return e.getShallow("show")}function GW(e,t,r){var n=e.get("breaks",!0);if(n!=null)return!Ue()||!r||!qht(t)?void 0:n}function qht(e){return e!=="category"}function HW(e,t,r,n,a,i){var o=gh(e),s=o?e.intervalStub:e;if(s.setExtent(n[0],n[1]),o){var l=e.powStub,u={depth:Fo},f=e.transformOut(n[0],u),c=e.transformOut(n[1],u),v=Rht(r,n);t[0]&&!v[0]&&(f=a[0]),t[1]&&!v[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(i)}function ad(e,t){return Kr(e)?e.getRawOrdinalNumber(t.value):t.value}function jy(e,t){return Kr(e)&&!!t.get("boundaryGap")}var id=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),Kht=Uh(),c1="|&",od=Tt(),UW=-2,Qht=-1,Jht=Tt();function fI(e,t){var r=e.model,n=od(td(r.ecModel)).keyed,a=n&&n.get(t);return a&&a.get(r.uid)}function tdt(e,t){return YW(fI(e,t))}function edt(e,t){var r=[];return FW(e.model.ecModel,function(n){for(var a=0;a<t.length;a++)t[a]&&n.serByIdx[t[a].seriesIndex]&&r.push(YW(n))}),r}function FW(e,t){var r=od(td(e)).keyed;r&&r.each(function(n,a){n.each(function(i,o){t(i,a,o)})})}function YW(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function rdt(e,t){var r=e.model.ecModel,n=od(td(r)).axSer;n&&gx(r,n.get(e.model.uid),t)}function Df(e,t,r){var n=fI(e,t);n&&gx(e.model.ecModel,n.sers,r)}function gx(e,t,r){if(t)for(var n=0;n<t.length;n++){var a=t[n];e.isSeriesFiltered(a)||r(a)}}function ndt(e,t){var r=fI(e,t);if(!r||!r.sers.length)return 0;var n=0;return gx(e.model.ecModel,r.sers,function(){n++}),n}function cI(e,t,r){var n=od(td(e)).keyed,a=n&&n.get(t);a&&a.each(function(i){r(i.axis)})}function jW(e,t){var r=e.model,n=od(td(r.ecModel)).keys;n&&D(n.get(r.uid),function(a){t(a)})}function adt(e){var t=Jht(eW(e)),r=t.keyed||(t.keyed=rt());FW(e,function(n,a,i){var o=r.get(a)||r.set(a,rt()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&WW.liPosMinGap(e,n,s)})}function idt(e,t){WW[e]=t}var WW={};function Lf(e,t,r){if(e){var n=t.ecModel,a=od(td(n)),i=e.model.uid,o=a.axSer||(a.axSer=rt()),s=o.get(i)||o.set(i,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===e,f=aL.get(nL(l,u,r))||aL.get(nL(l,u,null));if(f){var c=a.keyed||(a.keyed=rt()),v=a.keys||(a.keys=rt()),h=f.key,d=c.get(h)||c.set(h,rt()),p=d.get(i);p||(p=d.set(i,{axis:e,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(e),(v.get(i)||v.set(i,[])).push(h)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function nL(e,t,r){return e+c1+ot(t,!0)+c1+(r||"")}function vI(e,t){var r=nL(t.seriesType,t.baseAxis,t.coordSysType);aL.set(r,t),Kht(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:adt})})}var aL=rt(),odt=Tt(),mh=1,sdt=2,ldt=3,$W=function(){function e(t,r,n,a,i){var o=Kr(t),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();(u1(t)||gh(t)||Uy(t))&&(VY(f,Pd(t,r.get("dataMin",!0))),GY(f,Pd(t,r.get("dataMax",!0)))),Fst(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=Pd(t,ct(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=Pd(t,ct(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=udt(t,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!ns(c[0])&&(c[0]=NaN),!ns(c[1])&&(c[1]=NaN);var y=l||Nr(c[0])||Nr(c[1])||o&&!s,m=u1(t),_=m&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=Pd(t,r.get("startValue",!0)),x=b!=null;!Oa(b)&&a&&(b=t.getDefaultStartValue?t.getDefaultStartValue():0),Oa(b)&&(x||!m||_)&&(b<c[0]&&!v[0]?(c[0]=b,v[0]=!0):b>c[1]&&!v[1]&&(c[1]=b,v[1]=!0));var w=this._i={scale:t,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};W5(w,c)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,n=t.noZoomEffMM,a=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],i[0]=a[0]=!0),r[1]!=null&&(s[1]=r[1],i[1]=a[1]=!0),W5(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e}();function W5(e,t){var r=e.scale,n=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],n),t[1]=r.sanitize(t[1],n),m_(t))}function Pd(e,t){return t==null?null:Nr(t)?NaN:e.parse(t)}function udt(e,t){var r;if(Kr(e))r=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),r=Y(n)?n:[n,n]}return[$5(r[0]),$5(r[1])]}function $5(e){return $i(typeof e=="boolean"?0:e,1)||0}function XW(e){var t=odt(e.scale);return t.extent||(t.extent=Lr()),t}function fdt(e,t){XW(e).dimIdxInCoord=t.get(e.dim)}function Ef(e,t){var r=e.scale,n=e.model,a=e.dim;r.rawExtentInfo||cdt(r,e,a,n,t)}function cdt(e,t,r,n,a){var i=XW(t),o=i.extent,s=!1;rdt(t,function(f){if(f.boxCoordinateSystem){var c=J9(f).coord,v=i.dimIdxInCoord;if(v>=0){if(Y(c)){var h=c[v];h!=null&&!Y(h)&&b2(o,e.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=e.getFilter?e.getFilter():null;D(Zht(d,r),function(g){Ust(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var l=hdt(e,t,n),u=new $W(e,n,o,s,l);ZW(e,u,a),i.extent=null}function vdt(e,t){var r=e.scale;ZW(r,new $W(r,e.model,t,!1,!1),ldt)}function ZW(e,t,r){e.rawExtentInfo=t,t.from=r}function yx(e,t){hI.set(e,t)}var hI=rt();function qW(e,t,r,n,a){e.rawExtentInfo||vdt({scale:e,model:t},a||Lr());var i=e.rawExtentInfo.makeFinal(),o=i.effMM;return e.setExtent(o[0],o[1]),e.setBlank(i.isBlank),n&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function hdt(e,t,r){var n=jy(e,r),a=r.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return jW(t,function(o){i=!!hI.get(o)||i}),i}function ddt(e,t,r,n){if(r.ctnShp){var a;if(jW(e,function(s){var l=hI.get(s);if(l){var u=l(e,n);u&&(a=a||[0,0],VY(a,u[0]),GY(a,u[1]),Wht(e))}}),!!a){var i=t.getExtent();if(Kr(t))e.onBand||t.setExtent2(Bg,te(i[0],i[0]+a[0]),Dt(i[1],i[1]+a[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=te(o[0],t.transformOut(t.transformIn(o[0],null)+a[0],null))),r.zoomFixMM[1]||(o[1]=Dt(o[1],t.transformOut(t.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&t.setExtent2(Bg,o[0],o[1])}}}}function X5(e,t){var r=gh(e),n=r?e.intervalStub:e,a=t.fixMinMax||[],i=r?e.getExtent():null,o=n.getExtent(),s=IW(o,a,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?gdt(n,t):pdt(n,t),u=l.intervalPrecision,f=l.interval,c=t.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Mf(c)),a[0]||(s[0]=Yt(Ea(s[0]/f)*f,u)),a[1]||(s[1]=Yt(ic(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),HW(e,a,o,s,i,l)}function pdt(e,t){var r=px(t.splitNumber,5),n=dx(e),a=t.minInterval,i=t.maxInterval,o=$b(n/r,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=Mf(o),l=e.getExtent(),u=[Yt(ic(l[0]/o)*o,s),Yt(Ea(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function gdt(e,t){var r=px(t.splitNumber,10),n=e.getExtent(),a=dx(e),i=Dt(qO(a),1),o=r/a*i;o<=.5&&(i*=10);var s=Mf(i),l=[Yt(ic(n[0]/i)*i,s),Yt(Ea(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function _h(e){var t=e.scale,r=e.model,n=r.axis,a=r.ecModel;KW(t,r,n,a,null)}function KW(e,t,r,n,a){var i=qW(e,t,n,r,a),o=u1(e)||Uy(e);QW(e,{splitNumber:t.get("splitNumber"),fixMinMax:i.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:i}),r&&n&&ddt(r,e,i,n)}function QW(e,t){ydt[e.type](e,t)}var ydt={interval:X5,log:X5,time:Hht,ordinal:Ee};function mdt(e){return so(null,e)}var _dt={isDimensionStacked:ss,enableDataStack:LW,getStackedDimension:aI};function Sdt(e,t){var r=t;t instanceof Ot||(r=new Ot(t));var n=Fy(r),a=nd(r,n,!1);return e[1]<e[0]&&(e=e.slice().reverse()),KW(a,r,null,null,e),a}function bdt(e){Ye(e,id)}function xdt(e,t){return t=t||{},oe(e,null,null,t.state!=="normal")}const wdt=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:pht,createList:mdt,createScale:Sdt,createSymbol:Fe,createTextStyle:xdt,dataStack:_dt,enableHoverEmphasis:cl,getECData:mt,getLayoutRect:me,mixinAxisModelCommonMethods:bdt},Symbol.toStringTag,{value:"Module"}));var Tdt=1e-8;function Z5(e,t){return Math.abs(e-t)<Tdt}function Ru(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=bo(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!Z5(a[0],s[0])||!Z5(a[1],s[1]))&&(n+=bo(a[0],a[1],s[0],s[1],t,r)),n!==0}var Adt=[];function XT(e,t){for(var r=0;r<e.length;r++)Oe(e[r],e[r],t)}function q5(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Oo(t,t,i),Ro(r,r,i))}}function Cdt(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],f=i*u-l*o;t+=f,r+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var JW=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}(),K5=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),Q5=function(){function e(t){this.type="linestring",this.points=t}return e}(),t$=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return Cdt(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 a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?q5(s.exterior,a,i,r):D(s.points,function(l){q5(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new dt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ru(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Ru(u[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new dt(r,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(XT(v.exterior,u),D(v.interiors,function(h){XT(h,u)})):D(v.points,function(h){XT(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}(JW),Mdt=function(e){G(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=ac(Adt),o=r;o&&!o.isGeoSVGGraphicRoot;)Wn(i,o.getLocalTransform(),i),o=o.parent;return qn(i,i),Oe(a,a,i),a},t}(JW);function Ddt(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=e$(s,o,r);break;case"Polygon":ZT(s,o,r);break;case"MultiLineString":ZT(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return ZT(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function ZT(e,t,r){for(var n=0;n<e.length;n++)e[n]=e$(e[n],t[n],r)}function e$(e,t,r){for(var n=[],a=t[0],i=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+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function iL(e,t){return e=Ddt(e),W(Xt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new K5(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new K5(l[0],l.slice(1)))});break;case"LineString":i.push(new Q5([a.coordinates]));break;case"MultiLineString":i.push(new Q5(a.coordinates))}var s=new t$(n[t||"name"],i,n.cp);return s.properties=n,s})}const Ldt=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Cg,asc:Sr,getPercentWithPrecision:xst,getPixelPrecision:bst,getPrecision:Ci,getPrecisionSafe:DY,isNumeric:KO,isRadianAroundZero:mf,linearMap:Wt,nice:$b,numericToNumber:Zi,parseDate:io,parsePercent:J,quantile:y_,quantity:qO,quantityExponent:Wb,reformIntervals:_2,remRadian:ZO,round:Sst},Symbol.toStringTag,{value:"Module"})),Edt=Object.freeze(Object.defineProperty({__proto__:null,format:Vy,parse:io,roundTime:qS},Symbol.toStringTag,{value:"Module"})),Odt=Object.freeze(Object.defineProperty({__proto__:null,Arc:ky,BezierCurve:Wh,BoundingRect:dt,Circle:oo,CompoundPath:By,Ellipse:Ny,Group:ht,Image:dr,IncrementalDisplayable:T9,Line:He,LinearGradient:lc,Polygon:Gr,Polyline:wr,RadialGradient:vR,Rect:Lt,Ring:jh,Sector:Vr,Text:zt,clipPointsByRect:gR,clipRectByRect:O9,createIcon:Zh,extendPath:L9,extendShape:D9,getShapeClass:Eg,getTransform:Ju,initProps:de,makeImage:dR,makePath:vh,mergePath:kn,registerShape:Na,resizePath:pR,updateProps:jt},Symbol.toStringTag,{value:"Module"})),Rdt=Object.freeze(Object.defineProperty({__proto__:null,addCommas:RR,capitalFirst:cft,encodeHTML:$r,formatTime:fft,formatTpl:PR,getTextRect:uft,getTooltipMarker:q9,normalizeCssArray:Kh,toCamelCase:IR,truncateText:ilt},Symbol.toStringTag,{value:"Module"})),Idt=Object.freeze(Object.defineProperty({__proto__:null,bind:et,clone:ut,curry:Mt,defaults:pt,each:D,extend:U,filter:Xt,indexOf:bt,inherits:GO,isArray:Y,isFunction:ct,isObject:gt,isString:K,map:W,merge:wt,reduce:La},Symbol.toStringTag,{value:"Module"}));var Pdt=Tt(),Zp=Tt(),Ja={estimate:1,determine:2};function v1(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function Ndt(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=e.scale;return{labels:W(r$(r,n),function(a,i){return{formattedLabel:Yy(e)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return e.type==="category"?Bdt(e,t):Vdt(e)}function kdt(e,t,r){var n=e.scale,a=e.getTickModel().get("customValues");return a?{ticks:r$(a,n)}:e.type==="category"?zdt(e,t):{ticks:n.getTicks(r)}}function r$(e,t){var r=t.getExtent(),n=[];return D(e,function(a){a=t.parse(a),a>=r[0]&&a<=r[1]&&n.push(a)}),Xb(n,Wst,null),Sr(n),W(n,function(a){return{value:a}})}function Bdt(e,t){var r=e.getLabelModel(),n=n$(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function n$(e,t,r){var n=Hdt(e),a=uI(t),i=r.kind===Ja.estimate;if(!i){var o=i$(n,a);if(o)return o}var s,l;ct(a)?s=h1(e,a,!1):(l=a==="auto"?Udt(e,r):a,s=h1(e,l,!1));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return oL(n,a,u),!0}):oL(n,a,u),u}function zdt(e,t){var r=Gdt(e),n=uI(t),a=i$(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ct(n))i=h1(e,n,!0);else if(n==="auto"){var s=n$(e,e.getLabelModel(),v1(Ja.determine));o=s.labelCategoryInterval,i=W(s.labels,function(l){return l.tick})}else o=n,i=h1(e,o,!0);return oL(r,n,{ticks:i,tickCategoryInterval:o})}function Vdt(e){var t=e.scale.getTicks(),r=Yy(e);return{labels:W(t,function(n,a){return{formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tick:n}})}}var Gdt=a$("axisTick"),Hdt=a$("axisLabel");function a$(e){return function(r){return Zp(r)[e]||(Zp(r)[e]={list:[]})}}function i$(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function oL(e,t,r){return e.list.push({key:t,value:r}),r}function Udt(e,t){if(t.kind===Ja.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Zp(e).autoInterval=r,!0}),r}var n=Zp(e).autoInterval;return n??(Zp(e).autoInterval=e.calculateCategoryInterval(t))}function Fdt(e,t){var r=t.kind,n=jdt(e),a=Yy(e),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=Fb(a({value:c}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(r===Ja.estimate)return t.out.noPxChangeTryDetermine.push(et(Ydt,null,e,x,l)),x;var w=o$(e,x,l);return w??x}function Ydt(e,t,r){return o$(e,t,r)==null}function o$(e,t,r){var n=Pdt(e.model),a=e.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-r)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function jdt(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 h1(e,t,r){var n=Yy(e),a=e.scale,i=[],o=ct(t);return PW(a,o?0:t,function(s,l){var u=a.getLabel(s);if(o){var f=!!t(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var Wdt=.8;function Hr(e,t){t=t||{};var r={w:NaN,w2:NaN},n=e.scale,a=t.fromStat,i=t.min,o=Lht(n);Oa(o)||(o=NaN);var s=e.getExtent(),l=Le(s[1]-s[0]);return Kr(n)?$dt(r,e,o,l):a&&Xdt(r,e,o,l,a),i!=null&&(r.w=Oa(r.w)?Dt(i,r.w):i),r}function $dt(e,t,r,n){var a=t.onBand,i=r+(a?1:0);i===0&&(i=1),e.w=n/i,!a&&r&&n&&(e.w2=e.w*r/n)}function Xdt(e,t,r,n,a){var i=!1,o=-1/0;D(a.key?[tdt(t,a.key)]:edt(t,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===UW&&(i=!0))}),Oa(r)&&r>0&&Oa(o)?(e.w=n/r*o,e.w2=o):i&&(e.w=n*Wdt,e.w2=e.w*r/n)}var J5=[0,1],ka=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]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},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.scale;return t=n.normalize(n.parse(t)),Wt(t,J5,tV(this),r)},e.prototype.coordToData=function(t,r){var n=Wt(t,tV(this),J5,r);return this.scale.scale(n)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=kdt(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=W(n.ticks,function(s){return{coord:this.dataToCoord(ad(this.scale,s)),tick:s}},this),i=r.get("alignWithLabel"),o=Zdt(this,a,i);return W(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(Kr(this.scale))return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=W(n,function(i){return W(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||v1(Ja.determine),Ndt(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return Hr(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||v1(Ja.determine),Fdt(this,t)},e}();function tV(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],n=r/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function Zdt(e,t,r){var n=t.length;if(!e.onBand||r||!n)return!1;var a=Hr(e).w;if(!a)return!1;D(t,function(s){s.coord-=a/2});var i=e.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}function qdt(e){var t=Et.extend(e);return Et.registerClass(t),t}function Kdt(e){var t=ue.extend(e);return ue.registerClass(t),t}function Qdt(e){var t=ne.extend(e);return ne.registerClass(t),t}function Jdt(e){var t=ee.extend(e);return ee.registerClass(t),t}var Nd=Math.PI*2,du=qi.CMD,tpt=["top","right","bottom","left"];function ept(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function rpt(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-a)%Nd<1e-4)return l[0]=f,l[1]=c,u-r;if(i){var v=n;n=Vn(a),a=Vn(v)}else n=Vn(n),a=Vn(a);n>a&&(a+=Nd);var h=Math.atan2(s,o);if(h<0&&(h+=Nd),h>=n&&h<=a||h+Nd>=n&&h+Nd<=a)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(a)+e,y=r*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function d1(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,f=r-e,c=n-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=e+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function s$(e,t,r,n,a,i,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(a,e),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Ua=[];function npt(e,t,r){var n=s$(t.x,t.y,t.width,t.height,e.x,e.y,Ua);return r.set(Ua[0],Ua[1]),n}function apt(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=e.x,v=e.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],a=f[h+1],i=n,o=a);var p=u;switch(d){case du.M:i=f[h++],o=f[h++],n=i,a=o;break;case du.L:p=d1(n,a,f[h],f[h+1],c,v,Ua,!0),n=f[h++],a=f[h++];break;case du.C:p=lY(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,Ua),n=f[h++],a=f[h++];break;case du.Q:p=fY(n,a,f[h++],f[h++],f[h],f[h+1],c,v,Ua),n=f[h++],a=f[h++];break;case du.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],b=f[h++];h+=1;var x=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var w=(c-g)*_/m+g;p=rpt(g,y,_,S,S+b,x,w,v,Ua),n=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case du.R:i=n=f[h++],o=a=f[h++];var A=f[h++],T=f[h++];p=s$(i,o,A,T,c,v,Ua);break;case du.Z:p=d1(n,a,i,o,c,v,Ua,!0),n=i,a=o;break}p<u&&(u=p,r.set(Ua[0],Ua[1]))}return u}var Ya=new yt,ve=new yt,Ve=new yt,Di=new yt,Si=new yt;function eV(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||tpt,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=e.getComputedTransform(),c=f&&qn([],f),v=t.get("length2")||0;u&&Ve.copy(u);for(var h=0;h<o.length;h++){var d=o[h];ept(d,0,s,Ya,Di),yt.scaleAndAdd(ve,Ya,Di,v),ve.transform(c);var p=e.getBoundingRect(),g=u?u.distance(ve):e instanceof Rt?apt(ve,e.path,Ve):npt(ve,p,Ve);g<l&&(l=g,ve.transform(f),Ve.transform(f),Ve.toArray(i[0]),ve.toArray(i[1]),Ya.toArray(i[2]))}l$(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var p1=[],nn=new yt;function l$(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ya.fromArray(e[0]),ve.fromArray(e[1]),Ve.fromArray(e[2]),yt.sub(Di,Ya,ve),yt.sub(Si,Ve,ve);var r=Di.len(),n=Si.len();if(!(r<.001||n<.001)){Di.scale(1/r),Si.scale(1/n);var a=Di.dot(Si),i=Math.cos(t);if(i<a){var o=d1(ve.x,ve.y,Ve.x,Ve.y,Ya.x,Ya.y,p1,!1);nn.fromArray(p1),nn.scaleAndAdd(Si,o/Math.tan(Math.PI-t));var s=Ve.x!==ve.x?(nn.x-ve.x)/(Ve.x-ve.x):(nn.y-ve.y)/(Ve.y-ve.y);if(isNaN(s))return;s<0?yt.copy(nn,ve):s>1&&yt.copy(nn,Ve),nn.toArray(e[1])}}}}function ipt(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ya.fromArray(e[0]),ve.fromArray(e[1]),Ve.fromArray(e[2]),yt.sub(Di,ve,Ya),yt.sub(Si,Ve,ve);var n=Di.len(),a=Si.len();if(!(n<.001||a<.001)){Di.scale(1/n),Si.scale(1/a);var i=Di.dot(t),o=Math.cos(r);if(i<o){var s=d1(ve.x,ve.y,Ve.x,Ve.y,Ya.x,Ya.y,p1,!1);nn.fromArray(p1);var l=Math.PI/2,u=Math.acos(Si.dot(t)),f=l+u-r;if(f>=l)yt.copy(nn,Ve);else{nn.scaleAndAdd(Si,s/Math.tan(Math.PI/2-f));var c=Ve.x!==ve.x?(nn.x-ve.x)/(Ve.x-ve.x):(nn.y-ve.y)/(Ve.y-ve.y);if(isNaN(c))return;c<0?yt.copy(nn,ve):c>1&&yt.copy(nn,Ve)}nn.toArray(e[1])}}}}function qT(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function opt(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 a=Eo(n[0],n[1]),i=Eo(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Vp([],n[1],n[0],o/a),l=Vp([],n[1],n[2],o/i),u=Vp([],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 f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function dI(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<Dg.length;l++){var u=Dg[l],f=t[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:ot(a.states[u]&&a.states[u].ignore,s);if(h||!ot(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&qT(n,!0,u,f);continue}n||(n=new wr,e.setTextGuideLine(n),!c&&(s||!o)&&qT(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),qT(n,!1,u,f)}}if(n){pt(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=opt}}function pI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<fn.length;n++){var a=fn[n];r[a]=e.getModel([a,t])}return r}var rV=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],spt=1,g1=2,u$=spt|g1;function y1(e,t,r){r=r||u$,t?e.dirty|=r:e.dirty&=~r}function f$(e,t){return t=t||u$,e.dirty==null||!!(e.dirty&t)}function Ji(e){if(e)return f$(e)&&c$(e,e.label,e),e}function c$(e,t,r){var n=t.getComputedTransform();e.transform=mR(e.transform,n);var a=e.localRect=Og(e.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=bv.textMargin);for(var c=0;c<4;c++)KT[c]=f===bv.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===bv.textMargin&&Tf(a,KT,!1,!1);var v=e.rect=Og(e.rect,a);return n&&v.applyTransform(n),f===bv.minMargin&&Tf(v,KT,!1,!1),e.axisAligned=yR(n),(e.label=e.label||{}).ignore=t.ignore,y1(e,!1),y1(e,!0,g1),e}var KT=[0,0,0,0];function lpt(e,t,r){return e.transform=mR(e.transform,r),e.localRect=Og(e.localRect,t),e.rect=Og(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=yR(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function sL(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var a=e.obb;a&&a.fromBoundingRect(e.localRect,r)}}function lL(e,t){for(var r=0;r<rV.length;r++){var n=rV[r];e[n]==null&&(e[n]=t[n])}return Ji(e)}function nV(e){var t=e.obb;return(!t||f$(e,g1))&&(e.obb=t=t||new x9,t.fromBoundingRect(e.localRect,e.transform),y1(e,!1,g1)),t}function uL(e,t,r,n,a){var i=e.length,o=St[t],s=Ne[t];if(i<2)return!1;e.sort(function(w,A){return w.rect[o]-A.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var v=e[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=e[0],p=e[i-1],g,y;m(),g<0&&b(-g,.8),y<0&&b(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&x(-g),y<0&&x(y);function m(){g=d.rect[o]-r,y=n-p.rect[o]-p.rect[s]}function _(w,A,T){if(w<0){var C=Math.min(A,-w);if(C>0){S(C*T,0,i);var M=C+w;M<0&&b(-M*T,1)}else b(-w*T,1)}}function S(w,A,T){w!==0&&(f=!0);for(var C=A;C<T;C++){var M=e[C],E=M.rect;E[o]+=w,M.label[o]+=w}}function b(w,A){for(var T=[],C=0,M=1;M<i;M++){var E=e[M-1].rect,L=Math.max(e[M].rect[o]-E[o]-E[s],0);T.push(L),C+=L}if(C){var R=Math.min(Math.abs(w)/C,A);if(w>0)for(var M=0;M<i-1;M++){var I=T[M]*R;S(I,0,M+1)}else for(var M=i-1;M>0;M--){var I=T[M-1]*R;S(-I,M,i)}}}function x(w){var A=w<0?-1:1;w=Math.abs(w);for(var T=Math.ceil(w/(i-1)),C=0;C<i-1;C++)if(A>0?S(T,0,C+1):S(-T,i-C-1,i),w-=T,w<=0)return}return f}function upt(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function v$(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var a=Ji(e[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<t.length;l++)if(mx(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):t.push(a)}}}function mx(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:nV(e).intersect(nV(t),r,n)}function fpt(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function cpt(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:fpt(n&&n.shape.points)}}var aV=["align","verticalAlign","width","height","fontSize"],Jr=new ao,QT=Tt(),vpt=Tt();function r0(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var n0=["x","y","rotation"],hpt=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();dt.applyTransform(f,f,u),u?Jr.setLocalTransform(u):(Jr.x=Jr.y=Jr.rotation=Jr.originX=Jr.originY=0,Jr.scaleX=Jr.scaleY=1),Jr.rotation=Vn(Jr.rotation);var c=a.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();dt.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Jr.x,y:Jr.y,scaleX:Jr.scaleX,scaleY:Jr.scaleY,rotation:Jr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(ct(a)||Nt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=mt(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(_,S){return function(){eV(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ct(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(cpt(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=J(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=J(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=QT(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<aV.length;p++){var g=aV[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=[];D(this._labelList,function(l){l.defaultAttr.ignore||a.push(lL({},l))});var i=Xt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Xt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});uL(i,0,0,r),uL(o,1,0,n);var s=Xt(a,function(l){return l.layoutOption.hideOverlap});upt(s),v$(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=QT(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=mt(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");dI(t,pI(s),l),eV(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Bv(t))){var i=QT(n),o=i.oldLayout,s=mt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(bt(v,"select")>=0&&n.attr(i.oldLayoutSelect),bt(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),jt(n,u,r,l)}else if(n.attr(u),!qh(n).valueAnimation){var c=ot(n.style.opacity,1);n.style.opacity=0,de(n,{style:{opacity:c}},r,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};r0(h,u,n0),r0(h,n.states.select,n0)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};r0(d,u,n0),r0(d,n.states.emphasis,n0)}B9(n,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=vpt(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),jt(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,de(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},e}(),JT=Tt();function dpt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=JT(r).labelManager;a||(a=JT(r).labelManager=new hpt),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=JT(r).labelManager;D(n.updatedSeries,function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var tA=Math.sin,eA=Math.cos,h$=Math.PI,pu=Math.PI*2,ppt=180/h$,d$=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,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Xs(c-pu)||(f?u>=pu:-u>=pu),h=u>0?u%pu:u%pu+pu,d=!1;v?d=!0:Xs(c)?d=!1:d=h>=h$==!!f;var p=t+n*eA(o),g=r+a*tA(o);this._start&&this._add("M",p,g);var y=Math.round(i*ppt);if(v){var m=1/this._p,_=(f?1:-1)*(pu-m);this._add("A",n,a,y,1,+f,t+n*eA(o+_),r+a*tA(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=t+n*eA(s),b=r+a*tA(s);this._add("A",n,a,y,+d,+f,S,b)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),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,a,i,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(t+f.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}(),gI="none",gpt=Math.round;function ypt(e){var t=e.fill;return t!=null&&t!==gI}function mpt(e){var t=e.stroke;return t!=null&&t!==gI}var fL=["lineCap","miterLimit","lineJoin"],_pt=W(fL,function(e){return"stroke-"+e.toLowerCase()});function Spt(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof dr){e("opacity",a);return}if(ypt(t)){var i=Tg(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&e("fill-opacity",o)}else e("fill",gI);if(mpt(t)){var s=Tg(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if(u!==1&&e("stroke-width",u),c&&e("paint-order",c?"stroke":"fill"),f<1&&e("stroke-opacity",f),t.lineDash){var v=jR(r),h=v[0],d=v[1];h&&(d=gpt(d||0),e("stroke-dasharray",h.join(",")),(d||n)&&e("stroke-dashoffset",d))}for(var p=0;p<fL.length;p++){var g=fL[p];if(t[g]!==US[g]){var y=t[g]||US[g];y&&e(_pt[p],y)}}}}var p$="http://www.w3.org/2000/svg",g$="http://www.w3.org/1999/xlink",bpt="http://www.w3.org/2000/xmlns/",xpt="http://www.w3.org/XML/1998/namespace",iV="ecmeta_";function y$(e){return document.createElementNS(p$,e)}function ur(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function wpt(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function Tpt(e){return"</"+e+">"}function yI(e,t){t=t||{};var r=t.newline?`
|
|
168
|
+
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return wpt(o,s)+(o!=="style"?$r(l):l||"")+(i?""+r+W(i,function(u){return n(u)}).join(r)+r:"")+Tpt(o)}return n(e)}function Apt(e,t,r){r=r||{};var n=r.newline?`
|
|
169
|
+
`:"",a=" {"+n,i=n+"}",o=W(Nt(e),function(l){return l+a+W(Nt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=W(Nt(t),function(l){return"@keyframes "+l+a+W(Nt(t[l]),function(u){return u+a+W(Nt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function cL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function oV(e,t,r,n){return ur("svg","root",{width:e,height:t,xmlns:p$,"xmlns:xlink":g$,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var Cpt=0;function m$(){return Cpt++}var sV={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"},Cu="transform-origin";function Mpt(e,t,r){var n=U({},e.shape);U(n,t),e.buildPath(r,n);var a=new d$;return a.reset(yY(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function Dpt(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Cu]=r+"px "+n+"px")}var Lpt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function _$(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Ept(e,t,r){var n=e.shape.paths,a={},i,o;if(D(n,function(l){var u=cL(r.zrId);u.animation=!0,_x(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=Nt(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=_$(a,r);return i.replace(o,s)}}function lV(e){return K(e)?sV[e]?"cubic-bezier("+sV[e]+")":YO(e)?e:"":""}function _x(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof By){var s=Ept(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],v=lV(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},w={},A="animation-timing-function";function T(it,Q,st){for(var Z=it.getTracks(),at=it.getMaxTime(),Ht=0;Ht<Z.length;Ht++){var Ct=Z[Ht];if(Ct.needsAnimate()){var Ut=Ct.keyframes,Zt=Ct.propName;if(st&&(Zt=st(Zt)),Zt)for(var _e=0;_e<Ut.length;_e++){var Qr=Ut[_e],Fr=Math.round(Qr.time/at*100)+"%",ta=lV(Qr.easing),mc=Qr.rawValue;(K(mc)||Vt(mc))&&(Q[Fr]=Q[Fr]||{},Q[Fr][Zt]=Qr.rawValue,ta&&(Q[Fr][A]=ta))}}}}for(var C=0;C<S;C++){var M=_[C],E=M.targetName;E?E==="shape"&&T(M,x):!n&&T(M,b)}for(var L in b){var R={};Wi(R,e),U(R,b[L]);var I=mY(R),O=b[L][A];w[L]=I?{transform:I}:{},Dpt(w[L],R),O&&(w[L][A]=O)}var N,P=!0;for(var L in x){w[L]=w[L]||{};var B=!N,O=x[L][A];B&&(N=new qi);var z=N.len();N.reset(),w[L].d=Mpt(e,x[L],N);var H=N.len();if(!B&&z!==H){P=!1;break}O&&(w[L][A]=O)}if(!P)for(var L in w)delete w[L].d;if(!n)for(var C=0;C<S;C++){var M=_[C],E=M.targetName;E==="style"&&T(M,w,function(Z){return Lpt[Z]})}for(var F=Nt(w),$=!0,j,C=1;C<F.length;C++){var tt=F[C-1],_t=F[C];if(w[tt][Cu]!==w[_t][Cu]){$=!1;break}j=w[tt][Cu]}if($&&j){for(var L in w)w[L][Cu]&&delete w[L][Cu];t[Cu]=j}if(Xt(F,function(it){return Nt(w[it]).length>0}).length){var lt=_$(w,r);return lt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+m$();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Opt(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};uV(n,t,r)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){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&&(i=NS(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),uV(n,t,r)}}function uV(e,t,r,n){var a=JSON.stringify(e),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+m$(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var Hg=Math.round;function S$(e){return e&&K(e.src)}function b$(e){return e&&ct(e.toDataURL)}function mI(e,t,r,n){Spt(function(a,i){var o=a==="fill"||a==="stroke";o&&gY(i)?w$(t,e,a,n):o&&WO(i)?T$(r,e,a,n):e[a]=i,o&&n.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),zpt(r,e,n)}function _I(e,t){var r=AY(t);r&&(r.each(function(n,a){n!=null&&(e[(iV+a).toLowerCase()]=n+"")}),t.isSilent()&&(e[iV+"silent"]="true"))}function fV(e){return Xs(e[0]-1)&&Xs(e[1])&&Xs(e[2])&&Xs(e[3]-1)}function Rpt(e){return Xs(e[4])&&Xs(e[5])}function SI(e,t,r){if(t&&!(Rpt(t)&&fV(t))){var n=1e4;e.transform=fV(t)?"translate("+Hg(t[4]*n)/n+" "+Hg(t[5]*n)/n+")":Iot(t)}}function cV(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(Hg(n[i][0]*r)/r),a.push(Hg(n[i][1]*r)/r);t.points=a.join(" ")}function vV(e){return!e.smooth}function Ipt(e){var t=W(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=Hg(s*a)/a)}}}var Ppt={circle:[Ipt(["cx","cy","r"])],polyline:[cV,vV],polygon:[cV,vV]};function Npt(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function x$(e,t){var r=e.style,n=e.shape,a=Ppt[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&yY(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Npt(e))&&!(l<1)){s=e.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var v=e.path;c&&(v.beginPath(),e.buildPath(v,e.shape),e.pathUpdated());var h=v.getVersion(),d=e,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new d$),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return SI(i,e.transform),mI(i,r,e,t),_I(i,e),t.animation&&_x(e,i,t),t.emphasis&&Opt(e,i,t),ur(s,e.id+"",i)}function kpt(e,t){var r=e.style,n=r.image;if(n&&!K(n)&&(S$(n)?n=n.src:b$(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),SI(l,e.transform),mI(l,r,e,t),_I(l,e),t.animation&&_x(e,l,t),ur("image",e.id+"",l)}}function Bpt(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||ts,i=r.x||0,o=Not(r.y||0,Ry(a),r.textBaseline),s=Pot[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(JY(r)){var u="",f=r.fontStyle,c=QY(r.fontSize);if(!parseFloat(c))return;var v=r.fontFamily||V7,h=r.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),SI(l,e.transform),mI(l,r,e,t),_I(l,e),t.animation&&_x(e,l,t),ur("text",e.id+"",l,void 0,n)}}function hV(e,t){if(e instanceof Rt)return x$(e,t);if(e instanceof dr)return kpt(e,t);if(e instanceof ch)return Bpt(e,t)}function zpt(e,t,r){var n=e.style;if(kot(n)){var a=Bot(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=Tg(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ur("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ur("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=Ub(o)}}function w$(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(dY(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(pY(a))i="radialGradient",o.cx=ot(a.x,.5),o.cy=ot(a.y,.5),o.r=ot(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=l2(s[u].offset)*100+"%",v=s[u].color,h=Tg(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(ur("stop",u+"",g))}var y=ur(i,"",o,l),m=yI(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=ur(i,S,o,l)),t[r]=Ub(S)}function T$(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(hY(a)){var v=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if(K(p)?d=p:S$(p)?d=p.src:b$(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";zr(v,g),zr(h,g)}else if(v==null||h==null){var y=function(C,M){if(C){var E=C.elm,L=v||M.width,R=h||M.height;C.tag==="pattern"&&(u?(R=1,L/=i.width):f&&(L=1,R/=i.height)),C.attrs.width=L,C.attrs.height=R,E&&(E.setAttribute("width",L),E.setAttribute("height",R))}},m=nR(d,null,e,function(C){l||y(x,C),y(c,C)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=ur("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else a.svgElement&&(c=ut(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=mY(a);b&&(o.patternTransform=b);var x=ur("pattern","",o,[c]),w=yI(x),A=n.patternCache,T=A[w];T||(T=n.zrId+"-p"+n.patternIdx++,A[w]=T,o.id=T,x=n.defs[T]=ur("pattern",T,o,[c])),t[r]=Ub(T)}}function Vpt(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=ur("clipPath",i,o,[x$(e,r)])}t["clip-path"]=Ub(i)}function dV(e){return document.createTextNode(e)}function Iu(e,t,r){e.insertBefore(t,r)}function pV(e,t){e.removeChild(t)}function gV(e,t){e.appendChild(t)}function A$(e){return e.parentNode}function C$(e){return e.nextSibling}function rA(e,t){e.textContent=t}var yV=58,Gpt=120,Hpt=ur("","");function vL(e){return e===void 0}function yi(e){return e!==void 0}function Upt(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function hp(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Ug(e){var t,r=e.children,n=e.tag;if(yi(n)){var a=e.elm=y$(n);if(bI(Hpt,e),Y(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&gV(a,Ug(i))}else yi(e.text)&&!gt(e.text)&&gV(a,dV(e.text))}else e.elm=dV(e.text);return e.elm}function M$(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&Iu(e,Ug(i),t)}}function m1(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(yi(a.tag)){var i=A$(a.elm);pV(i,a.elm)}else pV(e,a.elm)}}function bI(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==Gpt?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(bpt,r,o):r.charCodeAt(3)===yV?n.setAttributeNS(xpt,r,o):r.charCodeAt(5)===yV?n.setAttributeNS(g$,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function Fpt(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],f=r[l],c,v,h,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:f==null?f=r[--l]:hp(o,u)?(tv(o,u),o=t[++n],u=r[++a]):hp(s,f)?(tv(s,f),s=t[--i],f=r[--l]):hp(o,f)?(tv(o,f),Iu(e,o.elm,C$(s.elm)),o=t[++n],f=r[--l]):hp(s,u)?(tv(s,u),Iu(e,s.elm,o.elm),s=t[--i],u=r[++a]):(vL(c)&&(c=Upt(t,n,i)),v=c[u.key],vL(v)?Iu(e,Ug(u),o.elm):(h=t[v],h.tag!==u.tag?Iu(e,Ug(u),o.elm):(tv(h,u),t[v]=void 0,Iu(e,h.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(d=r[l+1]==null?null:r[l+1].elm,M$(e,d,r,a,l)):m1(e,t,n,i))}function tv(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(bI(e,t),vL(t.text)?yi(n)&&yi(a)?n!==a&&Fpt(r,n,a):yi(a)?(yi(e.text)&&rA(r,""),M$(r,null,a,0,a.length-1)):yi(n)?m1(r,n,0,n.length-1):yi(e.text)&&rA(r,""):e.text!==t.text&&(yi(n)&&m1(r,n,0,n.length-1),rA(r,t.text)))}function Ypt(e,t){if(hp(e,t))tv(e,t);else{var r=e.elm,n=A$(r);Ug(t),n!==null&&(Iu(n,t.elm,C$(r)),m1(n,[e],0,0))}return t}var jpt=0,Wpt=function(){function e(t,r,n){if(this.type="svg",this.configLayer=$pt(),this.storage=r,this._opts=n=U({},n),this.root=t,this._id="zr"+jpt++,this._oldVNode=oV(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=y$("svg");bI(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}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",Ypt(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return hV(t,cL(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=cL(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Xpt(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=ur("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=W(Nt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(ur("defs","defs",{},u)),t.animation){var f=Apt(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=ur("style","stl",{},[],f);o.push(c)}}return oV(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},yI(this.renderToVNode({animation:ot(t.cssAnimation,!0),emphasis:ot(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ot(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 a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};Vpt(v[y],m,r);var _=ur("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=v;var S=hV(c,r);S&&(s?s.children:n).push(S)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=xv(a,0,n),r=xv(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(WO(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=Vot(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function $pt(e){return function(){}}function Xpt(e,t,r,n){var a;if(r&&r!=="none")if(a=ur("rect","bg",{width:e,height:t,x:"0",y:"0"}),gY(r))w$({fill:r},a.attrs,"fill",n);else if(WO(r))T$({style:{fill:r},dirty:Ee,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=Tg(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function Zpt(e){e.registerPainter("svg",Wpt)}function mV(e,t,r){var n=fr.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}function nA(e){return!e.__cursors.get(w9)}function _V(e){var t=e.__cursors.get(w9);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var D$=function(e){ye(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=S_,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||BS,typeof r=="string"?o=mV(r,n,a):gt(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(HO(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.afterBrush=function(){this.__prevIdx=_V(this)},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=mV("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,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new dt(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new dt(0,0,0,0);b.copy(S),o.push(b)}else{for(var x=!1,w=1/0,A=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(S)){var M=new dt(0,0,0,0);M.copy(C),M.union(S),o[T]=M,x=!0;break}else if(l){u.copy(S),u.union(C);var E=S.width*S.height,L=C.width*C.height,R=u.width*u.height,I=R-E-L;I<w&&(w=I,A=T)}}if(l&&(o[A].union(S),x=!0),!x){var b=new dt(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var c=_V(this),v=c.startIdx;v<c.endIdx;++v){var h=r[v];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&Sn||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&Sn||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,v=y.startIdx;v<y.endIdx;++v){var h=n[v],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(m=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Ly(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||X2(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Y7(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Z2(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&D(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Pa),SV=1e5,gu=314159,aA=void 0,qpt=1,iA=2;function Kpt(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Qpt(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}function bV(e,t,r,n){var a=new D$(e,t,t.dpr);return a.zlevel=r,a.zlevel2=n,a.__builtin__=!0,L$(a),a}function L$(e){e.__cursorStack=[],e.__cursors=rt()}function Jpt(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function tgt(e,t){var r=e.__cursors,n=+t;return r.get(n)||(e.__cursorStack.push(n),r.set(n,Jpt({key:n})))}function a0(e,t){for(var r=e.__cursorStack,n=0;n<r.length;n++)t(e.__cursors.get(r[n]))}function oA(e,t){var r=e.layers;return r[t]||(r[t]=new Array(3))}function jr(e,t,r){for(var n=e.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=e.layers[i][o];(!r||(!(r&qp)||s.__builtin__)&&(!(r&hL)||!s.__builtin__)&&(!(r&E$)||s!==e.hoverlayer))&&t(s,i,o,a)}}var qp=1,hL=2,E$=4,i0=qp|E$,egt=function(){function e(t,r,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=U({},n||{}),this.dpr=n.devicePixelRatio||BS,this._singleCanvas=i,this.root=t;var o=t.style;if(o&&(HO(t),t.innerHTML=""),this.storage=r,this._prevDisplayList=[],i){var l=t,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=bV(l,this,gu,S_);c.initContext(),this._insertLayer(c,gu,S_,!0),this._domRoot=t}else{this._width=xv(t,0,n),this._height=xv(t,1,n);var s=this._domRoot=Qpt(this._width,this._height);t.appendChild(s)}}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;t&&!gt(t)?r={paintAll:!!t}:r=t||{};var n=ot(r.refresh,!0),a=ot(r.refreshHover,!1);if(a&&(this._hoverLayerDirty=iA),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return jr(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},hL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(t){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=aA,n!==aA&&(!r&&n===iA&&(r=this._i.hoverlayer=this._ensureLayer(SV)),!!r)){r.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){i||(i=r.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Fu(i,l,a),u&&(l.style=f)}}i&&(Hv(i,a),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(SV)},e.prototype.paintOne=function(t,r){WR(t,r)},e.prototype._paintList=function(t,r,n){if(this._redrawId===n){var a=this._doPaintList(t,r);if(this._needsManuallyCompositing&&this._compositeManually(),a)jr(this._i,function(o){o.afterBrush&&o.afterBrush()},i0),this._paintHoverList(t);else{var i=this;OS(function(){i._paintList(t,r,n)})}}},e.prototype._compositeManually=function(){var t=this._ensureLayer(gu).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),jr(this._i,function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)},qp)},e.prototype._doPaintList=function(t,r){var n=this,a=!0;return jr(this._i,function(i){var o=!1;if(a0(i,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!nA(i)?i.createRepaintRects(t,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?n._backgroundColor:null;i.clear(!1,f,s)}a0(i,function(c){var v=n._paintPerCursor(i,c,t,s,u);a=a&&v})}},i0),Bt.wxa&&jr(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},e.prototype._paintPerCursor=function(t,r,n,a,i){var o=t.ctx;if(a)if(!a.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(t,r,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(t,r,n,null,i),o.restore();return r.drawIdx>=r.endIdx},e.prototype._paintPerCursorInRect=function(t,r,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=t.ctx,l=nA(t),u=l&&fr.getTime(),f=r.drawIdx,c=r.notClearIdx,v=c>=0?Math.min(c,f):f;v<r.endIdx;v++){var h=n[v];if(!(v<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=iA),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(Fu(s,h,o),h.setPrevPaintRect(d))}else Fu(s,h,o);if(l){var p=fr.getTime()-u;if(p>15){v++;break}}}}Hv(s,o),r.drawIdx=Math.max(v,f)},e.prototype.getLayer=function(t,r){return this._ensureLayer(t,0,r)},e.prototype._ensureLayer=function(t,r,n){r=r||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(t=gu,r=0);var i=oA(this._i,t)[r];return i||(i=bV("zr_"+t+"."+r,this,t,r),this._layerConfig[t]&&wt(i,this._layerConfig[t],!0),(n||a&&t!==gu)&&(i.virtual=!0),this._insertLayer(i,t,r,!1),i.initContext()),i},e.prototype.insertLayer=function(t,r){this._insertLayer(r,t,0,!1)},e.prototype._insertLayer=function(t,r,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&Kpt(t)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(u=oA(i,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),oA(i,r)[n]=t,!a&&!t.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(t.dom,v.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(t,r){return jr(this._i,function(n,a){t.call(r,n,a)})},e.prototype.eachBuiltinLayer=function(t,r){return jr(this._i,function(n,a){t.call(r,n,a)},qp)},e.prototype.eachOtherLayer=function(t,r){return jr(this._i,function(n,a){t.call(r,n,a)},hL)},e.prototype.getLayers=function(){var t={};return jr(this._i,function(r,n,a){t[r.id]=r}),t},e.prototype._updateLayerStatus=function(t,r){var n=this;if(n._singleCanvas)for(var a=1;a<t.length;a++){var i=t[a];if(i.zlevel!==t[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}jr(n._i,function(g){g.__dirty=!1,a0(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},i0);for(var o,s=null,l=null,u=!1,f=0,c=t.length;f<c;f++){var i=t[f],v=i.zlevel,h=i.incremental,d=void 0;if(o!==v&&(o=v,u=!1),h?(u=!0,d=Out):d=u?Eut:S_,(!s||v!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(v,d),l=null,!s.__builtin__)){Bb("ZLevel "+v+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=tgt(s,h),!l.used))if(l.used=!0,!r&&l.first===i.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&Sn&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}jr(n._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var b=S.endIdxNew;(nA(g)?b<S.drawIdx:b!==S.endIdx||!b||t[b-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=b?t[b-1].id:NaN}}g.__dirty&&(a0(g,function(x){x.drawIdx=x.startIdx}),n._hoverLayerDirty===aA&&(n._hoverLayerDirty=qpt))},i0)},e.prototype.clear=function(){return jr(this._i,function(t){t.clear(),L$(t)},qp),this},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,jr(this._i,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?wt(n[t],r,!0):n[t]=r,jr(this._i,function(a,i){wt(a,n[i],!0)})}},e.prototype.delLayer=function(t){for(var r=this._i.layerStack,n=this._i.layers,a=r.length-1;a>=0;a--){var i=r[a];if(i.zl===t){var o=n[t][i.zl2];if(o.__builtin__)continue;if(r.splice(a,1),n[t][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;t!=null&&(a.width=t),r!=null&&(a.height=r),t=xv(i,0,a),r=xv(i,1,a),n.style.display="",(this._width!==t||r!==this._height)&&(n.style.width=t+"px",n.style.height=r+"px",jr(this._i,function(o){o.resize(t,r)}),this.refresh({paintAll:!0})),this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this._ensureLayer(gu).resize(t,r)}return this},e.prototype.clearLayer=function(t){D(this._i.layers[t],function(r){r&&!r.__builtin__&&r.clear()})},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[gu][0].dom;var r=new D$("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 a=r.dom.width,i=r.dom.height;jr(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Fu(n,f,o)}Hv(n,o)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function rgt(e){e.registerPainter("canvas",egt)}var ngt=function(e){G(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 so(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new ht,a=Fe("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Fe(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=V.color.neutral00,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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t}(ne);function Sh(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=dh(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(dh(e,t,r[o]));return i.join(" ")}}function O$(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var Wy=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o,s){this.removeAll();var l=Fe(r,-1,-1,2,2,null,s);l.attr({z2:ot(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=agt,this._symbolType=r,this.add(l)},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(){as(this.childAt(0))},t.prototype.downplay=function(){is(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):jt(h,d,s,n),Ia(h)}if(this._updateCommon(r,n,l,a,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,de(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var m=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=ar(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=hc(r.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),w=x.fill;if(s instanceof dr){var A=s.style;s.useStyle(U({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},x))}else s.__isEmptyBrush?s.useStyle(U({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var M=o&&o.useNameLabel;hr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:w,defaultOpacity:x.opacity});function E(I){return M?r.getName(I):Sh(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),xe(this,v,h,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=mt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Tl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Tl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return ed(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t}(ht);function agt(e,t){this.parent.drift(e,t)}function o0(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function xV(e){return e!=null&&!gt(e)&&(e={isIgnore:e}),e||{}}function wV(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:ar(t),cursorStyle:t.get("cursor")}}function TV(e,t,r,n,a,i,o){var s=new e(t,r,n,a);return s.setPosition(i),t.setItemGraphicEl(r,s),o.add(s),s}var $y=function(){function e(t){this.group=new ht,this._SymbolCtor=t||Wy}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=xV(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=wV(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var v=f(c);o0(t,v,c,r)&&TV(o,t,c,l,u,v,n)}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!o0(t,d,c,r)){n.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):jt(h,y,a)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(t){var r=this._data;if(r)for(var n=this,a=r.getStore(),i=0,o=a.count();i<o;i++){var s=r.getItemGraphicEl(i),l=n._getSymbolPoint(i);o0(r,l,i,t)?(s=s||TV(n._SymbolCtor,r,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wV(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n,a){this._progressiveEls=[],a=xV(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Xh)}for(var o=t.start;o<t.end;o++){var s=r.getItemLayout(o);if(o0(r,s,o,a)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},e.prototype.eachRendered=function(t){zl(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function R$(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=igt(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=W(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return ss(t,c[0])&&(v=!0,c[0]=h),ss(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function igt(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Vt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function I$(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function Ca(e,t){return!isFinite(e)||!isFinite(t)}var ogt=typeof Float32Array!==Fh?Float32Array:void 0,sgt=typeof Float64Array!==Fh?Float64Array:void 0;function Li(e){return xI({ctor:ogt},e).arr}function xI(e,t){var r=e.arr,n=e.ctor;if(t>Cg&&(t=Cg),!r||e.typed&&r.length<t){var a=void 0;if(n)try{a=new n(t),e.typed=!0,r&&a.set(r)}catch{}if(!a&&(a=[],e.typed=!1,r))for(var i=0,o=r.length;i<o;i++)a[i]=r[i];e.arr=a}return e}function lgt(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function ugt(e,t,r,n,a,i,o,s){for(var l=lgt(e,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=R$(a,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var A=y[x],T=y[x+1],C=m[w],M=m[w+1];(isNaN(A)||isNaN(T))&&(A=C,T=M),u.push(A,T),f.push(C,M),c.push(r[x],r[x+1]),v.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var E=S.idx,L=g.dataDimsForPoint,R=a.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);w=E*2,u.push(R[0],R[1]),f.push(m[w],m[w+1]);var I=I$(g,a,t,E);c.push(I[0],I[1]),v.push(n[w],n[w+1]),p.push(t.getRawIndex(E));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(tt,_t){return p[tt]-p[_t]});for(var O=u.length,N=Li(O),P=Li(O),B=Li(O),z=Li(O),H=[],_=0;_<d.length;_++){var F=d[_],$=_*2,j=F*2;N[$]=u[j],N[$+1]=u[j+1],P[$]=f[j],P[$+1]=f[j+1],B[$]=c[j],B[$+1]=c[j+1],z[$]=v[j],z[$+1]=v[j+1],H[_]=h[F]}return{current:N,next:P,stackedOnCurrent:B,stackedOnNext:z,status:H}}var Ts=Math.min,As=Math.max;function dL(e,t,r,n,a,i,o,s,l){for(var u,f,c,v,h,d,p=r,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(Ca(y,m)){if(l){p+=i;continue}break}if(p===r)e[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g<n;)g++,b+=i,p+=i,x=t[b*2],w=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var A=g+1;if(l)for(;Ca(x,w)&&A<n;)A++,b+=i,x=t[b*2],w=t[b*2+1];var T=.5,C=0,M=0,E=void 0,L=void 0;if(A>=n||Ca(x,w))h=y,d=m;else{C=x-u,M=w-f;var R=y-u,I=x-y,O=m-f,N=w-m,P=void 0,B=void 0;if(s==="x"){P=Math.abs(R),B=Math.abs(I);var z=C>0?1:-1;h=y-z*P*o,d=m,E=y+z*B*o,L=m}else if(s==="y"){P=Math.abs(O),B=Math.abs(N);var H=M>0?1:-1;h=y,d=m-H*P*o,E=y,L=m+H*B*o}else P=Math.sqrt(R*R+O*O),B=Math.sqrt(I*I+N*N),T=B/(B+P),h=y-C*o*(1-T),d=m-M*o*(1-T),E=y+C*o*T,L=m+M*o*T,E=Ts(E,As(x,y)),L=Ts(L,As(w,m)),E=As(E,Ts(x,y)),L=As(L,Ts(w,m)),C=E-y,M=L-m,h=y-C*P/B,d=m-M*P/B,h=Ts(h,As(u,y)),d=Ts(d,As(f,m)),h=As(h,Ts(u,y)),d=As(d,Ts(f,m)),C=y-h,M=m-d,E=y+C*B/P,L=m+M*B/P}e.bezierCurveTo(c,v,h,d,y,m),c=E,v=L}else e.lineTo(y,m)}u=y,f=m,p+=i}return g}var P$=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),fgt=function(e){G(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:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new P$},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ca(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ca(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=dL(r,a,i,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 a=this.path,i=a.data,o=qi.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var v=i[c++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?IS(s,h,p,y,r,f):IS(l,d,g,m,r,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?sr(l,d,g,m,w):sr(s,h,p,y,w);return u?[r,S]:[S,r]}}s=y,l=m;break}}},t}(Rt),cgt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(P$),N$=function(e){G(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 cgt},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ca(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ca(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=dL(r,a,o,s,s,1,n.smooth,l,n.connectNulls);dL(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Rt);function k$(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Lt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=e.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ct(a)?function(g){a(g,c)}:null;de(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function B$(e,t,r){var n=e.getArea(),a=Yt(n.r0,1),i=Yt(n.r,1),o=new Vr({shape:{cx:Yt(e.cx,1),cy:Yt(e.cy,1),r0:a,r:i,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=a,de(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function Of(e,t,r,n,a){if(e){if(e.type==="polar")return B$(e,t,r);if(e.type==="cartesian2d")return k$(e,t,r,n,a)}else return null;return null}var Fg=0,Yg=1,jg=2;function wv(e,t,r){e?t.setClipPath(r):t.removeClipPath()}function z$(e){var t=e.coordinateSystem;if(e.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function Rf(e,t){return e.type===t}function AV(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"&&!!e.getViewRect}function V$(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||nt(e,"text")))}function G$(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},nt(n,"text")&&(o.text=n.text),nt(n,"rich")&&(o.rich=n.rich),nt(n,"textFill")&&(o.fill=n.textFill),nt(n,"textStroke")&&(o.stroke=n.textStroke),nt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),nt(n,"fontSize")&&(o.fontSize=n.fontSize),nt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),nt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=nt(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),nt(n,"textPosition")&&(a.position=n.textPosition),nt(n,"textOffset")&&(a.offset=n.textOffset),nt(n,"textRotation")&&(a.rotation=n.textRotation),nt(n,"textDistance")&&(a.distance=n.textDistance)}return CV(o,e),D(o.rich,function(l){CV(l,l)}),{textConfig:a,textContent:i}}function CV(e,t){t&&(t.font=t.textFont||t.font,nt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),nt(t,"textAlign")&&(e.align=t.textAlign),nt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),nt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),nt(t,"textWidth")&&(e.width=t.textWidth),nt(t,"textHeight")&&(e.height=t.textHeight),nt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),nt(t,"textPadding")&&(e.padding=t.textPadding),nt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),nt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),nt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),nt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),nt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),nt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),nt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function MV(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 a=n.textPosition.indexOf("inside")>=0,i=e.fill||V.color.neutral99;DV(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||V.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||V.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){DV(s,s)}),n}function DV(e,t){t&&(nt(t,"fill")&&(e.textFill=t.fill),nt(t,"stroke")&&(e.textStroke=t.fill),nt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),nt(t,"font")&&(e.font=t.font),nt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),nt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),nt(t,"fontSize")&&(e.fontSize=t.fontSize),nt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),nt(t,"align")&&(e.textAlign=t.align),nt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),nt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),nt(t,"width")&&(e.textWidth=t.width),nt(t,"height")&&(e.textHeight=t.height),nt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),nt(t,"padding")&&(e.textPadding=t.padding),nt(t,"borderColor")&&(e.textBorderColor=t.borderColor),nt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),nt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),nt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),nt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),nt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),nt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),nt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),nt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),nt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),nt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function LV(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function EV(e){for(var t=Lr(),r=Lr(),n=0;n<e.length;){var a=e[n++],i=e[n++];Ca(a,i)||(b2(t,a),b2(r,i))}return[t,r]}function OV(e,t){var r=EV(e),n=r[0],a=r[1],i=EV(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(a[1]-s[1]))}function RV(e){return Vt(e)?e:e?.5:0}function vgt(e,t,r){if(r.valueDim==null)return[];for(var n=t.count(),a=Li(n*2),i=0;i<n;i++){var o=I$(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Cs(e,t,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(a){for(l=0;l<e.length;l+=2){var h=t||e;Ca(h[l],h[l+1])||v.push(e[l],e[l+1])}e=v}for(l=0;l<e.length-2;l+=2)switch(c[0]=e[l+2],c[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function hgt(e,t){var r=[],n=e.length,a,i;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=jO(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function dgt(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=W(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=hgt(u,a==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";D(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new lc(0,0,0,0,v,!0);return m[a]=p,m[a+"2"]=g,m}}}function pgt(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&ggt(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){l.tick.offInterval||(s[ad(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function ggt(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Wy.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ygt(e){for(var t=e.length/2;t>0&&Ca(e[t*2-2],e[t*2-1]);t--);return t-1}function IV(e,t){return[e[t*2],e[t*2+1]]}function mgt(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!Ca(o,e[u*2+1-a])){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function H$(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 sA(e,t,r,n){if(Rf(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=H$(n)?function(h,d){e._endLabelOnDuring(h,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=k$(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 c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return B$(t,r,n)}function _gt(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var Sgt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new ht,n=new $y;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=et(this._changePolyState,this)},t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&r.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=R$(i,s,_),b=m&&vgt(i,s,S),x=r.get("showSymbol"),w=r.get("connectNulls"),A=x&&!c&&pgt(r,s,i),T=this._data;T&&T.eachItemGraphicEl(function(Q,st){Q.__temp&&(o.remove(Q),T.setItemGraphicEl(st,null))}),x||h.remove(),o.add(g);var C=c?!1:r.get("step"),M;i&&i.getArea&&r.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var E=dgt(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&C===this._step))x&&h.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,M),C&&(b&&(b=Cs(b,f,i,C,w)),f=Cs(f,null,i,C,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,Cf(E)),g.setClipPath(sA(this,i,!0,r));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,Cf(E));var L=g.getClipPath();if(L){var R=sA(this,i,!1,r);de(L,{shape:R.shape},r)}else g.setClipPath(sA(this,i,!0,r));x&&h.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),(!LV(this._stackedOnPoints,b)||!LV(this._points,f))&&(y?this._doUpdateAnimation(s,b,i,a,C,_,w):(C&&(b&&(b=Cs(b,f,i,C,w)),f=Cs(f,null,i,C,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var I=r.getModel("emphasis"),O=I.get("focus"),N=I.get("blurScope"),P=I.get("disabled");if(d.useStyle(pt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),nr(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}mt(d).seriesIndex=r.seriesIndex,xe(d,O,N,P);var z=RV(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:H,connectNulls:w}),p){var F=s.getCalculationInfo("stackedOnSeries"),$=0;p.useStyle(pt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&($=RV(F.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:$,smoothMonotone:H,connectNulls:w}),nr(p,r,"areaStyle"),mt(p).seriesIndex=r.seriesIndex,xe(p,O,N,P)}var j=this._changePolyState;s.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=C,this._valueOrigin=_;var tt=r.get("triggerEvent"),_t=r.get("triggerLineEvent"),lt=_t===!0||tt===!0||tt==="line",it=_t===!0||tt===!0||tt==="area";this.packEventData(r,d,lt),p&&this.packEventData(r,p,it)},t.prototype.packEventData=function(r,n,a){mt(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Sf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Ca(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new Wy(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ee.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Sf(o,i);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 ee.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;jS(this._polyline,r),n&&jS(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new fgt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new N$({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ct(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ct(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=h.x):(y=x.y+x.height,m=x.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var A=ct(c)?c(d):f*w+v,T=p.getSymbolPath(),C=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(H$(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 zt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=ygt(l);f>=0&&(hr(s,ar(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?O$(o,h):Sh(o,c)},enableTextSetter:!0},_gt(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),v=a.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",A=mgt(c,S,w),T=A.range,C=T[1]-T[0],M=void 0;if(C>=1){if(C>1&&!h){var E=IV(c,T[0]);u.attr({x:E[0]+b,y:E[1]+x}),o&&(M=v.getRawValue(T[0]))}else{var E=f.getPointOn(S,w);E&&u.attr({x:E[0]+b,y:E[1]+x});var L=v.getRawValue(T[0]),R=v.getRawValue(T[1]);o&&(M=zY(a,d,L,R,A.t))}i.lastFrameIndex=T[0]}else{var I=r===1||i.lastFrameIndex>0?T[0]:0,E=IV(c,I);o&&(M=v.getRawValue(I)),u.attr({x:E[0]+b,y:E[1]+x})}if(o){var O=qh(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=ugt(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Cs(v.stackedOnCurrent,v.current,a,o,l),h=Cs(v.current,null,a,o,l),g=Cs(v.stackedOnNext,v.next,a,o,l),p=Cs(v.next,null,a,o,l)),OV(h,p)>3e3||f&&OV(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),jt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),jt(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=r.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<m.length;A++){var T=m[A].el,C=m[A].ptIdx*2;T.x=w[C],T.y=w[C+1],T.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ee);function Xy(e,t){return{seriesType:e,plan:vc(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=W(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ss(n,s[0])&&(s[0]=u),ss(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Li(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(c,_),y[1]=f.get(v,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var bgt={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},nearest:function(e){return e[0]}},xgt=function(e){return Math.round(e.length/2)};function U$(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;K(i)?d=bgt[i]:ct(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,d,xgt))}}}}}function wgt(e){e.registerChartView(Sgt),e.registerSeriesModel(ngt),e.registerLayout(Xy("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,U$("line"))}var F$=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"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}(ka),pL=null;function Tgt(e){pL||(pL=e)}function Zy(){return pL}var Sx="expandAxisBreak",Y$="collapseAxisBreak",j$="toggleAxisBreak",wI="axisbreakchanged",Agt={type:Sx,event:wI,update:"update",refineEvent:TI},Cgt={type:Y$,event:wI,update:"update",refineEvent:TI},Mgt={type:j$,event:wI,update:"update",refineEvent:TI};function TI(e,t,r,n){var a=[];return D(e,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function Dgt(e){e.registerAction(Agt,t),e.registerAction(Cgt,t),e.registerAction(Mgt,t);function t(r,n){var a=[],i=kv(n,r);function o(s,l){D(i[s],function(u){var f=u.updateAxisBreaks(r);D(f.breaks,function(c){var v;a.push(pt((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var Zs=Math.PI,Lgt=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Egt=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],If=Tt(),W$=Tt(),$$=function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},e}();function Ogt(e,t,r,n){var a=r.axis,i=t.ensureRecord(r),o=[],s,l=AI(e.axisName)&&yh(e.nameLocation);D(n,function(d){var p=Ji(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?qn(kd,g.transform):ac(kd),p.transform&&Wn(kd,kd,p.transform),dt.copy(s0,p.localRect),s0.applyTransform(kd),s?s.union(s0):dt.copy(s=new dt(0,0,0,0),s0))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new dt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var kd=Se(),s0=new dt(0,0,0,0),X$=function(e,t,r,n,a,i){if(yh(e.nameLocation)){var o=i.stOccupiedRect;o&&Z$(lpt({},o,i.transGroup.transform),n,a)}else q$(i.labelInfoList,i.dirVec,n,a)};function Z$(e,t,r){var n=new yt;mx(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&sL(t,n)}function q$(e,t,r,n){for(var a=yt.dot(n,t)>=0,i=0,o=e.length;i<o;i++){var s=e[a?i:o-1-i];s.label.ignore||Z$(s,r,n)}}var ln=function(){function e(t,r,n,a){this.group=new ht,this._axisModel=t,this._api=r,this._local={},this._shared=a||new $$(X$),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=ot(t.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=ot(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ot(t.nameDirection,1),tickDirection:ot(t.tickDirection,1),labelDirection:ot(t.labelDirection,1),labelOffset:ot(t.labelOffset,0),silent:ot(t.silent,!0),axisName:a,nameLocation:wn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:AI(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ht({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new yt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),D(Rgt,function(a){t[a]&&Igt[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var a=ZO(r-t),i,o;return mf(a)?(o=n>0?"top":"bottom",i="center"):mf(a-Zs)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Zs?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,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}(),Rgt=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Igt={axisLine:function(e,t,r,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(Oe(f,f,u),Oe(c,c,u));var h=U({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&ZS(n.axis.scale))Zy().buildAxisBreakLine(n,a,i,d);else{var p=new He(U({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));hh(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);K(g)&&(g=[g,g]),(K(y)||Vt(y))&&(y=[y,y]);var m=hc(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];D([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=Fe(g[x],-_/2,-S/2,_,S,h.stroke,!0),A=b.r+b.offset,T=v?c:f;w.attr({rotation:b.rotate,x:T[0]+A*Math.cos(e.rotation),y:T[1]-A*Math.sin(e.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(e,t,r,n,a,i,o,s){var l=NV(t,a,s);l&&PV(e,t,r,n,a,i,o,Ja.estimate)},axisTickLabelDetermine:function(e,t,r,n,a,i,o,s){var l=NV(t,a,s);l&&PV(e,t,r,n,a,i,o,Ja.determine);var u=Bgt(e,a,i,n);kgt(e,t.labelLayoutList,u),zgt(e,a,i,n,e.tickDirection)},axisName:function(e,t,r,n,a,i,o,s){var l=r.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(AI(u)){var f=e.nameLocation,c=e.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new yt(0,0),y=new yt(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+c*h,y.y=c);var m=Se();y.transform(ps(m,m,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Zs/180);var S,b;yh(f)?S=ln.innerTextLayout(e.rotation,_??e.rotation,c):(S=Pgt(e.rotation,f,_||0,d),b=e.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=v.getFont(),w=n.get("nameTruncate",!0)||{},A=w.ellipsis,T=Xr(e.raw.nameTruncateMaxWidth,w.maxWidth,b),C=s.nameMarginLevel||0,M=new zt({x:g.x,y:g.y,rotation:S.rotation,silent:ln.isLabelSilent(n),style:oe(v,{text:u,font:x,overflow:"truncate",width:T,ellipsis:A,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ys({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var E=ln.makeAxisEventDataBase(n);E.targetType="axisName",E.name=u,mt(M).eventData=E}i.add(M),M.updateTransform(),t.nameEl=M;var L=l.nameLayout=Ji({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:yh(f)?Lgt[C]:Egt[C]});if(l.nameLocation=f,a.add(M),M.decomposeTransform(),e.shouldNameMoveOverlap&&L){var R=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,L,y,R)}}}};function PV(e,t,r,n,a,i,o,s){Q$(t)||Vgt(e,t,a,s,n,o);var l=t.labelLayoutList;Ggt(e,n,l,i),Fgt(n,e.rotation,l);var u=e.optionHideOverlap;Ngt(n,l,u),u&&v$(Xt(l,function(f){return f&&!f.label.ignore})),Ogt(e,r,n,l)}function Pgt(e,t,r,n){var a=ZO(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return mf(a-Zs/2)?(o=l?"bottom":"top",i="center"):mf(a-Zs*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Zs*1.5&&a>Zs/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Ngt(e,t,r){var n=e.axis,a=e.get(["axisLabel","customValues"]);if(Xht(n))return;function i(u,f,c){var v=Ji(t[f]),h=Ji(t[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&a)return;var p=If(v.label).labelInfo.tick;if(Uy(d)&&p.notNice||Kr(d)&&p.offInterval){ev(v.label);return}}if(u===!1||v.suggestIgnore){ev(v.label);return}if(h.suggestIgnore){ev(h.label);return}var g=.1;if(!r){var y=[0,0,0,0];v=lL({marginForce:y},v),h=lL({marginForce:y},h)}mx(v,h,null,{touchThreshold:g})&&ev(u?h.label:v.label)}}var o=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),l=t.length;i(o,0,1),i(s,l-1,l-2)}function kgt(e,t,r){e.showMinorTicks||D(t,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=W$(i),s=If(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){ev(i);return}}})}function ev(e){e&&(e.ignore=!0)}function K$(e,t,r,n,a){for(var i=[],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&&(Oe(o,o,t),Oe(s,s,t));var f=new He({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});hh(f.shape,f.style.lineWidth),f.anid=a+"_"+e[l].tickValue,i.push(f);var c=W$(f);c.onBand=!!e[l].onBand,c.tickValue=e[l].tickValue}return i}function Bgt(e,t,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=e.tickDirection*i.get("length"),u=a.getTicksCoords(),f=K$(u,r.transform,l,pt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function zgt(e,t,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=pt(l.getLineStyle(),pt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=K$(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)t.add(v[h])}}function NV(e,t,r){if(Q$(e)){var n=e.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(t.remove(e.labelGroup),gL(e,null,null,null))}return!0}function Vgt(e,t,r,n,a,i){var o=a.axis,s=Xr(e.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new ht;r.add(l);var u=v1(n);if(!s||o.scale.isBlank()){gL(t,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),v=(Xr(e.raw.labelRotate,f.get("rotate"))||0)*Zs/180,h=ln.innerTextLayout(e.rotation,v,e.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;D(c,function(S,b){var x,w=S.tick,A=S.formattedLabel,T=S.rawLabel,C=f,M=ad(o.scale,w);if(d&&d[M]){var E=d[M];gt(E)&&E.textStyle&&(C=new Ot(E.textStyle,f,a.ecModel))}var L=C.getTextColor()||a.get(["axisLine","lineStyle","color"]),R=C.getShallow("align",!0)||h.textAlign,I=ot(C.getShallow("alignMinLabel",!0),R),O=ot(C.getShallow("alignMaxLabel",!0),R),N=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||h.textVerticalAlign,P=ot(C.getShallow("verticalAlignMinLabel",!0),N),B=ot(C.getShallow("verticalAlignMaxLabel",!0),N),z=10+(((x=w.time)===null||x===void 0?void 0:x.level)||0);y=Math.min(y,z),m=Math.max(m,z);var H=new zt({x:0,y:0,rotation:0,silent:ln.isLabelSilent(a),z2:z,style:oe(C,{text:A,align:b===0?I:b===c.length-1?O:R,verticalAlign:b===0?P:b===c.length-1?B:N,fill:ct(L)?L(o.type==="category"?T:o.type==="value"?M+"":M,b):L})});H.anid="label_"+M;var F=If(H);if(F.labelInfo=S,F.layoutRotation=h.rotation,ys({el:H,componentModel:a,itemName:A,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:T,tickIndex:b}}),g){var $=ln.makeAxisEventDataBase(a);$.targetType="axisLabel",$.value=T,$.tickIndex=b;var j=S.tick.break;if(j){var tt=j.parsedBreak;$.break={start:tt.vmin,end:tt.vmax}}o.type==="category"&&($.dataIndex=M),mt(H).eventData=$,j&&Ugt(a,i,H,j)}p.push(H),l.add(H)});var _=W(p,function(S){return{label:S,priority:If(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});gL(t,_,l,u)}function Q$(e){return!!e.labelLayoutList}function gL(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function Ggt(e,t,r,n){var a=t.get(["axisLabel","margin"]);D(r,function(i,o){var s=Ji(i);if(s){var l=s.label,u=If(l);s.suggestIgnore=l.ignore,l.ignore=!1,Wi(yo,Hgt);var f=t.axis;yo.x=f.dataToCoord(ad(f.scale,u.labelInfo.tick)),yo.y=e.labelOffset+e.labelDirection*a,yo.rotation=u.layoutRotation,n.add(yo),yo.updateTransform(),n.remove(yo),yo.decomposeTransform(),Wi(l,yo),l.markRedraw(),y1(s,!0),Ji(s)}})}var yo=new Lt,Hgt=new Lt;function AI(e){return!!e}function Ugt(e,t,r,n){r.on("click",function(a){var i={type:Sx,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(i)})}function Fgt(e,t,r){var n=Ue();if(n){var a=n.retrieveAxisBreakPairs(r,function(o){return o&&If(o.label).labelInfo.tick.break},!0),i=e.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&D(a,function(o){Zy().adjustBreakLabelPair(e.axis.inverse,t,[Ji(r[o[0]]),Ji(r[o[1]])])})}}function _1(e,t,r){r=r||{};var n=t.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Xr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function Ygt(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function jgt(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,Pe).models[0];t[n]=i}),t}function Wgt(e,t,r,n,a,i){for(var o=_1(e,r),s=!1,l=!1,u=0;u<t.length;u++)RW(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new ln(r,n,o,a)}function $gt(e,t,r){var n=_1(t,r);e.updateCfg(n)}function Xgt(e){return e.dim+"_"+e.index}function Zgt(){idt("liPosMinGap",qgt)}function qgt(e,t,r){var n=rt(),a=r.serUids,i=r.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Mj(f);function v(_){gx(e,t.sers,function(S){var b=S.getRawData(),x=b.getDimensionIndex(b.mapDimension(s.dim));x>=0&&_(x,S,b.getStore())})}var h=0;if(v(function(_,S,b){n.set(S.uid,1),(!a||!a.hasKey(S.uid))&&(o=!0),h+=b.count()}),(!a||a.keys().length!==n.keys().length)&&(o=!0),!o&&i!=null){t.liPosMinGap=i;return}xI(yu,h);var d=0;v(function(_,S,b){for(var x=0,w=b.count();x<w;++x){var A=b.get(_,x);isFinite(A)&&(!f||Dj(c,A))&&(u&&(A=l.transformIn(A,null)),yu.arr[d++]=A)}});var p=yu.typed?yu.arr.subarray(0,d):(yu.arr.length=d,yu.arr);yu.typed?p.sort():Sr(p);for(var g=1/0,y=1;y<d;++y){var m=p[y]-p[y-1];m>0&&m<g&&(g=m)}r.liPosMinGap=t.liPosMinGap=Oa(g)?g:d>0?UW:Qht,r.serUids=n}var yu=xI({ctor:sgt},50);function bx(e){return function(t,r){var n=Hr(t,{fromStat:{key:e}});if(Oa(n.w2))return[-n.w2/2,n.w2/2]}}function rf(e){return e+c1}function dc(e,t){return e+c1+t}function CI(e){return Zgt(),{liPosMinGap:!Kr(e.scale)}}var Gi="bar",Wg="pictorialBar";function J$(e,t,r,n){vI(e,{key:t,seriesType:r,coordSysType:n,getMetrics:CI})}function tX(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var eX={left:0,right:0,top:0,bottom:0},S1=["25%","25%"],qa="cartesian2d",Kgt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var a=cc(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&Qi(r.outerBounds,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Qi(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:eX,outerBoundsContain:"all",outerBoundsClampWidth:S1[0],outerBoundsClampHeight:S1[1],backgroundColor:V.color.transparent,borderWidth:1,borderColor:V.color.neutral30},t}(Et),Qgt=Uh(),yL="__ec_stack_";function rX(e){return e.get("stack")||yL+e.seriesIndex}function Jgt(e){if(Kr(e.axis.scale)){for(var t=Hr(e.axis),r=[],n=0;n<e.count;n++)r.push(pt({stackId:yL+n},e));for(var a=nX({bandWidthResult:t,seriesInfo:r}),i=[],n=0;n<e.count;n++){var o=a[yL+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function tyt(e,t){var r=eyt(e,t);return r.columnMap=nX(r),r}function eyt(e,t){var r=dc(t,qa),n=[],a=Hr(e,{fromStat:{key:r},min:1});return Df(e,r,function(i){n.push({barWidth:J(i.get("barWidth"),a.w),barMaxWidth:J(i.get("barMaxWidth"),a.w),barMinWidth:J(i.get("barMinWidth")||(oX(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:rX(i)})}),{bandWidthResult:a,seriesInfo:n}}function nX(e){var t=e.bandWidthResult.w,r=t,n=0,a,i,o=[],s={};D(e.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var y=p.stackId;nt(s,y)||n++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=p.barWidth;_&&!m.width&&(m.width=_,_=te(r,_),r-=_);var S=p.barMaxWidth;S&&(m.maxWidth=S);var b=p.barMinWidth;b&&(m.minWidth=b);var x=p.barGap;x!=null&&(i=x);var w=p.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=Dt(35-o.length*4,15)+"%");var l=J(a,t),u=J(i,1),f=(r-l)/(n+(n-1)*u);f=Dt(f,0),D(o,function(p){var g=s[p],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=te(_,y)),m&&(_=Dt(_,m)),g.width=_,r-=_+u*_,n--}else{var _=f;y&&y<_&&(_=te(y,r)),m&&m>_&&(_=m),_!==f&&(g.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=Dt(f,0);var c=0,v;D(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return D(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:t,offset:d,width:g.width},d+=g.width*(1+u)}),h}function aX(e){return{seriesType:e,overallReset:function(t){var r=dc(e,qa);cI(t,r,function(n){var a=tyt(n,e);Df(n,r,function(i){var o=a.columnMap[rX(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function iX(e){return{seriesType:e,plan:vc(),reset:function(t){if(Ygt(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),c=ss(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(tX(i))),d=oX(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Li(b*3),w=d&&l&&Li(b*3),A=d&&Li(b),T=n.master.getRect(),C=v?T.width:T.height,M,E=S.getStore(),L=0;(M=_.next())!=null;){var R=E.get(c?g:o,M),I=E.get(s,M),O=h,N=void 0;c&&(N=+R-E.get(o,M));var P=void 0,B=void 0,z=void 0,H=void 0;if(v){var F=n.dataToPoint([R,I]);c&&(O=n.dataToPoint([N,I])[0]),P=O,B=F[1]+m,z=F[0]-O,H=y,Le(z)<p&&(z=(z<0?-1:1)*p)}else{var F=n.dataToPoint([I,R]);c&&(O=n.dataToPoint([I,N])[1]),P=F[0]+m,B=O,z=y,H=F[1]-O,Le(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[L]=P,x[L+1]=B,x[L+2]=v?z:H,w&&(w[L]=v?T.x:P,w[L+1]=v?B:T.y,w[L+2]=C),A[M]=M):S.setItemLayout(M,{x:P,y:B,width:z,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function oX(e){return e.pipelineContext&&e.pipelineContext.large}function ryt(e){return bx(dc(e,qa))}function sX(e){Qgt(e,function(){function t(r){var n=dc(r,qa);J$(e,n,r,qa),yx(n,ryt(r))}t("bar"),t("pictorialBar")})}var $g=function(e){G(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 so(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===g){_=x;break}else if(w<g)m=x;else if(m!=null&&w>g){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},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",defaultBarGap:"10%"},t}(ne);ne.registerClass($g);var nyt=function(e){G(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 so(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(r,n){var a=HY(this,r,n);return a.progressiveRender&&(a.large=!0),a},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series."+Gi,t.dependencies=["grid","polar"],t.defaultOption=Vl($g.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:V.color.primary,borderWidth:2}},realtimeSort:!1}),t}($g),ayt=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}(),b1=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new ayt},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(r.moveTo(p*o+a,g*o+i),r.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!v)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,f,c,!v),r.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(a,i,o,c,f,v)},t}(Rt);function iyt(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return zS(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=r?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),x=c+v*S(p),w="left",A="top";switch(s){case"startArc":b=f+(h-l)*_(y),x=c+(h-l)*S(y),w="center",A="top";break;case"insideStartArc":b=f+(h+l)*_(y),x=c+(h+l)*S(y),w="center",A="bottom";break;case"startAngle":b=f+d*_(p)+l0(p,l+m,!1),x=c+d*S(p)+u0(p,l+m,!1),w="right",A="middle";break;case"insideStartAngle":b=f+d*_(p)+l0(p,-l+m,!1),x=c+d*S(p)+u0(p,-l+m,!1),w="left",A="middle";break;case"middle":b=f+d*_(y),x=c+d*S(y),w="center",A="middle";break;case"endArc":b=f+(v+l)*_(y),x=c+(v+l)*S(y),w="center",A="bottom";break;case"insideEndArc":b=f+(v-l)*_(y),x=c+(v-l)*S(y),w="center",A="top";break;case"endAngle":b=f+d*_(g)+l0(g,l+m,!0),x=c+d*S(g)+u0(g,l+m,!0),w="left",A="middle";break;case"insideEndAngle":b=f+d*_(g)+l0(g,-l+m,!0),x=c+d*S(g)+u0(g,-l+m,!0),w="right",A="middle";break;default:return zS(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=A,n}}function oyt(e,t,r,n){if(Vt(n)){e.setTextConfig({rotation:n});return}else if(Y(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+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=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function l0(e,t,r){return t*Math.sin(e)*(r?-1:1)}function u0(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Ei(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:W(n,function(i){return $i(i,a)})}}var lA=Math.max,uA=Math.min,syt=function(e){G(t,e);function t(){var r=e.call(this)||this;return r.type=Gi,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},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){zl(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,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=lyt(r,u);h&&this._enableRealtimeSort(h,s,a);var d=r.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function A(M){var E=f0[u.type](s,M);if(!E)return null;var L=pyt(u,c,E);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var E=s.getItemModel(M),L=f0[u.type](s,M,E);if(L&&(y&&A(M),!(!s.hasValue(M)||!GV[u.type](L)))){var R=!1;d&&(R=kV[u.type](p,L));var I=BV[u.type](r,s,M,L,c,v,f.model,!1,g);h&&(I.forceLabelAnimation=!0),HV(I,s,M,E,L,r,c,u.type==="polar"),x?I.attr({shape:L}):h?zV(h,v,I,L,M,c,!1,!1):de(I,{shape:L},r,M),s.setItemGraphicEl(M,I),o.add(I),I.ignore=R}}).update(function(M,E){var L=s.getItemModel(M),R=f0[u.type](s,M,L);if(R){if(y){var I=void 0;b.length===0?I=A(E):(I=b[E],I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[M]=I);var O=f0[u.type](s,M),N=uX(c,O,u);jt(I,{shape:N},v,M)}var P=l.getItemGraphicEl(E);if(!s.hasValue(M)||!GV[u.type](R)){o.remove(P);return}var B=!1;d&&(B=kV[u.type](p,R),B&&o.remove(P));var z=P&&(P.type==="sector"&&g||P.type==="sausage"&&!g);if(z&&(P&&Uo(P,r,E),P=null),P?Ia(P):P=BV[u.type](r,s,M,R,c,v,f.model,!0,g),h&&(P.forceLabelAnimation=!0),w){var H=P.getTextContent();if(H){var F=qh(H);F.prevValue!=null&&(F.prevValue=F.value)}}else HV(P,s,M,L,R,r,c,u.type==="polar");x?P.attr({shape:R}):h?zV(h,v,P,R,M,c,!0,w):jt(P,{shape:R},r,M,null),s.setItemGraphicEl(M,P),P.ignore=B,o.add(P)}}).remove(function(M){var E=l.getItemGraphicEl(M);E&&Uo(E,r,M)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new ht);T.removeAll();for(var C=0;C<S.length;++C)T.add(S[C]);o.add(T),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),FV(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),FV(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Of(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:W(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Uo(i,r,mt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Gi,t}(ee),kV={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 a=e.x+e.width,i=e.y+e.height,o=lA(t.x,e.x),s=uA(t.x+t.width,a),l=lA(t.y,e.y),u=uA(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},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 a=uA(t.r,e.r),i=lA(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},BV={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new Lt({shape:U({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?b1:Vr,f=new u({shape:n,z2:1});f.name="item";var c=lX(a);if(f.calculateTextPosition=iyt(c,{isRoundCap:u===b1}),i){var v=f.shape,h=a?"r":"endAngle",d={};v[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?jt:de)(f,{shape:d},i)}return f}};function lyt(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 zV(e,t,r,n,a,i,o,s){var l,u;i?(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?jt:de)(r,{shape:l},t,a,null);var f=t?e.baseAxis.model:null;(o?jt:de)(r,{shape:u},f,a)}function VV(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var uyt=["x","y","width","height"],fyt=["cx","cy","r","startAngle","endAngle"],GV={cartesian2d:function(e){return!VV(e,uyt)},polar:function(e){return!VV(e,fyt)}},f0={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var a=r?vyt(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},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 cyt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function lX(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 HV(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var f=e.shape,c=Ei(n.getModel("itemStyle"),f,!0);U(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?gyt(a,i.coordinateSystem):yyt(a,i.coordinateSystem),d=ar(n);hr(e,d,{labelFetcher:i,labelDataIndex:r,defaultText:Sh(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,oyt(e,g==="outside"?h:g,lX(o),n.get(["label","rotate"]))}k9(p,d,i.getRawValue(r),function(m){return O$(t,m)});var y=n.getModel(["emphasis"]);xe(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),nr(e,n),cyt(a)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function vyt(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var hyt=function(){function e(){}return e}(),UV=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new hyt},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(Rt);function FV(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=n?Vi(e):0;if(u){var c=new UV({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var v=new UV({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(a.getVisual("style")),v.style.stroke=null,mt(v).seriesIndex=e.seriesIndex,e.get("silent")||(v.on("mousedown",YV),v.on("mousemove",YV)),r&&r.push(v)}var YV=fx(function(e){var t=this,r=dyt(t,e.offsetX,e.offsetY);mt(t).dataIndex=r>=0?r:null},30,!1);function dyt(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=i.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function uX(e,t,r){if(Rf(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function pyt(e,t,r){var n=e.type==="polar"?Vr:Lt;return new n({shape:uX(t,r,e),silent:!0,z2:0})}function gyt(e,t){if(e.height===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"bottom":"top"}return e.height>0?"bottom":"top"}function yyt(e,t){if(e.width===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"left":"right"}return e.width>=0?"right":"left"}function myt(e){e.registerChartView(syt),e.registerSeriesModel(nyt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,aX(Gi)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,iX(Gi)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,U$(Gi)),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})}),sX(e)}function qy(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function sd(e,t,r){t=Y(t)&&{coordDimensions:t}||U({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=rd(n,t).dimensions,i=new qr(a,e);return i.initData(n,r),i}var ld=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}(),dl="pie",_yt=Tt(),fX=function(e){G(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 ld(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return sd(this,{coordDimensions:["value"],encodeDefaulter:Mt(kR,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=_yt(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=LY(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){_f(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series."+dl,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(ne);dft({fullType:fX.type,getCoord2:function(e){return e.getShallow("center")}});var Syt=Math.PI/180;function jV(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-r),b=n+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/y)*x)),A=t+(w+_.len2)*a,T=A-_.label.x,C=_.targetTextWidth-T*a;cX(_,C,!0),_.label.x=A}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>r?y:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,A=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=A,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var v=e.length,h=0;h<v;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}uL(e,1,l,l+o)&&c(e)}function byt(e,t,r,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<e.length;v++){var h=e[v].label;fA(e[v])||(h.x<t?(f=Math.min(f,h.x),l.push(e[v])):(c=Math.max(c,h.x),u.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!fA(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,cX(d,g,!1)}}jV(u,t,r,n,1,a,i,o,s,c),jV(l,t,r,n,-1,a,i,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!fA(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=h.y}}}function cX(e,t,r){if(e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,h=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",h)}vX(i,n)}}}function vX(e,t){WV.rect=e,c$(WV,t,xyt)}var xyt={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},WV={};function fA(e){return e.position==="center"}function wyt(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*Syt,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),A=w.shape,T=w.getTextContent(),C=w.getTextGuideLine(),M=t.getItemModel(x),E=M.getModel("label"),L=E.get("position")||M.get(["emphasis","label","position"]),R=E.get("distanceToLabelLine"),I=E.get("alignTo"),O=J(E.get("edgeDistance"),u),N=E.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var P=M.getModel("labelLine"),B=P.get("length");B=J(B,u);var z=P.get("length2");if(z=J(z,u),Math.abs(A.endAngle-A.startAngle)<o){D(T.states,h),T.ignore=!0,C&&(D(C.states,h),C.ignore=!0);return}if(d(T)){var H=(A.startAngle+A.endAngle)/2,F=Math.cos(H),$=Math.sin(H),j,tt,_t,lt;n=A.cx,a=A.cy;var it=L==="inside"||L==="inner";if(L==="center")j=A.cx,tt=A.cy,lt="center";else{var Q=(it?(A.r+A.r0)/2*F:A.r*F)+n,st=(it?(A.r+A.r0)/2*$:A.r*$)+a;if(j=Q+F*3,tt=st+$*3,!it){var Z=Q+F*(B+l-A.r),at=st+$*(B+l-A.r),Ht=Z+(F<0?-1:1)*z,Ct=at;I==="edge"?j=F<0?f+O:f+u-O:j=Ht+(F<0?-R:R),tt=Ct,_t=[[Q,st],[Z,at],[Ht,Ct]]}lt=it?"center":I==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ut=Math.PI,Zt=0,_e=E.get("rotate");if(Vt(_e))Zt=_e*(Ut/180);else if(L==="center")Zt=0;else if(_e==="radial"||_e===!0){var Qr=F<0?-H+Ut:-H;Zt=Qr}else if(_e==="tangential"||_e==="tangential-noflip"&&L!=="outside"&&L!=="outer"){var Fr=Math.atan2(F,$);Fr<0&&(Fr=Ut*2+Fr);var ta=$>0;ta&&_e!=="tangential-noflip"&&(Fr=Ut+Fr),Zt=Fr-Ut}if(i=!!Zt,T.x=j,T.y=tt,T.rotation=Zt,T.setStyle({verticalAlign:"middle"}),it){T.setStyle({align:lt});var Wx=T.states.select;Wx&&(Wx.x+=T.x,Wx.y+=T.y)}else{var mc=new dt(0,0,0,0);vX(mc,T),r.push({label:T,labelLine:C,position:L,len:B,len2:z,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new yt(F,$),linePoints:_t,textAlign:lt,labelDistance:R,labelAlignTo:I,edgeDistance:O,bleedMargin:N,rect:mc,unconstrainedWidth:mc.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:it})}}),!i&&e.get("avoidLabelOverlap")&&byt(r,n,a,l,u,v,f,c);for(var p=0;p<r.length;p++){var g=r[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(D(m.states,h),m.ignore=!0):(l$(b,g.minTurnAngle),ipt(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new yt(b[0][0],b[0][1])})}}}var $V=Math.PI*2,c0=Math.PI/180,Tyt=ir(dl,Ayt);function Ayt(e,t){e.eachSeriesByType(dl,function(r){var n=r.getData(),a=n.mapDimension("value"),i=ij(r,t),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,c=-r.get("startAngle")*c0,v=r.get("endAngle"),h=r.get("padAngle")*c0;v=v==="auto"?c-$V:-v*c0;var d=r.get("minAngle")*c0,p=d+h,g=0;n.each(a,function(O){!isNaN(O)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),x=n.getDataExtent(a);x[0]=0;var w=_?1:-1,A=[c,v],T=w*h/2;Jb(A,!_),c=A[0],v=A[1];var C=hX(r);C.startAngle=c,C.endAngle=v,C.clockwise=_,C.cx=o,C.cy=s,C.r=l,C.r0=u;var M=Math.abs(v-c),E=M,L=0,R=c;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(O,N){var P;if(isNaN(O)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?P=y===0&&b?m:O*m:P=M/g,P<p?(P=p,E-=p):L+=O;var B=R+w*P,z=0,H=0;h>P?(z=R+w*P/2,H=z):(z=R+T,H=B-T),n.setItemLayout(N,{angle:P,startAngle:z,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?Wt(O,x,[u,l]):l}),R=B}),E<$V&&g)if(E<=.001){var I=M/g;n.each(a,function(O,N){if(!isNaN(O)){var P=n.getItemLayout(N);P.angle=I;var B=0,z=0;I<h?(B=c+w*(N+1/2)*I,z=B):(B=c+w*N*I+T,z=c+w*(N+1)*I-T),P.startAngle=B,P.endAngle=z}})}else m=E/L,R=c,n.each(a,function(O,N){if(!isNaN(O)){var P=n.getItemLayout(N),B=P.angle===p?p:O*m,z=0,H=0;B<h?(z=R+w*B/2,H=z):(z=R+T,H=R+w*B-T),P.startAngle=z,P.endAngle=H,R+=w*B}})})}var hX=Tt(),Cyt=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new zt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=U(Ei(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(de(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,de(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),de(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,jt(o,{shape:{endAngle:f.endAngle}},s,n))}else Ia(o),jt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),nr(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=U({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ei(u.getModel("itemStyle"),f)),U(o.ensureState("select"),{x:p,y:g,shape:Ei(l.getModel(["select","itemStyle"]),f)}),U(o.ensureState("blur"),{shape:Ei(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&U(m.ensureState("select"),{x:p,y:g}),U(_.ensureState("select"),{x:p,y:g}),xe(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;hr(i,ar(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new wr,this.setTextGuideLine(h)),dI(this,pI(o),{stroke:u,opacity:wn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Vr),Myt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=dl,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=hX(r),h=new Vr({shape:ut(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new Cyt(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Uo(p,r,d)}).execute(),wyt(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=dl,t}(ee);function Dyt(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Vt(o)&&!isNaN(o)&&o<0)})}}}function Lyt(e){e.registerChartView(Myt),e.registerSeriesModel(fX),qj(dl,e.registerAction),e.registerLayout(Tyt),e.registerProcessor(qy(dl)),e.registerProcessor(Dyt(dl))}var Eyt=function(e){G(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 so(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,a){return a.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","matrix"],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:V.color.primary}},universalTransition:{divideShape:"clone"}},t}(ne),dX=4,Oyt=function(){function e(){}return e}(),Ryt=function(e){G(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 Oyt},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<dX,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var v=a[c++],h=a[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(r>=c&&n>=v&&r<=c+s&&n<=v+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.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,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<a.length;){var h=a[v++],d=a[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new dt(l-o/2,u-s/2,f-l+o,c-u+s)}return r},t}(Rt),Iyt=function(){function e(){this.group=new ht}return e.prototype.updateData=function(t,r){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}a.setShape("points",n),a.reset(),a.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n,a){var i=this._newAdded[0],o=r.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=t.start,f.endIndex=t.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,a)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Ryt({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Fe(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<dX;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=mt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Pyt=function(e){G(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,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,cA(r)),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),Vi(n),cA(n)),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),this._finished){var o=Xy("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(cA(r))}else return{update:!0}},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Iyt:new $y,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ee);function cA(e){return{clipShape:z$(e)}}var mL=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pe).models[0]},t.type="cartesian2dAxis",t}(Et);Ye(mL,id);var pX={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:"auto",onZeroAxisIndex:null,lineStyle:{color:V.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:V.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:V.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[V.color.backgroundTint,V.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:V.color.neutral00,borderColor:V.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Nyt=wt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},pX),MI=wt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:V.color.axisMinorSplitLine,width:1}}},pX),kyt=wt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},MI),Byt=pt({logBase:10},MI);const gX={category:Nyt,value:MI,time:kyt,log:Byt};function bh(e,t,r,n){D(zW,function(a,i){var o=wt(wt({},gX[i],!0),n,!0),s=function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=Rg(this),h=v?cc(f):{},d=c.getTheme();wt(f,d.get(i+"Axis")),wt(f,this.getDefaultOption()),f.type=XV(f),v&&Qi(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=kg.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Zy();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",XV)}function XV(e){return e.type||(e.data?"category":"value")}var zyt=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 W(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Xt(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}(),L_=["x","y"];function ZV(e){return(e.type==="interval"||e.type==="time")&&!ZS(e)}var Vyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=qa,r.dimensions=L_,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ZV(r)||!ZV(n))){var a=l1(r,null),i=l1(n,null),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-a[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=qn([],d)}}},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"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.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 a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new dt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Oe(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.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,a){if(a=a||[],this._invTransform)return Oe(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},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(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new dt(i,o,s,l)},t}(zyt);function yX(e,t){var r=e.scale,n=e.model,a=qW(r,n,n.ecModel,e,null),i=gh(r),o=gh(t)?t.intervalStub:t,s=i?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Le(u[0].value-u[1].value),g=Le(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var y=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[c].value-u[c].value)/y)%1,d=c-(v?1:0)-(h?1:0)}var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],b=r.getExtent(),x=s.getExtent(),w=IW(x,S),A,T,C,M,E,L;function R(F){for(var $=50,j=0;j<$&&!F();j++)C=i?C*Dt(l,2):Oht(C),M=Mf(C)}function I(){A=Yt(L-C*v,M)}function O(){T=Yt(E+C*h,M)}function N(){L=v?Yt(A+C*v,M):A}function P(){E=h?Yt(T-C*h,M):T}if(S[0]&&S[1]){A=w[0],T=w[1],C=(T-A)/(d+v+h);var B=e.getExtent(),z=Le(B[1]-B[0]);M=XO([T,A],z,.5/d),N(),P(),Oa(M)&&(C=Yt(C,M))}else{var H=w[1]-w[0];C=i?Dt(qO(H),1):$b(H/d,EY),M=Mf(C),S[0]?(A=w[0],R(function(){if(N(),E=Yt(L+C*d,M),O(),T>=w[1])return!0})):S[1]?(T=w[1],R(function(){if(P(),L=Yt(E-C*d,M),I(),A<=w[0])return!0})):R(function(){L=Yt(ic(w[0]/C)*C,M),E=Yt(Ea(w[1]/C)*C,M);var F=Xi((E-L)/C);if(F<=d){var $=d-F,j=void 0,tt=a.incl0||i;if(tt&&w[0]===0)j=[0,$];else if(tt&&w[1]===0)j=[$,0];else{var _t=Ea($/2);j=$%2===0?[_t,_t]:A+T<w[0]+w[1]?[_t,_t+1]:[_t+1,_t]}if(L=Yt(L-C*j[0],M),E=Yt(E+C*j[1],M),I(),O(),A<=w[0]&&T>=w[1])return!0}})}HW(r,S,x,[A,T],b,{interval:C,intervalCount:d,intervalPrecision:M,niceExtent:[L,E]})}var qV=[[3,1],[0,2]],Gyt=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=L_,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;D(this._axesList,function(o){Ef(o,mh);var s=o.scale;Kr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=Nt(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):_h(f)}D(l,function(c){Uyt(c,c.__alignTo)?_h(c):yX(c,c.__alignTo.scale)})}a(n.x),a(n.y);var i={};D(n.x,function(o){KV(n,"y",o,i)}),D(n.y,function(o){KV(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=or(t,r),i=this._rect=me(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(_L(o,i),!n){var u=jyt(i,s,o,l,r),f=void 0;if(l)SL?(SL(this._axesList,i),_L(o,i)):f=e3(i.clone(),"axisLabel",null,i,o,u,a);else{var c=Wyt(t,i,a),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=e3(v,h,d,i,o,u,a))}mX(i,o,Ja.determine,null,f,a),D(this._coordsList,function(p){p.calcAffineTransform()})}},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]}gt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Pe).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",Pe).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,bt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.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 a=this,i=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(f,c){D(s.y,function(v,h){var d="x"+c+"y"+h,p=new Vyt(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),JV(s.x),JV(s.y);function u(f){return function(c,v){if(Hyt(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=Fy(c),p=new F$(f,nd(c,d,!0),[0,0],d,h);p.onBand=jy(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=i,p.index=v,i._axesList.push(p),s[f][v]=p,l[f]++}}}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);bt(r,i)<0&&r.push(i),bt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o),D(o._axesList,function(s){fdt(s,e.dimIdxMap)})}),t.eachSeries(function(a){var i,o;Gy({targetModel:a,coordSysType:qa,coordSysProvider:s});function s(){var l=jgt(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Lf(i,a,qa),Lf(o,a,qa))},this),n},e.dimensions=L_,e.dimIdxMap=nI(L_),e}();function Hyt(e,t){return e.getCoordSysModel()===t}function KV(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)QV(s,a[l])&&(i=a[l]);else for(var u in a)if(nt(a,u)&&QV(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function QV(e,t){if(!t)return!1;var r=t.scale,n=Fht(r,0),a=t&&t.type!=="category"&&t.type!=="time"&&n!==rL;return a&&e==="auto"&&$ht(t)&&(a=!1),a}function JV(e){for(var t=Nt(e),r,n=[],a=t.length-1;a>=0;a--){var i=e[+t[a]];RW(i.scale)&&GW(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):r=i)}r||(r=n.pop()),r&&D(n,function(o){o.__alignTo=r})}function Uyt(e,t){return ZS(e.scale)||ZS(t.scale)||t.scale.getTicks().length<2}function Fyt(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}function _L(e,t){D(e.x,function(r){return t3(r,t.x,t.width)}),D(e.y,function(r){return t3(r,t.y,t.height)})}function t3(e,t,r){var n=[0,r],a=e.inverse?1:0;e.setExtent(n[a],n[1-a]),Fyt(e,t)}var SL;function Yyt(e){SL=e}function e3(e,t,r,n,a,i,o){mX(n,a,Ja.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=ds(s,function(v){return v>0})==null;return Tf(n,s,!0,!0,r),_L(a,n),l;function u(v){D(a[St[v]],function(h){if(Gg(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(ad(h.scale,If(y.label).labelInfo.tick));m=v===1?1-m:m,f(y.rect,v,m),f(y.rect,1-v,NaN)}var _=d.nameLayout;if(_){var m=yh(d.nameLocation)?.5:NaN;f(_.rect,v,m),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=e[St[h]]-v[St[h]],g=v[Ne[h]]+v[St[h]]-(e[Ne[h]]+e[St[h]]);p=c(p,1-d),g=c(g,d);var y=qV[h][0],m=qV[h][1];s[y]=Dt(s[y],p),s[m]=Dt(s[m],g)}function c(v,h){return v>0&&!Nr(h)&&h>1e-4&&(v/=h),v}}function jyt(e,t,r,n,a){var i=new $$($yt);return D(r,function(o){return D(o,function(s){if(Gg(s.model)){var l=!n;s.axisBuilder=Wgt(e,t,s.model,a,i,l)}})}),i}function mX(e,t,r,n,a,i){var o=r===Ja.determine;D(t,function(u){return D(u,function(f){Gg(f.model)&&($gt(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[St[1-u]]=e[Ne[u]]<=i.refContainer[Ne[u]]*.5?0:1-u===1?2:1}D(t,function(u,f){return D(u,function(c){Gg(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function Wyt(e,t,r){var n,a=e.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=me(e.get("outerBounds",!0)||eX,r.refContainer));var i=e.get("outerBoundsContain",!0),o;i==null||i==="auto"||bt(["all","axisLabel"],i)<0?o="all":o=i;var s=[HS(ot(e.get("outerBoundsClampWidth",!0),S1[0]),t.width),HS(ot(e.get("outerBoundsClampHeight",!0),S1[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var $yt=function(e,t,r,n,a,i){var o=r.axis.dim==="x"?"y":"x";X$(e,t,r,n,a,i),yh(e.nameLocation)||D(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&q$(s.labelInfoList,s.dirVec,n,a)})};function Xyt(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Zyt(r,e,t),r.seriesInvolved&&Kyt(r,e),r}function Zyt(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Xg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),Mt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&D(d.baseAxes,Mt(p,h?"cross":!0,v)),h&&D(d.otherAxes,Mt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!bL(_))){y==null&&(y=_.get("triggerTooltip")),_=g?qyt(m,c,a,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Xg(m.model),A=y||b||m.type==="category",T=e.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:A,snap:b,useHandle:bL(_),seriesModels:[],linkGroup:null};u[w]=T,e.seriesInvolved=e.seriesInvolved||A;var C=Qyt(i,m);if(C!=null){var M=o[C]||(o[C]={axesInfo:{}});M.axesInfo[w]=T,M.mapper=i[C].mapper,T.linkGroup=M}}}})}function qyt(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(v){l[v]=ut(o.get(v))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&pt(u,c.textStyle)}}return e.model.getModel("axisPointer",new Ot(l,r,n))}function Kyt(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[Xg(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 Qyt(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(vA(i[n+"AxisId"],r.id)||vA(i[n+"AxisIndex"],r.componentIndex)||vA(i[n+"AxisName"],r.name))return a}}function vA(e,t){return e==="all"||Y(e)&&bt(e,t)>=0||e===t}function Jyt(e){var t=DI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=bL(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function DI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Xg(e)]}function tmt(e){var t=DI(e);return t&&t.axisPointerModel}function bL(e){return!!e.get(["handle","show"])}function Xg(e){return e.type+"||"+e.id}var r3={},pc=function(e){G(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,a,i){this.axisPointerClass&&Jyt(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=tmt(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){r3[r]=n},t.getAxisPointerClass=function(r){return r&&r3[r]},t.type="axis",t}(ue),xL=Tt();function _X(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=xL(e).splitAreaColors,v=rt(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[d-1].tickValue;w!=null&&v.set(w,h),t.add(new Lt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:pt({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}xL(e).splitAreaColors=v}}}function SX(e){xL(e).splitAreaColors=null}var emt=["splitArea","splitLine","minorSplitLine","breakArea"],bX=function(e){G(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,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ht,this.group.add(this._axisGroup),!!Gg(r)){this._axisGroup.add(r.axis.axisBuilder.group),D(emt,function(l){r.get([l,"show"])&&rmt[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||zy(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){SX(this)},t.type="cartesianAxis",t}(pc),rmt={splitLine:function(e,t,r,n,a){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=Y(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=h++%l.length,x=new He({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:pt({stroke:l[b]},y),silent:!0});hh(x.shape,y.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,n,a){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=new He({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});hh(y.shape,h.lineWidth),t.add(y)}},splitArea:function(e,t,r,n,a){_X(e,t,r,n)},breakArea:function(e,t,r,n,a){var i=Zy(),o=r.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,e,r,n.coordinateSystem.getRect(),a)}},xX=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(bX),nmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=xX.type,r}return t.type="yAxis",t}(bX),amt=function(e){G(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 Lt({shape:r.coordinateSystem.getRect(),style:pt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ue),n3={offset:0};function wX(e){e.registerComponentView(amt),e.registerComponentModel(Kgt),e.registerCoordinateSystem("cartesian2d",Gyt),bh(e,"x",mL,n3),bh(e,"y",mL,n3),e.registerComponentView(xX),e.registerComponentView(nmt),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var xx="single",imt="singleAxis",wL="singleAxis",E_=function(e){G(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=wL,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}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(Et);Ye(E_,id.prototype);function omt(e,t){var r=e.coordinateSystem,n=r&&r.type,a=r&&r.getBaseAxis&&r.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===qa&&i==="ordinal"||n===xx,s=t.model.get("jitter")>0;return o&&s}var smt=Tt();function a3(e,t,r,n){if(e instanceof F$){var a=e.scale.type;if(a!=="ordinal")return r}var i=e.model,o=i.get("jitter");if(!(o>0))return r;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=Kr(e.scale)?Hr(e).w:null;return s?TX(r,o,u,n):lmt(e,t,r,n,o,l)}function TX(e,t,r,n){if(r===null)return e+(Math.random()-.5)*t;var a=r-n*2,i=Math.min(Math.max(0,t),a);return e+(Math.random()-.5)*i}function lmt(e,t,r,n,a,i){var o=smt(e);o.items||(o.items=[]);var s=o.items,l=i3(s,t,r,n,a,i,1),u=i3(s,t,r,n,a,i,-1),f=Math.abs(l-r)<Math.abs(u-r)?l:u,c=Kr(e.scale)?Hr(e).w:null,v=Math.abs(f-r);return v>a/2||c&&v>c/2-n?TX(r,a,c,n):(s.push({fixedCoord:t,floatCoord:f,r:n}),f)}function i3(e,t,r,n,a,i,o){for(var s=r,l=0;l<e.length;l++){var u=e[l],f=t-u.fixedCoord,c=s-u.floatCoord,v=f*f+c*c,h=n+u.r+i;if(v<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-r)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function umt(){return{seriesType:"scatter",plan:vc(),reset:function(e){var t=e.coordinateSystem;if(!(!t||t.type!==qa&&t.type!==xx)){var r=t.getBaseAxis&&t.getBaseAxis(),n=r&&omt(e,r);if(n){var a=r.dim,i=r.orient,o=i==="horizontal"&&r.type!=="category"||i==="vertical"&&r.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var c=f.getLayout("points"),v=!!c,h=u.start;h<u.end;h++){var d=v?(h-u.start)*2:-1,p=v?[c[d],c[d+1]]:f.getItemLayout(h);if(p){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=a3(r,p[0],p[1],y/2);v?c[d+1]=m:p[1]=m}else if(l){var m=a3(r,p[1],p[0],y/2);v?c[d]=m:p[0]=m}}}}}}}}}}function fmt(e){At(wX),e.registerSeriesModel(Eyt),e.registerChartView(Pyt),e.registerLayout(Xy("scatter"))}function cmt(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,umt())}function vmt(e){var t=e.polar;if(t){Y(t)||(t=[t]);var r=[];D(t,function(n,a){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 Zg="radar",hmt=function(e){G(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 ld(et(this.getData,this),et(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return sd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=zj(this,r);return Xe("section",{header:u,sortBlocks:!0,blocks:W(s,function(c){var v=i.get(i.mapDimension(c.dim),r);return Xe("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(W(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series."+Zg,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}(ne),dmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Zg,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=ed(v.getItemVisual(h,"symbolSize")),g=Fe(d,-1,-1,2,2),y=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),uc[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},r,g)):_.setPosition(h[m]),d.add(_))}}function c(v){return W(v,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Gr,p=new wr,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),de(d,g,r,v),de(p,g,r,v);var y=new ht,m=new ht;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,v,!1),Ia(g),Ia(p),jt(p,m,r),jt(g,m,r),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(v),p.useStyle(pt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),nr(p,d,"lineStyle"),nr(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(w){var A=d.getModel([w,"areaStyle"]),T=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(w).ignore=T&&b;var C=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=C;var M=A.getAreaStyle();g.ensureState(w).style=M;var E=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(L){L.ensureState(w).style=ut(E)})}),g.useStyle(pt(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof dr){var A=w.style;w.useStyle(U({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(T==null||isNaN(T))&&(T=""),hr(w,ar(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:m.opacity})}),xe(v,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=Zg,t}(ee),Bd=gX.value,Kp="radar",AX=Kp,pmt=Kp,CX=5;function v0(e,t){return pt({show:t},e)}var gmt=function(e){G(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"),a=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=W(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 g=u;p.color!=null&&(g=pt({color:p.color},u));var y=wt(ut(p),{boundaryGap:r,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(K(c)){var m=y.name;y.name=c.replace("{value}",m??"")}else ct(c)&&(y.name=c(y.name,y));var _=new Ot(y,null,this.ecModel);return Ye(_,id.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=fc("ec_radar"),_},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=AX,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:V.color.axisLabel},boundaryGap:[0,0],splitNumber:CX,axisNameGap:15,scale:!1,shape:"polygon",axisLine:wt({lineStyle:{color:V.color.neutral20}},Bd.axisLine),axisLabel:v0(Bd.axisLabel,!1),axisTick:v0(Bd.axisTick,!1),splitLine:v0(Bd.splitLine,!0),splitArea:v0(Bd.splitArea,!0),indicator:[]},t}(Et),ymt=function(e){G(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,a){var i=this.group;i.removeAll(),this._buildAxes(r,a),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r,n){var a=r.coordinateSystem,i=a.getIndicatorAxes(),o=W(i,function(s){var l=s.model.get("showName")?s.name:"",u=new ln(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});D(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=Y(v)?v:[v],p=Y(h)?h:[h],g=[],y=[];function m(I,O,N){var P=N%O.length;return I[P]=I[P]||[],P}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new oo({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new jh({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var A,T=W(a,function(I,O){var N=I.getTicksCoords();return A=A==null?N.length-1:Math.min(N.length-1,A),W(N,function(P){return n.coordToPoint(P.coord,O)})}),C=[],x=0;x<=A;x++){for(var M=[],E=0;E<a.length;E++)M.push(T[E][x]);if(M[0]&&M.push(M[0].slice()),f){var w=m(g,d,x);g[w].push(new wr({shape:{points:M}}))}if(c&&C){var w=m(y,p,x-1);y[w].push(new Gr({shape:{points:M.concat(C)}}))}C=M.slice().reverse()}var L=l.getLineStyle(),R=u.getAreaStyle();D(y,function(I,O){this.group.add(kn(I,{style:pt({stroke:"none",fill:p[O%p.length]},R),silent:!0}))},this),D(g,function(I,O){this.group.add(kn(I,{style:pt({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(ue),mmt=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(ka),_mt=function(){function e(t,r,n){this.type=Kp,this.dimensions=[],this._model=t,this._indicatorAxes=W(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new mmt(o,new hl);return s.name=a.get("name"),s.model=a,a.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],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=or(t,r).refContainer,a=t.get("center"),i=t.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=J(a[0],n.width)+n.x,this.cy=J(a[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(K(s)||Vt(s))&&(s=[0,s]),this.r0=J(s[0],o),this.r=J(s[1],o);var l=i?-1:1;D(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model,i=px(a.get("splitNumber"),CX),o=new hl;o.setExtent(0,i),o.setConfig({interval:1}),D(n,function(s){Ef(s,mh),yX(s,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(AX,function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType(pmt,function(a){if(a.get("coordinateSystem")===Kp){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&D(i.getIndicatorAxes(),function(o){Lf(o,a,Kp)})}}),n},e.dimensions=[],e}();function Smt(e){e.registerCoordinateSystem("radar",_mt),e.registerComponentModel(gmt),e.registerComponentView(ymt),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var bmt=ir(Zg,xmt);function xmt(e){e.eachSeriesByType(Zg,function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=o3(f)?f:s3(a)})}),r.each(function(o){var s=ds(n[o],function(l){return o3(l)})||s3(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function o3(e){return!isNaN(e[0])&&!isNaN(e[1])}function s3(e){return[e.cx,e.cy]}function wmt(e){At(Smt),e.registerChartView(dmt),e.registerSeriesModel(hmt),e.registerLayout(bmt),e.registerProcessor(qy("radar")),e.registerPreprocessor(vmt)}var LI=Tt();function Tmt(e,t,r){LI(e)[t]=r}function Amt(e,t,r){var n=LI(e),a=n[t];a===r&&(n[t]=null)}function l3(e,t){return!!LI(e)[t]}ii({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ee);var Cmt={axisPointer:1,tooltip:1,brush:1};function MX(e,t,r){var n=t.getComponentByElement(e.topTarget);if(!n||n===r||Cmt.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===r)return!1;var i=Af(n),o=Af(r);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var gc=function(e){G(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=et(n._mousedownHandler,n),i=et(n._mousemoveHandler,n),o=et(n._mouseupHandler,n),s=et(n._mousewheelHandler,n),l=et(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,v=Af(c.component),h=v.z,d=v.zlevel,p={component:c.component,z:h,zlevel:d,z2:ot(c.z2,-1/0)},g=U({},f.triggerInfo);this._opt=pt(U({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(Vd(r,"mousedown",a,p),Vd(r,"mousemove",i,p),Vd(r,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Vd(r,"mousewheel",s,p),Vd(r,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,Gd(r,"mousedown",a),Gd(r,"mousemove",i),Gd(r,"mouseup",o),Gd(r,"mousewheel",s),Gd(r,"pinch",l))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(r,n,a){var i=this._opt,o=i.zInfoParsed;if(MX(r,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(r,n,a)),u&&s.isInClip&&!s.isInClip(r,n,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(r,n,a,i){var o=r.target;if(!o&&this._checkPointer(r,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!(dB(r)||zd(r))){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this._checkPointer(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){var n=this._zr;if(!(r.gestureEvent==="pinch"||l3(n,"globalPan")||zd(r))){var a=r.offsetX,i=r.offsetY;if(!this._dragging||!O_("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&es(r.event),r.__ecRoamConsumed=!0,u3(this,"pan","moveOnMouseMove",r,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){if(!zd(r)){var n=this._zr;if(!dB(r)){this._dragging=!1;var a=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);a&&n.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(r){if(!zd(r)){var n=O_("zoomOnMouseWheel",r,this._opt),a=O_("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(r){if(!(l3(this._zr,"globalPan")||zd(r))){var n=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(r,n,a,i,o){r._checkPointer(i,o.originX,o.originY)&&(es(i.event),i.__ecRoamConsumed=!0,u3(r,n,a,i,o))},t}(Pa);function zd(e){return e.__ecRoamConsumed}var Mmt=Tt();function Tx(e){var t=Mmt(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Vd(e,t,r,n){for(var a=Tx(e),i=a.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:n}),Dmt(e,t)}function Gd(e,t,r){for(var n=Tx(e),a=n.roam[t]||[],i=0;i<a.length;i++)if(a[i].listener===r){a.splice(i,1),a.length||Lmt(e,t);return}}function Dmt(e,t){var r=Tx(e);r.uniform[t]||e.on(t,r.uniform[t]=function(n){var a=r.roam[t];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function Lmt(e,t){var r=Tx(e),n=r.uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function u3(e,t,r,n,a){a.isAvailableBehavior=et(O_,null,r,n),e.trigger(t,a)}function O_(e,t,r){var n=r[e];return!e||n&&(!K(n)||t.event[n+"Key"])}function DX(e){if(K(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 hA,x1={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"},f3=Nt(x1),w1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},c3=Nt(w1),Emt=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=DX(t);this._defsUsePending=[];var a=new ht;this._root=a;var i=[],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),Cn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;Imt(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var v=Ax(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=EX(f,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=a;a=new ht,a.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Lt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var f=hA[s];if(f&&nt(hA,s)){l=f.call(this,t,r);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var h=v3[s];if(h&&nt(v3,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new ch({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ra(r,n),Cn(t,n,this._defsUsePending,!1,!1),Omt(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){hA={g:function(t,r){var n=new ht;return ra(r,n),Cn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Lt;return ra(r,n),Cn(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 oo;return ra(r,n),Cn(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 He;return ra(r,n),Cn(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 Ny;return ra(r,n),Cn(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"),a;n&&(a=p3(n));var i=new Gr({shape:{points:a||[]},silent:!0});return ra(r,i),Cn(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=p3(n));var i=new wr({shape:{points:a||[]},silent:!0});return ra(r,i),Cn(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new dr;return ra(r,n),Cn(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",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new ht;return ra(r,s),Cn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ht;return ra(r,s),Cn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=m9(n);return ra(r,a),Cn(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),v3={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),a=parseInt(e.getAttribute("y2")||"0",10),i=new lc(t,r,n,a);return h3(e,i),d3(e,i),i},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),a=new vR(t,r,n);return h3(e,a),d3(e,a),a}};function h3(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function d3(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};LX(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000",s=i.stopOpacity||r.getAttribute("stop-opacity");if(s){var l=Zr(o),u=l&&l[3];u&&(l[3]*=Go(s),o=Aa(l,"rgba"))}t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function ra(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pt(t.__inheritedStyle,e.__inheritedStyle))}function p3(e){for(var t=Ax(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function Cn(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(kmt(e,t),LX(e,o,s),n||Bmt(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=g3(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=g3(i,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=W(Ax(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Omt(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var Rmt=/^url\(\s*#(.*?)\)/;function g3(e,t,r,n){var a=r&&r.match(Rmt);if(a){var i=zn(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function Imt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var Pmt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ax(e){return e.match(Pmt)||[]}var Nmt=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,dA=Math.PI/180;function kmt(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(Nmt,function(c,v,h){return n.push(v,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Ax(o);switch(a=a||Se(),s){case"translate":Qa(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Gb(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ps(a,a,-parseFloat(l[0])*dA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*dA);Wn(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*dA);Wn(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var y3=/([^\s:;]+)\s*:\s*([^:;]+)/g;function LX(e,t,r){var n=e.getAttribute("style");if(n){y3.lastIndex=0;for(var a;(a=y3.exec(n))!=null;){var i=a[1],o=nt(x1,i)?x1[i]:null;o&&(t[o]=a[2]);var s=nt(w1,i)?w1[i]:null;s&&(r[s]=a[2])}}}function Bmt(e,t,r){for(var n=0;n<f3.length;n++){var a=f3[n],i=e.getAttribute(a);i!=null&&(t[x1[a]]=i)}for(var n=0;n<c3.length;n++){var a=c3[n],i=e.getAttribute(a);i!=null&&(r[w1[a]]=i)}}function EX(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function zmt(e,t){var r=new Emt;return r.parse(e,t)}var Vmt=rt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Gmt=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=rt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=DX(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=Umt(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&zmt(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,zr(n!=null)}catch(g){throw new Error(`Invalid svg format
|
|
170
|
+
`+g.message)}var a=new ht;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,v=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,c=h.width),f==null&&(f=h.y,v=h.height)}l=this._boundingRect=new dt(u,f,c,v)}if(s){var d=EX(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Lt({shape:l.plain()}));var p=[];return D(r.named,function(g){Vmt.get(g.svgNodeTagLower)!=null&&(p.push(g),Hmt(g.el))}),{root:a,boundingRect:l,named:p}},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 Hmt(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function Umt(e){var t=[],r=rt();return D(e,function(n){if(n.namedFrom==null){var a=new Mdt(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}var TL=[126,25],m3="南海诸岛",Mu=[[[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 mu=0;mu<Mu.length;mu++)for(var kc=0;kc<Mu[mu].length;kc++)Mu[mu][kc][0]/=10.5,Mu[mu][kc][1]/=-10.5/.75,Mu[mu][kc][0]+=TL[0],Mu[mu][kc][1]+=TL[1];function Fmt(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===m3)return;t.push(new t$(m3,W(Mu,function(n){return{type:"polygon",exterior:n}}),TL))}}var Ymt={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function jmt(e,t){if(e==="china"){var r=Ymt[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 Wmt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function $mt(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Wmt[0]})}var Xmt="name",Zmt=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=rt(),this._mapName=t,this._specialAreas=n,this._geoJSON=Kmt(r)}return e.prototype.load=function(t,r){r=r||Xmt;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:qmt(a)})}var i=rt(),o=[];return D(n.regions,function(s){var l=s.name;t&&nt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new dt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?iL(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
171
|
+
`+i.message)}return Fmt(r,a),D(a,function(i){var o=i.name;jmt(r,i),$mt(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function qmt(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 Kmt(e){return K(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Hd=rt();const ls={registerMap:function(e,t,r){if(t.svg){var n=new Gmt(e,t.svg);Hd.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new Zmt(e,a,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 Pf=0,Nf=1,to=2;var Qmt="view",Cx=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.type=Qmt,i.dimensions=["x","y"];var o=i;o.invertY=r,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[Pf]=Nv(),s[Nf]=Nv(),s[to]=Nv(),o.mtRaw=Se(),o.mtRawInv=Se(),o.mtOverall=Se(),o.mtOverallInv=Se(),o.zoom=1,i}return t.prototype.getBoundingRect=function(){return OX(null,this)},t.prototype.getViewRect=function(){return EI(null,this)},t.prototype.getRoamTransform=function(){return wl(this.trans[Nf])},t.prototype.dataToPoint=function(r,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?Oe(a,r,i):Mr(a,r)},t.prototype.pointToData=function(r,n,a){a=a||[];var i=this.mtOverallInv;return i?Oe(a,r,i):Mr(a,r)},t.prototype.convertToPixel=function(r,n,a){var i=w3(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=w3(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){var n=this;return lh(h0,n.dataRect),J7(h0,h0,n.mtOverall),lot(h0,r[0],r[1])},t.dimensions=["x","y"],t}(ao),h0=Hb();function T1(e,t){return bl([],t.mtOverall)}function Jmt(e){return e.zoom}function OX(e,t){return lh(Hb(),t.dataRect)}function EI(e,t){return lh(Hb(),t.viewRect)}function qg(e,t,r){return Wi(e||Nv(),t.trans[r])}function OI(e){return!!(e.dataRect&&e.viewRect)}function t0t(e,t,r,n){n===Nf?RX(e,t.trans[Pf],r):Wi(e,r)}function _3(e,t,r){wl(r,d0),Wn(d0,d0,t.mtRawInv),ix(e,d0)}var d0=Se();function RI(e,t){var r=e;r.centerOption=t.getShallow("center");var n=r.zoomLimit=t.getShallow("scaleLimit"),a=t.getShallow("zoom");r.zoom=PI(a||1,n)||1,OI(r)&&II(r)}function Mx(e,t,r,n,a){var i=e;i.dataRect=new dt(t,r,n,a),OI(i)&&II(i)}function A1(e,t,r,n,a){var i=e;i.viewRect=new dt(t,r,n,a),OI(i)&&II(i)}function II(e){e0t(e),n0t(e),a0t(e)}function e0t(e){var t=e.dataRect,r=e.viewRect,n=e.trans[Pf],a=e.invertY;a&&(t=lh(r0t,t),t.y=-t.y-t.height),Q7(S3,t,r),ix(n,S3),a&&(n.scaleY=-n.scaleY);var i=wl(n,e.mtRaw);qn(e.mtRawInv,i)}var S3=Se(),r0t=Hb();function n0t(e){var t=IX(e),r=s0t(pA,e,e.centerOption)?Oe(pA,pA,e.mtRaw):t,n=e.zoom,a=e.trans[Nf];a.x=t[0]-n*r[0],a.y=t[1]-n*r[1],a.scaleX=a.scaleY=n}var pA=[];function a0t(e){var t=e.trans,r=t[Nf],n=t[Pf],a=t[to];RX(a,n,r);var i=wl(a,e.mtOverall),o=qn(e.mtOverallInv,i);b3(e,a,i,o),b3(e.lgGeo,a,i,o)}function b3(e,t,r,n){e&&(Wi(e,t),bl(e.transform||(e.transform=[]),r),bl(e.invTransform||(e.invTransform=[]),n))}function RX(e,t,r){wl(t,x3),wl(r,p0),Wn(p0,p0,x3),ix(e,p0)}var x3=Se(),p0=Se();function w3(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function IX(e){var t=e.viewRect;return gA[0]=t.x+t.width/2,gA[1]=t.y+t.height/2,gA}var gA=[];function PX(e){return e&&e.type==="view"}function Al(e,t,r,n){var a=r;a.syncBackEl=e,a.syncBackType=t,n?jt(e,qg(null,r,t),n):(qg(e,r,t),e.dirty())}function i0t(e,t,r,n){var a=e,i=a.syncBackEl;i?(i.stopAnimation(),t0t(Ms,a,i,a.syncBackType)):Wi(Ms,a.trans[to]),_3(yA,a,Ms),n?o0t(Ms,yA,a,n):Wi(Ms,yA),_3(Ms,a,Ms),u0t(a,t,r,Ms)}var Ms=Nv(),yA=Nv();function NX(e,t,r){var n=C1(t);n&&(i0t(n,t,r,e),RI(n,t))}function C1(e){return e.__ownRoamView?e.__ownRoamView():null}function kX(e,t,r,n){r.setUpdatePayload(_R(e));var a=a9(n,t);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(e,t,n)}function o0t(e,t,r,n){n.dx!=null&&n.dy!=null&&(e.x+=n.dx,e.y+=n.dy);var a=n.zoom;if(a!=null){var i=BX(t),o=PI(i*a,r.zoomLimit),s=o/i;e.x-=(n.originX-e.x)*(s-1),e.y-=(n.originY-e.y)*(s-1),e.scaleX*=s,e.scaleY*=s}}function BX(e){return e.scaleX}function s0t(e,t,r){var n=t.dataRect;if(!r)return!1;var a=t.lgCt;return a?Vo(e,J(r[0],a.w),J(r[1],a.h)):n&&Vo(e,J(r[0],n.width,n.x),J(r[1],n.height,n.y)),!0}function l0t(e,t){var r=e.centerOption,n=e.dataRect;return!r||e.lgCt?t.slice():[T3(0,t,r,n),T3(1,t,r,n)]}function T3(e,t,r,n){return r&&n&&n[Ne[e]]&&_st(r[e])?(t[e]-n[St[e]])/n[Ne[e]]*100+"%":t[e]}function zX(e,t){return t&&e&&e.getShallow("legacyViewCoordSysCenterBase")?{w:t.getWidth(),h:t.getHeight()}:null}function u0t(e,t,r,n){var a=IX(e),i=BX(n),o=Le(i)>1e-6;Ud[0]=o?(a[0]-n.x)/i:a[0],Ud[1]=o?(a[1]-n.y)/i:a[1],Oe(Ud,Ud,e.mtRawInv);var s=l0t(e,Ud);A3(t,s,i),D(r,function(l){l!==t&&A3(l,s.slice(),i)})}var Ud=[];function A3(e,t,r){var n=e.option;n.center=t,n.zoom=r}function PI(e,t){if(t){var r=t.min||0,n=t.max||1/0;e=Math.max(Math.min(n,e),r)}return e}function VX(e,t){var r=t.getShallow("nodeScaleRatio",!0)||1,n=e;return((n.zoom-1)*r+1)/(n.trans[to].scaleX||1)}function Dx(e,t,r,n,a,i,o,s){var l=C1(e);if(!l){r.disable();return}r.enable(ot(e.get("roam"),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:n,isInClip:function(f,c,v){return!a||a.contain(c,v)}}});function u(f){var c=e.mainType,v=_R(pt({type:HX(c,e.subType,r9)},f));s&&(v.componentType=c),v[c+"Id"]=e.id,t.dispatchAction(v)}r.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function GX(e){return function(t,r,n){return mA.copy(e.getBoundingRect()),mA.applyTransform(e.getComputedTransform()),mA.contain(r,n)}}var mA=new dt(0,0,0,0);function NI(e,t,r){var n=HX(t,r,r9);e.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(eR(a,t,r),function(s){NX(a,s),kX(a,s,i,o)})})}function HX(e,t,r){return(e!==Ki?e:t==="map"?"geo":t)+r}function UX(e){return e.zoom!=null}function kI(e,t,r,n,a,i,o){var s=new Cx(null,zX(e.ecModel,t));return Mx(s,r,n,a,i),o?A1(s,o.x,o.y,o.width,o.height):A1(s,r,n,a,i),RI(s,e),s}var BI=["rect","circle","line","ellipse","polygon","polyline","path"],f0t=rt(BI),c0t=rt(BI.concat(["g"])),v0t=rt(BI.concat(["g"])),FX=Tt();function g0(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function C3(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var YX=function(){function e(t){var r=this.group=new ht,n=this._transformGroup=new ht;r.add(n),this.uid=fc("ec_map_draw"),this._controller=new gc(t.getZr()),n.add(this._regionsGroup=new ht),n.add(this._svgGroup=new ht)}return e.prototype.draw=function(t,r,n,a,i){var o=this,s=t.getData&&t.getData();Uv(t)&&r.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===t&&(s=p.getData())});var l=t.coordinateSystem,u=l.view,f=this._regionsGroup,c=this._transformGroup,v=!f.childAt(0)||i,h;l.shouldClip()?(h=EI(null,u),this.group.setClipPath(new Lt({shape:h.clone()}))):this.group.removeClipPath(),Al(c,Nf,u,v?null:t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,t,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,t,s,d),Dx(t,n,this._controller,function(p,g,y){return t.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(t,f,n,a)},e.prototype.__updateOnOwnRoam=function(t){Al(this._transformGroup,Nf,t.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(t,r,n,a,i,o){var s=this._regionsGroupByName=rt(),l=rt(),u=this._regionsGroup,f=n.projection,c=f&&f.stream,v=wl(qg(null,t,Pf));function h(g,y){return y&&(g=y(g)),g&&Oe([],g,v)}function d(g){for(var y=[],m=!c&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function p(g){return{shape:{points:d(g)}}}u.removeAll(),D(n.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,b=_.regionModel;if(!m){m=s.set(y,new ht),u.add(m),S=i?i.indexOfName(y):null,b=Uv(a)?a.getRegionModel(y):i?i.getItemModel(S):null;var x=b.get("silent",!0);x!=null&&(m.silent=x),l.set(y,{dataIdx:S,regionModel:b})}var w=[],A=[];D(g.geometries,function(M){if(M.type==="polygon"){var E=[M.exterior].concat(M.interiors||[]);c&&(E=R3(E,c)),D(E,function(R){w.push(new Gr(p(R)))})}else{var L=M.points;c&&(L=R3(L,c,!0)),D(L,function(R){A.push(new wr(p(R)))})}});var T=h(g.getCenter(),f&&f.project);function C(M,E){if(M.length){var L=new By({culling:!0,segmentIgnoreThreshold:1,shape:{paths:M}});m.add(L),M3(r,i,o,L,S,b),D3(a,i,L,y,b,S,T),E&&(C3(L),D(L.states,C3))}}C(w),C(A,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;L3(a,i,g,y,S,_),E3(a,i,g,y,S),O3(a,g,y,S)},this)},e.prototype._buildSVG=function(t,r,n,a,i,o){var s=n.map;qg(this._svgGroup,t,Pf),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=rt(),u=!1;D(this._svgGraphicRecord.named,function(f){var c=f.name,v=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(c):null,p=a.getRegionModel(c);f0t.get(v)!=null&&h instanceof Ra&&M3(r,i,o,h,d,p),h instanceof Ra&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!f.namedFrom&&(v0t.get(v)!=null&&D3(a,i,h,c,p,d,null),L3(a,i,h,c,p,d),E3(a,i,h,c,p),c0t.get(v)!=null)){var y=O3(a,h,c,p);y==="self"&&(u=!0);var m=l.get(c)||l.set(c,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&Uv(r)){var n=r.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){wf(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}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=ls.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=ls.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=FX(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function M3(e,t,r,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=g0(o),c=g0(s),v=g0(u),h=g0(l);if(t){var d=t.getItemVisual(a,"style"),p=t.getItemVisual(a,"decal");r&&d.fill&&(f.fill=d.fill),p&&(f.decal=ph(p,e))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=c,n.ensureState("select").style=v,n.ensureState("blur").style=h,wf(n)}function D3(e,t,r,n,a,i,o){var s=t&&isNaN(t.get(t.mapDimension("value"),i)),l=t&&t.getItemLayout(i);if(Uv(e)||s||l&&l.showLabel){var u=Uv(e)?n:i,f=void 0;(!t||i>=0)&&(f=e);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;hr(r,ar(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},c);var v=r.getTextContent();if(v&&(FX(v).ignore=v.ignore,r.textConfig&&o)){var h=r.getBoundingRect().clone();r.textConfig.layoutRect=h,r.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}r.disableLabelAnimation=!0}else r.removeTextContent(),r.removeTextConfig(),r.disableLabelAnimation=null}function L3(e,t,r,n,a,i){t?t.setItemGraphicEl(i,r):mt(r).eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:n,region:a&&a.option||{}}}function E3(e,t,r,n,a){t||ys({el:r,componentModel:e,itemName:n,itemTooltipOption:a.get("tooltip")})}function O3(e,t,r,n){t.highDownSilentOnTouch=!!e.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return xe(t,i,a.get("blurScope"),a.get("disabled")),Uv(e)&&nut(t,e,r),i}function R3(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.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}function Uv(e){return e.mainType==="geo"}var kf="map",h0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=sd(this,{coordDimensions:["value"],encodeDefaulter:Mt(kR,this)}),a=rt(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=ls.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name,v=a.get(c),h=f.properties&&f.properties.echartsStyle,d;v==null?(d={name:c},i.push(d)):d=n.getRawDataItem(v),h&&wt(d,h)}),n.appendData(i),n},t.prototype.getHostGeoModel=function(){if(ej(this).kind!==tj)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},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,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=[];return D(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),c=i.mapDimension("value");isNaN(u.originalData.get(c,f))||l.push(u.name)}),Xe("section",{header:l.join(", "),noHeader:!l.length,blocks:[Xe("nameValue",{name:s,value:o})]})},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=Fe(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=V.color.neutral00,a.style.lineWidth=2),a},t.prototype.__ownRoamView=function(){return M1(this)?this.coordinateSystem.view:null},t.type="series."+kf,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:V.color.tertiary},itemStyle:{borderWidth:.5,borderColor:V.color.border,areaColor:V.color.background},emphasis:{label:{show:!0,color:V.color.primary},itemStyle:{areaColor:V.color.highlight}},select:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},nameProperty:"name"},t}(ne);function jX(e){return e.indexOf("i")===0}function M1(e){return Kg(e.seriesGroup)===e&&!e.getHostGeoModel()}function Kg(e){return e.f[0]}function zI(e,t){var r={};return e.eachRawSeriesByType(kf,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=r[i]=r[i]||{f:[],r:[]};!e.isSeriesFiltered(n)&&!t&&o.f.push(n),o.r.push(n)}),r}var d0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kf,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id?s&&o.add(s.group):M1(r)?(s=s||(this._mapDraw=new YX(a)),o.add(s.group),s.draw(r,n,a,this,i)):this._clearMapDraw(),r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r)}}},t.prototype.__updateOnOwnRoam=function(r,n,a){var i=this._mapDraw;M1(n)&&i&&i.__updateOnOwnRoam(n)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r){var n=r.originalData,a=this.group;n.each(n.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new oo({style:{fill:r.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:Yh+1)});if(!u){var c=Kg(r.seriesGroup).getData(),v=n.getName(o),h=c.indexOfName(v),d=n.getItemModel(o),p=d.getModel("label"),g=c.getItemGraphicEl(h);hr(f,ar(d),{labelFetcher:{getFormattedLabel:function(y,m){return r.getFormattedLabel(h,m)}},defaultText:v}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){jS(f,y)}}a.add(f)}}})},t.type=kf,t}(ee),p0t={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},WX=["lng","lat"],I3=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.dimensions=WX,i.type="geo",i._nameCoordMap=rt(),i.name=r;var o=a.projection,s=ls.load(n,a.nameMap,a.nameProperty),l=ls.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=p0t[l.type];i._clip=a.clip;var c=o?!1:f.invertLongitute;i.view=new Cx(c,zX(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return Mx(i.view,v.x,v.y,v.width,v.height),i.aspectScale=o?1:ot(a.aspectScale,f.aspectScale),i}return t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},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,a){if(K(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.view.dataToPoint(r,n,a)}},t.prototype.pointToData=function(r,n,a){var i=this.projection;return i&&(r=i.unproject(r)),r&&this.view.pointToData(r,a)},t.prototype.convertToPixel=function(r,n,a){var i=P3(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=P3(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.view.containPoint(r)},t.prototype.getArea=function(r){r=r||0;var n=EI(null,this.view);return n.x-=r,n.y-=r,n.width+=2*r,n.height+=2*r,n},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(ao);function P3(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Pe).models[0]||{}).coordinateSystem:null}function N3(e,t){var r=this.view,n=e.get("boundingCoords");if(n!=null){var a=n[0],i=n[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=i[0],f=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var c=function(x,w,A,T){for(var C=A-x,M=T-w,E=0;E<=100;E++){var L=E/100,R=o.project([x+C*L,w+M*L]);Oo(a,a,R),Ro(i,i,R)}};c(s,l,u,l),c(u,l,u,f),c(u,f,s,f),c(s,f,u,l)}Mx(r,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var v=r.getBoundingRect(),h=e.get("layoutCenter"),d=e.get("layoutSize"),p=or(e,t).refContainer,g=v.width/v.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[J(h[0],p.width)+p.x,J(h[1],p.height)+p.y],_=J(d,Math.min(p.width,p.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=e.getBoxLayoutParams();b.aspect=g,S=me(b,p),S=oj(e,S,g)}A1(r,S.x,S.y,S.width,S.height),RI(r,e)}function g0t(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var y0t=function(){function e(){this.dimensions=WX}return e.prototype.create=function(t,r){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return t.eachComponent("geo",function(i,o){var s=i.get("map"),l=new I3(s+o,s,U({nameMap:i.get("nameMap"),api:r,ecModel:t},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=N3,l.resize(i,r)}),t.eachSeries(function(i){Gy({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===kf?i.getHostGeoModel():i.getReferringComponents("geo",Pe).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),D(zI(t,!0),function(i,o){if(jX(o)){var s=i.r[0],l=[];D(i.r,function(v){l.push(v.get("nameMap")),v.seriesGroup=null});var u=o.slice(1),f=new I3(u,u,U({nameMap:zb(l),api:r,ecModel:t},a(s))),c;D(i.r,function(v){c=ot(c,v.get("scaleLimit"))}),n.push(f),f.resize=N3,f.resize(s,r),D(i.r,function(v){v.coordinateSystem=f,g0t(f,v)})}}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=rt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ls.load(r,n,a);return D(l.regions,function(u){var f=u.name,c=o.get(f),v=u.properties&&u.properties.echartsStyle;c||(c={name:f},i.push(c)),v&&wt(c,v)}),i},e}(),$X=new y0t,m0t=function(e){G(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,a){this.mergeDefaultAndTheme(r,a);var i=ls.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color=r.defaultItemStyleColor||V.color.backgroundTint)}_f(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=$X.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=La(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ot(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},rt()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Ot(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(ct(i))return o.status=n,i(o);if(K(i))return i.replace("{a}",r??"")},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[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.prototype.__ownRoamView=function(){return this.coordinateSystem.view},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:V.color.tertiary},itemStyle:{borderWidth:.5,borderColor:V.color.border},emphasis:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},select:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},regions:[]},t}(Et),_0t=function(e){G(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,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new YX(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype.__updateOnOwnRoam=function(r,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},t.prototype._handleRegionClick=function(r){var n;Hu(r.target,function(a){return(n=mt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=mt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.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}(ue);function S0t(e,t,r){ls.registerMap(e,t,r)}function XX(e){e.registerCoordinateSystem("geo",$X),e.registerComponentModel(m0t),e.registerComponentView(_0t),e.registerImpl("registerMap",S0t),e.registerImpl("getMap",function(r){return ls.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.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,a){var i=r.componentType||(r.geoId!=null||r.geoName!=null||r.geoIndex!=null?"geo":Ki),o=i===Ki;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(eR(r,i,s),function(l){o&&!M1(l)||(NX(r,l,o?l.seriesGroup.r:null),kX(r,l,n,a))})}})}var b0t=ir(kf,x0t);function x0t(e){D(zI(e),function(t,r){if(!(!Kg(t)||!jX(r))){var n={};D(t.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&e.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),c=o.getRegion(f);if(!(!c||isNaN(l))){var v=n[f]||0,h=o.dataToPoint(c.getCenter());n[f]=v+1,s.setItemLayout(u,{point:h,offset:v})}})});var a=Kg(t).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function w0t(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,f=0;f<u;f++)s=Math.min(s,r[i][f]),l=Math.max(l,r[i][f]),o+=r[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}var T0t=ir(kf,A0t);function A0t(e){D(zI(e),function(t){var r=Kg(t);if(r){var n=w0t(W(t.f,function(a){return a.getData()}),r.get("mapValueCalculation"));D(t.f,function(a){a.seriesGroup=t,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function C0t(e){At(XX),e.registerChartView(d0t),e.registerSeriesModel(h0t),e.registerLayout(b0t),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,T0t),qj("map",e.registerAction)}function M0t(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,a;n=r.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function D0t(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){E0t(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=O0t(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function L0t(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function k3(e){return arguments.length?e:P0t}function dp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function E0t(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function O0t(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=_A(s),i=SA(i),s&&i;){a=_A(a),o=SA(o),a.hierNode.ancestor=e;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);v>0&&(I0t(R0t(s,e,r),e,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!_A(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!SA(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,r=e)}return r}function _A(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function SA(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function R0t(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function I0t(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 P0t(e,t){return e.parentNode===t.parentNode?1:2}var Ma=Tt();function ZX(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,qX(t,r,e),D(r,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Mt(N0t,e))})}),t.wrapMethod("cloneShallow",Mt(B0t,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Mt(k0t,e))}),zr(r[t.dataType]===t)}function N0t(e,t){if(G0t(this)){var r=U({},Ma(this).datas);r[this.dataType]=t,qX(t,r,e)}else VI(t,this.dataType,Ma(this).mainData,e);return t}function k0t(e,t){return e.struct&&e.struct.update(),t}function B0t(e,t){return D(Ma(t).datas,function(r,n){r!==t&&VI(r.cloneShallow(),n,t,e)}),t}function z0t(e){var t=Ma(this).mainData;return e==null||t==null?t:Ma(t).datas[e]}function V0t(){var e=Ma(this).mainData;return e==null?[{data:e}]:W(Nt(Ma(e).datas),function(t){return{type:t,data:Ma(e).datas[t]}})}function G0t(e){return Ma(e).mainData===e}function qX(e,t,r){Ma(e).datas={},D(t,function(n,a){VI(n,a,e,r)})}function VI(e,t,r,n){Ma(r).datas[t]=e,Ma(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=z0t,e.getLinkedDataAll=V0t}var H0t=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){ct(t)&&(n=r,r=t,t=null),t=t||{},K(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="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 a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},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}(),GI=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,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(f,c){var v=f.value;o=Math.max(o,Y(v)?v.length:1),i.push(f);var h=new H0t(rr(f.name,""),a);c?U0t(h,c):a.root=h,a._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}a.root.updateDepthAndHeight(0);var l=rd(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new qr(l,r);return u.initData(i),n&&n(u),ZX({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function U0t(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function Qg(e,t,r){if(e&&bt(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;if(K(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function KX(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function HI(e,t){var r=KX(e);return bt(r,t)>=0}function Lx(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 Bf="tree",F0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new Ot(a,this,this.ecModel),o=GI.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=r.expandAndCollapse,f=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Xe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Lx(a,this),n.collapsed=!a.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+Bf,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:V.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ne),Y0t=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),j0t=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Y0t},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=J(n.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[f]=s[f],r.lineTo(h[0],h[1]),h[f]=l[f],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];r.moveTo(p[0],p[1]),h[f]=p[f],r.lineTo(h[0],h[1])}},t}(Rt),W0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Bf,r._mainGroup=new ht,r}return t.prototype.init=function(r,n){this._controller=new gc(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(r,n,a){var i=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,a),Dx(r,a,this._controller,GX(this.group),null);var u=this._data;i.diff(u).add(function(f){B3(i,f)&&z3(i,f,null,s,r)}).update(function(f,c){var v=u.getItemGraphicEl(c);if(!B3(i,f)){v&&G3(u,c,v,s,r);return}z3(i,f,v,s,r)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&G3(u,f,c,s,r)}).execute(),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:c})})}),this._data=i,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(r,n,a){Al(this.group,to,n.coordinateSystem,null),UX(r)&&this._updateNodeAndLinkScale(n)},t.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(c){var v=a.getItemLayout(c);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];Qb(i,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 f=r.coordinateSystem=kI(r,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);Al(this.group,to,f,this._firstRender?null:r),this._min=o,this._max=s},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=VX(r.coordinateSystem,r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=Bf,t}(ee);function B3(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function z3(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:V.color.neutral00,f=e.tree.root,c=o.parentNode===f?o:o.parentNode||o,v=e.getItemGraphicEl(c.dataIndex),h=c.getLayout(),d=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:h,p=o.getLayout();i?(r=new Wy(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=d.x,r.y=d.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=p.rawX,r.__radialRawY=p.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,jt(r,{x:p.x,y:p.y},a);var g=r.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<m.x,b&&(S=S-Math.PI)):(b=p.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",A=s.getModel("label"),T=A.get("rotate"),C=T*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:A.get("position")||w,rotation:T==null?-S:C,origin:"center"}),M.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),L=E==="relative"?sh(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;L&&(mt(r).focus=L),$0t(a,o,f,r,d,h,p,n),r.__edge&&(r.onHoverStateChange=function(R){if(R!=="blur"){var I=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);I&&I.hoverState===Py||jS(r.__edge,R)}})}function $0t(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),f=e.get("layout"),c=e.getOrient(),v=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new Wh({shape:AL(f,c,v,a,a)})),jt(p,{shape:AL(f,c,v,i,o)},e));else if(u==="polyline"&&f==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new j0t({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:h}})),jt(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(pt({strokeNoScale:!0,fill:null},d)),nr(p,l,"lineStyle"),wf(p),s.add(p))}function V3(e,t,r,n,a){var i=t.tree.root,o=QX(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);v&&(h==="curve"?Tl(v,{shape:AL(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){r.remove(v)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&Tl(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(v)},removeOpt:a}))}}function QX(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 G3(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=QX(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Tl(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),D(i.children,function(u){V3(u,e,n,a,l)}),V3(i,e,n,a,l)}function AL(e,t,r,n,a){var i,o,s,l,u,f,c,v;if(e==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,v=a.rawY;var h=dp(u,c),d=dp(u,c+(v-c)*r),p=dp(f,v+(c-v)*r),g=dp(f,v);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=a.x,v=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*r,o=c,s=f+(u-f)*r,l=v),(t==="TB"||t==="BT")&&(i=u,o=c+(v-c)*r,s=f,l=v+(c-v)*r);return{x1:u,y1:c,x2:f,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function X0t(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function Fd(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function Z0t(e,t){e.eachSeriesByType("tree",function(r){q0t(r,t)})}function q0t(e,t){var r=or(e,t).refContainer,n=me(e.getBoxLayoutParams(),r);e.layoutInfo=n;var a=e.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=k3(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=k3());var l=e.getData().tree.root,u=l.children[0];if(u){M0t(l),X0t(u,D0t,s),l.hierNode.modifier=-u.hierNode.prelim,Fd(u,L0t);var f=u,c=u,v=u;Fd(u,function(S){var b=S.getLayout().x;b<f.getLayout().x&&(f=S),b>c.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),Fd(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=dp(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=e.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),Fd(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),Fd(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function K0t(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:Ki,subType:Bf,query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),NI(e,Ki,Bf)}var Q0t=ir(Bf,J0t);function J0t(e){e.eachSeriesByType(Bf,function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");U(s,o)})})}function t_t(e){e.registerChartView(W0t),e.registerSeriesModel(F0t),e.registerLayout(Z0t),e.registerVisual(Q0t),K0t(e)}var H3=["treemapZoomToNode","treemapRender","treemapMove"];function e_t(e){for(var t=0;t<H3.length;t++)e.registerAction({type:H3[t],update:"updateView"},Ee);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Qg(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=HI(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function JX(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=H2(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var r_t=function(e){G(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 a={name:r.name,children:r.data};tZ(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ot({itemStyle:o},this,n);i=r.levels=n_t(i,n);var l=W(i||[],function(c){return new Ot(c,s,n)},this),u=GI.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Xe("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Lx(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},U(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=rt(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},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(){JX(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:V.size.l,top:V.size.xxxl,right:V.size.l,bottom:V.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:V.size.m,emptyItemWidth:25,itemStyle:{color:V.color.backgroundShade,textStyle:{color:V.color.secondary}},emphasis:{itemStyle:{color:V.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:V.color.neutral00,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:V.color.neutral00,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}(ne);function tZ(e){var t=0;D(e.children,function(n){tZ(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});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 n_t(e,t){var r=le(t.get("color")),n=le(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;D(e,function(s){var l=new Ot(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}var a_t=8,U3=8,bA=5,i_t=function(){function e(t){this.group=new ht,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=or(t,r).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=me(v,c);this._prepare(n,h,u),this._renderContent(t,h,d,s,l,u,f,a),sx(o,v,c)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=rr(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+a_t*2,r.emptyItemWidth);r.totalWidth+=s+U3,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s,l){for(var u=0,f=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=r.totalWidth,h=r.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>n.width&&(v-=m-f,m=f,_=null);var S=new Gr({shape:{points:o_t(u,0,m,c,p===h.length-1,p===0)},style:pt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new zt({style:oe(o,{text:_})}),textConfig:{position:"inside"},z2:Yh*1e4,onclick:Mt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=oe(s,{text:_}),S.ensureState("emphasis").style=d,xe(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),s_t(S,t,y),u+=m+U3}},e.prototype.remove=function(){this.group.removeAll()},e}();function o_t(e,t,r,n,a,i){var o=[[a?e:e-bA,t],[e+r,t],[e+r,t+n],[a?e:e-bA,t+n]];return!i&&o.splice(2,0,[e+r+bA,t+n/2]),!a&&o.push([e,t+n/2]),o}function s_t(e,t,r){mt(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&&Lx(r,t)}}var l_t=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!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())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function u_t(){return new l_t}var Jg=Math.max,D1=Math.min,UI=D,eZ=["itemStyle","borderWidth"],f_t=["itemStyle","gapWidth"],c_t=["upperLabel","show"],v_t=["upperLabel","height"];const h_t={seriesType:"treemap",reset:function(e,t,r,n){var a=e.option,i=or(e,r).refContainer,o=me(e.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=Qg(n,l,e),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,c=e.getViewRoot(),v=KX(c);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,__t(e,u,c,o)):f?(h=!0,U({},f)):U({},o);if(h){var p=iZ(o,d);p=oZ(p,e),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};c.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};c.setLayout(m),rZ(c,y,!1,0),m=c.getLayout(),UI(v,function(S,b){var x=(v[b+1]||c).getValue();S.setLayout(U({dataExtent:[x,x],borderWidth:0,upperHeight:0},m))})}var _=e.getData().tree.root;_.setLayout(S_t(o,f,u),!0),e.setLayoutInfo(o),nZ(_,new dt(-o.x,-o.y,r.getWidth(),r.getHeight()),v,c,0)}};function rZ(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(eZ),u=s.get(f_t)/2,f=aZ(s),c=Math.max(l,f),v=l-u,h=c-u;e.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Jg(a-2*v,0),i=Jg(i-v-h,0);var d=a*i,p=d_t(e,s,d,t,r,n);if(p.length){var g={x:v,y:h,width:a,height:i},y=D1(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var x=p[S];_.push(x),_.area+=x.getLayout().area;var w=m_t(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,F3(_,y,g,u,!1),y=D1(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&F3(_,y,g,u,!0),!r){var A=s.get("childrenVisibleMin");A!=null&&d<A&&(r=!0)}for(var S=0,b=p.length;S<b;S++)rZ(p[S],t,r,n+1)}}}function d_t(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=Xt(o,function(h){return!h.isRemoved()}),g_t(o,s);var u=y_t(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=p_t(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var v=o[f].getValue()/u.sum*r;o[f].setLayout({area:v})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function p_t(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function g_t(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function y_t(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].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=Lr(),UI(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 m_t(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Jg(u*n/l,l/(u*a)):1/0}function F3(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],f=t?e.area/t:0;(a||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,v=e.length;c<v;c++){var h=e[c],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=Jg(f-2*n,0),y=r[s[i]]+r[l[i]]-u,m=c===v-1||y<p?y:p,_=d[l[i]]=Jg(m-2*n,0);d[s[o]]=r[s[o]]+D1(n,g/2),d[s[i]]=u+D1(n,_/2),u+=m,h.setLayout(d,!0)}r[s[o]]+=f,r[l[o]]-=f}function __t(e,t,r,n){var a=(t||{}).node,i=n.width,o=n.height,s=U({},n);if(!a||a===r)return s;for(var l,u=i*o,f=u*e.option.zoomToNodeRatio;l=a.parentNode;){for(var c=0,v=l.children,h=0,d=v.length;h<d;h++)c+=v[h].getValue();var p=a.getValue();if(p===0)return s;f*=c/p;var g=l.getModel(),y=g.get(eZ),m=Math.max(y,aZ(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>Cg&&(f=Cg),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function S_t(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;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 nZ(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new dt(t.x-i.x,t.y-i.y,t.width,t.height);UI(e.viewChildren||[],function(u){nZ(u,l,r,n,a+1)})}}function aZ(e){return e.get(c_t)?e.get(v_t):0}function iZ(e,t){return t.width/e.width||t.height/e.height||1}function oZ(e,t){return PI(e,t.get("scaleLimit",!0))}var CL=ht,Y3=Lt,j3=3,W3="label",$3="upperLabel",b_t=Yh*10,x_t=Yh*2,w_t=Yh*3,Du=xf([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),X3=function(e){var t=Du(e);return t.stroke=t.fill=t.lineWidth=null,t},L1=Tt(),T_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Yd(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(bt(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Qg(i,s,r),u=i&&i.type,f=r.layoutInfo,c=!this._oldTree,v=this._storage,h=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=r.get("animation"),g=this._doRender(d,r,h);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,r,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new CL,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=Yd(),l=Yd(),u=this._storage,f=[];function c(g,y,m,_){return A_t(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var v=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:p};function h(g,y,m,_,S){_?(y=g,D(g,function(w,A){!w.isRemoved()&&x(A,A)})):new os(y,g,b,b).add(x).update(x).remove(Mt(x,null)).execute();function b(w){return w.getId()}function x(w,A){var T=w!=null?g[w]:null,C=A!=null?y[A]:null,M=c(T,C,m,S);M&&h(T&&T.viewChildren||[],C&&C.viewChildren||[],M,_,S+1)}}function d(g){var y=Yd();return g&&D(g,function(m,_){var S=y[_];D(m,function(b){b&&(S.push(b),L1(b).willDelete=!0)})}),y}function p(){D(v,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(f,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ct(o)?0:o)||0,u=(ct(s)?null:s)||"cubicOut",f=u_t();D(n.willDeleteEls,function(c,v){D(c,function(h,d){if(!h.invisible){var p=h.parent,g,y=L1(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=v==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),D(this._storage,function(c,v){D(c,function(h,d){var p=n.lastsForAnimation[v][d],g={};p&&(h instanceof ht?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=U({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(et(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new gc(r.getZr()),i.on("pan",et(this._onPan,this)),i.on("zoom",et(this._onZoom,this))),i.enable(a.get("roam"),{api:r,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},t.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>j3||Math.abs(r.dy)>j3)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY,i=r.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new dt(l.x,l.y,l.width,l.height),f=o.layoutInfo,c=iZ(f,l),v=c*i;v=oZ(v,o);var h=v/c;n-=f.x,a-=f.y;var d=Se();Qa(d,d,[-n,-a]),Gb(d,d,[h,h]),Qa(d,d,[n,a]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&KS(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new i_t(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(HI(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Yd(),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 a,i=this.seriesModel.getViewRoot();return i.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)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(ee);function Yd(){return{nodeGroup:[],background:[],content:[]}}function A_t(e,t,r,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=e.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),A=v.getModel(["blur","itemStyle"]),T=v.getModel(["select","itemStyle"]),C=x.get("borderRadius")||0,M=tt("nodeGroup",CL);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),L1(M).nodeWidth=h,L1(M).nodeHeight=d,f.isAboveViewRoot)return M;var E=tt("background",Y3,u,x_t);E&&z(M,E,b&&f.upperLabelHeight);var L=v.getModel("emphasis"),R=L.get("focus"),I=L.get("blurScope"),O=L.get("disabled"),N=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(b)Lg(M)&&Vu(M,!1),E&&(Vu(E,!O),c.setItemGraphicEl(o.dataIndex,E),E2(E,N,I));else{var P=tt("content",Y3,u,w_t);P&&H(M,P),E.disableMorphing=!0,E&&Lg(E)&&Vu(E,!1),Vu(M,!O),c.setItemGraphicEl(o.dataIndex,M);var B=v.getShallow("cursor");B&&P.attr("cursor",B),E2(M,N,I)}return M;function z(it,Q,st){var Z=mt(Q);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=e.seriesIndex,Q.setShape({x:0,y:0,width:h,height:d,r:C}),g)F(Q);else{Q.invisible=!1;var at=o.getVisual("style"),Ht=at.stroke,Ct=X3(x);Ct.fill=Ht;var Ut=Du(w);Ut.fill=w.get("borderColor");var Zt=Du(A);Zt.fill=A.get("borderColor");var _e=Du(T);if(_e.fill=T.get("borderColor"),st){var Qr=h-2*p;$(Q,Ht,at.opacity,{x:p,y:0,width:Qr,height:S})}else Q.removeTextContent();Q.setStyle(Ct),Q.ensureState("emphasis").style=Ut,Q.ensureState("blur").style=Zt,Q.ensureState("select").style=_e,wf(Q)}it.add(Q)}function H(it,Q){var st=mt(Q);st.dataIndex=o.dataIndex,st.seriesIndex=e.seriesIndex;var Z=Math.max(h-2*p,0),at=Math.max(d-2*p,0);if(Q.culling=!0,Q.setShape({x:p,y:p,width:Z,height:at,r:C}),g)F(Q);else{Q.invisible=!1;var Ht=o.getVisual("style"),Ct=Ht.fill,Ut=X3(x);Ut.fill=Ct,Ut.decal=Ht.decal;var Zt=Du(w),_e=Du(A),Qr=Du(T);$(Q,Ct,Ht.opacity,null),Q.setStyle(Ut),Q.ensureState("emphasis").style=Zt,Q.ensureState("blur").style=_e,Q.ensureState("select").style=Qr,wf(Q)}it.add(Q)}function F(it){!it.invisible&&i.push(it)}function $(it,Q,st,Z){var at=v.getModel(Z?$3:W3),Ht=rr(v.get("name"),null),Ct=at.getShallow("show");hr(it,ar(v,Z?$3:W3),{defaultText:Ct?Ht:null,inheritColor:Q,defaultOpacity:st,labelFetcher:e,labelDataIndex:o.dataIndex});var Ut=it.getTextContent();if(Ut){var Zt=Ut.style,_e=Ey(Zt.padding||0);Z&&(it.setTextConfig({layoutRect:Z}),Ut.disableLabelLayout=!0),Ut.beforeUpdate=function(){var Fr=Math.max((Z?Z.width:it.shape.width)-_e[1]-_e[3],0),ta=Math.max((Z?Z.height:it.shape.height)-_e[0]-_e[2],0);(Zt.width!==Fr||Zt.height!==ta)&&Ut.setStyle({width:Fr,height:ta})},Zt.truncateMinChar=2,Zt.lineOverflow="truncate",j(Zt,Z,f);var Qr=Ut.getState("emphasis");j(Qr?Qr.style:null,Z,f)}}function j(it,Q,st){var Z=it?it.text:null;if(!Q&&st.isLeafRoot&&Z!=null){var at=e.get("drillDownIcon",!0);it.text=at?at+" "+Z:Z}}function tt(it,Q,st,Z){var at=m!=null&&r[it][m],Ht=a[it];return at?(r[it][m]=null,_t(Ht,at)):g||(at=new Q,at instanceof Ra&&(at.z2=C_t(st,Z)),lt(Ht,at)),t[it][y]=at}function _t(it,Q){var st=it[y]={};Q instanceof CL?(st.oldX=Q.x,st.oldY=Q.y):st.oldShape=U({},Q.shape)}function lt(it,Q){var st=it[y]={},Z=o.parentNode,at=Q instanceof ht;if(Z&&(!n||n.direction==="drillDown")){var Ht=0,Ct=0,Ut=a.background[Z.getRawIndex()];!n&&Ut&&Ut.oldShape&&(Ht=Ut.oldShape.width,Ct=Ut.oldShape.height),at?(st.oldX=0,st.oldY=Ct):st.oldShape={x:Ht,y:Ct,width:0,height:0}}st.fadein=!at}}function C_t(e,t){return e*b_t+t}var ty=D,M_t=gt,E1=-1,cr=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=ut(t);this.type=n,this.mappingMethod=r,this._normalizeData=E_t[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(xA(a),D_t(a)):r==="category"?a.categories?L_t(a):xA(a,!0):(zr(r!=="linear"||a.dataExtent),xA(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return et(this._normalizeData,this)},e.listVisualTypes=function(){return Nt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){gt(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=Y(t)?[]:gt(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&ty(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(M_t(t)){var r=[];ty(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="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 a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||K(l)&&l===t+"")return o;n&&v(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(m0(c[1],t,f[1]))return o}else if(f[1]===1/0){if(m0(c[0],f[0],t))return o}else if(m0(c[0],f[0],t)&&m0(c[1],t,f[1]))return o;n&&v(f[0],o),n&&v(f[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function v(h,d){var p=Math.abs(h-t);p<i&&(i=p,a=d)}},e.visualHandlers={color:{applyVisual:jd("color"),getColorMapper:function(){var t=this.option;return et(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),pp.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=Up(r,t.parsedVisual,a),i?a:Aa(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Aa(Up(t,this.option.parsedVisual),"rgba")},category:pp,piecewise:function(t,r){var n=DL.call(this,r);return n==null&&(n=Aa(Up(t,this.option.parsedVisual),"rgba")),n},fixed:Lu}},colorHue:y0(function(t,r){return Ho(t,r)}),colorSaturation:y0(function(t,r){return Ho(t,null,r)}),colorLightness:y0(function(t,r){return Ho(t,null,null,r)}),colorAlpha:y0(function(t,r){return xg(t,r)}),decal:{applyVisual:jd("decal"),_normalizedToVisual:{linear:null,category:pp,piecewise:null,fixed:null}},opacity:{applyVisual:jd("opacity"),_normalizedToVisual:ML([0,1])},liftZ:{applyVisual:jd("liftZ"),_normalizedToVisual:{linear:Lu,category:Lu,piecewise:Lu,fixed:Lu}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:Z3,category:pp,piecewise:function(t,r){var n=DL.call(this,r);return n==null&&(n=Z3.call(this,t)),n},fixed:Lu}},symbolSize:{applyVisual:jd("symbolSize"),_normalizedToVisual:ML([0,1])}},e}();function D_t(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function L_t(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(ty(t,function(o,s){r[o]=s}),!Y(n)){var a=[];gt(n)?ty(n,function(o,s){var l=r[s];a[l??E1]=o}):a[E1]=n,n=sZ(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function xA(e,t){var r=e.visual,n=[];gt(r)?ty(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),sZ(e,n)}function y0(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:ML([0,1])}}function Z3(e){var t=this.option.visual;return t[Math.round(Wt(e,[0,1],[0,t.length-1],!0))]||{}}function jd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function pp(e){var t=this.option.visual;return t[this.option.loop&&e!==E1?e%t.length:e]}function Lu(){return this.option.visual[0]}function ML(e){return{linear:function(t){return Wt(t,e,this.option.visual,!0)},category:pp,piecewise:function(t,r){var n=DL.call(this,r);return n==null&&(n=Wt(t,e,this.option.visual,!0)),n},fixed:Lu}}function DL(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=cr.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function sZ(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=W(t,function(r){var n=Zr(r);return n||[0,0,0,1]})),t}var E_t={linear:function(e){return Wt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=cr.findPieceIndex(e,t,!0);if(r!=null)return Wt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??E1},fixed:Ee};function m0(e,t,r){return e?t<=r:t<r}var O_t="itemStyle",lZ=Tt();const R_t={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||uZ(r,{},e.getViewRoot().getAncestors(),e)}};function uZ(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(O_t),l=I_t(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),v;c!=null&&(v=q3(l),f=P_t(c,v)),u.stroke=f;var h=e.viewChildren;if(!h||!h.length)v=q3(l),u.fill=v;else{var d=N_t(e,a,i,s,l,h);D(h,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var y=k_t(a,l,p,g,d,n);uZ(p,y,r,n)}})}}}function I_t(e,t,r){var n=U({},t),a=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function q3(e){var t=wA(e,"color");if(t){var r=wA(e,"colorAlpha"),n=wA(e,"colorSaturation");return n&&(t=Ho(t,null,null,n)),r&&(t=xg(t,r)),t}}function P_t(e,t){return t!=null?Ho(t,null,null,e):null}function wA(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function N_t(e,t,r,n,a,i){if(!(!i||!i.length)){var o=TA(t,"color")||a.color!=null&&a.color!=="none"&&(TA(t,"colorAlpha")||TA(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 f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new cr(c);return lZ(v).drColorMappingBy=f,v}}}function TA(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function k_t(e,t,r,n,a,i){var o=U({},t);if(a){var s=a.type,l=s==="color"&&lZ(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function B_t(e){e.registerSeriesModel(r_t),e.registerChartView(T_t),e.registerVisual(R_t),e.registerLayout(h_t),e_t(e)}function Bc(e){return"_EC_"+e}var z_t=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[Bc(t)]){var a=new Eu(t,r);return a.hostGraph=this,this.nodes.push(a),n[Bc(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Bc(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(Vt(t)&&(t=this.nodes[t]),Vt(r)&&(r=this.nodes[r]),t instanceof Eu||(t=a[Bc(t)]),r instanceof Eu||(r=a[Bc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new fZ(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),i[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 Eu&&(t=t.id),r instanceof Eu&&(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,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof Eu||(r=this._nodesMap[Bc(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),Eu=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=rt(),r=rt(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,r.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,v=f.length,h=void 0,d=void 0;c<v;c++)h=f[c],d=h.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,r.set(p.dataIndex,!0);for(var g=p.outEdges,c=0,y=g.length,m=void 0,_=void 0;c<y;c++)m=g[c],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:r.keys()}},e}(),fZ=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=rt(),r=rt();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,r.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(f.node1))}for(i=0;i<a.length;){var v=a[i];i++,r.set(v.dataIndex,!0);for(var h=v.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=v.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node2))}return{edge:t.keys(),node:r.keys()}},e}();function cZ(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)}}}Ye(Eu,cZ("hostGraph","data"));Ye(fZ,cZ("hostGraph","edgeData"));function FI(e,t,r,n,a){for(var i=new z_t(n),o=0;o<e.length;o++)i.addNode(Xr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,v=f.target;i.addEdge(c,v,u)&&(l.push(f),s.push(Xr(rr(f.id,null),c+" > "+v)),u++)}var h=r.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=so(e,r);else{var p=Qh.get(h),g=p?p.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=rd(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;d=new qr(y,r),d.initData(e)}var m=new qr(["value"],r);return m.initData(l,s),a&&a(d,m),ZX({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var LL="-->",Ex=function(e){return e.get("autoCurveness")||null},vZ=function(e,t){var r=Ex(e),n=20,a=[];if(Vt(r))n=r;else if(Y(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},ey=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(LL)},hZ=function(e){var t=e.split(LL);return[t[0],t[2],t[1]].join(LL)},V_t=function(e,t){var r=ey(e.node1,e.node2,t);return t.__edgeMap[r]},G_t=function(e,t){var r=EL(ey(e.node1,e.node2,t),t),n=EL(ey(e.node2,e.node1,t),t);return r+n},EL=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function H_t(e){Ex(e)&&(e.__curvenessList=[],e.__edgeMap={},vZ(e))}function U_t(e,t,r,n){if(Ex(r)){var a=ey(e,t,r),i=r.__edgeMap,o=i[hZ(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function YI(e,t,r,n){var a=Ex(t),i=Y(a);if(!a)return null;var o=V_t(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=G_t(e,t);vZ(t,u),e.lineStyle=e.lineStyle||{};var f=ey(e.node1,e.node2,t),c=t.__curvenessList,v=i||u%2?0:1;if(o.isForward)return c[v+s];var h=hZ(f),d=EL(h,t),p=c[s+d+v];return n?i?a&&a[0]===0?(d+v)%2?p:-p:((d%2?0:1)+v)%2?p:-p:(d+v)%2?p:-p:c[s+d+v]}var cn="graph",F_t=function(e){G(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 a(){return n._categoriesData}this.legendVisualProvider=new ld(a,a),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),_f(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){H_t(this);var s=FI(i,a,this,!0,l);return D(s.edges,function(u){U_t(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Ot.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},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,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Xe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=Gj({series:this,dataIndex:r,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var r=W(this.option.categories||[],function(a){return a.value!=null?a:U({value:0},a)}),n=new qr(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.prototype.__ownRoamView=function(){var r=this.coordinateSystem;return PX(r)&&r},t.type="series."+cn,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:V.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:V.color.primary}}},t}(ne);function _0(e){return e instanceof Array||(e=[e,e]),e}var Y_t=ir(cn,j_t);function j_t(e){e.eachSeriesByType(cn,function(t){var r=t.getGraph(),n=t.getEdgeData(),a=_0(t.get("edgeSymbol")),i=_0(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=_0(s.getShallow("symbol",!0)),f=_0(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),v=n.ensureUniqueItemVisual(o,"style");switch(U(v,c),v.stroke){case"source":{var h=l.node1.getVisual("style");v.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");v.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function dZ(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),jI(r,e)}}function jI(e,t){e.eachEdge(function(r,n){var a=wn(r.getModel().get(["lineStyle","curveness"]),-YI(r,t,n,!0),0),i=ki(r.node1.getLayout()),o=ki(r.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),r.setLayout(s)})}var W_t=ir(cn,$_t);function $_t(e,t){e.eachSeriesByType(cn,function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];D(a.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}jI(i.graph,r)}else(!n||n==="none")&&dZ(r)})}function gp(e){var t=e.coordinateSystem;return PX(t)?VX(t,e):1}function yp(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var K3=Math.PI,AA=[];function WI(e,t,r,n){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var v=a.pointToData(n),h=v[0],d=v[1],p=[h-l,d-u];nc(p,p),zp(p,p,f),r.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);pZ(r,g,l,u)}X_t[t](e,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=wn(y.getModel().get(["lineStyle","curveness"]),YI(y,e,m),0),S=ki(y.node1.getLayout()),b=ki(y.node2.getLayout()),x,w=(S[0]+b[0])/2,A=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+A*(1-_)]),y.setLayout([S,b,x])})}}}var X_t={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),v=u*(l?c:1)/2;s+=v,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=v})},symbolSize:function(e,t,r,n,a,i,o){var s=0;AA.length=o;var l=gp(e);t.eachNode(function(c){var v=yp(c);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var h=Math.asin(v/2/n);isNaN(h)&&(h=K3/2),AA[c.dataIndex]=h,s+=h*2});var u=(2*K3-s)/o/2,f=0;t.eachNode(function(c){var v=u+AA[c.dataIndex];f+=v,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=v})}};function pZ(e,t,r,n){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var v=s.ensureState("emphasis");U(v.textConfig||(v.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var Z_t=ir(cn,q_t);function q_t(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&WI(t,"symbolSize")})}var zc=DS;function K_t(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Bl(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=ki(c.p),c.edges=null}var v=r.friction==null?.6:r.friction,h=v,d,p;return{warmUp:function(){h=v*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;js(y,x.p,b.p);var w=_g(y)-S.d,A=x.w/(b.w+x.w);isNaN(A)&&(A=0),nc(y,y),!b.fixed&&zc(b.p,b.p,y,A*w*h),!x.fixed&&zc(x.p,x.p,y,-(1-A)*w*h)}}for(var _=0;_<m;_++){var T=n[_];T.fixed||(js(y,l,T.p),zc(T.p,T.p,y,u*h))}for(var _=0;_<m;_++)for(var b=n[_],C=_+1;C<m;C++){var x=n[C];js(y,x.p,b.p);var w=_g(y);w===0&&(Vo(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&zc(b.pp,b.pp,y,M),!x.fixed&&zc(x.pp,x.pp,y,-M)}for(var E=[],_=0;_<m;_++){var T=n[_];T.fixed||(js(E,T.p,T.pp),zc(T.p,T.p,E,h),Mr(T.pp,T.p))}h=h*.992;var L=h<.01;p&&p(n,a,L),g&&g(L)}}}var Q_t=ir(cn,J_t);function J_t(e){e.eachSeriesByType(cn,function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?dZ(t):l==="circular"&&WI(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),v=s.get("edgeLength"),h=Y(c)?c:[c,c],d=Y(v)?v:[v,v];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=Wt(_,u,h);return isNaN(x)&&(x=(h[0]+h[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=Wt(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),A=wn(b.getModel().get(["lineStyle","curveness"]),-YI(b,t,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=r.getBoundingRect(),m=K_t(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Mr(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var A=S[x],T=a.getEdgeByIndex(x),C=A.n1.p,M=A.n2.p,E=T.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Mr(E[0],C),Mr(E[1],M),+A.curveness&&(E[2]=[(C[0]+M[0])/2-(C[1]-M[1])*A.curveness,(C[1]+M[1])/2-(M[0]-C[0])*A.curveness]),T.setLayout(E)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function tSt(e,t,r){var n=or(e,t),a=U(e.getBoxLayoutParams(),{aspect:r}),i=me(a,n.refContainer);return oj(e,i,r)}function eSt(e,t){var r=[];return e.eachSeriesByType("graph",function(n){Gy({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];Qb(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]),f=tSt(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],v=l[1]-s[1],h=kI(n,t,s[0],s[1],c,v,f);return r.push(h),h}}),r}var Q3=He.prototype,CA=Wh.prototype,gZ=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(gZ);function MA(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var yZ=function(e){G(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:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new gZ},t.prototype.buildPath=function(r,n){MA(n)?Q3.buildPath.call(this,r,n):CA.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return MA(this.shape)?Q3.pointAt.call(this,r):CA.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=MA(n)?[n.x2-n.x1,n.y2-n.y1]:CA.tangentAt.call(this,r);return nc(a,a)},t}(Rt),DA=["fromSymbol","toSymbol"];function J3(e){return"_"+e+"Type"}function tG(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=ed(a),u=hc(o||0,l);return n+l+u+(i||"")+(s||"")}function eG(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=ed(a),u=hc(o||0,l),f=Fe(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=e,f}}function rSt(e){var t=new yZ({name:"line",subPixelOptimize:!0});return OL(t.shape,e),t}function OL(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 $I=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=rSt(o);l.shape.percent=0,de(l,{z2:ot(s,0),shape:{percent:1}},i,n),this.add(l),D(DA,function(u){var f=eG(u,r,n);this.add(f),this[J3(u)]=tG(u,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};OL(l.shape,s),jt(o,l,i,n),D(DA,function(u){var f=tG(u,r,n),c=J3(u);if(this[c]!==f){this.remove(this.childOfName(u));var v=eG(u,r,n);this.add(v)}this[c]=f},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,v=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var d=r.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),v=p.get("focus"),h=p.get("blurScope"),f=ar(d)}var g=r.getItemVisual(n,"style"),y=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(DA,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var A=0;A<fn.length;A++){var T=fn[A],C=o.getState(T);if(C){var M=C.style||{},E=w.ensureState(T),L=E.style||(E.style={});M.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);hr(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,r.dataType)}},inheritColor:y||V.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?r.getName(n):isFinite(m)?Yt(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");Y(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),xe(this,v,h,c)},t.prototype.highlight=function(){as(this)},t.prototype.downplay=function(){is(this)},t.prototype.updateLayout=function(r,n){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");OL(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.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,f=l.pointAt(0),c=l.pointAt(u),v=js([],c,f);nc(v,v);function h(C,M){var E=C.__specifiedRotation;if(E==null){var L=l.tangentAt(M);C.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else C.attr("rotation",E)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var A=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(A=Math.PI+A),i.rotation=A}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,p="top";break;default:T=0,p="middle"}switch(i.__position){case"end":i.x=v[0]*y+c[0],i.y=v[1]*m+c[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+T,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+T,d="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+T,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(ht),XI=function(){function e(t){this.group=new ht,this._LineCtor=t||$I}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=rG(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.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=rG(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[];function a(l){!l.isGroup&&!nSt(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Xh)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(LA(o)){var s=new this._LineCtor(r,i,this._seriesScope);s.traverse(a),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){zl(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(LA(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!LA(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function nSt(e){return e.animators&&e.animators.length>0}function rG(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:ar(t)}}function nG(e){return isNaN(e[0])||isNaN(e[1])}function LA(e){return e&&!nG(e[0])&&!nG(e[1])}var EA=[],OA=[],RA=[],Vc=mr,IA=sl,aG=Math.abs;function iG(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){EA[0]=Vc(n[0],a[0],i[0],f),EA[1]=Vc(n[1],a[1],i[1],f);var c=aG(IA(EA,t)-l);c<o&&(o=c,s=f)}for(var v=0;v<32;v++){var h=s+u;OA[0]=Vc(n[0],a[0],i[0],s),OA[1]=Vc(n[1],a[1],i[1],s),RA[0]=Vc(n[0],a[0],i[0],h),RA[1]=Vc(n[1],a[1],i[1],h);var c=IA(OA,t)-l;if(aG(c)<.01)break;var d=IA(RA,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function PA(e,t){var r=[],n=Sg,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[ki(u[0]),ki(u[1])],u[2]&&u.__original.push(ki(u[2])));var v=u.__original;if(u[2]!=null){if(Mr(a[0],v[0]),Mr(a[1],v[2]),Mr(a[2],v[1]),f&&f!=="none"){var h=yp(s.node1),d=iG(a,v[0],h*t);n(a[0][0],a[1][0],a[2][0],d,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],d,r),a[0][1]=r[3],a[1][1]=r[4]}if(c&&c!=="none"){var h=yp(s.node2),d=iG(a,v[1],h*t);n(a[0][0],a[1][0],a[2][0],d,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],d,r),a[1][1]=r[1],a[2][1]=r[2]}Mr(u[0],a[0]),Mr(u[1],a[2]),Mr(u[2],a[1])}else{if(Mr(i[0],v[0]),Mr(i[1],v[1]),js(o,i[1],i[0]),nc(o,o),f&&f!=="none"){var h=yp(s.node1);DS(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=yp(s.node2);DS(i[1],i[1],o,-h*t)}Mr(u[0],i[0]),Mr(u[1],i[1])}})}var mZ=Tt();function aSt(e){if(e)return mZ(e).bridge}function oG(e,t){e&&(mZ(e).bridge=t)}var iSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=cn,r}return t.prototype.init=function(r,n){var a=new $y,i=new XI,o=this.group,s=new ht;this._controller=new gc(n.getZr()),s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=C1(r),s=!1;this._model=r,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,c=this._lineDraw;o&&Al(l,to,o,this._firstRender?null:r),PA(r.getGraph(),gp(r));var v=r.getData();f.updateData(v);var h=r.getEdgeData();c.updateData(h),this._updateNodeAndLinkScale(),o&&Dx(r,a,this._controller,function(S,b,x){return r.coordinateSystem.containPoint([b,x])},null),clearTimeout(this._layoutTimeout);var d=r.forceLayout,p=r.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=r.get("layout");v.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var A=w.get("draggable");A&&x.on("drag",function(C){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(b),v.setItemLayout(b,[x.x,x.y]);break;case"circular":v.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),WI(r,"symbolSize",S,[C.offsetX,C.offsetY]),i.updateLayout(r);break;case"none":default:v.setItemLayout(b,[x.x,x.y]),jI(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(A,!!w.get("cursor"));var T=w.get(["emphasis","focus"]);T==="adjacency"&&(mt(x).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(mt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){pZ(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(r,a,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(r,n,a){var i=this,o=!1;(function s(){r.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype.__updateOnOwnRoam=function(r,n,a){var i=C1(n);!this._active||!i||(Al(this._mainGroup,to,i,null),UX(r)&&(this._updateNodeAndLinkScale(),PA(n.getGraph(),gp(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=gp(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){this._active&&(PA(r.getGraph(),gp(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var r=this._model,n=r.coordinateSystem;if(n.type==="view"){var a=aSt(r);if(a)return{bridge:a,coordSys:n}}},t.prototype._updateThumbnailWindow=function(){var r=this._getThumbnailInfo();r&&r.bridge.updateWindow(T1(null,r.coordSys),this._api)},t.prototype._renderThumbnail=function(r,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new ht,l=a.group.children(),u=i.group.children(),f=new ht,c=new ht;s.add(c),s.add(f);for(var v=0;v<l.length;v++){var h=l[v],d=h.children()[0],p=h.x,g=h.y,y=ut(d.shape),m=U(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=ut(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var v=0;v<u.length;v++){var h=u[v],b=h.children()[0],_=ut(b.style),m=ut(b.shape),x=new yZ({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:n,roamType:r.get("roam"),viewportRect:null,group:s,targetTrans:T1(null,o.coordSys)})}},t.type=cn,t}(ee),oSt=ir(cn,sSt);function sSt(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType(cn,function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Vt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}var lSt=ir(cn,uSt);function uSt(e){var t={};e.eachSeriesByType(cn,function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["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 f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var v=l.getShallow(f[c],!0);v!=null&&n.setItemVisual(o,f[c],v)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){K(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");U(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],v=0;v<c.length;v++)a.setItemVisual(o,c[v],n.getItemVisual(l,c[v]))}})})}function fSt(e){e.registerChartView(iSt),e.registerSeriesModel(F_t),e.registerProcessor(oSt),e.registerVisual(lSt),e.registerVisual(Y_t),e.registerLayout(W_t),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Z_t),e.registerLayout(Q_t),e.registerCoordinateSystem("graphView",{dimensions:Cx.dimensions,create:eSt}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ee),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ee),NI(e,Ki,cn)}var ry="chord",cSt=function(e){G(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.fillDataTextStyle(r.edges||r.links),this.legendVisualProvider=new ld(et(this.getData,this),et(this.getRawData,this))},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links)},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[];if(i&&a){var o=FI(i,a,this,!0,s);return o.data}function s(l,u){var f=Ot.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){var i=this.getDataParams(r,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(r),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Xe("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return Xe("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(r);if(a.name==null&&(a.name=i.getName(r)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},t.type="series."+ry,t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(ne),sG=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;mt(i).dataType="node",i.z2=2;var o=new zt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.graph.getNodeByIndex(n),l=r.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=r.getItemLayout(n),v=U(Ei(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):jt(h,{shape:v},l,n);var d=U(Ei(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(r.getItemVisual(n,"style")),nr(o,u),this._updateLabel(l,u,s),r.setItemGraphicEl(n,h),nr(h,u,"itemStyle");var p=f.get("focus");xe(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var c=ar(n),v=a.getVisual("style");hr(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return r.getFormattedLabel(m,_,"node",b,wn(x,c.normal&&c.normal.get("formatter"),n.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Vr),vSt=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;return mt(o).dataType="edge",o.updateData(r,n,a,i,!0),o}return t.prototype.buildPath=function(r,n){r.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;r.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),r.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),r.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),r.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),r.closePath()},t.prototype.updateData=function(r,n,a,i,o){var s=r.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),c=n.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=U(Ei(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),lG(g,l,r,v)):(Ia(g),lG(g,l,r,v),jt(g,{shape:p},s,a)),xe(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),nr(g,c,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},t}(Rt);function lG(e,t,r,n){var a=t.node1,i=t.node2,o=e.style;e.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=r.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=r.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=r.getItemVisual(a.dataIndex,"style").fill,u=r.getItemVisual(i.dataIndex,"style").fill;if(K(l)&&K(u)){var f=e.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new lc(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var hSt=Math.PI/180,dSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=ry,r}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group,l=-r.get("startAngle")*hSt;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new sG(i,f,l);mt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&Uo(v,r,c);return}v?v.updateData(i,f,l):v=new sG(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&Uo(c,r,f)}).execute(),!o){var u=r.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=J(u[0],a.getWidth()),this.group.originY=J(u[1],a.getHeight()),de(this.group,{scaleX:1,scaleY:1},r)}this._data=i,this.renderEdges(r,l)},t.prototype.renderEdges=function(r,n){var a=r.getData(),i=r.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new vSt(a,i,l,n);mt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Uo(u,r,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type=ry,t}(ee),NA=Math.PI/180,pSt=ir(ry,gSt);function gSt(e,t){e.eachSeriesByType(ry,function(r){ySt(r,t)})}function ySt(e,t){var r=e.getData(),n=r.graph,a=e.getEdgeData(),i=a.count();if(i){var o=ij(e,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((e.get("padAngle")||0)*NA,0),v=Math.max((e.get("minAngle")||0)*NA,0),h=-e.get("startAngle")*NA,d=h+Math.PI*2,p=e.get("clockwise"),g=p?1:-1,y=[h,d];Jb(y,!p);var m=y[0],_=y[1],S=_-m,b=r.getSum("value")===0&&a.getSum("value")===0,x=[],w=0;n.eachEdge(function(P){var B=b?1:P.getValue("value");b&&(B>0||v)&&(w+=2);var z=P.node1.dataIndex,H=P.node2.dataIndex;x[z]=(x[z]||0)+B,x[H]=(x[H]||0)+B});var A=0;if(n.eachNode(function(P){var B=P.getValue("value");isNaN(B)||(x[P.dataIndex]=Math.max(B,x[P.dataIndex]||0)),!b&&(x[P.dataIndex]>0||v)&&w++,A+=x[P.dataIndex]||0}),!(w===0||A===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*w)/w)),(c+v)*w>=Math.abs(S)&&(v=(Math.abs(S)-c*w)/w);var T=(S-c*w*g)/A,C=0,M=0,E=0;n.eachNode(function(P){var B=x[P.dataIndex]||0,z=T*(A?B:1)*g;Math.abs(z)<v?C+=v-Math.abs(z):(M+=Math.abs(z)-v,E+=Math.abs(z)),P.setLayout({angle:z,value:B})});var L=!1;if(C>M){var R=C/M;n.eachNode(function(P){var B=P.getLayout().angle;Math.abs(B)>=v?P.setLayout({angle:B*R,ratio:R},!0):P.setLayout({angle:v,ratio:v===0?1:B/v},!0)})}else n.eachNode(function(P){if(!L){var B=P.getLayout().angle,z=Math.min(B/E,1),H=z*C;B-H<v&&(L=!0)}});var I=C;n.eachNode(function(P){if(!(I<=0)){var B=P.getLayout().angle;if(B>v&&v>0){var z=L?1:Math.min(B/E,1),H=B-v,F=Math.min(H,Math.min(I,C*z));I-=F,P.setLayout({angle:B-F,ratio:(B-F)/B},!0)}else v>0&&P.setLayout({angle:v,ratio:B===0?1:v/B},!0)}});var O=m,N=[];n.eachNode(function(P){var B=Math.max(P.getLayout().angle,v);P.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:O,endAngle:O+B*g,clockwise:p},!0),N[P.dataIndex]=O,O+=(B+c)*g}),n.eachEdge(function(P){var B=b?1:P.getValue("value"),z=T*(A?B:1)*g,H=P.node1.dataIndex,F=N[H]||0,$=Math.abs((P.node1.getLayout().ratio||1)*z),j=F+$*g,tt=[s+f*Math.cos(F),l+f*Math.sin(F)],_t=[s+f*Math.cos(j),l+f*Math.sin(j)],lt=P.node2.dataIndex,it=N[lt]||0,Q=Math.abs((P.node2.getLayout().ratio||1)*z),st=it+Q*g,Z=[s+f*Math.cos(it),l+f*Math.sin(it)],at=[s+f*Math.cos(st),l+f*Math.sin(st)];P.setLayout({s1:tt,s2:_t,sStartAngle:F,sEndAngle:j,t1:Z,t2:at,tStartAngle:it,tEndAngle:st,cx:s,cy:l,r:f,value:B,clockwise:p}),N[H]=j,N[lt]=st})}}}function mSt(e){e.registerChartView(dSt),e.registerSeriesModel(cSt),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,pSt),e.registerProcessor(qy("chord"))}var _St=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),SSt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new _St},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,f),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,f)},t}(Rt);function bSt(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=J(r[0],t.getWidth()),s=J(r[1],t.getHeight()),l=J(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function S0(e,t){var r=e==null?"":e+"";return t&&(K(t)?r=t.replace("{value}",r):ct(t)&&(r=t(e))),r}var xSt=function(e){G(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,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=bSt(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),v=c.get("roundCap"),h=v?b1:Vr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];Jb(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(T){return s.add(T)});var A=function(T){if(T<=0)return i[0][1];var C;for(C=0;C<i.length;C++)if(i[C][0]>=T&&(C===0?0:i[C-1][0])<T)return i[C][1];return i[C-1][1]};this._renderTicks(r,n,a,A,o,u,f,l,g),this._renderTitleAndDetail(r,n,a,A,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,A,o,u,f,l,g)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+r.get("min"),g=+r.get("max"),y=r.getModel("splitLine"),m=r.getModel("axisTick"),_=r.getModel("axisLabel"),S=r.get("splitNumber"),b=m.get("splitNumber"),x=J(y.get("length"),d),w=J(m.get("length"),d),A=s,T=(l-s)/S,C=T/b,M=y.getModel("lineStyle").getLineStyle(),E=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),R,I,O=0;O<=S;O++){if(R=Math.cos(A),I=Math.sin(A),y.get("show")){var N=L?L+f:f,P=new He({shape:{x1:R*(d-N)+v,y1:I*(d-N)+h,x2:R*(d-x-N)+v,y2:I*(d-x-N)+h},style:M,silent:!0});M.stroke==="auto"&&P.setStyle({stroke:i(O/S)}),c.add(P)}if(_.get("show")){var N=_.get("distance")+L,B=S0(Yt(O*(g-p)/S+p,pst),_.get("formatter")),z=i(O/S),H=R*(d-x-N)+v,F=I*(d-x-N)+h,$=_.get("rotate"),j=0;$==="radial"?(j=-A+2*Math.PI,j>Math.PI/2&&(j+=Math.PI)):$==="tangential"?j=-A-Math.PI/2:Vt($)&&(j=$*Math.PI/180),j===0?c.add(new zt({style:oe(_,{text:B,x:H,y:F,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:z}),silent:!0})):c.add(new zt({style:oe(_,{text:B,x:H,y:F,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:H,originY:F,rotation:j}))}if(m.get("show")&&O!==S){var N=m.get("distance");N=N?N+f:f;for(var tt=0;tt<=b;tt++){R=Math.cos(A),I=Math.sin(A);var _t=new He({shape:{x1:R*(d-N)+v,y1:I*(d-N)+h,x2:R*(d-w-N)+v,y2:I*(d-w-N)+h},silent:!0,style:E});E.stroke==="auto"&&_t.setStyle({stroke:i((O+tt/b)/S)}),c.add(_t),A+=C}A-=C}else A+=T}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),y=g.get("show"),m=r.getData(),_=m.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),x=[S,b],w=[s,l];function A(C,M){var E=m.getItemModel(C),L=E.getModel("pointer"),R=J(L.get("width"),o.r),I=J(L.get("length"),o.r),O=r.get(["pointer","icon"]),N=L.get("offsetCenter"),P=J(N[0],o.r),B=J(N[1],o.r),z=L.get("keepAspect"),H;return O?H=Fe(O,P-R/2,B-I,R,I,null,z):H=new SSt({shape:{angle:-Math.PI/2,width:R,r:I,x:P,y:B}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function T(C,M){var E=g.get("roundCap"),L=E?b1:Vr,R=g.get("overlap"),I=R?g.get("width"):f/m.count(),O=R?o.r-I:o.r-(C+1)*I,N=R?o.r:o.r-C*I,P=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:N}});return R&&(P.z2=Wt(m.get(_,C),[S,b],[100,0],!0)),P}(y||p)&&(m.diff(v).add(function(C){var M=m.get(_,C);if(p){var E=A(C,s);de(E,{rotation:-((isNaN(+M)?w[0]:Wt(M,x,w,!0))+Math.PI/2)},r),c.add(E),m.setItemGraphicEl(C,E)}if(y){var L=T(C,s),R=g.get("clip");de(L,{shape:{endAngle:Wt(M,x,w,R)}},r),c.add(L),C2(r.seriesIndex,m.dataType,C,L),d[C]=L}}).update(function(C,M){var E=m.get(_,C);if(p){var L=v.getItemGraphicEl(M),R=L?L.rotation:s,I=A(C,R);I.rotation=R,jt(I,{rotation:-((isNaN(+E)?w[0]:Wt(E,x,w,!0))+Math.PI/2)},r),c.add(I),m.setItemGraphicEl(C,I)}if(y){var O=h[M],N=O?O.shape.endAngle:s,P=T(C,N),B=g.get("clip");jt(P,{shape:{endAngle:Wt(E,x,w,B)}},r),c.add(P),C2(r.seriesIndex,m.dataType,C,P),d[C]=P}}).execute(),m.each(function(C){var M=m.getItemModel(C),E=M.getModel("emphasis"),L=E.get("focus"),R=E.get("blurScope"),I=E.get("disabled"),O=i(Wt(m.get(_,C),x,[0,1],!0));if(p){var N=m.getItemGraphicEl(C),P=m.getItemVisual(C,"style"),B=P.fill;if(N instanceof dr){var z=N.style;N.useStyle(U({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},P))}else N.useStyle(P),N.type!=="pointer"&&N.setColor(B);N.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",O),N.z2EmphasisLift=0,nr(N,M),xe(N,L,R,I)}if(y){var H=d[C];H.useStyle(m.getItemVisual(C,"style")),H.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",O),H.z2EmphasisLift=0,nr(H,M),xe(H,L,R,I)}}),this._progressEls=d)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Fe(s,n.cx-o/2+J(l[0],n.r),n.cy-o/2+J(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),v=new ht,h=[],d=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new zt({silent:!0}),d[y]=new zt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ht,b=i(Wt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),A=o.cx+J(w[0],o.r),T=o.cy+J(w[1],o.r),C=h[y];C.attr({z2:g?0:2,style:oe(x,{x:A,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(C)}var M=m.getModel("detail");if(M.get("show")){var E=M.get("offsetCenter"),L=o.cx+J(E[0],o.r),R=o.cy+J(E[1],o.r),I=J(M.get("width"),o.r),O=J(M.get("height"),o.r),N=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,C=d[y],P=M.get("formatter");C.attr({z2:g?0:2,style:oe(M,{x:L,y:R,text:S0(_,P),width:isNaN(I)?null:I,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:N})}),k9(C,{normal:M},_,function(z){return S0(z,P)}),p&&B9(C,y,l,r,{getFormattedLabel:function(z,H,F,$,j,tt){return S0(tt?tt.interpolatedValue:_,P)}}),S.add(C)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(ee),wSt=function(e){G(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 sd(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,V.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:V.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:V.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:V.color.axisLabel,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:V.color.neutral00,borderWidth:0,borderColor:V.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:V.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:V.color.transparent,borderWidth:0,borderColor:V.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:V.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ne);function TSt(e){e.registerChartView(xSt),e.registerSeriesModel(wSt)}var xh="funnel",ASt=function(e){G(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 ld(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return sd(this,{coordDimensions:["value"],encodeDefaulter:Mt(kR,this)})},t.prototype._defaultLabelLine=function(r){_f(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series."+xh,t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:V.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:V.color.primary}}},t}(ne),CSt=["itemStyle","opacity"],MSt=function(e){G(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new wr,s=new zt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(CSt);f=f??1,a||Ia(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,de(i,{style:{opacity:f}},o,n)):jt(i,{style:{opacity:f},shape:{points:l.points}},o,n),nr(i,s),this._updateLabel(r,n),xe(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;hr(o,ar(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new yt(g[0][0],g[0][1]):null},jt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),dI(a,pI(l),{stroke:v})},t}(Gr),DSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=xh,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new MSt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Uo(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=xh,t}(ee);function LSt(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ct(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function ESt(e){var t=e.hostModel,r=_Z(t);e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(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,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");K(o)&&(!r&&bt(["top","bottom"],o)>-1&&(o="left"),r&&bt(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,c="center"):o==="rightTop"?(p=r?u[3][0]:u[1][0],g=r?u[3][1]:u[1][1],r?(m=g-_,h=m-5,c="center"):(y=p+_,v=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r?u[0][1]:u[1][1],r?(m=g-_,h=m-5,c="center"):(y=p-_,v=y-5,c="right")):o==="leftBottom"?(p=r?u[1][0]:u[3][0],g=r?u[1][1]:u[2][1],r?(m=g+_,h=m+5,c="center"):(y=p-_,v=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="left")),r?(y=p,v=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var OSt=ir(xh,RSt);function RSt(e,t){e.eachSeriesByType(xh,function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=or(r,t),s=me(r.getBoxLayoutParams(),o.refContainer),l=_Z(r),u=s.width,f=s.height,c=LSt(n,i),v=s.x,h=s.y,d=l?[J(r.get("minSize"),f),J(r.get("maxSize"),f)]:[J(r.get("minSize"),u),J(r.get("maxSize"),u)],p=n.getDataExtent(a),g=r.get("min"),y=r.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=r.get("funnelAlign"),_=r.get("gap"),S=l?u:f,b=(S-_*(n.count()-1))/n.count(),x=function(I,O){if(l){var N=n.get(a,I)||0,P=Wt(N,[g,y],d,!0),B=void 0;switch(m){case"top":B=h;break;case"center":B=h+(f-P)/2;break;case"bottom":B=h+(f-P);break}return[[O,B],[O,B+P]]}var z=n.get(a,I)||0,H=Wt(z,[g,y],d,!0),F;switch(m){case"left":F=v;break;case"center":F=v+(u-H)/2;break;case"right":F=v+u-H;break}return[[F,O],[F+H,O]]};i==="ascending"&&(b=-b,_=-_,l?v+=u:h+=f,c=c.reverse());for(var w=0;w<c.length;w++){var A=c[w],T=c[w+1],C=n.getItemModel(A);if(l){var M=C.get(["itemStyle","width"]);M==null?M=b:(M=J(M,u),i==="ascending"&&(M=-M));var E=x(A,v),L=x(T,v+M);v+=M+_,n.setItemLayout(A,{points:E.concat(L.slice().reverse())})}else{var R=C.get(["itemStyle","height"]);R==null?R=b:(R=J(R,f),i==="ascending"&&(R=-R));var E=x(A,h),L=x(T,h+R);h+=R+_,n.setItemLayout(A,{points:E.concat(L.slice().reverse())})}}ESt(n)})}function _Z(e){return e.get("orient")==="horizontal"}function ISt(e){e.registerChartView(DSt),e.registerSeriesModel(ASt),e.registerLayout(OSt),e.registerProcessor(qy(xh))}var PSt=.3,NSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new ht,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.dimensions,c=fG(r);s.diff(l).add(v).update(h).remove(d).execute();function v(g){var y=uG(s,o,g,f,u);kA(y,s,g,c)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=SZ(s,g,f,u);s.setItemGraphicEl(g,m),jt(m,{shape:{points:_}},r,g),Ia(m),kA(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=kSt(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=r.start;l<r.end;l++){var u=uG(i,this._dataGroup,l,o.dimensions,o);u.incremental=Vi(n),kA(u,i,l,fG(n)),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(ee);function kSt(e,t,r){var n=e.model,a=e.getRect(),i=new Lt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),de(i,{shape:{width:a.width,height:a.height}},t,r),i}function SZ(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);BSt(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function uG(e,t,r,n,a){var i=SZ(e,r,n,a),o=new wr({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function fG(e){var t=e.get("smooth",!0);return t===!0&&(t=PSt),t=Zi(t),Nr(t)&&(t=0),{smooth:t}}function kA(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");nr(e,a,"lineStyle"),xe(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function BSt(e,t){return t==="category"?e==null:e==null||isNaN(e)}var zSt=function(e){G(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 so(null,this,{useEncodeDefaulter:et(VSt,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},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:300,smooth:!1,animationEasing:"linear"},t}(ne);function VSt(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return D(t.dimensions,function(n){var a=GSt(n);r[n]=a}),r}}function GSt(e){return+e.replace("dim","")}var HSt=["lineStyle","opacity"],USt={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(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(HSt,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function FSt(e){YSt(e),jSt(e)}function YSt(e){if(!e.parallel){var t=!1;D(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function jSt(e){var t=le(e.parallelAxis);D(t,function(r){if(gt(r)){var n=r.parallelIndex||0,a=le(e.parallel)[n];a&&a.parallelAxisDefault&&wt(r,a.parallelAxisDefault,!1)}})}var WSt=5,$St=function(e){G(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,a){this._model=r,this._api=a,this._handlers||(this._handlers={},D(XSt,function(i,o){a.getZr().on(o,this._handlers[o]=et(i,this))},this)),Jh(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Pg(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(U({type:"parallelAxisExpand"},r))},t.type="parallel",t}(ue),XSt={mousedown:function(e){BA(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(BA(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>WSt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!BA(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 BA(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var O1="parallel",RL=O1,ZSt=function(e){G(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&&wt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===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=[],a=Xt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type=RL,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}(Et),qSt=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ka);function Cl(e,t,r,n,a,i){e=e||0;var o=Au(r[1],-r[0]);if(a!=null&&(a=Gc(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(Au(t[1],-t[0]));s=Gc(s,[0,o]),a=i=Gc(s,[a,i]),n=0}t[0]=Gc(t[0],r),t[1]=Gc(t[1],r);var l=zA(t,n);t[n]+=e;var u=a||0,f=r.slice();l.sign<0?f[0]=Au(f[0],u):f[1]=Au(f[1],-u),t[n]=Gc(t[n],f);var c;return c=zA(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=Au(t[n],l.sign*a)),c=zA(t,n),i!=null&&c.span>i&&(t[1-n]=Au(t[n],c.sign*i)),t}function zA(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 Gc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var KSt=function(){function e(t,r,n){this.type=O1,this._axesMap=rt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;D(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),f=Fy(u),c=this._axesMap.set(o,new qSt(o,nd(u,f,!1),[0,0],f,l));c.onBand=jy(c.scale,u),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){D(this.dimensions,function(n){var a=this._axesMap.get(n);Ef(a,mh),_h(a)},this)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype.resize=function(t,r){var n=or(t,r).refContainer;this._rect=me(t.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,f=b0(t.get("axisExpandWidth"),l),c=b0(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=b0(h[1]-h[0],l),h[1]=h[0]+d;else{d=b0(f*(c-1),l);var p=t.get("axisExpandCenter")||Ea(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[Ea(Yt(h[0]/f,1))+1,ic(Yt(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),D(n,function(o,s){var l=(a.axisExpandable?JSt:QSt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:GS/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=Se();ps(h,h,v),Qa(h,h,c),this._axesLayout[o]={position:c,rotation:v,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,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=t.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(v[h]);if(p==="inactive"){c="inactive";break}}}r(c,f)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return Za([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return ut(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",f=r.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):v&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?Cl(l,a,o,"all"):u="none";else{var h=a[1]-a[0],d=o[1]*s/h;a=[Dt(0,d-h/2)],a[1]=te(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function b0(e,t){return te(Dt(e,t[0]),t[1])}function QSt(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function JSt(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return e<o[0]?(s=e*i,f=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function t1t(e,t){var r=[];return e.eachComponent(RL,function(n,a){var i=new KSt(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")===O1){var a=n.getReferringComponents(RL,Pe).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&D(i.dimensions,function(o){Lf(i.getAxis(o),n,O1)})}}),r}var e1t={create:t1t},IL=function(e){G(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 xf([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=ut(r);if(n)for(var a=n.length-1;a>=0;a--)Sr(n[a])},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 a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(Et);Ye(IL,id);var zf=!0,ny=Math.min,wh=Math.max,r1t=Math.pow,n1t=1e4,a1t=6,i1t=6,cG="globalPan",o1t={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},s1t={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},vG={brushStyle:{lineWidth:2,stroke:V.color.backgroundTint,fill:V.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},l1t=0,ZI=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new ht,n._uid="brushController_"+l1t++,D(p1t,function(a,i){this._handlers[i]=et(a,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||Tmt(n,cG,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=wt(ut(vG),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;Amt(r,cG,this._uid),D(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};D(r,function(a){n[a.panelId]=ut(a)})}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=W(r,function(v){return wt(ut(vG),v,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new os(a,r,u,l).add(f).update(f).remove(c).execute(),this;function l(v,h){return(v.id!=null?v.id:n+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function f(v,h){var d=r[v];if(h!=null&&a[h]===s)i[v]=a[h];else{var p=i[v]=h!=null?(a[h].__brushOption=d,a[h]):xZ(o,bZ(o,d));qI(o,p)}}function c(v){a[v]!==s&&o.group.remove(a[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),PL(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Pa);function bZ(e,t){var r=Ox[t.brushType].createCover(e,t);return r.__brushOption=t,TZ(r,t),e.group.add(r),r}function xZ(e,t){var r=KI(t);return r.endCreating&&(r.endCreating(e,t),TZ(t,t.__brushOption)),t}function wZ(e,t){var r=t.__brushOption;KI(t).updateCoverShape(e,t,r.range,r)}function TZ(e,t){var r=t.z;r==null&&(r=n1t),e.traverse(function(n){n.z=r,n.z2=r})}function qI(e,t){KI(t).updateCommon(e,t),wZ(e,t)}function KI(e){return Ox[e.__brushOption.brushType]}function QI(e,t,r){var n=e._panels;if(!n)return zf;var a,i=e._transform;return D(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function AZ(e,t){var r=e._panels;if(!r)return zf;var n=t.__brushOption.panelId;return n!=null?r[n]:zf}function PL(e){var t=e._covers,r=t.length;return D(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Vf(e,t){var r=W(e._covers,function(n){var a=n.__brushOption,i=ut(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function u1t(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=r1t(a*a+i*i,.5);return o>a1t}function CZ(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function MZ(e,t,r,n){var a=new ht;return a.add(new Lt({name:"main",style:JI(r),silent:!0,draggable:!0,cursor:"move",drift:Mt(hG,e,t,a,["n","s","w","e"]),ondragend:Mt(Vf,t,{isEnd:!0})})),D(n,function(i){a.add(new Lt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Mt(hG,e,t,a,i),ondragend:Mt(Vf,t,{isEnd:!0})}))}),a}function DZ(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=wh(a,i1t),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,f=r[0][1],c=r[1][1],v=f-i+a/2,h=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;mo(e,t,"main",o,s,d,p),n.transformable&&(mo(e,t,"w",l,u,i,y),mo(e,t,"e",v,u,i,y),mo(e,t,"n",l,u,g,i),mo(e,t,"s",l,h,g,i),mo(e,t,"nw",l,u,i,i),mo(e,t,"ne",v,u,i,i),mo(e,t,"sw",l,h,i,i),mo(e,t,"se",v,h,i,i))}function NL(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(JI(r)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?kL(e,i[0]):c1t(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?s1t[s]+"-resize":null})})}function mo(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(h1t(tP(e,t,[[n,a],[n+i,a+o]])))}function JI(e){return pt({strokeNoScale:!0},e.brushStyle)}function LZ(e,t,r,n){var a=[ny(e,r),ny(t,n)],i=[wh(e,r),wh(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function f1t(e){return Ju(e.group)}function kL(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=nx(r[t],f1t(e));return n[a]}function c1t(e,t){var r=[kL(e,t[0]),kL(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function hG(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=EZ(t,a,i);D(n,function(u){var f=o1t[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(LZ(s[0][0],s[1][0],s[0][1],s[1][1])),qI(t,r),Vf(t,{isEnd:!1})}function v1t(e,t,r,n){var a=t.__brushOption.range,i=EZ(e,r,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),qI(e,t),Vf(e,{isEnd:!1})}function EZ(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tP(e,t,r){var n=AZ(e,t);return n&&n!==zf?n.clipPath(r,e._transform):ut(r)}function h1t(e){var t=ny(e[0][0],e[1][0]),r=ny(e[0][1],e[1][1]),n=wh(e[0][0],e[1][0]),a=wh(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function d1t(e,t,r){if(!(!e._brushType||g1t(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=QI(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===zf||s.panelId===i.panelId)&&Ox[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function BL(e){var t=e.event;t.preventDefault&&t.preventDefault()}function zL(e,t,r){return e.childOfName("main").contain(t,r)}function OZ(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),u1t(e)||a){if(i&&!a){o.brushMode==="single"&&PL(e);var l=ut(o);l.brushType=dG(l.brushType,i),l.panelId=i===zf?null:i.panelId,a=e._creatingCover=bZ(e,l),e._covers.push(a)}if(a){var u=Ox[dG(e._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(tP(e,a,e._track)),n&&(xZ(e,a),u.updateCommon(e,a)),wZ(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&QI(e,t,r)&&PL(e)&&(s={isEnd:n,removeOnClick:!0});return s}function dG(e,t){return e==="auto"?t.defaultBrushType:e}var p1t={mousedown:function(e){if(this._dragging)pG(this,e);else if(!e.target||!e.target.draggable){BL(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=QI(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(d1t(this,e,n),this._dragging){BL(e);var a=OZ(this,e,n,!1);a&&Vf(this,a)}},mouseup:function(e){pG(this,e)}};function pG(e,t){if(e._dragging){BL(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=OZ(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Vf(e,i)}}function g1t(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Ox={lineX:gG(0),lineY:gG(1),rect:{createCover:function(e,t){function r(n){return n}return MZ({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=CZ(e);return LZ(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){DZ(e,t,r,n)},updateCommon:NL,contain:zL},polygon:{createCover:function(e,t){var r=new ht;return r.add(new wr({name:"main",style:JI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Gr({name:"main",draggable:!0,drift:Mt(v1t,e,t),ondragend:Mt(Vf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:tP(e,t,r)})},updateCommon:NL,contain:zL}};function gG(e){return{createCover:function(t,r){return MZ({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=CZ(t),n=ny(r[0][e],r[1][e]),a=wh(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=AZ(t,r);if(o!==zf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),DZ(t,r,l,a)},updateCommon:NL,contain:zL}}function RZ(e){return e=eP(e),function(t){return gR(t,e)}}function IZ(e,t){return e=eP(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function PZ(e,t,r){var n=eP(e);return function(a,i){return n.contain(i[0],i[1])&&!MX(a,t,r)}}function eP(e){return dt.create(e)}var y1t=function(e){G(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 ZI(n.getZr())).on("brush",et(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!m1t(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ht,this.group.add(this._axisGroup),!!r.get("show")){var s=S1t(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,v=l.getAxisLayout(c),h=U({strokeContainThreshold:f},v),d=new ln(r,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,r,s,f,a),zy(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=dt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:RZ(c),isTargetByCursor:PZ(c,s,i),getLinearBrushOtherExtent:IZ(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(_1t(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=W(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ue);function m1t(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function _1t(e){var t=e.axis;return W(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function S1t(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var b1t={type:"axisAreaSelect",event:"axisAreaSelected"};function x1t(e){e.registerAction(b1t,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 w1t={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function NZ(e){e.registerComponentView($St),e.registerComponentModel(ZSt),e.registerCoordinateSystem("parallel",e1t),e.registerPreprocessor(FSt),e.registerComponentModel(IL),e.registerComponentView(y1t),bh(e,"parallel",IL,w1t),x1t(e)}function T1t(e){At(NZ),e.registerChartView(NSt),e.registerSeriesModel(zSt),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,USt)}var us="sankey",A1t=function(e){G(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 a=r.edges||r.links||[],i=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 Ot(o[l],this,n));var u=FI(i,a,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.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,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Xe("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(r),c=f.getLayout().value,v=this.getDataParams(r,a).data.name;return Xe("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+us,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:V.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:V.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(ne),C1t=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}(),M1t=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new C1t},t.prototype.buildPath=function(r,n){var a=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+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){as(this)},t.prototype.downplay=function(){is(this)},t}(Rt),D1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=us,r._mainGroup=new ht,r}return t.prototype.init=function(r,n){this._controller=new gc(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(r,n,a){var i=r.getGraph(),o=this._mainGroup,s=r.layoutInfo,l=s.width,u=s.height,f=r.getData(),c=r.getData("edge"),v=r.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(r,a),Dx(r,a,this._controller,GX(o),null),i.eachEdge(function(h){var d=new M1t,p=mt(d);p.dataIndex=h.dataIndex,p.seriesIndex=r.seriesIndex,p.dataType="edge";var g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),b=S.get("localX"),x=S.get("localY"),w=h.node2.getLayout(),A=h.node2.getModel(),T=A.get("localX"),C=A.get("localY"),M=h.getLayout(),E,L,R,I,O,N,P,B;d.shape.extent=Math.max(1,M.dy),d.shape.orient=v,v==="vertical"?(E=(b!=null?b*l:_.x)+M.sy,L=(x!=null?x*u:_.y)+_.dy,R=(T!=null?T*l:w.x)+M.ty,I=C!=null?C*u:w.y,O=E,N=L*(1-m)+I*m,P=R,B=L*m+I*(1-m)):(E=(b!=null?b*l:_.x)+_.dx,L=(x!=null?x*u:_.y)+M.sy,R=T!=null?T*l:w.x,I=(C!=null?C*u:w.y)+M.ty,O=E*(1-m)+R*m,N=L,P=E*m+R*(1-m),B=I),d.setShape({x1:E,y1:L,x2:R,y2:I,cpx1:O,cpy1:N,cpx2:P,cpy2:B}),d.useStyle(y.getItemStyle()),yG(d.style,v,h);var z=""+g.get("value"),H=ar(g,"edgeLabel");hr(d,H,{labelFetcher:{getFormattedLabel:function(j,tt,_t,lt,it,Q){return r.getFormattedLabel(j,tt,"edge",lt,wn(it,H.normal&&H.normal.get("formatter"),z),Q)}},labelDataIndex:h.dataIndex,defaultText:z}),d.setTextConfig({position:"inside"});var F=g.getModel("emphasis");nr(d,g,"lineStyle",function(j){var tt=j.getItemStyle();return yG(tt,v,h),tt}),o.add(d),c.setItemGraphicEl(h.dataIndex,d);var $=F.get("focus");xe(d,$==="adjacency"?h.getAdjacentDataIndices():$==="trajectory"?h.getTrajectoryDataIndices():$,F.get("blurScope"),F.get("disabled"))}),i.eachNode(function(h){var d=h.getLayout(),p=h.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new Lt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});hr(S,ar(p),{labelFetcher:{getFormattedLabel:function(x,w){return r.getFormattedLabel(x,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),nr(S,p),o.add(S),f.setItemGraphicEl(h.dataIndex,S),mt(S).dataType="node";var b=m.get("focus");xe(S,b==="adjacency"?h.getAdjacentDataIndices():b==="trajectory"?h.getTrajectoryDataIndices():b,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d);p.get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&r.isAnimationEnabled()&&o.setClipPath(L1t(o.getBoundingRect(),r,function(){o.removeClipPath()})),this._data=r.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(r,n,a){Al(this.group,to,n.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(r,n){var a=r.layoutInfo,i=r.coordinateSystem=kI(r,n,a.x,a.y,a.width,a.height);Al(this.group,to,i,this._firstRender?null:r)},t.type=us,t}(ee);function yG(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"),a=r.node2.getVisual("color");K(n)&&K(a)&&(e.fill=new lc(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function L1t(e,t,r){var n=new Lt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return de(n,{shape:{width:e.width+20}},t,r),n}var E1t=ir(us,O1t);function O1t(e,t){e.eachSeriesByType(us,function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=or(r,t).refContainer,o=me(r.getBoxLayoutParams(),i);r.layoutInfo=o;var s=o.width,l=o.height,u=r.getGraph(),f=u.nodes,c=u.edges;I1t(f);var v=Xt(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),p=r.get("nodeAlign");R1t(f,c,n,a,s,l,h,d,p)})}function R1t(e,t,r,n,a,i,o,s,l){P1t(e,t,r,a,i,s,l),z1t(e,t,i,a,n,o,s),$1t(e,s)}function I1t(e){D(e,function(t){var r=pl(t.outEdges,R1),n=pl(t.inEdges,R1),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function P1t(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v<t.length;v++)s[v]=1;for(var v=0;v<e.length;v++)l[v]=e[v].inEdges.length,l[v]===0&&u.push(e[v]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=bt(t,_);s[S]=0;var b=_.node2,x=bt(e,b);--l[x]===0&&bt(f,b)<0&&f.push(b)}}++c,u=f,f=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>c-1?h:c-1;o&&o!=="left"&&N1t(e,o,i,w);var A=i==="vertical"?(a-r)/w:(n-r)/w;B1t(e,A,i)}function kZ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function N1t(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];bt(a,f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(e,function(c){kZ(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&k1t(e,n)}function k1t(e,t){D(e,function(r){!kZ(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function B1t(e,t,r){D(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function z1t(e,t,r,n,a,i,o){var s=V1t(e,o);G1t(s,t,r,n,a,o),VA(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,H1t(s,l,o),VA(s,a,r,n,o),W1t(s,l,o),VA(s,a,r,n,o)}function V1t(e,t){var r=[],n=t==="vertical"?"y":"x",a=S2(e,function(i){return i.getLayout()[n]});return Sr(a.keys),D(a.keys,function(i){r.push(a.buckets.get(i))}),r}function G1t(e,t,r,n,a,i){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;f<o&&(o=f)}),D(e,function(s){D(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function VA(e,t,r,n,a){var i=a==="vertical"?"x":"y";D(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,v=a==="vertical"?"dx":"dy",h=0;h<c;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=a==="vertical"?n:r;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function H1t(e,t,r){D(e.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=pl(a.outEdges,U1t,r)/pl(a.outEdges,R1);if(isNaN(i)){var o=a.outEdges.length;i=o?pl(a.outEdges,F1t,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-Ml(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Ml(a,r))*t;a.setLayout({y:l},!0)}}})})}function U1t(e,t){return Ml(e.node2,t)*e.getValue()}function F1t(e,t){return Ml(e.node2,t)}function Y1t(e,t){return Ml(e.node1,t)*e.getValue()}function j1t(e,t){return Ml(e.node1,t)}function Ml(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function R1(e){return e.getValue()}function pl(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function W1t(e,t,r){D(e,function(n){D(n,function(a){if(a.inEdges.length){var i=pl(a.inEdges,Y1t,r)/pl(a.inEdges,R1);if(isNaN(i)){var o=a.inEdges.length;i=o?pl(a.inEdges,j1t,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-Ml(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Ml(a,r))*t;a.setLayout({y:l},!0)}}})})}function $1t(e,t){var r=t==="vertical"?"x":"y";D(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),D(e,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var X1t=ir(us,Z1t);function Z1t(e){e.eachSeriesByType(us,function(t){var r=t.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new cr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function q1t(e){e.registerChartView(D1t),e.registerSeriesModel(A1t),e.registerLayout(E1t),e.registerVisual(X1t),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:Ki,subType:us,query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),NI(e,Ki,us)}var BZ=function(){function e(){}return e.prototype._hasEncodeRule=function(t){var r=this.getEncode();return r&&r.get(t)!=null},e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=t.layout;o==="category"?(u="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],c=u==="horizontal"?0:1,v=this._baseAxisDim=f[c],h=f[1-c],d=[a,i],p=d[c].get("type"),g=d[1-c].get("type"),y=t.data;if(y&&l){var m=[];D(y,function(b,x){var w;Y(b)?(w=b.slice(),b.unshift(x)):Y(b.value)?(w=U({},b),w.value=w.value.slice(),b.value.unshift(x)):w=b,m.push(w)}),t.data=m}var _=this.defaultValueDimensions,S=[{name:v,type:s1(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:s1(g),dimsDef:_.slice()}];return sd(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:Mt(vj,S,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function I1(e,t){for(var r=t.ends.length,n=0,a=0;a<r;a++)e.contain(t.ends[a][0],t.ends[a][1])&&n++;return n?n<r?Yg:Fg:jg}var Hi="boxplot",zZ=function(e){G(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."+Hi,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:V.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}},animationDuration:800},t}(ne);Ye(zZ,BZ,!0);var K1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Hi,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.getWhiskerBoxesLayout()==="horizontal"?1:0,u=r.get("clip",!0),f=r.coordinateSystem,c=f.getArea&&f.getArea(),v=u&&Of(f,!1,r);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?I1(c,d):Fg;if(p===jg)return;var g=mG(d,i,h,l,!0);wv(p===Yg,g,v),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(h)){o.remove(p);return}var g=i.getItemLayout(h),y=u?I1(c,g):Fg;if(y===jg){o.remove(p);return}p?(Ia(p),VZ(g,p,i,h)):p=mG(g,i,h,l),wv(y===Yg,p,v),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type=Hi,t}(ee),Q1t=function(){function e(){}return e}(),J1t=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Q1t},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(Rt);function mG(e,t,r,n,a){var i=e.ends,o=new J1t({shape:{points:a?tbt(i,n,e):i}});return VZ(e,o,t,r,a),o}function VZ(e,t,r,n,a){var i=r.hostModel,o=uc[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");nr(t,s),xe(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function tbt(e,t,r){return W(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var ebt=Uh(),rbt=ir(Hi,nbt);function nbt(e){var t=rf(Hi);cI(e,t,function(r){var n=ndt(r,t);if(n){var a=abt(r,n);Df(r,t,function(i){var o=i.seriesIndex;ibt(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function abt(e,t){var r=[],n=[],a=[],i=Hr(e,{fromStat:{key:rf(Hi)},min:1}).w;Df(e,rf(Hi),function(f){var c=f.get("boxWidth");Y(c)||(c=[c,c]),a[f.seriesIndex]=[J(c[0],i)||0,J(c[1],i)||0]});var o=i*.8-2,s=o/t*.3,l=(o-s*(t-1))/t,u=l/2-o/2;return Df(e,rf(Hi),function(f){var c=f.seriesIndex;n[c]=u,u+=s+l,r[c]=te(Dt(l,a[c][0]),a[c][1])}),{boxOffsetList:n,boxWidthList:r}}function ibt(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var v=a.get(u,c),h=_(v,f[2],c),d=_(v,f[0],c),p=_(v,f[1],c),g=_(v,f[3],c),y=_(v,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),b(m,d),b(m,y),b(m,h),a.setItemLayout(c,{initBaseline:h[s],ends:m})}function _(x,w,A){var T=a.get(w,A),C=[];C[o]=x,C[s]=T;var M;return isNaN(x)||isNaN(T)?M=[NaN,NaN]:(M=n.dataToPoint(C),M[o]+=t),M}function S(x,w,A){var T=w.slice(),C=w.slice();T[o]+=i,C[o]-=i,A?x.push(T,C):x.push(C,T)}function b(x,w){var A=w.slice(),T=w.slice();A[o]-=i,T[o]+=i,x.push(A,T)}}function obt(e){ebt(e,function(){var t=rf(Hi);vI(e,{key:t,seriesType:Hi,getMetrics:CI}),yx(t,bx(t))})}function sbt(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Sr(e[o].slice()),l=y_(s,.25),u=y_(s,.5),f=y_(s,.75),c=s[0],v=s[s.length-1],h=(a??1.5)*(f-l),d=i?c:Math.max(c,l-h),p=i?v:Math.min(v,f+h),g=t.itemNameFormatter,y=ct(g)?g({value:o}):K(g)?g.replace("{value}",o+""):o+"";r.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:r,outliers:n}}var lbt={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==xr){var n="";$t(n)}var a=sbt(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function ubt(e){e.registerSeriesModel(zZ),e.registerChartView(K1t),e.registerLayout(rbt),e.registerTransform(lbt),obt(e)}var Dl="candlestick",GZ=function(e){G(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,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},t.type="series."+Dl,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ne);Ye(GZ,BZ,!0);var fbt=["itemStyle","borderColor"],cbt=["itemStyle","borderColor0"],vbt=["itemStyle","borderColorDoji"],hbt=["itemStyle","color"],dbt=["itemStyle","color0"];function rP(e,t){return t.get(e>0?hbt:dbt)}function nP(e,t){return t.get(e===0?vbt:e>0?fbt:cbt)}var pbt={seriesType:Dl,plan:vc(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=rP(s,o),l.stroke=nP(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");U(u,l)}}}}}},gbt=["color","borderColor"],ybt=function(e){G(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,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){zl(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(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Of(l,!1,r);this._data||i.removeAll();var c=_G(r);n.diff(a).add(function(v){if(n.hasValue(v)){var h=n.getItemLayout(v),d=s?I1(u,h):Fg;if(d===jg)return;var p=GA(h,v,c,!0);de(p,{shape:{points:h.ends}},r,v),wv(d===Yg,p,f),HA(p,n,v,o),i.add(p),n.setItemGraphicEl(v,p)}}).update(function(v,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(v)){i.remove(d);return}var p=n.getItemLayout(v),g=s?I1(u,p):Fg;if(g===jg){i.remove(d);return}d?(jt(d,{shape:{points:p.ends}},r,v),Ia(d)):d=GA(p,v,c),HA(d,n,v,o),wv(g===Yg,d,f),i.add(d),n.setItemGraphicEl(v,d)}).remove(function(v){var h=a.getItemGraphicEl(v);h&&i.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),SG(r,this.group);var n=r.get("clip",!0)?Of(r.coordinateSystem,!1,r):null;wv(!!n,this.group,n)},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=_G(n),s;(s=r.next())!=null;){var l=a.getItemLayout(s),u=GA(l,s,o);HA(u,a,s,i),u.incremental=Vi(n),this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(r,n){SG(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),wv(!1,this.group,null),this._data=null},t.type=Dl,t}(ee),mbt=function(){function e(){}return e}(),_bt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new mbt},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(Rt);function GA(e,t,r,n){var a=e.ends;return new _bt({shape:{points:n?Sbt(a,r,e):a},z2:100})}function HA(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&e.attr("cursor",i),e.__simpleBox=n,nr(e,a);var o=t.getItemLayout(r).sign;D(e.states,function(l,u){var f=a.getModel(u),c=rP(o,f),v=nP(o,f)||c,h=l.style||(l.style={});c&&(h.fill=c),v&&(h.stroke=v)});var s=a.getModel("emphasis");xe(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Sbt(e,t,r){return W(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}function _G(e){return e.getWhiskerBoxesLayout()==="horizontal"?1:0}var bbt=function(){function e(){}return e}(),UA=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new bbt},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(Rt);function SG(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new UA({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new UA({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new UA({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),FA(1,o,e),FA(-1,s,e),FA(0,l,e),n&&(o.incremental=Vi(e),s.incremental=Vi(e),l.incremental=Vi(e)),r&&r.push(o,s,l)}function FA(e,t,r,n){var a=nP(e,r)||rP(e,r),i=r.getModel("itemStyle").getItemStyle(gbt);t.useStyle(i),t.style.fill=null,t.style.stroke=a;var o=r.get("cursor");o&&t.attr("cursor",o)}function xbt(e){!e||!Y(e.series)||D(e.series,function(t){gt(t)&&t.type==="k"&&(t.type=Dl)})}var wbt=Uh(),Tbt={seriesType:Dl,plan:vc(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=Abt(e),a=e.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=W(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],f=l[1],c=l[2],v=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(v,y),A=te(S,b),T=Dt(S,b),C=N(A,_),M=N(T,_),E=N(x,_),L=N(w,_),R=[];P(R,M,0),P(R,C,1),R.push(z(L),z(M),z(E),z(C));var I=g.getItemModel(y),O=!!I.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:bG(m,y,S,b,f,O),initBaseline:S>b?M[i]:C[i],ends:R,brushRect:B(x,w,_)})}function N(H,F){var $=[];return $[a]=F,$[i]=H,isNaN(F)||isNaN(H)?[NaN,NaN]:t.dataToPoint($)}function P(H,F,$){var j=F.slice(),tt=F.slice();j[a]=b_(j[a]+n/2,1,!1),tt[a]=b_(tt[a]-n/2,1,!0),$?H.push(j,tt):H.push(tt,j)}function B(H,F,$){var j=N(H,$),tt=N(F,$);return j[a]-=n/2,tt[a]-=n/2,{x:j[0],y:j[1],width:i?n:tt[0]-j[0],height:i?tt[1]-j[1]:n}}function z(H){return H[a]=b_(H[a],1),H}}function d(p,g){for(var y=Li(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),A=!!e.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var T=w.get(s,x),C=w.get(u,x),M=w.get(f,x),E=w.get(c,x),L=w.get(v,x);if(isNaN(T)||isNaN(E)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=bG(w,x,C,M,f,A),S[a]=T,S[i]=E,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function bG(e,t,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:t>0?e.get(a,t-1)<=n?1:-1:1,o}function Abt(e,t){var r=e.getBaseAxis(),n=Hr(r,{fromStat:{key:rf(Dl)},min:1}).w,a=J(ot(e.get("barMaxWidth"),n),n),i=J(ot(e.get("barMinWidth"),1),n),o=e.get("barWidth");return o!=null?J(o,n):Dt(te(n/2,a),i)}function Cbt(e){wbt(e,function(){var t=rf(Dl);vI(e,{key:t,seriesType:Dl,getMetrics:CI}),yx(t,bx(t))})}function Mbt(e){e.registerChartView(ybt),e.registerSeriesModel(GZ),e.registerPreprocessor(xbt),e.registerVisual(pbt),e.registerLayout(Tbt),Cbt(e)}function xG(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 Dbt=function(e){G(t,e);function t(r,n){var a=e.call(this)||this,i=new Wy(r,n),o=new ht;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Fe(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*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)}xG(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}xG(a,r)},t.prototype.highlight=function(){as(this)},t.prototype.downplay=function(){is(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=ed(r.getItemVisual(n,"symbolSize")),f=r.getItemVisual(n,"style"),c=f&&f.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var h=hc(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=r.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/r.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,xe(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(ht),Lbt=function(e){G(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 $y(Dbt)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,wG(r)),this.group.add(o.group)},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=Xy("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(wG(r))},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=K7(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(ee);function wG(e){return{clipShape:z$(e)}}var Ebt=function(e){G(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 so(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.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}(ne);function Obt(e){e.registerChartView(Lbt),e.registerSeriesModel(Ebt),e.registerLayout(Xy("effectScatter"))}var HZ=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new $I(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Y(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Fe(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Xr(n.get("delay"),function(h){return h/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;ct(c)?v=c(a):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Eo(r.__p1,r.__cp1)+Eo(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,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<=1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=mr,f=i2;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=r.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),v=r.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Eo(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*Eo(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 a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(ht),UZ=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new wr({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};jt(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,xe(this,l,u,f)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",r.getItemLayout(n))},t}(ht),Rbt=function(e){G(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,a){return new UZ(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Eo(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<=1?r.__t:2-r.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],v=a[l+1];r.x=c[0]*(1-f)+f*v[0],r.y=c[1]*(1-f)+f*v[1];var h=r.__t<=1?v[0]-c[0]:c[0]-v[0],d=r.__t<=1?v[1]-c[1]:c[1]-v[1];r.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(HZ),Ibt=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Pbt=function(e){G(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.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Ibt},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],v=a[o++];if(r.moveTo(u,f),i>0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;r.quadraticCurveTo(h,d,c,v)}else r.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],v=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(Is(c,v,d,p,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],v=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(ZY(c,v,g,y,d,p,s,r,n))return l}else if(Is(c,v,d,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.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,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}r=this._rect=new dt(i,o,s,l)}return r},t}(Rt),Nbt=function(){function e(){this.group=new ht}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,n){var a=this._newAdded[0],i=r.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:i}),this._setCommon(u,r),u.__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 Pbt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=mt(t);o.seriesIndex=a.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}(),FZ={seriesType:"lines",plan:vc(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,f=a.start;f<a.end;f++)u+=e.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,v=[],f=a.start;f<a.end;f++){var h=e.getLineCoords(f,o);r&&(s[c++]=h);for(var d=0;d<h;d++)v=t.dataToPoint(o[d],!1,v),s[c++]=v[0],s[c++]=v[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),h=e.getLineCoords(f,o),g=[];if(r)for(var y=0;y<h;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}},kbt=function(e){G(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,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=a.getZr(),f=!!N2(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var c=r.get("clip",!0)&&Of(r.coordinateSystem,!1,r);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData(),Vi(n)),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=FZ.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new Nbt:new XI(o?i?Rbt:UZ:i?HZ:$I),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=N2(r);n&&this._lastZlevel!=null&&n.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}(ee),Bbt=typeof Uint32Array>"u"?Array:Uint32Array,zbt=typeof Float64Array>"u"?Array:Float64Array;function TG(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=W(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),zb([a,r[0],r[1]])}))}var Vbt=function(e){G(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||[],TG(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(TG(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=sh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=sh(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),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},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 a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}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),Vt(r[0])){for(var a=r.length,i=new Bbt(a),o=new zbt(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=r[f++];i[l++]=s+n,i[l++]=c;for(var v=0;v<c;v++){var h=r[f++],d=r[f++];o[s++]=h,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var a=new qr(["value"],this);return a.hasItemOption=!1,a.initData(r.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getItemModel(r),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),c=[];u!=null&&c.push(u),f!=null&&c.push(f),l=c.join(" > ")}return Xe("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},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}(ne);function x0(e){return e instanceof Array||(e=[e,e]),e}var Gbt={seriesType:"lines",reset:function(e){var t=x0(e.get("symbol")),r=x0(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 a(i,o){var s=i.getItemModel(o),l=x0(s.getShallow("symbol",!0)),u=x0(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function Hbt(e){e.registerChartView(kbt),e.registerSeriesModel(Vbt),e.registerLayout(FZ),e.registerVisual(Gbt)}var Ubt=256,Fbt=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=fr.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=r,c.height=n;for(var d=0;d<h;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=a(m);v.globalAlpha=_,v.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=v.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,A=this.minOpacity,T=this.maxOpacity,C=T-A;x<w;){var _=b[x+3]/256,M=Math.floor(_*(Ubt-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*C+A),b[x++]=E[M],b[x++]=E[M+1],b[x++]=E[M+2],b[x++]=E[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),c},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=fr.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=V.color.neutral99,a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();function Ybt(e,t,r){var n=e[1]-e[0];t=W(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function jbt(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]}}var Wbt=function(e){G(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,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,a,0,r.getData().count()):AV(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(AV(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){zl(this._progressiveEls||this.group,r)},t.prototype._renderOnGridLike=function(r,n,a,i,o){var s=r.coordinateSystem,l=Rf(s,"cartesian2d"),u=Rf(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=Hr(d).w+.5,c=Hr(p).w+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),_=r.getModel(["blur","itemStyle"]).getItemStyle(),S=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),x=ar(r),w=r.getModel("emphasis"),A=w.get("focus"),T=w.get("blurScope"),C=w.get("disabled"),M=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],E=a;E<i;E++){var L=void 0,R=y.getItemVisual(E,"style");if(l){var I=y.get(M[0],E),O=y.get(M[1],E);if(isNaN(y.get(M[2],E))||isNaN(I)||isNaN(O)||I<v[0]||I>v[1]||O<h[0]||O>h[1])continue;var N=s.dataToPoint([I,O]);L=new Lt({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:R})}else if(u){var P=s.dataToLayout([y.get(M[0],E),y.get(M[1],E)]).rect;if(Nr(P.x))continue;L=new Lt({z2:1,shape:P,style:R})}else{if(isNaN(y.get(M[1],E)))continue;var B=s.dataToLayout([y.get(M[0],E)]),P=B.contentRect||B.rect;if(Nr(P.x)||Nr(P.y))continue;L=new Lt({z2:1,shape:P,style:R})}if(y.hasItemOption){var z=y.getItemModel(E),H=z.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),b=z.get(["itemStyle","borderRadius"]),A=H.get("focus"),T=H.get("blurScope"),C=H.get("disabled"),x=ar(z)}L.shape.r=b;var F=r.getRawValue(E),$="-";F&&F[2]!=null&&($=F[2]+""),hr(L,x,{labelFetcher:r,labelDataIndex:E,defaultOpacity:R.opacity,defaultText:$}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,xe(L,A,T,C),L.incremental=Vi(r,o),o&&(L.states.emphasis.hoverLayer=Xh),g.add(L),y.setItemGraphicEl(E,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Fbt;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=r.getViewRect().clone(),c=r.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,A,T){var C=r.dataToPoint([w,A]);return C[0]-=v,C[1]-=h,C.push(T),C}),S=a.getExtent(),b=a.type==="visualMap.continuous"?jbt(S,a.option.range):Ybt(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new dr({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(ee),$bt=function(e){G(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 so(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Qh.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","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:V.color.primary}}},t}(ne);function Xbt(e){e.registerChartView(Wbt),e.registerSeriesModel($bt)}var Zbt=["itemStyle","borderWidth"],AG=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],YA=new oo,qbt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Wg,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:AG[+f],categoryDim:AG[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=MG(o,d),g=CG(o,d,p,v),y=DG(o,v,g);o.setItemGraphicEl(d,y),i.add(y),EG(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=MG(o,d),m=CG(o,d,y,v),_=ZZ(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?nxt(g,v,m):g=DG(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),EG(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&LG(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=r.get("clip",!0)?Of(r.coordinateSystem,!1,r):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){LG(i,mt(o).dataIndex,r,o)}):a.removeAll()},t.type=Wg,t}(ee);function CG(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=r.get("symbolPatternSize")||2,c=r.isAnimationEnabled(),v={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?r:null,hoverScale:c&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};Kbt(r,i,a,n,v),Qbt(e,t,a,i,o,v.boundingLength,v.pxSign,f,n,v),Jbt(r,v.symbolScale,u,n,v);var h=v.symbolSize,d=hc(r.get("symbolOffset"),h);return txt(r,h,a,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function Kbt(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),f;if(Y(o)){var c=[jA(s,o[0])-l,jA(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=jA(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=r[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=r[i.wh]);var v=i.xy==="x",h=s.inverse;a.pxSign=v&&!h||!v&&h?f>=0?1:-1:f>0?1:-1}function jA(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Qbt(e,t,r,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(r[c.wh]),h=e.getItemVisual(t,"symbolSize"),d;Y(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=J(d[c.index],v),d[f.index]=J(d[f.index],n?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function Jbt(e,t,r,n,a){var i=e.get(Zbt)||0;i&&(YA.attr({scaleX:t[0],scaleY:t[1],rotation:r}),YA.updateTransform(),i/=YA.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function txt(e,t,r,n,a,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(n){var y=Math.abs(l),m=Xr(e.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=J(m,t[h.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=KO(n),A=w?n:OG((y+x)/b),T=y-A*p;S=T/2/(_?A:Math.max(A-1,1)),b=p+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(A=u?OG((Math.abs(u)+x)/b):0),g=A*b-x,c.repeatTimes=A,c.symbolMargin=S}var C=d*(g/2),M=c.pathPosition=[];M[v.index]=r[v.wh]/2,M[h.index]=o==="start"?C:o==="end"?l-C:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var E=c.bundlePosition=[];E[v.index]=r[v.xy],E[h.index]=r[h.xy];var L=c.barRectShape=U({},r);L[h.wh]=d*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+C)),L[v.wh]=r[v.wh];var R=c.clipShape={};R[v.xy]=-r[v.xy],R[v.wh]=f.ecSize[v.wh],R[h.xy]=0,R[h.wh]=r[h.wh]}function YZ(e){var t=e.symbolPatternSize,r=Fe(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function jZ(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+r.symbolMargin*2;for(aP(e,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Fv(p,null,d(f),r,n):Fv(p,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(p)}),f++});f<u;f++){var v=YZ(r);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,a.add(v);var h=d(f);Fv(v,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function d(p){var g=s.slice(),y=r.pxSign,m=p;return(r.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function WZ(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Fv(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=YZ(r),a.add(i),Fv(i,{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 $Z(e,t,r){var n=U({},t.barRectShape),a=e.__pictorialBarRect;a?Fv(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new Lt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function XZ(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=U({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)jt(a,{shape:i},s,l);else{i[o.wh]=0,a=new Lt({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],uc[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function MG(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=ext,r.isAnimationEnabled=rxt,r}function ext(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function rxt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function DG(e,t,r,n){var a=new ht,i=new ht;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?jZ(a,t,r):WZ(a,t,r),$Z(a,r,n),XZ(a,t,r,n),a.__pictorialShapeStr=ZZ(e,r),a.__pictorialSymbolMeta=r,a}function nxt(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;jt(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?jZ(e,t,r,!0):WZ(e,t,r,!0),$Z(e,r,!0),XZ(e,t,r,!0)}function LG(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];aP(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(i,function(o){Tl(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function ZZ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function aP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Fv(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&uc[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function EG(e,t,r){var n=r.dataIndex,a=r.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");aP(e,function(p){if(p instanceof dr){var g=p.style;p.useStyle(U({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else p.useStyle(r.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],d=e.__pictorialBarRect;d.ignoreClip=!0,hr(d,ar(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Sh(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),xe(e,f,c,i.get("disabled"))}function OG(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var axt=function(e){G(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."+Wg,t.dependencies=["grid"],t.defaultOption=Vl($g.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:V.color.primary}}}),t}($g);function ixt(e){e.registerChartView(qbt),e.registerSeriesModel(axt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,aX(Wg)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,iX(Wg)),sX(e)}var WA=2,Th="themeRiver",oxt=function(e){G(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 ld(et(this.getData,this),et(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=S2(r,function(v){return a.hasOwnProperty(v[0]+"")||(a[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,h){o.push({name:h,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,r[n]=[c,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",Pe).models[0],i=a.get("type"),o=Xt(r.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=rt(),f=0,c=0;c<s.length;++c)l.push(s[c][WA]),u.get(s[c][WA])||(u.set(s[c][WA],f),f++);var v=rd(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:s1(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new qr(v,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=S2(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,v){return r.get(o,c)-r.get(o,v)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){Y(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,v=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(r[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,v=o[f].indices[d])}s.push(v)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return Xe("nameValue",{name:o,value:s})},t.type="series."+Th,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}(ne),sxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Th,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new os(this._layersSeries||[],l,v,v),d=[];h.add(et(p,this,"add")).update(et(p,this,"update")).remove(et(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,A=0;A<w.length;A++){var T=i.getItemLayout(w[A]),C=T.x,M=T.y0,E=T.y;S.push(C,M),b.push(C,M+E),x=i.getItemVisual(w[A],"style")}var L,R=i.getItemLayout(w[0]),I=r.getModel("label"),O=I.get("margin"),N=r.getModel("emphasis");if(g==="add"){var P=d[y]=new ht;L=new N$({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),P.add(L),s.add(P),r.isAnimationEnabled()&&L.setClipPath(lxt(L.getBoundingRect(),r,function(){L.removeClipPath()}))}else{var P=_[m];L=P.childAt(0),s.add(P),d[y]=P,jt(L,{shape:{points:S,stackedOnPoints:b}},r),Ia(L)}hr(L,ar(r),{labelDataIndex:w[A-1],defaultText:i.getName(w[A-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var B=L.getTextContent();B&&(B.x=R.x-O,B.y=R.y0+R.y/2),L.useStyle(x),i.setItemGraphicEl(y,L),nr(L,r),xe(L,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},t.type=Th,t}(ee);function lxt(e,t,r){var n=new Lt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return de(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var uxt=ir(Th,fxt);function fxt(e,t){e.eachSeriesByType(Th,function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.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];RG(n,r,u)}else{s[0]=J(s[0],o.width),s[1]=J(s[1],o.width);var f=o.width-s[0]-s[1];RG(n,r,f)}n.setLayout("layoutInfo",i)})}function RG(e,t,r){if(e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=W(a,function(g){return W(g.indices,function(y){var m=n.dataToPoint(e.get(i,y));return m[1]=e.get(o,y),m})}),l=cxt(s),u=l.y0,f=r/l.max,c=a.length,v=a[0].indices.length,h,d=0;d<v;++d){h=u[d]*f,e.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<c;++p)h+=s[p-1][d][1]*f,e.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function cxt(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<r;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function vxt(e){e.registerChartView(sxt),e.registerSeriesModel(oxt),e.registerLayout(uxt),e.registerProcessor(qy(Th))}var hxt=2,dxt=4,IG=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=hxt,o.textConfig={inside:!0},mt(o).seriesIndex=n.seriesIndex;var s=new zt({z2:dxt,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;mt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=U({},f);c.label=null;var v=n.getVisual("style");v.lineJoin="bevel";var h=n.getVisual("decal");h&&(v.decal=ph(h,o));var d=Ei(l.getModel("itemStyle"),c,!0);U(c,d),D(fn,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Ei(S,c);b&&(_.shape=b)}),r?(s.setShape(c),s.shape.r=f.r0,de(s,{shape:{r:f.r}},a,n.dataIndex)):(jt(s,{shape:c},a),Ia(s)),s.useStyle(v),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?sh(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;xe(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);v.ignore=!p,D(Dg,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?v:v.ensureState(y),b=r.getFormattedLabel(h,y);_&&(b=b||n.node.name),S.style=oe(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),A=_?c:c.states[y],T=A.style.fill;A.textConfig={outsideFill:m.get("color")==="inherit"?T:null,inside:w!=="outside"};var C,M=g(m,"distance")||0,E=g(m,"align"),L=g(m,"rotate"),R=Math.PI*.5,I=Math.PI*1.5,O=Vn(L==="tangential"?Math.PI/2-l:l),N=O>R&&!mf(O-R)&&O<I;w==="outside"?(C=o.r+M,E=N?"right":"left"):!E||E==="center"?(o.r0===0&&mf(s-2*Math.PI)?C=0:C=(o.r+o.r0)/2,E="center"):E==="left"?(C=o.r0+M,E=N?"right":"left"):E==="right"&&(C=o.r-M,E=N?"left":"right"),S.style.align=E,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=C*u+o.cx,S.y=C*f+o.cy;var P=0;L==="radial"?P=Vn(-l)+(N?Math.PI:0):L==="tangential"?P=Vn(Math.PI/2-l)+(N?Math.PI:0):Vt(L)&&(P=L*Math.PI/180),S.rotation=Vn(P)});function g(y,m){var _=y.get(m);return _??i.get(m)}v.dirtyStyle()},t}(Vr),Gf="sunburst",pxt=function(e){G(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 a={name:r.name,children:r.data};qZ(a);var i=this._levelModels=W(r.levels||[],function(l){return new Ot(l,this,n)},this),o=GI.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=Lx(a,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(){JX(this)},t.type="series."+Gf,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}(ne);function qZ(e){var t=0;D(e.children,function(n){qZ(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});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 VL="sunburstRootToNode",PG="sunburstHighlight",gxt="sunburstUnhighlight";function yxt(e){e.registerAction({type:VL,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Qg(t,[VL],a);if(o){var s=a.getViewRoot();s&&(t.direction=HI(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:PG,update:"none"},function(t,r,n){t=U({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Qg(t,[PG],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(U(t,{type:"highlight"}))}),e.registerAction({type:gxt,update:"updateView"},function(t,r,n){t=U({},t),n.dispatchAction(U(t,{type:"downplay"}))})}var mxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Gf,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),f=this.group,c=r.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var h=this._oldChildren||[];d(v,h),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new os(_,m,S,S).add(b).update(b).remove(Mt(b,null)).execute();function S(x){return x.getId()}function b(x,w){var A=x==null?null:m[x],T=w==null?null:_[w];p(A,T)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,r,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new IG(m,r,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,a):(o.virtualPiece=new IG(m,r,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&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 f=l.get("target",!0)||"_blank";KS(u,f)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:VL,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=Gf,t}(ee),_xt=ir(Gf,Sxt);function Sxt(e){var t={};function r(n,a,i){if(n.depth===0)return V.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&K(s)&&(s=PS(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType(Gf,function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");U(u,l)})})}var NG=Math.PI/180,bxt=ir(Gf,xxt);function xxt(e,t){e.eachSeriesByType(Gf,function(r){var n=r.get("center"),a=r.get("radius");Y(a)||(a=[0,a]),Y(n)||(n=[n,n]);var i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o),l=J(n[0],i),u=J(n[1],o),f=J(a[0],s/2),c=J(a[1],s/2),v=-r.get("startAngle")*NG,h=r.get("minAngle")*NG,d=r.getData().tree.root,p=r.getViewRoot(),g=p.depth,y=r.get("sort");y!=null&&KZ(p,y);var m=0;D(p.children,function(I){!isNaN(I.getValue())&&m++});var _=p.getValue(),S=Math.PI/(_||m)*2,b=p.depth>0,x=p.height-(b?-1:1),w=(c-f)/(x||1),A=r.get("clockwise"),T=r.get("stillShowZeroSum"),C=A?1:-1,M=function(I,O){if(I){var N=O;if(I!==d){var P=I.getValue(),B=_===0&&T?S:P*S;B<h&&(B=h),N=O+C*B;var z=I.depth-g-(b?-1:1),H=f+w*z,F=f+w*(z+1),$=r.getLevelModel(I);if($){var j=$.get("r0",!0),tt=$.get("r",!0),_t=$.get("radius",!0);_t!=null&&(j=_t[0],tt=_t[1]),j!=null&&(H=J(j,s/2)),tt!=null&&(F=J(tt,s/2))}I.setLayout({angle:B,startAngle:O,endAngle:N,clockwise:A,cx:l,cy:u,r0:H,r:F})}if(I.children&&I.children.length){var lt=0;D(I.children,function(it){lt+=M(it,O+lt)})}return N-O}};if(b){var E=f,L=f+w,R=Math.PI*2;d.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:A,cx:l,cy:u,r0:E,r:L})}M(p,v)})}function KZ(e,t){var r=e.children||[];e.children=wxt(r,t),r.length&&D(e.children,function(n){KZ(n,t)})}function wxt(e,t){if(ct(t)){var r=W(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),W(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Txt(e){e.registerChartView(mxt),e.registerSeriesModel(pxt),e.registerLayout(bxt),e.registerVisual(_xt),yxt(e)}var kG={color:"fill",borderColor:"stroke"},Axt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Yo=Tt(),Cxt=function(e){G(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 so(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Yo(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ne);function Mxt(e,t){return t=t||[0,0],W(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?Hr(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Dxt(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:et(Mxt,e)}}}function Lxt(e,t){return t=t||[0,0],W([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function Ext(e){var t=e.view,r=t.getBoundingRect();return{coordSys:{type:"geo",x:r.x,y:r.y,width:r.width,height:r.height,zoom:Jmt(t)},api:{coord:function(n){return e.dataToPoint(n)},size:et(Lxt,e)}}}function Oxt(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?Hr(r).w:Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function Rxt(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:et(Oxt,e)}}}function Ixt(e,t){return t=t||[0,0],W(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?Hr(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function Pxt(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(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:et(Ixt,e)}}}function Nxt(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,a){return e.dataToPoint(n,a)},layout:function(n,a){return e.dataToLayout(n,a)}}}}function kxt(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r,n){return e.dataToPoint(r,n)},layout:function(r,n){return e.dataToLayout(r,n)}}}}var QZ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},BG=Nt(QZ);La(rs,function(e,t){return e[t]=1,e},{});rs.join(", ");var P1=["","style","shape","extra"],Ah=Tt();function iP(e,t,r,n,a){var i=e+"Animation",o=$h(e,n,a)||{},s=Ah(t).userDuring;return o.duration>0&&(o.during=s?et(Hxt,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),U(o,r[i]),o}function R_(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Ah(e),u=t.style;l.userDuring=t.during;var f={},c={};if(Fxt(e,t,c),e.type==="compound")for(var v=e.shape.paths,h=t.shape.paths,d=0;d<h.length;d++){var p=h[d];$A("shape",p,v[d])}else $A("shape",t,c),$A("extra",t,c);if(!i&&s&&(Uxt(e,t,f),zG("shape",e,t,f),zG("extra",e,t,f),Yxt(e,t,u,f)),c.style=u,Bxt(e,c,o),Vxt(e,t),s)if(i){var g={};D(P1,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),U(m?g[m]:g,_.enterFrom))});var y=iP("enter",e,t,r,a);y.duration>0&&e.animateFrom(g,y)}else zxt(e,t,a||0,r,f);JZ(e,t),u?e.dirty():e.markRedraw()}function JZ(e,t){for(var r=Ah(e).leaveToProps,n=0;n<P1.length;n++){var a=P1[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=Ah(e).leaveToProps={}),a&&(r[a]=r[a]||{}),U(a?r[a]:r,i.leaveTo))}}function Rx(e,t,r,n){if(e){var a=e.parent,i=Ah(e).leaveToProps;if(i){var o=iP("update",e,t,r,0);o.done=function(){a&&a.remove(e)},e.animateTo(i,o)}else a&&a.remove(e)}}function nf(e){return e==="all"}function Bxt(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function zxt(e,t,r,n,a){if(a){var i=iP("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function Vxt(e,t){nt(t,"silent")&&(e.silent=t.silent),nt(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ra&&nt(t,"invisible")&&(e.invisible=t.invisible),e instanceof Rt&&nt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var pi={},Gxt={setTransform:function(e,t){return pi.el[e]=t,this},getTransform:function(e){return pi.el[e]},setShape:function(e,t){var r=pi.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=pi.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=pi.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=pi.el.style;if(t)return t[e]},setExtra:function(e,t){var r=pi.el.extra||(pi.el.extra={});return r[e]=t,this},getExtra:function(e){var t=pi.el.extra;if(t)return t[e]}};function Hxt(){var e=this,t=e.el;if(t){var r=Ah(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}pi.el=t,n(Gxt)}}function zG(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),nf(l))U(o,i);else for(var u=le(l),f=0;f<u.length;f++){var c=u[f],v=i[c];o[c]=v}else if(nf(s)||bt(s,e)>=0){!o&&(o=n[e]={});for(var h=Nt(i),f=0;f<h.length;f++){var c=h[f],v=i[c];jxt(a[c],v)&&(o[c]=v)}}}}}function $A(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=Nt(n),o=0;o<i.length;o++){var s=i[o];a[s]=Fp(n[s])}}function Uxt(e,t,r){for(var n=t.transition,a=nf(n)?rs:le(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function Fxt(e,t,r){for(var n=0;n<BG.length;n++){var a=BG[n],i=QZ[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<rs.length;n++){var s=rs[n];t[s]!=null&&(r[s]=t[s])}}function Yxt(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!nf(o)){var l=le(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(e.getAnimationStyleProps&&(nf(s)||nf(o)||bt(s,"style")>=0)){var v=e.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});for(var d=Nt(r),u=0;u<d.length;u++){var f=d[u];if(h[f]){var c=a[f];i[f]=c}}}}}}}function jxt(e,t){return Br(e)?e!==t:e!=null&&isFinite(e)}var tq=Tt(),Wxt=["percent","easing","shape","style","extra"];function eq(e){e.stopAnimation("keyframe"),e.attr(tq(e))}function N1(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Y(t)){D(t,function(s){N1(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=$h("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=tq(e);D(P1,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),D(n,function(u){var f=e.animators,c=s?u[s]:u;if(c){var v=Nt(c);if(s||(v=Xt(v,function(p){return bt(Wxt,p)<0})),!!v.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(v,function(p){d[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,c,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var jo="emphasis",qs="normal",oP="blur",sP="select",Ll=[qs,jo,oP,sP],XA={normal:["itemStyle"],emphasis:[jo,"itemStyle"],blur:[oP,"itemStyle"],select:[sP,"itemStyle"]},ZA={normal:["label"],emphasis:[jo,"label"],blur:[oP,"label"],select:[sP,"label"]},$xt=["x","y"],Xxt="e\0\0",na={normal:{},emphasis:{},blur:{},select:{}},Zxt={cartesian2d:Dxt,geo:Ext,single:Rxt,polar:Pxt,calendar:Nxt,matrix:kxt};function GL(e){return e instanceof Rt}function HL(e){return e instanceof Ra}function qxt(e,t){t.copyTransform(e),HL(t)&&HL(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,GL(t)&&GL(e)&&t.setShape(e.shape))}var Kxt=function(e){G(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,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=VG(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){qA(a,null,c,u(c,i),r,l,s)}).remove(function(c){var v=o.getItemGraphicEl(c);v&&Rx(v,Yo(v).option,r)}).update(function(c,v){var h=o.getItemGraphicEl(v);qA(a,h,c,u(c,i),r,l,s)}).execute();var f=r.get("clip",!0)?Of(r.coordinateSystem,!1,r):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=VG(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=Vi(n),h.ensureState("emphasis").hoverLayer=Xh)}for(var c=r.start;c<r.end;c++){var v=qA(null,null,c,l(c,o),n,this.group,s);v&&(v.traverse(f),u.push(v))}},t.prototype.eachRendered=function(r){zl(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(ee);function lP(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=aq(n);r=vh(i,null,a,n.layout||"center"),Yo(r).customPathData=i}else if(t==="image")r=new dr({}),Yo(r).customImagePath=e.style.image;else if(t==="text")r=new zt({});else if(t==="group")r=new ht;else if(t==="compoundPath"){var n=e.shape;if(!n||!n.paths){var o="";$t(o)}var s=W(n.paths,function(f){if(f.type==="path")return vh(f.shape.pathData,f,null);var c=Eg(f.type);if(!c){var v="";$t(v)}return new c});r=new By({shape:{paths:s}})}else{var l=Eg(t);if(!l){var o="";$t(o)}r=new l}return Yo(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function uP(e,t,r,n,a,i,o){eq(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=$xt);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;nt(u,"textFill")&&(u.fill=u.textFill),nt(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=GL(t)?l.decal:null;e&&c&&(c.dirty=!0,f=ph(c,e)),l.__decalPattern=f}if(HL(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}R_(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),N1(t,n.keyframeAnimation,i)}function rq(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),wf(i)}}function Qxt(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Ll.length;s++)Jxt(n,t,Ll[s])}}function Jxt(e,t,r){var n=r===qs,a=n?t:k1(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function VG(e,t,r,n){var a=e.get("renderItem");if(typeof a=="string"){var i=tvt(a);i&&(a=i)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):Zxt[o.type](o));for(var l=pt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:A,visual:M,barLayout:E,currentSeriesIndices:L,font:R},s.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:twt(e.getData()),itemPayload:e.get("itemPayload")||{}},f,c,v={},h={},d={},p={},g=0;g<Ll.length;g++){var y=Ll[g];d[y]=e.getModel(XA[y]),p[y]=e.getModel(ZA[y])}function m(I){return I===f?c||(c=t.getItemModel(I)):t.getItemModel(I)}function _(I,O){return t.hasItemOption?I===f?v[O]||(v[O]=m(I).getModel(XA[O])):m(I).getModel(XA[O]):d[O]}function S(I,O){return t.hasItemOption?I===f?h[O]||(h[O]=m(I).getModel(ZA[O])):m(I).getModel(ZA[O]):p[O]}return function(I,O){return f=I,c=null,v={},h={},a&&a(pt({dataIndexInside:I,dataIndex:t.getRawIndex(I),actionType:O?O.type:null},u),l)};function b(I,O){return O==null&&(O=f),t.getStore().get(t.getDimensionIndex(I||0),O)}function x(I,O){O==null&&(O=f),I=I||0;var N=t.getDimensionInfo(I);if(!N){var P=t.getDimensionIndex(I);return P>=0?t.getStore().get(P,O):void 0}var B=t.get(N.name,O),z=N&&N.ordinalMeta;return z?z.categories[B]:B}function w(I,O){O==null&&(O=f);var N=t.getItemVisual(O,"style"),P=N&&N.fill,B=N&&N.opacity,z=_(O,qs).getItemStyle();P!=null&&(z.fill=P),B!=null&&(z.opacity=B);var H={inheritColor:K(P)?P:V.color.neutral99},F=S(O,qs),$=oe(F,null,H,!1,!0);$.text=F.getShallow("show")?ot(e.getFormattedLabel(O,qs),Sh(t,O)):null;var j=WS(F,H,!1);return C(I,z),z=MV(z,$,j),I&&T(z,I),z.legacy=!0,z}function A(I,O){O==null&&(O=f);var N=_(O,jo).getItemStyle(),P=S(O,jo),B=oe(P,null,null,!0,!0);B.text=P.getShallow("show")?wn(e.getFormattedLabel(O,jo),e.getFormattedLabel(O,qs),Sh(t,O)):null;var z=WS(P,null,!0);return C(I,N),N=MV(N,B,z),I&&T(N,I),N.legacy=!0,N}function T(I,O){for(var N in O)nt(O,N)&&(I[N]=O[N])}function C(I,O){I&&(I.textFill&&(O.textFill=I.textFill),I.textPosition&&(O.textPosition=I.textPosition))}function M(I,O){if(O==null&&(O=f),nt(kG,I)){var N=t.getItemVisual(O,"style");return N?N[kG[I]]:null}if(nt(Axt,I))return t.getItemVisual(O,I)}function E(I){if(o.type==="cartesian2d"){var O=o.getBaseAxis();return Jgt(pt({axis:O},I))}}function L(){return r.getCurrentSeriesIndices()}function R(I){return SR(I,r)}}function twt(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function qA(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=fP(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&xe(s,n.focus,n.blurScope,n.emphasisDisabled),s}function fP(e,t,r,n,a,i){var o=-1,s=t;t&&nq(t,n,a)&&(o=bt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=lP(n),s&&qxt(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),na.normal.cfg=na.normal.conOpt=na.emphasis.cfg=na.emphasis.conOpt=na.blur.cfg=na.blur.conOpt=na.select.cfg=na.select.conOpt=null,na.isLegacy=!1,rwt(u,r,n,a,l,na),ewt(u,r,n,a,l),uP(e,u,r,n,na,a,l),nt(n,"info")&&(Yo(u).info=n.info);for(var f=0;f<Ll.length;f++){var c=Ll[f];if(c!==qs){var v=k1(n,c),h=cP(n,v,c);rq(c,u,v,h,na)}}return Qxt(u,n,a),n.type==="group"&&nwt(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function nq(e,t,r){var n=Yo(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&swt(i)&&aq(i)!==n.customPathData||a==="image"&&nt(o,"image")&&o.image!==n.customImagePath}function ewt(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&nq(o,i,n)&&(o=null),o||(o=lP(i),e.setClipPath(o)),uP(null,o,t,i,null,n,a)}}function rwt(e,t,r,n,a,i){if(!(e.isGroup||e.type==="compoundPath")){GG(r,null,i),GG(r,jo,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=e.getTextContent();if(o===!1)f&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=lP(o),e.setTextContent(f)),uP(null,f,t,o,null,n,a);for(var c=o&&o.style,v=0;v<Ll.length;v++){var h=Ll[v];if(h!==qs){var d=i[h].conOpt;rq(h,f,d,cP(o,d,h),null)}}c?f.dirty():f.markRedraw()}}}}function GG(e,t,r){var n=t?k1(e,t):e,a=t?cP(e,n,jo):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?k1(s,t):s:null;if(a&&(r.isLegacy||V$(a,i,!!o,!!l))){r.isLegacy=!0;var u=G$(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?r[t]:r.normal;c.cfg=o,c.conOpt=l}function k1(e,t){return t?e?e[t]:null:e}function cP(e,t,r){var n=t&&t.style;return n==null&&r===jo&&e&&(n=e.styleEmphasis),n}function nwt(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){iwt({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],v=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),fP(e,v,r,c,a,t)):v.ignore=!0}for(var h=t.childCount()-1;h>=f;h--){var d=t.childAt(h);awt(t,d,a)}}}function awt(e,t,r){t&&Rx(t,Yo(e).option,r)}function iwt(e){new os(e.oldChildren,e.newChildren,HG,HG,e).add(UG).update(UG).remove(owt).execute()}function HG(e,t){var r=e&&e.name;return r??Xxt+t}function UG(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;fP(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function owt(e){var t=this.context,r=t.oldChildren[e];r&&Rx(r,Yo(r).option,t.seriesModel)}function aq(e){return e&&(e.pathData||e.d)}function swt(e){return e&&(nt(e,"pathData")||nt(e,"d"))}function lwt(e){e.registerChartView(Kxt),e.registerSeriesModel(Cxt)}var Pu=Tt(),FG=ut,KA=et,vP=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new ht,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var v=Mt(YG,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}WG(s,r,!0),this._renderHandle(i)}},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"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&Hr(a).w>s)return!0;if(o){var l=DI(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=Pu(t).pointerEl=new uc[i.type](FG(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Pu(t).labelEl=new zt(FG(r.label));t.add(i),jG(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=Pu(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=Pu(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),jG(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Zh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){es(u.event)},onmousedown:KA(this._onHandleDragMove,this,0,0),drift:KA(this._onHandleDragMove,this),ondragend:KA(this._onHandleDragEnd,this)}),n.add(a)),WG(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Y(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Jh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){YG(this._axisPointerModel,!r&&this._moveAnimation,this._handle,QA(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(QA(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(QA(a)),Pu(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,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Pg(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 YG(e,t,r,n){iq(Pu(r).lastProp,n)||(Pu(r).lastProp=n,t?jt(r,n,e):(r.stopAnimation(),r.attr(n)))}function iq(e,t){if(gt(e)&>(t)){var r=!0;return D(t,function(n,a){r=r&&iq(e[a],n)}),!!r}else return e===t}function jG(e,t){e[t.get(["label","show"])?"show":"hide"]()}function QA(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function WG(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function hP(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 oq(e,t,r,n,a){var i=r.get("value"),o=sq(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Kh(s.get("padding")||0),u=s.getFont(),f=Fb(o,u),c=a.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),uwt(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:oe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function uwt(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function sq(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:f1(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),K(o)?i=o.replace("{value}",i):ct(o)&&(i=o(s))}return i}function dP(e,t,r){var n=Se();return ps(n,n,r.rotation),Qa(n,n,r.position),Za([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function lq(e,t,r,n,a,i){var o=ln.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),oq(t,n,a,i,{position:dP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function pP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function uq(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function $G(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}function gP(e,t,r){return Hr(e,{fromStat:{sers:W(t,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function yP(e,t,r){return[Dt(te(t[0],t[1]),e-r/2),te(e+r/2,Dt(t[0],t[1]))]}var fwt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),c=XG(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=hP(i),d=cwt[u](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=_1(l.getRect(),a);lq(n,r,p,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=_1(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=dP(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=XG(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=te(l[1],c[f]),c[f]=Dt(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(vP);function XG(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var cwt={line:function(e,t,r,n){var a=pP([t,n[0]],[t,n[1]],ZG(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r,n,a,i){var o=gP(e,a,i),s=n[1]-n[0],l=yP(t,r,o),u=l[0],f=l[1];return{type:"Rect",shape:uq([u,n[0]],[f-u,s],ZG(e))}}};function ZG(e){return e.dim==="x"?0:1}var vwt=function(e){G(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:V.color.border,width:1,type:"dashed"},shadowStyle:{color:V.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:V.color.neutral00,padding:[5,7,5,7],backgroundColor:V.color.accent60,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:V.color.accent40,throttle:40}},t}(Et),Io=Tt(),hwt=D;function fq(e,t,r){if(!Bt.node){var n=t.getZr();Io(n).records||(Io(n).records={}),dwt(n,t);var a=Io(n).records[e]||(Io(n).records[e]={});a.handler=r}}function dwt(e,t){if(Io(e).initialized)return;Io(e).initialized=!0,r("click",Mt(JA,"click")),r("mousemove",Mt(JA,"mousemove")),r("mousewheel",Mt(JA,"mousewheel")),r("globalout",gwt);function r(n,a){e.on(n,function(i){var o=ywt(t);hwt(Io(e).records,function(s){s&&a(s,i,o.dispatchAction)}),pwt(o.pendings,t)})}}function pwt(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function gwt(e,t,r){e.handler("leave",null,r)}function JA(e,t,r,n){t.handler(e,r,n)}function ywt(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function UL(e,t){if(!Bt.node){var r=t.getZr(),n=(Io(r).records||{})[e];n&&(Io(r).records[e]=null)}}var mwt=function(e){G(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,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";fq("axisPointer",a,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){UL("axisPointer",n)},t.prototype.dispose=function(r,n){UL("axisPointer",n)},t.type="axisPointer",t}(ue);function cq(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Sf(i,e);if(o==null||o<0||Y(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(W(l.dimensions,function(y){return i.mapDimension(y)}),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 qG=Tt();function _wt(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||et(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){I_(a)&&(a=cq({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=I_(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||I_(a),v={},h={},d={list:[],map:{}},p={showPointer:Mt(bwt,h),showTooltip:Mt(xwt,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=Cwt(u,S);if(!c&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=x.pointToData(a)),A!=null&&KG(S,A,p,!1,v)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&D(_.axesInfo,function(S,b){var x=h[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,QG(S),QG(y)))),g[y.key]=w}})}),D(g,function(y,m){KG(f[m],y,p,!0,v)}),wwt(h,f,v),Twt(d,a,e,o),Awt(f,o,r),v}}function KG(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=Swt(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&U(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Swt(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Oa(c)){var d=e-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),D(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function bwt(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function xwt(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Xg(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wwt(e,t,r){var n=r.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Twt(e,t,r,n){if(I_(t)||!e.list.length){n({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function Awt(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=qG(n)[a]||{},o=qG(n)[a]={};D(e,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&D(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}D(i,function(f,c){!o[c]&&l.push(u(f))}),D(o,function(f,c){!i[c]&&s.push(u(f))}),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 Cwt(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 QG(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 I_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ky(e){pc.registerAxisPointerClass("CartesianAxisPointer",fwt),e.registerComponentModel(vwt),e.registerComponentView(mwt),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,{overallReset:function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Xyt(t,r)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_wt)}function Mwt(e){At(wX),At(Ky)}var Dwt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),c=s.dataToCoord(n),v=i.get("type");if(v&&v!=="none"){var h=hP(i),d=Ewt[v](s,l,c,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=i.get(["label","margin"]),g=Lwt(n,a,i,l,p);oq(r,a,i,o,g)},t}(vP);function Lwt(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=Se();ps(v,v,s),Qa(v,v,[n.cx,n.cy]),u=Za([o,-a],v);var h=t.getModel("axisLabel").get("rotate")||0,d=ln.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var Ewt={line:function(e,t,r,n,a){return e.dim==="angle"?{type:"Line",shape:pP(t.coordToPoint([a[0],r]),t.coordToPoint([a[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n,a,i,o){var s=Math.PI/180,l=gP(e,i,o),u;if(e.dim==="angle")u=$G(t.cx,t.cy,a[0],a[1],(-r-l/2)*s,(-r+l/2)*s);else{var f=yP(r,n,l),c=f[0],v=f[1];u=$G(t.cx,t.cy,c,v,0,Math.PI*2)}return{type:"Sector",shape:u}}},Ui="polar",JG=Ui,Owt=function(e){G(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,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type=Ui,t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Et),mP=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pe).models[0]},t.type="polarAxis",t}(Et);Ye(mP,id);var Rwt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(mP),Iwt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(mP),_P=function(e){G(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}(ka);_P.prototype.dataToRadius=ka.prototype.dataToCoord;_P.prototype.radiusToData=ka.prototype.coordToData;var Pwt=Tt(),SP=function(e){G(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(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),f=Fb(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=Pwt(r.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(ka);SP.prototype.dataToAngle=ka.prototype.dataToCoord;SP.prototype.angleToData=ka.prototype.coordToData;var vq=["radius","angle"],Nwt=function(){function e(t){this.dimensions=vq,this.type=Ui,this.cx=0,this.cy=0,this._radiusAxis=new _P,this._angleAxis=new SP,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,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),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,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)],n)},e.prototype.pointToData=function(t,r,n){n=n||[];var a=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(a[0],r),n[1]=this._angleAxis.angleToData(a[1],r),n},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.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,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},e.prototype.coordToPoint=function(t,r){r=r||[];var n=t[0],a=t[1]/180*Math.PI;return r[0]=Math.cos(a)*n+this.cx,r[1]=-Math.sin(a)*n+this.cy,r},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},e.prototype.convertToPixel=function(t,r,n){var a=t4(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=t4(r);return a===this?this.pointToData(n):null},e}();function t4(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function kwt(e,t,r){var n=t.get("center"),a=or(t,r).refContainer;e.cx=J(n[0],a.width)+a.x,e.cy=J(n[1],a.height)+a.y;var i=e.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:Y(s)||(s=[0,s]);var l=[J(s[0],o),J(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function Bwt(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(Ef(n,mh),Ef(a,mh),_h(n),_h(a),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function zwt(e){return e.mainType==="angleAxis"}function e4(e,t){var r;if(e.type=Fy(t),e.scale=nd(t,e.type,!1),e.onBand=jy(e.scale,t),e.inverse=t.get("inverse"),zwt(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,a)}t.axis=e,e.model=t}var Vwt={dimensions:vq,create:function(e,t){var r=[];return e.eachComponent(JG,function(n,a){var i=new Nwt(a+"");i.update=Bwt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");e4(o,l),e4(s,u),kwt(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")===Ui){var a=n.getReferringComponents(JG,Pe).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&(Lf(i.getRadiusAxis(),n,Ui),Lf(i.getAngleAxis(),n,Ui))}}),r}},Gwt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function w0(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function T0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function r4(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 Hwt=function(e){G(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 a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];D(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ut(f);var c=a.scale;f.coord=a.dataToCoord(ad(c,f.tick)),u.push(f)}}),r4(u),r4(s),D(Gwt,function(f){r.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Uwt[f](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(pc),Uwt={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=T0(r),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new uc[h]({shape:{cx:r.cx,cy:r.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new jh({shape:{cx:r.cx,cy:r.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,e.add(v)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[T0(r)],u=W(n,function(f){return new He({shape:w0(r,[l,l+s],f.coord)})});e.add(kn(u,{style:pt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[T0(r)],f=[],c=0;c<a.length;c++)for(var v=0;v<a[c].length;v++)f.push(new He({shape:w0(r,[u,u+l],a[c][v].coord)}));e.add(kn(f,{style:pt(s.getModel("lineStyle").getLineStyle(),pt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(c,v){var h=l,d=c.tick.value,p=i[T0(r)],g=r.coordToPoint([p+u,c.coord]),y=r.cx,m=r.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];gt(b)&&b.textStyle&&(h=new Ot(b.textStyle,l,l.ecModel))}var x=new zt({silent:ln.isLabelSilent(t),style:oe(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(e.add(x),ys({el:x,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=ln.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,mt(x).eventData=w}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new He({shape:w0(r,i,n[c].coord)}))}for(var c=0;c<f.length;c++)e.add(kn(f[c],{style:pt({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new He({shape:w0(r,i,a[u][f].coord)}));e.add(kn(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){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 f=[],c=Math.PI/180,v=-n[0].coord*c,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Vr({shape:{cx:r.cx,cy:r.cy,r0:h,r:d,startAngle:v,endAngle:-m*c,clockwise:p},silent:!0})),v=-m*c}for(var g=0;g<f.length;g++)e.add(kn(f[g],{style:pt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},Fwt=["splitLine","splitArea","minorSplitLine"],Ywt=function(e){G(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,a){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,o=this._axisGroup=new ht;this.group.add(o);var s=r.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),c=s.getMinorTicksCoords(),v=u.getExtent()[0],h=s.getExtent(),d=Wwt(l,r,v),p=new ln(r,a,d);p.build(),o.add(p.group),zy(i,o,r),D(Fwt,function(g){r.get([g,"show"])&&!s.scale.isBlank()&&jwt[g](this.group,r,l,v,h,f,c)},this)}},t.type="radiusAxis",t}(pc),jwt={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=r.getAngleAxis(),c=Math.PI/180,v=f.getExtent(),h=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new uc[h]({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[p].coord,0),startAngle:-v[0]*c,endAngle:-v[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)e.add(kn(d[p],{style:pt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new oo({shape:{cx:r.cx,cy:r.cy,r:o[f][c].coord}}));e.add(kn(u,{style:pt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,v=1;v<i.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Vr({shape:{cx:r.cx,cy:r.cy,r0:c,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[v].coord}for(var v=0;v<f.length;v++)e.add(kn(f[v],{style:pt({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function Wwt(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}}var $wt=Uh();function hq(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}var Xwt=ir(Gi,Zwt);function Zwt(e){var t=dc(Gi,Ui);cI(e,t,function(r){var n=Kwt(r,Gi),a={};Df(r,t,function(i){qwt(r,i,n,a)})})}function qwt(e,t,r,n){var a=t.getData(),i=hq(t),o=r[i],s=o.offset,l=o.width,u=t.coordinateSystem,f=u.getOtherAxis(e),c=u.cx,v=u.cy,h=t.get("barMinHeight")||0,d=t.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(e.dim),y=ss(a,p),m=e.dim!=="radius"||!t.get("roundCap",!0),_=f.dataToCoord(tX(f)),S=0,b=a.count();S<b;S++){var x=a.get(p,S),w=a.get(g,S),A=x>=0?"p":"n",T=_;y&&(n[i][w]||(n[i][w]={p:_,n:_}),T=n[i][w][A]);var C=void 0,M=void 0,E=void 0,L=void 0;if(f.dim==="radius"){var R=f.dataToCoord(x)-_,I=e.dataToCoord(w);Le(R)<h&&(R=(R<0?-1:1)*h),C=T,M=T+R,E=I-s,L=E-l,y&&(n[i][w][A]=M)}else{var O=f.dataToCoord(x,m)-_,N=e.dataToCoord(w);Le(O)<d&&(O=(O<0?-1:1)*d),C=N+s,M=C+l,E=T,L=T+O,y&&(n[i][w][A]=L)}a.setItemLayout(S,{cx:c,cy:v,r0:C,r:M,startAngle:-E*GS/180,endAngle:-L*GS/180,clockwise:E>=L})}}function Kwt(e,t){var r=dc(t,Ui),n=Hr(e,{fromStat:{key:r},min:1}).w,a=n,i=0,o="20%",s="30%",l={};Df(e,r,function(g){var y=hq(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=J(g.get("barWidth"),n),_=J(g.get("barMaxWidth"),n),S=g.get("barGap"),b=g.get("barCategoryGap");m&&!l[y].width&&(m=te(a,m),l[y].width=m,a-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),b!=null&&(o=b)});var u={},f=J(o,n),c=J(s,1),v=(a-f)/(i+(i-1)*c);v=Dt(v,0),D(l,function(g,y){var m=g.maxWidth;m&&m<v&&(m=te(m,a),g.width&&(m=te(m,g.width)),a-=m,g.width=m,i--)}),v=(a-f)/(i+(i-1)*c),v=Dt(v,0);var h=0,d;D(l,function(g,y){g.width||(g.width=v),d=g,h+=g.width*(1+c)}),d&&(h-=d.width*c);var p=-h/2;return D(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+c)}),u}function Qwt(e,t){$wt(e,function(){var r=dc(t,Ui);J$(e,r,t,Ui),yx(r,bx(r))})}var Jwt={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},tTt={splitNumber:5},eTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(ue);function rTt(e){At(Ky),pc.registerAxisPointerClass("PolarAxisPointer",Dwt),e.registerCoordinateSystem("polar",Vwt),e.registerComponentModel(Owt),e.registerComponentView(eTt),bh(e,"angle",Rwt,Jwt),bh(e,"radius",Iwt,tTt),e.registerComponentView(Hwt),e.registerComponentView(Ywt),e.registerLayout(Xwt),Qwt(e,Gi)}function FL(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=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]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Xr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-v:v,a.z2=1,a}var nTt=["splitArea","splitLine","breakArea"],aTt=function(e){G(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,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ht;var l=FL(r),u=new ln(r,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),D(nTt,function(f){r.get([f,"show"])&&iTt[f](this,this.group,this._axisGroup,r,a)},this),zy(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){SX(this)},t.type="singleAxis",t}(pc),iTt={splitLine:function(e,t,r,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),c=i.isHorizontal(),v=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new He({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});hh(_.shape,u);var S=h++%l.length;v[S]=v[S]||[],v[S].push(_)}for(var b=s.getLineStyle(["color"]),y=0;y<v.length;++y)t.add(kn(v[y],{style:pt({stroke:l[y%l.length]},b),silent:!0}))}},splitArea:function(e,t,r,n,a){_X(e,r,n,n)},breakArea:function(e,t,r,n,a){var i=Zy(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,e,n,n.coordinateSystem.getRect(),a)}},oTt=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"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}(ka),dq=["single"],sTt=function(){function e(t,r,n){this.type=xx,this.dimension="single",this.dimensions=dq,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=Fy(t),o=new oTt(a,nd(t,i,!0),[0,0],i,t.get("position"));o.onBand=jy(o.scale,t),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(t,r){var n=this._axis;Ef(n,mh),_h(n)},e.prototype.resize=function(t,r){var n=or(t,r).refContainer;this._rect=me(t.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-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(),a=n.orient;return a==="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,r,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(t[a.orient==="horizontal"?0:1])),n},e.prototype.dataToPoint=function(t,r,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+t)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(t,r,n){var a=n4(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=n4(r);return a===this?this.pointToData(n):null},e}();function n4(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function lTt(e,t){var r=[];return e.eachComponent(wL,function(n,a){var i=new sTt(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")===imt){var a=n.getReferringComponents(wL,Pe).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&Lf(i.getAxis(),n,xx)}}),r}var uTt={create:lTt,dimensions:dq},a4=["x","y"],fTt=["width","height"],cTt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=B1(s),f=A0(l,u),c=A0(l,1-u),v=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=hP(i),p=vTt[h](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);p.style=d,r.graphicKey=p.type,r.pointer=p}var g=FL(a);lq(n,r,g,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=FL(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=dP(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=B1(o),u=A0(s,l),f=[r.x,r.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=A0(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(vP),vTt={line:function(e,t,r,n){var a=pP([t,n[0]],[t,n[1]],B1(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r,n,a,i){var o=gP(e,a,i),s=n[1]-n[0],l=yP(t,r,o),u=l[0],f=l[1];return{type:"Rect",shape:uq([u,n[0]],[f-u,s],B1(e))}}};function B1(e){return e.isHorizontal()?0:1}function A0(e,t){var r=e.getRect();return[r[a4[t]],r[a4[t]]+r[fTt[t]]]}var hTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(ue);function dTt(e){At(Ky),pc.registerAxisPointerClass("SingleAxisPointer",cTt),e.registerComponentView(hTt),e.registerComponentView(aTt),e.registerComponentModel(E_),bh(e,"single",E_,E_.defaultOption),e.registerCoordinateSystem("single",uTt)}var pTt=function(e){G(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,a){var i=cc(r);e.prototype.init.apply(this,arguments),i4(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),i4(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:V.color.axisLine,width:1,type:"solid"}},itemStyle:{color:V.color.neutral00,borderWidth:1,borderColor:V.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:V.size.s,color:V.color.secondary},monthLabel:{show:!0,position:"start",margin:V.size.s,align:"center",formatter:null,color:V.color.secondary},yearLabel:{show:!0,position:null,margin:V.size.xl,formatter:null,color:V.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Et);function i4(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=W([0,1],function(i){return gft(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Qi(e,t,{type:"box",ignoreSize:a})}var gTt=function(e){G(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,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new Lt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,v=0;c.time<=n.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(r,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new wr({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return K(r)&&r?Z9(r,n):ct(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=a==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new zt({z2:30,style:oe(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],f=r[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||K(s))&&(s&&(n=B2(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[v].length-1;g++){var y=c[v][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+c[0][g+1][h])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),A=new zt({z2:30,style:U(oe(o,{text:w}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(A)}}},t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],f=r[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),v=l.getFirstDayOfWeek();if(!f||K(f)){f&&(n=B2(f)||n);var h=n.get(["time","dayOfWeekShort"]);f=h||W(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=J(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+v)%7);var b=new zt({z2:30,style:U(oe(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:g});o.add(b)}}},t.type="calendar",t}(ue),tC=864e5,yTt=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(r,n)}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=io(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+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,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=me(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,v){return c[v]!=null&&c[v]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r,n){n=n||[],Y(t)&&(t=t[0]),r==null&&(r=!0);var a=this.getDateInfo(t),i=this._rangeInfo,o=a.formatedDate;if(r&&!(a.time>=i.start.time&&a.time<i.end.time+tC))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToLayout=function(t,r,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(t,r);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,dt.copy(i,a),Tf(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(t,r){var n=this.dataToPoint(t,r);return{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,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=eC(r);return a===this?a.dataToPoint(n):null},e.prototype.convertToLayout=function(t,r,n){var a=eC(r);return a===this?a.dataToLayout(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=eC(r);return a===this?a.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 a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.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 a=Math.floor(r[1].time/tC)-Math.floor(r[0].time/tC)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+r[0].day+6)/7),c=n?-f+1:f-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:f,nthWeek:c,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){Gy({targetModel:i,coordSysType:"calendar",coordSysProvider:rj})}),n},e.dimensions=["time","value"],e}();function eC(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function mTt(e){e.registerComponentModel(pTt),e.registerComponentView(gTt),e.registerCoordinateSystem("calendar",yTt)}var Co={level:1,leaf:2,nonLeaf:3},Wo={none:0,all:1,body:2,corner:3};function YL(e,t,r){var n=t[St[r]].getCell(e);return!n&&Vt(e)&&e<0&&(n=t[St[1-r]].getUnitLayoutInfo(r,Math.round(e))),n}function pq(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function gq(e,t,r,n,a){o4(e[0],t,a,r,n,0),o4(e[1],t,a,r,n,1)}function o4(e,t,r,n,a,i){e[0]=1/0,e[1]=-1/0;var o=n[i],s=Y(o)?o:[o],l=s.length,u=!!r;if(l>=1?(s4(e,t,s,u,a,i,0),l>1&&s4(e,t,s,u,a,i,l-1)):e[0]=e[1]=NaN,u){var f=-a[St[1-i]].getLocatorCount(i),c=a[St[i]].getLocatorCount(i)-1;r===Wo.body?f=Dt(0,f):r===Wo.corner&&(c=te(-1,c)),c<f&&(f=c=NaN),Nr(e[0])&&(e[0]=f),Nr(e[1])&&(e[1]=c),e[0]=Dt(te(e[0],c),f),e[1]=Dt(te(e[1],c),f)}}function s4(e,t,r,n,a,i,o){var s=YL(r[o],a,i);if(!s){e[0]=e[1]=NaN;return}var l=s.id[St[i]],u=l,f=xTt(s);f&&(u+=f.span[St[i]]-1),e[0]=te(e[0],l,u),e[1]=Dt(e[1],l,u)}function C0(e,t){return Nr(e[t][0])||Nr(e[t][1])}function l4(e,t,r,n){t=t||_Tt;for(var a=0;a<n;a++)t[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=r[a];!t[a]&&o.cellMergeOwner&&STt(e,o.locatorRange)&&(t[a]=!0,i=!0)}if(!i)break}}var _Tt=[];function STt(e,t){return!u4(e[0],t[0])||!u4(e[1],t[1])?!1:(e[0][0]=te(e[0][0],t[0][0]),e[0][1]=Dt(e[0][1],t[0][1]),e[1][0]=te(e[1][0],t[1][0]),e[1][1]=Dt(e[1][1],t[1][1]),!0)}function u4(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function f4(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function bTt(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function c4(e,t,r,n){var a=YL(t[n][0],r,n),i=YL(t[n][1],r,n);e[St[n]]=e[Ne[n]]=NaN,a&&i&&(e[St[n]]=a.xy,e[Ne[n]]=i.xy+i.wh-a.xy)}function Wd(e,t,r,n){return e[St[t]]=r,e[St[1-t]]=n,e}function xTt(e){return e&&(e.type===Co.leaf||e.type===Co.nonLeaf)?e:null}function z1(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var v4=function(){function e(t,r){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=r,this._uniqueValueGen=wTt(t);var n=r.get("data",!0),a=r.get("length",!0);if(n!=null&&!Y(n)&&(n=[]),n)this._initByDimModelData(n);else if(a!=null){n=Array(a);for(var i=0;i<a;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return e.prototype._initByDimModelData=function(t){var r=this,n=r._cells,a=r._levels,i=[],o=0;r._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&D(u,function(h,d){var p;K(h)?p={value:h}:gt(h)?(p=h,h.value!=null&&!K(h.value)&&(p={value:null})):p={value:null};var g={type:Co.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new yt,span:Wd(new yt,r.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:r,rect:z1()};o++,(i[f]||(i[f]=[])).push(g),a[c]||(a[c]={type:Co.level,xy:NaN,wh:NaN,option:null,id:new yt,dim:r});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[St[r.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var c=i[f].pop();if(c){c.ordinal=u.length;var v=c.option.value;u.push(v),n.push(c),r._uniqueValueGen.calcDupBase(v)}}r._uniqueValueGen.ensureValueUnique(u,n);var h=r._ordinalMeta=new kg({categories:u,needCollect:!1,deduplication:!1});r._scale=new Vg({ordinalMeta:h});for(var d=0;d<r._leavesCount;d++){var p=r._cells[d];p.type=Co.leaf,p.span[St[1-r.dimIdx]]=r._levels.length-p.level}r._initCellsId(),r._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:Co.level,xy:NaN,wh:NaN,option:null,id:new yt,dim:t}],t._initLevelIdOptions();var r=t._ordinalMeta=new kg({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=t._cells[a]={type:Co.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new yt,span:Wd(new yt,t.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:t,rect:z1()};t._leavesCount++,t._setCellId(i)}});t._scale=new Vg({ordinalMeta:r})},e.prototype._setCellId=function(t){var r=this._levels.length,n=this.dimIdx;Wd(t.id,n,t.firstLeafLocator,t.level-r)},e.prototype._initCellsId=function(){var t=this._levels.length,r=this.dimIdx;D(this._cells,function(n){Wd(n.id,r,n.firstLeafLocator,n.level-t)})},e.prototype._initLevelIdOptions=function(){var t=this._levels.length,r=this.dimIdx,n=this._model.get("levels",!0);n=Y(n)?n:[],D(this._levels,function(a,i){Wd(a.id,r,0,i-t),a.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},e.prototype.resetLayoutIterator=function(t,r,n,a){if(t=t||new ul,r===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,t.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,t.reset(this._levels,o,o+a)}return t},e.prototype.resetCellIterator=function(t){return(t||new ul).reset(this._cells,0)},e.prototype.resetLevelIterator=function(t){return(t||new ul).reset(this._levels,0)},e.prototype.getLayout=function(t,r,n){var a=this.getUnitLayoutInfo(r,n);t[St[r]]=a?a.xy:NaN,t[Ne[r]]=a?a.wh:NaN},e.prototype.getUnitLayoutInfo=function(t,r){return t===this.dimIdx?r<this._leavesCount?this._cells[r]:void 0:this._levels[r+this._levels.length]},e.prototype.getCell=function(t){var r=this._scale.parse(t);return Nr(r)?void 0:this._cells[r]},e.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function wTt(e){var t=e.toUpperCase(),r=new RegExp("^"+t+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(r))&&(n=Dt(n,+l[1]+1))}function i(){return""+t+n++}function o(s,l){for(var u=rt(),f=0;f<s.length;f++){var c=s[f];(c==null||u.get(c)!=null)&&(s[f]=c=i(),l[f].option=pt({value:c},l[f].option)),u.set(c,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var h4=function(){function e(t,r,n){this._model=r,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var t=this,r=t._cellMap;return r||(r=t._cellMap=rt(),n()),r;function n(){var i=[],o=t._model.getShallow("data");o&&!Y(o)&&(o=null),D(o,function(d,p){if(!(!gt(d)||!Y(d.coord))){var g=pq([]),y=null;if(gq(g,y,d.coord,t._dims,d.coordClamp?Wo[t._kind]:Wo.none),!(C0(g,0)||C0(g,1))){var m=d&&d.mergeCells,_={id:new yt,span:new yt,locatorRange:g,option:d,cellMergeOwner:m};f4(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;l4(f,s,i,l);for(var c=0;c<l;c++)s[c]&&(i[c].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var v=U({},u.option);v.coord=null;var h={id:new yt,span:new yt,locatorRange:f,option:v,cellMergeOwner:!0};f4(h,f),i.push(h)}}}D(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=z1(),t._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=d4(i,o),l=r.get(s);return l||(l=r.set(s,{id:new yt(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},e.prototype.getCell=function(t){return this._ensureCellMap().get(d4(t[0],t[1]))},e.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},e.prototype.expandRangeByCellMerge=function(t){if(!C0(t,0)&&!C0(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){rC[0]=t[0][0],rC[1]=t[1][0];var r=this.getCell(rC),n=r&&r.inSpanOf;if(n){bTt(t,n.locatorRange);return}}var a=this._cellMergeOwnerList;l4(t,null,a,a.length)},e}(),rC=[];function d4(e,t){return e+"|"+t}var bP={show:!0,color:V.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function xP(e){return{color:"none",borderWidth:1,borderColor:e?"none":V.color.borderTint}}var p4={show:!0,label:bP,itemStyle:xP(!1),silent:void 0,dividerLineStyle:{width:1,color:V.color.border}},TTt={label:bP,itemStyle:xP(!1),silent:void 0},ATt={label:bP,itemStyle:xP(!0),silent:void 0},CTt={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:p4,y:p4,body:TTt,corner:ATt,backgroundStyle:{color:"none",borderColor:V.color.axisLine,borderWidth:1},triggerEvent:!1},MTt=function(e){G(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._dimModels={x:new g4(this.get("x",!0)||{}),y:new g4(this.get("y",!0)||{})};r.x.option.type=r.y.option.type="category";var n=r.x.dim=new v4("x",r.x),a=r.y.dim=new v4("y",r.y),i={x:n,y:a};this._body=new h4("body",new Ot(this.getShallow("body")),i),this._corner=new h4("corner",new Ot(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(r){return this._dimModels[r]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=CTt,t}(Et),g4=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(Ot),M0=Math.round,DTt=0,LTt=99,ETt={normal:25,special:100},OTt={normal:50,special:125},RTt=function(e){G(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){this.group.removeAll();var a=this.group,i=r.coordinateSystem,o=i.getRect(),s=r.getDimensionModel("x"),l=r.getDimensionModel("y"),u=s.dim,f=l.dim;ITt(a,r,n),PTt(a,r,u,f,n);var c=r.getShallow("borderZ2",!0),v=ot(c,LTt),h=v-1,d=r.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=r.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=jL(o.clone(),d,DTt),y=jL(o.clone(),p,v);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(y4({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(y4({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t}(ue);function ITt(e,t,r){n(0),n(1);function n(a){var i=t.getDimensionModel(St[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],c=o.resetCellIterator();c.next();){var v=c.item,h={};dt.copy(h,v.rect),Vo(f,v.id.x,v.id.y),yq(f,t,e,r,v.option,s,l,i,h,v.option.value,OTt,u,a===0?"x":"y")}}}function PTt(e,t,r,n,a){i("body",t.getBody(),r,n),r.shouldShow()&&n.shouldShow()&&i("corner",t.getCorner(),n,r);function i(o,s,l,u){var f=new Ot(t.getShallow(o,!0)),c=f.getModel("itemStyle"),v=f.getModel("label"),h=new ul,d=new ul,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;Vo(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?dt.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var b=_?_.option:null;yq(p,t,e,a,b,c,v,f,S,b?b.value:null,ETt,g,o)}}}}function yq(e,t,r,n,a,i,o,s,l,u,f,c,v){var h;D0.option=a?a.itemStyle:null,D0.parentModel=i,Hc.option=a,Hc.parentModel=s;var d=ot(Hc.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=c&&c.show,g=jL(l,D0.getItemStyle(),d);r.add(g);var y=Hc.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";_u.option=a?a.label:null,_u.parentModel=o,_u.ecModel=n;var S=_u.getShallow("formatter");if(S){var b={componentType:"matrix",componentIndex:t.componentIndex,name:_,value:u,coord:e.slice(),$vars:["name","value","coord"]};if(K(S))_=Z9(S,b);else if(ct(S)){var x=S(b);x!=null&&(_=x+"")}}if(hr(g,{normal:_u},{defaultText:_,autoOverflowArea:!0,layoutRect:ut(g.shape)}),m=g.getTextContent(),m){m.z2=d+1;var w=m.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var A={};dt.copy(A,l),Tf(A,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(L0),qn(L0,L0),dt.applyTransform(A,A,L0),m.setClipPath(new Lt({shape:A}))}}ys({el:g,componentModel:t,itemName:_,itemTooltipOption:c,formatterParamsExtra:{xyLocator:e.slice()}})}var T=t.get("triggerEvent",!0);if(m){var C=_u.get("silent");C==null&&(C=!(T||p)),m.silent=C,m.ignoreHostSilent=!0}var M=Hc.get("silent");if(M==null&&(M=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=M,T&&g){var E={componentType:"matrix",componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:v,name:m&&m.style?m.style.text:void 0,value:u,coord:e.slice()};mt(g).eventData=E}fT(Hc),fT(D0),fT(_u)}var Hc=new Ot,D0=new Ot,_u=new Ot,L0=[];function jL(e,t,r){var n=t.lineWidth;if(n){var a=e.x+e.width,i=e.y+e.height;e.x=Gn(e.x,n,!0),e.y=Gn(e.y,n,!0),e.width=Gn(a,n,!0)-e.x,e.height=Gn(i,n,!0)-e.y}return new Lt({shape:e,style:t,z2:r})}function y4(e,t,r){var n=t.lineWidth;return n&&(M0(e.x1*2)===M0(e.x2*2)&&(e.x1=e.x2=Gn(e.x1,n,!0)),M0(e.y1*2)===M0(e.y2*2)&&(e.y1=e.y2=Gn(e.y1,n,!0))),new He({shape:e,style:t,silent:!0,z2:r})}var NTt=function(){function e(t,r,n){this.dimensions=e.dimensions,this.type="matrix",this._model=t;var a=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(t,n)}return e.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},e.create=function(t,r){var n=[];return t.eachComponent("matrix",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){Gy({targetModel:i,coordSysType:"matrix",coordSysProvider:rj})}),n},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(t,r){var n=this._dims,a=this._dimModels,i=this._rect=me(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()});m4(a,n,i,0),m4(a,n,i,1),_4(0,n),_4(1,n),S4(this._model.getBody(),n),S4(this._model.getCorner(),n)},e.prototype.dataToPoint=function(t,r,n){return n=n||[],this.dataToLayout(t,r,$d),n[0]=$d.rect.x+$d.rect.width/2,n[1]=$d.rect.y+$d.rect.height/2,n},e.prototype.dataToLayout=function(t,r,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=pq(n.matrixXYLocatorRange);return Y(t)&&(gq(o,null,t,a,ot(r&&r.clamp,Wo.none)),(!r||!r.ignoreMergeCells)&&((!r||r.clamp!==Wo.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!r||r.clamp!==Wo.body)&&this._model.getCorner().expandRangeByCellMerge(o)),c4(i,o,a,0),c4(i,o,a,1)),n},e.prototype.pointToData=function(t,r,n){var a=this._dims;return b4(vi,0,a,t,r&&r.clamp),b4(vi,1,a,t,r&&r.clamp),n=n||[],n[0]=n[1]=NaN,vi.y===Dr.inCorner&&vi.x===Dr.inBody?x4(vi,n,0,a):vi.x===Dr.inCorner&&vi.y===Dr.inBody?x4(vi,n,1,a):(w4(vi,n,0,a),w4(vi,n,1,a)),n},e.prototype.convertToPixel=function(t,r,n,a){var i=aC(r);return i===this?i.dataToPoint(n,a):void 0},e.prototype.convertToLayout=function(t,r,n,a){var i=aC(r);return i===this?i.dataToLayout(n,a):void 0},e.prototype.convertFromPixel=function(t,r,n,a){var i=aC(r);return i===this?i.pointToData(n,a):void 0},e.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},e.dimensions=["x","y","value"],e}(),$d={rect:z1()},E0=new ul,nC=new ul;function m4(e,t,r,n){for(var a=1-n,i=t[St[n]],o=t[St[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=r[Ne[n]],c=i.getLocatorCount(n)+o.getLocatorCount(n),v=new Ot,h=o.resetLevelIterator();h.next();)v.option=h.item.option,v.parentModel=e[St[a]],g(h.item,s?v.get("levelSize"):0);for(var d=new Ot,p=i.resetCellIterator();p.next();)p.item.type===Co.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,A){var T=kTt(A,n,r);Nr(T)||(w.wh=WL(T,f),f=WL(f-w.wh),c--)}var y=c?f/c:0,m=!c&&f>=1,_=r[St[n]],S=i.getLocatorCount(n)-1,b=new ul;for(o.resetLayoutIterator(b,n);b.next();)x(b.item);for(i.resetLayoutIterator(b,n);b.next();)x(b.item);function x(w){Nr(w.wh)&&(w.wh=y),w.xy=_,w.id[St[n]]===S&&!m&&(w.wh=r[St[n]]+r[Ne[n]]-w.xy),_+=w.wh}}function _4(e,t){for(var r=t[St[e]].resetCellIterator();r.next();){var n=r.item;V1(n.rect,e,n.id,n.span,t),V1(n.rect,1-e,n.id,n.span,t),n.type===Co.nonLeaf&&(n.xy=n.rect[St[e]],n.wh=n.rect[Ne[e]])}}function S4(e,t){e.travelExistingCells(function(r){var n=r.span;if(n){var a=r.spanRect,i=r.id;V1(a,0,i,n,t),V1(a,1,i,n,t)}})}function V1(e,t,r,n,a){e[Ne[t]]=0;var i=r[St[t]],o=i<0?a[St[1-t]]:a[St[t]],s=o.getUnitLayoutInfo(t,r[St[t]]);if(e[St[t]]=s.xy,e[Ne[t]]=s.wh,n[St[t]]>1){var l=o.getUnitLayoutInfo(t,r[St[t]]+n[St[t]]-1);e[Ne[t]]=l.xy+l.wh-s.xy}}function kTt(e,t,r){var n=HS(e,r[Ne[t]]);return WL(n,r[Ne[t]])}function WL(e,t){return Math.max(Math.min(e,ot(t,1/0)),0)}function aC(e){var t=e.matrixModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}var Dr={inBody:1,inCorner:2,outside:3},vi={x:null,y:null,point:[]};function b4(e,t,r,n,a){var i=r[St[t]],o=r[St[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=e.point[t]=n[t];if(!l&&!f){e[St[t]]=Dr.outside;return}if(a===Wo.body){l?(e[St[t]]=Dr.inBody,c=te(s.xy+s.wh,Dt(l.xy,c)),e.point[t]=c):e[St[t]]=Dr.outside;return}else if(a===Wo.corner){f?(e[St[t]]=Dr.inCorner,c=te(f.xy+f.wh,Dt(u.xy,c)),e.point[t]=c):e[St[t]]=Dr.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(c<h){if(!a){e[St[t]]=Dr.outside;return}c=h}else if(c>d){if(!a){e[St[t]]=Dr.outside;return}c=d}e.point[t]=c,e[St[t]]=v<=c&&c<=d?Dr.inBody:h<=c&&c<=v?Dr.inCorner:Dr.outside}function x4(e,t,r,n){var a=1-r;if(e[St[r]]!==Dr.outside)for(n[St[r]].resetCellIterator(nC);nC.next();){var i=nC.item;if(T4(e.point[r],i.rect,r)&&T4(e.point[a],i.rect,a)){t[r]=i.ordinal,t[a]=i.id[St[a]];return}}}function w4(e,t,r,n){if(e[St[r]]!==Dr.outside){var a=e[St[r]]===Dr.inCorner?n[St[1-r]]:n[St[r]];for(a.resetLayoutIterator(E0,r);E0.next();)if(BTt(e.point[r],E0.item)){t[r]=E0.item.id[St[r]];return}}}function BTt(e,t){return t.xy<=e&&e<=t.xy+t.wh}function T4(e,t,r){return t[St[r]]<=e&&e<=t[St[r]]+t[Ne[r]]}function zTt(e){e.registerComponentModel(MTt),e.registerComponentView(RTt),e.registerCoordinateSystem("matrix",NTt)}function VTt(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 A4(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function GTt(e,t,r){var n=U({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(wt(a,n,!0),Qi(a,n,{ignoreSize:!0}),sj(r,a),O0(r,a),O0(r,a,"shape"),O0(r,a,"style"),O0(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var mq=["transition","enterFrom","leaveTo"],HTt=mq.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function O0(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?mq:HTt,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function UTt(e,t){if(e&&(e.hv=t.hv=[A4(t,["left","right"]),A4(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 FTt=function(e){G(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 a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=NY(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var v=f.newOption;v&&(u.push(v),VTt(f,v),GTt(o,c,v),UTt(o[c],v))},this),a.elements=Xt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(r,n,a){D(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(Et),C4={path:null,compoundPath:null,group:ht,image:dr,text:zt},fa=Tt(),YTt=function(e){G(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=rt()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=rr(l.id,null),f=u!=null?a.get(u):null,c=rr(l.parentId,null),v=c!=null?a.get(c):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&V$(d,h,!!g,!!p)){var y=G$(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=jTt(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=M4(u,v,l.type,a):(w&&(fa(w).isNew=!1),eq(w)),w&&(R_(w,m,r,{isInit:x}),D4(w,l,o,s))}else if(b){P_(f,l,a,r);var A=M4(u,v,l.type,a);A&&(R_(A,m,r,{isInit:!0}),D4(A,l,o,s))}else _==="remove"&&(JZ(f,l),P_(f,l,a,r));var T=a.get(u);if(T&&p)if(S){var C=T.getTextContent();C?C.attr(p):T.setTextContent(new zt(p))}else b&&T.setTextContent(new zt(p));if(T){var M=l.clipPath;if(M){var E=M.type,L=void 0,x=!1;if(S){var R=T.getClipPath();x=!R||fa(R).type!==E,L=x?$L(E):R}else b&&(x=!0,L=$L(E));T.setClipPath(L),R_(L,M,r,{isInit:x}),N1(L,M.keyframeAnimation,r)}var I=fa(T);T.setTextConfig(g),I.option=l,WTt(T,r,l),ys({el:T,componentModel:r,itemName:T.name,itemTooltipOption:l.tooltip}),N1(T,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],v=rr(c.id,null),h=v!=null?o.get(v):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=fa(h),y=fa(d);g.width=J(g.option.width,p?s:y.width)||0,g.height=J(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],v=rr(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=fa(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=sx(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!fa(h).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var A=u[w],T=_[A];b&&(nf(b)||bt(b,A)>=0)?x[A]=T:h[A]=T}jt(h,x,r,0)}else h.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){P_(a,fa(a).option,n,r._lastGraphicModel)}),this._elMap=rt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ue);function $L(e){var t=nt(C4,e)?C4[e]:Eg(e),r=new t({});return fa(r).type=e,r}function M4(e,t,r,n){var a=$L(r);return t.add(a),n.set(e,a),fa(a).id=e,fa(a).isNew=!0,a}function P_(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){P_(i,t,r,n)}),Rx(e,t,n),r.removeKey(fa(e).id))}function D4(e,t,r,n){e.isGroup||D([["cursor",Ra.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];nt(t,i)?e[i]=ot(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),D(Nt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ct(i)?i:null}}),nt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function jTt(e){return e=U({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(nj),function(t){delete e[t]}),e}function WTt(e,t,r){var n=mt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=mt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function $Tt(e){e.registerComponentModel(FTt),e.registerComponentView(YTt),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 L4=["x","y","radius","angle","single"],XTt=Tt(),ZTt=["cartesian2d","polar","singleAxis"];function qTt(e){var t=e.get("coordinateSystem");return bt(ZTt,t)>=0}function Ks(e){return e+"Axis"}function KTt(e,t){var r=rt(),n=[],a=rt();e.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=r.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(r.get(c)||r.set(c,[]))[v]=!0})}return n}function _q(e){var t=e.ecModel,r={infoList:[],infoMap:rt()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(Ks(n),a);if(i){var o=i.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(i)}}}),r}function Sq(e){var t=XTt(eW(e));return t.axisProxyMap||(t.axisProxyMap=rt())}function G1(e){if(e)return Sq(e.ecModel).get(e.uid)}function QTt(e,t){Sq(e.ecModel).set(e.uid,t)}function bq(e,t){var r=t.getAxisModel().axis.__alignTo;return r&&e.getAxisProxy(r.dim,r.model.componentIndex)?G1(r.model):null}var iC=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}(),ay=function(e){G(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,a){var i=E4(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=E4(r);wt(this.option,r,!0),wt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=rt(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(L4,function(a){var i=this.getReferringComponents(Ks(a),Vst);if(i.specified){n=!0;var o=new iC;D(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new iC;if(v.add(c.componentIndex),r.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",Pe).models[0];h&&D(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",Pe).models[0]&&v.add(d.componentIndex)})}}}i&&D(L4,function(u){if(i){var f=a.findComponents({mainType:Ks(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new iC;c.add(f[0].componentIndex),r.set(u,c),i=!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,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(Ks(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){return G1(this.getAxisModel(r,n))},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(Ks(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(r,n).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return G1(r);for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],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}(Et);function E4(e){var t={};return D(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var JTt=function(e){G(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}(ay),wP=function(e){G(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,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(ue),tAt=function(e){G(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}(wP),eAt=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getWindow=function(){return ut(this._window)},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(qTt(r)){var n=Ks(this._dimName),a=r.getReferringComponents(n,Pe).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ut(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._extent,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];D(["start","end"],function(_,S){var b=t[_],x=t[_+"Value"];o[S]==="percent"?(b==null&&(b=s[S]),x=Wt(b,s,r),c[S]=!0):(f=!0,x==null?x=r[S]:(x=a.parse(x),a.sanitize&&(x=a.sanitize(x,r))),b=Wt(x,r,s)),u[S]=x==null||isNaN(x)?r[S]:x,l[S]=b==null||isNaN(b)?s[S]:b}),Sr(u),Sr(l);var v=this._minMaxSpan;f?h(u,l,r,s,!1):h(l,u,s,r,!0);function h(_,S,b,x,w){var A=w?"Span":"ValueSpan";Cl(0,_,b,"all",v["min"+A],v["max"+A]);for(var T=0;T<2;T++)S[T]=Wt(_[T],b,x,!0),w&&(S[T]=S[T],c[T]=!0);m_(S)}var d=Kr(a)||Uy(a),p=n.getExtent(),g=Le(p[1]-p[0]),y=d?0:XO(u,g,.5);D([[0,ic],[1,Ea]],function(_){var S=_[0],b=_[1];!c[S]||!isFinite(y)||(u[S]=Yt(u[S],y),u[S]=te(r[1],Dt(r[0],u[S])),l[S]===s[S]&&(u[S]=r[S],d&&(u[S]=b(u[S]))))}),m_(u);var m=[Wt(u[0],r,s,!0),Wt(u[1],r,s,!0)];return m_(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},e.prototype.reset=function(t,r){if(this.hostedBy(t)){var n=this.getAxisModel().axis;Ef(n,sdt);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=t.settledOption;r&&(i=pt({start:r[0],end:r[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},e.prototype.filterData=function(t,r){if(!this.hostedBy(t))return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._window.value;if(i==="none")return;D(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),v=W(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(v[y],h),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else D(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});D(f,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._extent;D(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Wt(n[0]+o,n,[0,100],!0):i!=null&&(o=Wt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e}(),rAt={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Ks(o),s);a(o,s,l,i)})})}var r=[];t(function(a,i,o,s){if(!G1(o)){var l=new eAt(a,i,s,e);r.push(l),QTt(o,l)}});var n=rt();return D(r,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){var n=[];r.eachTargetAxis(function(a,i){var o=r.getAxisProxy(a,i),s=bq(r,o);s?n.push([o,s]):o.reset(r,null)}),D(n,function(a){a[0].reset(r,a[1].getWindow().percentInverted)}),r.eachTargetAxis(function(a,i){r.getAxisProxy(a,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;r.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function nAt(e){e.registerAction("dataZoom",function(t,r){var n=KTt(r,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var aAt=Uh();function TP(e){aAt(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,rAt),nAt(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function iAt(e){e.registerComponentModel(JTt),e.registerComponentView(tAt),TP(e)}var Fi=function(){function e(){}return e}(),xq={};function rv(e,t){xq[e]=t}function wq(e){return xq[e]}var oAt=function(e){G(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,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=U({},o),i.feature={}),e.prototype.init.call(this,r,n,a),o&&(i.feature=o)},t.prototype.optionUpdated=function(){D(this.option.feature,function(r,n){var a=this._themeFeatureOption,i=wq(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(wt(r,a[n]),a[n]=null),wt(r,i.defaultOption))},this)},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:V.size.m,itemSize:15,itemGap:V.size.s,showTitle:!0,iconStyle:{borderColor:V.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:V.color.accent70}},tooltip:{show:!1,position:"bottom"}},t}(Et);function Tq(e,t){var r=Kh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new Lt({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});return a}var sAt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){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")||{},f=this._features||(this._features=rt()),c=[];D(u,function(m,_){c.push(_)}),new os(this._featureNames||[],c).add(v).update(v).remove(Mt(v,null)).execute(),this._featureNames=Xt(c,function(m){return f.hasKey(m)});function v(m,_){var S=m!=null&&_==null,b=m!=null&&_!=null,x=m==null,w=S||b?c[m]:c[_],A=u[w],T=S||b?new Ot(A,r,n):null,C=T&&T.get("show"),M;if(S){if(!C)return;if(lAt(w))M={onclick:T.option.onclick,featureName:w};else{var E=wq(w);if(!E)return;M=new E}f.set(w,M)}else M=f.get(w);if(x||!C){O4(M)&&M.dispose&&M.dispose(n,a),f.removeKey(w);return}i&&i.newTitle!=null&&i.featureName===w&&(A.title=i.newTitle),S&&(M.uid=fc("toolbox-feature")),M.model=T,M.ecModel=n,M.api=a,h(T,M,w),T.setIconStatus=function(L,R){var I=this.option,O=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[L]=R,O[L]&&(R==="emphasis"?as:is)(O[L])},O4(M)&&M.render&&M.render(T,n,a,i)}function h(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Fi&&_.getIcons?_.getIcons():m.get("icon"),A=m.get("title")||{},T,C;K(w)?(T={},T[S]=w):T=w,K(A)?(C={},C[S]=A):C=A;var M=m.iconPaths={};D(T,function(E,L){var R=Zh(E,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(b.getItemStyle());var I=R.ensureState("emphasis");I.style=x.getItemStyle();var O=new zt({style:{text:C[L],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:SR({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});R.setTextContent(O),ys({el:R,componentModel:r,itemName:L,formatterParamsExtra:{title:C[L]}}),R.__title=C[L],R.on("mouseover",function(){var N=x.getItemStyle(),P=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";O.setStyle({fill:x.get("textFill")||N.fill||N.stroke||V.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),R.setTextConfig({position:x.get("textPosition")||P}),O.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&a.leaveEmphasis(this),O.hide()}),(m.get(["iconStatus",L])==="emphasis"?as:is)(R),o.add(R),R.on("click",et(_.onclick,_,n,a,L)),M[L]=R})}var d=or(r,a).refContainer,p=r.getBoxLayoutParams(),g=r.get("padding"),y=me(p,d,g);tf(r.get("orient"),o,r.get("itemGap"),y.width,y.height),sx(o,p,d,g),o.add(Tq(o.getBoundingRect(),r)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!ct(w)&&_){var A=w.style||(w.style={}),T=Fb(_,zt.makeFont(A)),C=m.x+o.x,M=m.y+o.y+s,E=!1;M+T.height>a.getHeight()&&(b.position="top",E=!0);var L=E?-5-T.height:s+10;C+T.width/2>a.getWidth()?(b.position=["100%",L],A.align="right"):C-T.width/2<0&&(b.position=[0,L],A.align="left")}})},t.prototype.updateView=function(r,n,a,i){D(this._features,function(o){o&&o instanceof Fi&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.dispose=function(r,n){D(this._features,function(a){a&&a instanceof Fi&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(ue);function lAt(e){return e.indexOf("my")===0}function O4(e){return e instanceof Fi}var uAt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||V.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Bt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=i}},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:V.color.neutral00,name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Fi),R4="__ec_magicType_stack__",fAt=[["line","bar"],["stack"]],cAt=function(e){G(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"),a={};return D(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},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,a){var i=this.model,o=i.get(["seriesIndex",a]);if(I4[a]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=I4[a](v,h,c,i);d&&(pt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,Pe).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(fAt,function(c){bt(c,a)>=0&&D(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=wt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Fi),I4={line:function(e,t,r,n){if(e==="bar")return wt({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 wt({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 a=r.get("stack")===R4;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),wt({id:t,stack:a?"":R4},n.get(["option","stack"])||{},!0)}};ii({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var Ix=new Array(60).join("-"),Ch=" ";function vAt(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=Xgt(o);t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function hAt(e){var t=[];return D(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(W(r.series,function(h){return h.name})),l=[a.model.getCategories()];D(r.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ch)],f=0;f<l[0].length;f++){for(var c=[],v=0;v<l.length;v++)c.push(l[v][f]);u.push(c.join(Ch))}t.push(u.join(`
|
|
172
|
+
`))}),t.join(`
|
|
173
|
+
|
|
174
|
+
`+Ix+`
|
|
175
|
+
|
|
176
|
+
`)}function dAt(e){return W(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Ch:"")+a.join(Ch))}),n.join(`
|
|
177
|
+
`)}).join(`
|
|
178
|
+
|
|
179
|
+
`+Ix+`
|
|
180
|
+
|
|
181
|
+
`)}function pAt(e){var t=vAt(e);return{value:Xt([hAt(t.seriesGroupByCategoryAxis),dAt(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
|
182
|
+
|
|
183
|
+
`+Ix+`
|
|
184
|
+
|
|
185
|
+
`),meta:t.meta}}function H1(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gAt(e){var t=e.slice(0,e.indexOf(`
|
|
186
|
+
`));if(t.indexOf(Ch)>=0)return!0}var XL=new RegExp("["+Ch+"]+","g");function yAt(e){for(var t=e.split(/\n+/g),r=H1(t.shift()).split(XL),n=[],a=W(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=H1(t[i]).split(XL);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function mAt(e){for(var t=e.split(/\n+/g),r=H1(t.shift()),n=[],a=0;a<t.length;a++){var i=H1(t[a]);if(i){var o=i.split(XL),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function _At(e,t){var r=e.split(new RegExp(`
|
|
187
|
+
*`+Ix+`
|
|
188
|
+
*`,"g")),n={series:[]};return D(r,function(a,i){if(gAt(a)){var o=yAt(a),s=t[i],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=mAt(a);n.series.push(o)}}),n}var SAt=function(e){G(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 a=n.getDom(),i=this.model;this._dom&&a.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=i.get("backgroundColor")||V.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),v=i.get("contentToOption"),h=pAt(r);if(ct(c)){var d=c(n.getOption());K(d)?u.innerHTML=d:gf(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}r2(_,"click",x),r2(S,"click",function(){if(v==null&&c!=null||v!=null&&c==null){x();return}var w;try{ct(v)?w=v(u,n.getOption()):w=_At(f.value,g)}catch(A){throw x(),new Error("Data view format error "+A)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.dispose=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},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:V.color.background,textColor:V.color.primary,textareaColor:V.color.background,textareaBorderColor:V.color.border,buttonColor:V.color.accent50,buttonTextColor:V.color.neutral00};return n},t}(Fi);function bAt(e,t){return W(e,function(r,n){var a=t&&t[n];if(gt(a)&&!Y(a)){var i=gt(r)&&!Y(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=pt(r,a),o&&delete r.name,r}else return r})}ii({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(U({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:bAt(n.data,i)})}}),t.mergeOption(pt({series:r},e.newOption))});var Aq=D,Cq=Tt();function xAt(e,t){var r=AP(e);Aq(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function wAt(e){var t=AP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return Aq(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function TAt(e){Cq(e).snapshots=null}function AAt(e){return AP(e).length}function AP(e){var t=Cq(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var CAt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){TAt(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}(Fi);ii({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var MAt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],CP=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=P4(r,t);D(DAt,function(o,s){(!n||!n.include||bt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=oC[n.brushType](0,i,a);n.__rangeOffset={offset:z4[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&D(i.coordSyses,function(o){var s=oC[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=oC[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?z4[n.brushType](i.values,o.offset,LAt(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return W(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:RZ(a),isTargetByCursor:PZ(a,t,n.coordSysModel),getLinearBrushOtherExtent:IZ(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&bt(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=P4(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<N4.length;l++)if(N4[l](a,o))return o}return!0},e}();function ZL(e){return e[0]>e[1]&&e.reverse(),e}function P4(e,t){return kv(e,t,{includeMainTypes:MAt})}var DAt={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=rt(),o={},s={};!r&&!n&&!a||(D(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,v){(bt(r,c.getAxis("x").model)>=0||bt(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:k4.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:k4.geo})})}},N4=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],k4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=OX(null,e);return J7(t,t,T1(null,e)),t}},oC={lineX:Mt(B4,0),lineY:Mt(B4,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[ZL([a[0],i[0]]),ZL([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[Lr(),Lr()],i=W(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function B4(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=ZL(W([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var z4={lineX:Mt(V4,0),lineY:Mt(V4,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 W(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function V4(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function LAt(e,t){var r=G4(e),n=G4(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function G4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var qL=D,EAt=Pst("toolbox-dataZoom_"),OAt={x:"width",y:"height"},RAt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new ZI(a.getZr()),this._brushController.on("brush",et(this._onBrush,this)).mount()),NAt(r,n,this,i,a),PAt(r,n)},t.prototype.onclick=function(r,n,a){IAt[a].call(this)},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 a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CP(MP(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var v=c.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",c,v,f[0]),s("y",c,v,f[1])):s({lineX:"x",lineY:"y"}[h],c,v,f)}}),xAt(i,a),this._dispatchZoomAction(a);function s(u,f,c,v){var h=f.getAxis(u),d=h.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),y=h.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(v=Cl(0,v.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=XO(y,c[OAt[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?Yt(v[0],m):v[0],endValue:isFinite(m)?Yt(v[1],m):v[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(r){var n=[];qL(r,function(a,i){n.push(ut(a))}),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:V.color.backgroundTint}};return n},t}(Fi),IAt={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(wAt(this.ecModel))}};function MP(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 PAt(e,t){e.setIconStatus("back",AAt(t)>1?"emphasis":"normal")}function NAt(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new CP(MP(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}xft("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=MP(n),o=kv(e,i);qL(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),qL(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:EAt+u+c};v[f]=c,a.push(v)}return a});function kAt(e){e.registerComponentModel(oAt),e.registerComponentView(sAt),rv("saveAsImage",uAt),rv("magicType",cAt),rv("dataView",SAt),rv("dataZoom",RAt),rv("restore",CAt),At(iAt)}var BAt=function(e){G(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:V.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:V.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:V.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:V.color.tertiary,fontSize:14}},t}(Et);function Mq(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Dq(e){if(Bt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var Lq=Dq(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),zAt=Dq(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Eq(e,t){if(!e)return t;t=IR(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function VAt(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var GAt=Eq(zAt,"transition"),DP=Eq(Lq,"transform"),HAt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Bt.transform3dSupported?"will-change:transform;":"");function UAt(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function FAt(e,t,r){if(!K(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Cf(t);var i=UAt(r),o=Math.max(Math.round(a)*1.5,6),s="",l=DP+":",u;bt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function YAt(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(a=" "+e/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+e+"s "+n,i+=(i.length?",":"")+(Bt.transformSupported?""+DP+a:",left"+a+",top"+a)),GAt+":"+i}function H4(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Bt.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Bt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+DP+":"+o+";":[["top",0],["left",0],[Lq,o]]}function jAt(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=ot(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+a+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),D(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function WAt(e,t,r,n){var a=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),c=e.getModel("textStyle"),v=Vj(e,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),t&&i>0&&a.push(YAt(i,r,n)),o&&a.push("background-color:"+o),D(["width","color","radius"],function(d){var p="border-"+d,g=IR(p),y=e.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(jAt(c)),v!=null&&a.push("padding:"+Kh(v).join("px ")+"px"),a.join(";")+";"}function U4(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&Xit(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var $At=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,Bt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&(K(i)?document.querySelector(i):gf(i)?i:ct(i)&&i(t.getDom()));U4(this._styleCoord,a,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=a.handler,f=a.painter.getViewportRoot();oa(f,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=VAt(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=HAt+WAt(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+H4(i[0],i[1],!0)+("border-color:"+Cf(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(K(i)&&n.get("trigger")==="item"&&!Mq(n)&&(s=FAt(n,a,i)),K(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)gf(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?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(U4(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=H4(n[0],n[1]);D(i,function(o){a[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;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",Bt.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(et(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._zr;Zit(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e}(),XAt=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Y4(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,a,i){var o=this;gt(t)&&$t(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new zt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Vj(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=F4(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 a=this._styleCoord;Y4(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Ls(i.borderWidth||0),s=F4(i);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(et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Ls(e){return Math.max(0,e)}function F4(e){var t=Ls(e.shadowBlur||0),r=Ls(e.shadowOffsetX||0),n=Ls(e.shadowOffsetY||0);return{left:Ls(t-r),right:Ls(t+r),top:Ls(t-n),bottom:Ls(t+n)}}function Y4(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ZAt=new Lt({shape:{x:-1,y:-1,width:2,height:2}}),qAt=function(e){G(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(!(Bt.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=Hst(a.get("renderMode"));this._tooltipContent=i==="richText"?new XAt(n):new $At(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(Bt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Jh(this,"_updatePosition",50,"fixRate"):Pg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");fq("itemTooltip",this._api,et(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Bt.node||!a.getDom())){var o=j4(i,a);this._ticket="";var s=i.dataByCoordSys,l=tCt(i,n,a);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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=ZAt;f.x=i.x,f.y=i.y,f.update(),mt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=cq(i,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(j4(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Xd([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=mt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Hu(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(mt(f).dataIndex!=null?l=f:mt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=et(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Xd([n.tooltipOption],i),l=this._renderMode,u=[],f=Xe("section",{blocks:[],noHeader:!0}),c=[],v=new kT;D(r,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,x=S.axis,w=x.scale.parse(b);if(!(!S||b==null)){var A=sq(b,x,a,_.seriesDataIndices,_.valueLabelOpt),T=Xe("section",{header:A,noHeader:!zn(A),sortBlocks:!0,blocks:[]});f.blocks.push(T),D(_.seriesDataIndices,function(C){var M=a.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,L=M.getDataParams(E);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=f1(S.axis,{value:w}),L.axisValueLabel=A,L.marker=v.makeTooltipMarker("item",Cf(L.color),l);var R=Qz(M.formatTooltip(E,!0,null)),I=R.frag;if(I){var O=Xd([M],i).get("valueFormatter");T.blocks.push(O?U({valueFormatter:O},I):I)}R.text&&c.push(R.text),u.push(L)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=a5(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
|
|
189
|
+
|
|
190
|
+
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=mt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=Xd([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new kT;y.marker=m.makeTooltipMarker("item",Cf(y.color),h);var _=Qz(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?a5(b?U({valueFormatter:b},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,A,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=mt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(K(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ut(l),l.content=$r(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=Xd(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new kT;this._showOrMove(d,function(){var m=ut(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(K(v)){var g=r.ecModel.get("useUTC"),y=Y(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=Vy(y.axisValue,h,g)),h=PR(h,a,!0)}else if(ct(v)){var _=et(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i,o){if(a==="axis"||Y(n))return{color:i||o};if(!Y(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ct(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))a=J(n[0],u),i=J(n[1],f);else if(gt(n)){var p=n;p.width=c[0],p.height=c[1];var g=me(p,{width:u,height:f});a=g.x,i=g.y,v=null,h=null}else if(K(n)&&l){var y=JAt(n,d,c,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=KAt(a,i,o,u,f,v?null:20,h?null:20);a=y[0],i=y[1]}if(v&&(a-=W4(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=W4(h)?c[1]/2:h==="bottom"?c[1]:0),Mq(r)){var y=QAt(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&D(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Bt.node||!n.getDom()||(Pg(this,"_updatePosition"),this._tooltipContent.dispose(),UL("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t}(ue);function Xd(e,t,r){var n=t.ecModel,a;r?(a=new Ot(r,n,n),a=new Ot(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Ot&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(a=new Ot(o,a,n)))}return a}function j4(e,t){return e.dispatchAction||et(t.dispatchAction,t)}function KAt(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function QAt(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function JAt(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function W4(e){return e==="center"||e==="middle"}function tCt(e,t,r){var n=tR(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Hh(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=mt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function eCt(e){At(Ky),e.registerComponentModel(BAt),e.registerComponentView(qAt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ee),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ee)}var rCt=["rect","polygon","keep","clear"];function nCt(e,t){var r=le(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 a=e&&e.toolbox;Y(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Xb(s,function(l){return l+""},null),t&&!s.length&&s.push.apply(s,rCt)}}var $4=D;function X4(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function KL(e,t,r){var n={};return $4(t,function(i){var o=n[i]=a();$4(e[i],function(s,l){if(cr.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new cr(u),l==="opacity"&&(u=ut(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new cr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Oq(e,t,r){var n;D(r,function(a){t.hasOwnProperty(a)&&X4(t[a])&&(n=!0)}),n&&D(r,function(a){t.hasOwnProperty(a)&&X4(t[a])?e[a]=ut(t[a]):delete e[a]})}function aCt(e,t,r,n,a,i){var o={};D(e,function(c){var v=cr.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return YR(r,s,c)}function u(c,v){Zj(r,s,c,v)}r.each(f);function f(c,v){s=c;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function iCt(e,t,r,n){var a={};return D(e,function(i){var o=cr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return YR(s,c,b)}function f(b,x){Zj(s,c,b,x)}for(var c,v=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var d=n!=null?v.get(l,c):c,p=r(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function oCt(e){var t=e.brushType,r={point:function(n){return Z4[t].point(n,r,e)},rect:function(n){return Z4[t].rect(n,r,e)}};return r}var Z4={lineX:q4(0),lineY:q4(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])&&Ru(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(Ru(n,a,i)||Ru(n,a+o,i)||Ru(n,a,i+s)||Ru(n,a+o,i+s)||dt.create(e).contain(l[0],l[1])||up(a,i,a+o,i,n)||up(a,i,a,i+s,n)||up(a+o,i,a+o,i+s,n)||up(a,i+s,a+o,i+s,n))return!0}}};function q4(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return Zd(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Zd(s[0],o)||Zd(s[1],o)||Zd(o[0],s)||Zd(o[1],s)}}}}function Zd(e,t){return t[0]<=e&&e<=t[1]}var K4=["inBrush","outOfBrush"],sC="__ecBrushSelect",QL="__ecInBrushSelectEvent";function Rq(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new CP(t.option,e);r.setInputRanges(t.areas,e)})}var sCt=Iy(lCt);function lCt(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),Rq(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ut(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],v=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=W(o.areas,function(b){var x=vCt[b.brushType],w=pt({boundingRect:x?x(b):void 0},b);return w.selectors=oCt(w),w}),g=KL(o.option,K4,function(b){b.mappingMethod="fixed"});Y(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}e.eachSeries(function(b,x){var w=h[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(A,T){A==="active"&&(v[T]=1)})}function S(b,x,w){if(!(!b.brushSelector||cCt(o,x))&&(D(p,function(T){o.brushTargetManager.controlSeries(T,b,e)&&w.push(T),d=d||m(w)}),y(x)&&m(w))){var A=b.getData();A.each(function(T){Q4(b,w,A,T)&&(v[T]=1)})}}e.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var A=h[x],T=b.getData(),C=y(x)?function(M){return v[M]?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return Q4(b,A,T,M)?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?d:m(A))&&aCt(K4,g,T,C)})}),uCt(t,a,i,n,r)}function uCt(e,t,r,n,a){if(a){var i=e.getZr();if(!i[QL]){i[sC]||(i[sC]=fCt);var o=Jh(i,sC,r,t);o(e,n)}}}function fCt(e,t){if(!e.isDisposed()){var r=e.getZr();r[QL]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[QL]=!1}}function Q4(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function cCt(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Y(r)?bt(r,t)<0:t!==r)}var vCt={rect:function(e){return J4(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[Lr(),Lr()];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&J4(t)}};function J4(e){return new dt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var hCt=function(e){G(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 ZI(n.getZr())).on("brush",et(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){Rq(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ut(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ut(a),$from:n})},t.type="brush",t}(ue),dCt=function(e){G(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 a=this.option;!n&&Oq(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=W(r,function(n){return tH(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=tH(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:V.color.backgroundTint,borderColor:V.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:V.color.disabled},t}(Et);function tH(e,t){return wt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ot(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var pCt=["rect","polygon","lineX","lineY","keep","clear"],gCt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return D(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:pCt.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}(Fi);function yCt(e){e.registerComponentView(hCt),e.registerComponentModel(dCt),e.registerPreprocessor(nCt),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sCt),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"},Ee),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ee),rv("brush",gCt)}var mCt=function(e){G(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:"center",top:V.size.m,backgroundColor:V.color.transparent,borderColor:V.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:V.color.primary},subtextStyle:{fontSize:12,color:V.color.quaternary}},t}(Et),_Ct=function(e){G(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,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ot(r.get("textBaseline"),r.get("textVerticalAlign")),f=new zt({style:oe(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new zt({style:oe(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){KS(d,"_"+r.get("target"))}),p&&h.on("click",function(){KS(p,"_"+r.get("subtarget"))}),mt(f).eventData=mt(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=or(r,a),S=me(m,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var A=new Lt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(A)}},t.type="title",t}(ue);function SCt(e){e.registerComponentModel(mCt),e.registerComponentView(_Ct)}var eH=function(e){G(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,a){this.mergeDefaultAndTheme(r,a),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||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=rr(Gh(u),""),v;gt(u)?(v=ut(u),v.value=f):v=f,o.push(v),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new qr([{name:"value",type:s}],this);l.initData(o,i)},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:V.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:V.color.secondary},data:[]},t}(Et),Iq=function(e){G(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=Vl(eH.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:V.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:V.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:V.color.tertiary},itemStyle:{color:V.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:V.color.accent50,borderColor:V.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:V.color.accent50,borderColor:V.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:V.color.accent60},itemStyle:{color:V.color.accent60,borderColor:V.color.accent60},controlStyle:{color:V.color.accent70,borderColor:V.color.accent70}},progress:{lineStyle:{color:V.color.accent30},itemStyle:{color:V.color.accent40}},data:[]}),t}(eH);Ye(Iq,ux.prototype);var bCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(ue),xCt=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ka),lC=Math.PI,rH=Tt(),wCt=function(e){G(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,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Xe("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,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 a=r.get(["label","position"]),i=r.get("orient"),o=TCt(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":K(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:lC/2},c=i==="vertical"?o.height:o.width,v=r.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=r.get(["label","rotate"])||0;y=y*lC/180;var m,_,S,b=v.get("position",!0),x=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),A=h&&v.get("showNextBtn",!0),T=0,C=c;b==="left"||b==="bottom"?(x&&(m=[0,0],T+=g),w&&(_=[T,0],T+=g),A&&(S=[C-d,0],C-=g)):(x&&(m=[C-d,0],C-=g),w&&(_=[0,0],T+=g),A&&(S=[C-d,0],C-=g));var M=[T,C];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Se(),l=o.x,u=o.y+o.height;Qa(s,s,[-l,-u]),ps(s,s,-lC/2),Qa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),v=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=r.labelPosOpt;if(p==null||K(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=r.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,A){S[w]+=x[w][A]-b[w][A]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=nd(n,i,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),QW(o,{fixMinMax:[!0,!0]});var l=new xCt("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new ht;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new He({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:U({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new He({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:pt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:et(o._changeTimeline,o,u.value)},g=nH(c,v,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),cl(g);var y=mt(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){if(!f.tick.offInterval){var c=f.tick.value,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=a.dataToCoord(c),y=new zt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:et(o._changeTimeline,o,c),silent:!1,style:oe(h,{text:f.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=oe(d),y.ensureState("progress").style=oe(p),n.add(y),cl(y),rH(y).dataIndex=c,o._tickLabels.push(y)}})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(r.nextBtnPosition,"next",et(this._changeTimeline,this,c?"-":"+")),v(r.prevBtnPosition,"prev",et(this._changeTimeline,this,c?"+":"-")),v(r.playPosition,f?"stop":"play",et(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=$i(ot(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=ACt(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),cl(_)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=et(u._handlePointerDrag,u),c.ondragend=et(u._handlePointerDragend,u),aH(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){aH(c,u._progressLine,s,a,i)}};this._currentPointer=nH(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=Sr(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),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 Za(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-r);f<a&&(a=f,i=l)}),i},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,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",rH(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(bCt);function TCt(e,t){return me(e.getBoxLayoutParams(),or(e,t).refContainer,e.get("padding"))}function ACt(e,t,r,n){var a=n.style,i=Zh(e.get(["controlStyle",t]),n||{},new dt(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function nH(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Fe(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=wt({rectHover:!0,z2:100},n,!0);var u=ed(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=hc(e.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=e.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function aH(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!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 CCt(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),pt({currentIndex:a.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 MCt(e){var t=e&&e.timeline;Y(t)||(t=t?[t]:[]),D(t,function(r){r&&DCt(r)})}function DCt(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),iH(e),Nu(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Nu(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Nu(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(a){gt(a)&&!Y(a)&&(!Nu(a,"value")&&Nu(a,"name")&&(a.value=a.name),iH(a))})}function iH(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!Nu(a,s)&&(a[s]=o)}),r.label&&!Nu(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Nu(e,t){return e.hasOwnProperty(t)}function LCt(e){e.registerComponentModel(Iq),e.registerComponentView(wCt),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),CCt(e),e.registerPreprocessor(MCt)}function LP(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 R0(e){_f(e,"label",["show"])}var I0=Tt(),eo=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Bt.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,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=I0(s)[o];if(!l||!l.data){I0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&R0(l),D(l.data,function(f){f instanceof Array?(R0(f[0]),R0(f[1])):R0(f)}),u=this.createMarkerModelFromSeries(l,this,n),U(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),I0(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Xe("section",{header:this.name,blocks:[Xe("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 a=ux.prototype.getDataParams.call(this,r,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(r,n){return I0(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Et);Ye(eo,ux.prototype);var ECt=function(e){G(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,a){return new t(r,n,a)},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}(eo);function JL(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function OCt(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function P0(e,t,r,n,a,i,o){var s=[],l=ss(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,f=U1(t,u,e),c=t.hostModel,v=c.indicesOfNearest(r,u,f)[0];s[i]=t.get(n,v),s[o]=t.get(u,v);var h=t.get(a,v),d=Ci(t.get(a,v));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var N0={min:Mt(P0,"min"),max:Mt(P0,"max"),average:Mt(P0,"average"),median:Mt(P0,"median")};function iy(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!OCt(t)&&!Y(t.coord)&&Y(a)){var i=Pq(t,r,n,e);if(t=ut(t),t.type&&N0[t.type]&&i.baseAxis&&i.valueAxis){var o=bt(a,i.baseAxis.dim),s=bt(a,i.valueAxis.dim),l=N0[t.type](r,i.valueAxis.dim,i.baseDataDim,i.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(a)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&N0[t.type]){var f=n.getOtherAxis(u);f&&(t.value=U1(r,r.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)N0[c[v]]&&(c[v]=U1(r,r.mapDimension(a[v]),c[v]));return t}}function Pq(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(RCt(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function RCt(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function oy(e,t){return e&&e.containData&&t.coord&&!JL(t)?e.containData(t.coord):!0}function ICt(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!JL(t)&&!JL(r)?e.containZone(t.coord,r.coord):!0}function Nq(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return vl(o,t[i])}:function(r,n,a,i){return vl(r.value,t[i])}}function U1(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var uC=Tt(),EP=function(e){G(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=rt()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){uC(s).keep=!1}),n.eachSeries(function(s){var l=eo.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!uC(s).keep&&i.group.remove(s.group)}),PCt(n,o,this.type)},t.prototype.markKeep=function(r){uC(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;D(r,function(i){var o=eo.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?u9(l):uR(l))})}})},t.type="marker",t}(ue);function PCt(e,t,r){e.eachSeries(function(n){var a=eo.getMarkerModelFromSeries(n,r),i=t.get(n.id);if(a&&i&&i.group){var o=Af(a),s=o.z,l=o.zlevel;ax(i.group,s,l)}})}function oH(e,t,r){var n=t.coordinateSystem,a=r.getWidth(),i=r.getHeight(),o=n&&n.getArea&&n.getArea();e.each(function(s){var l=e.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=J(l.get("x"),f)+v,g=J(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(e.getValues(e.dimensions,s));else if(n){var y=e.get(n.dimensions[0],s),m=e.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),e.setItemLayout(s,d)})}var NCt=function(e){G(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,a){n.eachSeries(function(i){var o=eo.getMarkerModelFromSeries(i,"markPoint");o&&(oH(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new $y),c=kCt(o,r,n);n.setData(c),oH(n.getData(),r,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ct(d)||ct(p)||ct(g)||ct(y)){var _=n.getRawValue(v),S=n.getDataParams(v);ct(d)&&(d=d(_,S)),ct(p)&&(p=p(_,S)),ct(g)&&(g=g(_,S)),ct(y)&&(y=y(_,S))}var b=h.getModel("itemStyle").getItemStyle(),x=h.get("z2"),w=Hy(l,"color");b.fill||(b.fill=w),c.setItemVisual(v,{z2:ot(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){mt(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(EP);function kCt(e,t,r){var n;e?n=W(e&&e.dimensions,function(s){var l=t.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return U(U({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new qr(n,r),i=W(r.get("data"),Mt(iy,t));e&&(i=Xt(i,Mt(oy,e)));var o=Nq(!!e,n);return a.initData(i,null,o),a}function BCt(e){e.registerComponentModel(ECt),e.registerComponentView(NCt),e.registerPreprocessor(function(t){LP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var zCt=function(e){G(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,a){return new t(r,n,a)},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}(eo),k0=Tt(),VCt=function(e,t,r,n){var a=e.getData(),i;if(Y(n))i=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=Xr(n.yAxis,n.xAxis);else{var u=Pq(n,a,t,e);s=u.valueAxis;var f=aI(a,u.valueDataDim);l=U1(a,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=ut(n),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=r.get("precision");p>=0&&Vt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[iy(e,i[0]),iy(e,i[1]),U({},i[2])];return g[2].type=g[2].type||null,wt(g[2],g[0]),wt(g[2],g[1]),g};function F1(e){return!isNaN(e)&&!isFinite(e)}function sH(e,t,r,n){var a=1-e,i=n.dimensions[e];return F1(t[a])&&F1(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function GCt(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(sH(1,r,n,e)||sH(0,r,n,e)))return!0}return oy(e,t[0])&&oy(e,t[1])}function fC(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=J(o.get("x"),a.getWidth()),u=J(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var f=i.dimensions,c=e.get(f[0],t),v=e.get(f[1],t);s=i.dataToPoint([c,v])}if(Rf(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;F1(e.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):F1(e.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var HCt=function(e){G(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,a){n.eachSeries(function(i){var o=eo.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=k0(o).from,u=k0(o).to;l.each(function(f){fC(l,f,!0,i,a),fC(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new XI);this.group.add(f.group);var c=UCt(o,r,n),v=c.from,h=c.to,d=c.line;k0(n).from=v,k0(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:ot(w,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.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:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){mt(S).dataModel=n,S.traverse(function(b){mt(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);fC(S,b,x,r,i);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Hy(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ot(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ot(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ot(w.get("symbolSize"),g[x?0:1]),symbol:ot(w.get("symbol",!0),p[x?0:1]),style:A})}this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(EP);function UCt(e,t,r){var n;e?n=W(e&&e.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return U(U({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new qr(n,r),i=new qr(n,r),o=new qr([],r),s=W(r.get("data"),Mt(VCt,t,e,r));e&&(s=Xt(s,Mt(GCt,e)));var l=Nq(!!e,n);return a.initData(W(s,function(u){return u[0]}),null,l),i.initData(W(s,function(u){return u[1]}),null,l),o.initData(W(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function FCt(e){e.registerComponentModel(zCt),e.registerComponentView(HCt),e.registerPreprocessor(function(t){LP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var YCt=function(e){G(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,a){return new t(r,n,a)},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}(eo),B0=Tt(),jCt=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=iy(e,a),s=iy(e,i),l=o.coord,u=s.coord;l[0]=Xr(l[0],-1/0),l[1]=Xr(l[1],-1/0),u[0]=Xr(u[0],1/0),u[1]=Xr(u[1],1/0);var f=zb([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Y1(e){return!isNaN(e)&&!isFinite(e)}function lH(e,t,r,n){var a=1-e;return Y1(t[a])&&Y1(r[a])}function WCt(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Rf(e,"cartesian2d")?r&&n&&(lH(1,r,n)||lH(0,r,n))?!0:ICt(e,a,i):oy(e,a)||oy(e,i)}function uH(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=J(o.get(r[0]),a.getWidth()),u=J(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=e.getValues(["x0","y0"],t),c=e.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];r[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],r[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=n.getMarkerPosition(d,r,!0)}else{var p=e.get(r[0],t),g=e.get(r[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Rf(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=e.get(r[0],t),g=e.get(r[1],t);Y1(p)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):Y1(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var fH=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],$Ct=function(e){G(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,a){n.eachSeries(function(i){var o=eo.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=W(fH,function(c){return uH(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ht});this.group.add(f.group),this.markKeep(f);var c=XCt(o,r,n);n.setData(c),c.each(function(v){var h=W(fH,function(C){return uH(c,v,C,r,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];Sr(m),Sr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(v,{points:h,allClipped:b});var x=c.getItemModel(v),w=x.getModel("itemStyle").getItemStyle(),A=x.get("z2"),T=Hy(l,"color");w.fill||(w.fill=T,K(w.fill)&&(w.fill=xg(w.fill,.4))),w.stroke||(w.stroke=T),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",ot(A,0))}),c.diff(B0(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new Gr({z2:ot(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=B0(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?jt(d,{z2:ot(g,0),shape:{points:p.points}},n,v):d=new Gr({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=B0(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),hr(v,ar(d),{labelFetcher:n,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:K(p.fill)?xg(p.fill,1):V.color.neutral99}),nr(v,d),xe(v,null,null,d.get(["emphasis","disabled"])),mt(v).dataModel=n}),B0(f).data=c,f.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(EP);function XCt(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=W(e&&e.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return U(U({},c),{name:u,ordinalMeta:null})});a=W(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new qr(a,r)}else a=[{name:"value",type:"float"}],n=new qr(a,r);var s=W(r.get("data"),Mt(jCt,t,e,r));e&&(s=Xt(s,Mt(WCt,e)));var l=e?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return vl(h,a[v])}:function(u,f,c,v){return vl(u.value,a[v])};return n.initData(s,null,l),n.hasItemOption=!0,n}function ZCt(e){e.registerComponentModel(YCt),e.registerComponentView($Ct),e.registerPreprocessor(function(t){LP(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var qCt=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"])}},tE=function(e){G(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,a){this.mergeDefaultAndTheme(r,a),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,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Y(n)&&D(n,function(i,o){K(i)&&(i={type:i}),n[o]=wt(i,qCt(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&JO(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=rt(),s=W(i,function(l){return(K(l)||Vt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ot(l,this,this.ecModel))},this);this._data=Xt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,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(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&bt(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",bottom:V.size.m,align:"auto",backgroundColor:V.color.transparent,borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:V.color.disabled,inactiveBorderColor:V.color.disabled,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:V.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:V.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:V.color.tertiary,borderWidth:1,borderColor:V.color.border},emphasis:{selectorLabel:{show:!0,color:V.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Et),Uc=Mt,eE=D,z0=ht,kq=function(e){G(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 z0),this.group.add(this._selectorGroup=new z0),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=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,a,l,s,u);var f=or(r,a).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=me(c,f,v),d=this.layoutInner(r,o,h,i,l,u),p=me(pt({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Tq(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=rt(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),eE(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
|
|
191
|
+
`)){var m=new z0;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),A=this._createItem(_,y,p,d,n,r,b,w,x,c,i);A.on("click",Uc(cH,y,null,i,h)).on("mouseover",Uc(rE,_.name,null,i,h)).on("mouseout",Uc(nE,_.name,null,i,h)),a.ssr&&A.eachChild(function(T){var C=mt(T);C.seriesIndex=_.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),v&&A.eachChild(function(T){g.packEventData(T,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(T){var C=this;if(!f.get(y)&&T.legendVisualProvider){var M=T.legendVisualProvider;if(!M.containName(y))return;var E=M.indexOfName(y),L=M.getItemVisual(E,"style"),R=M.getItemVisual(E,"legendIcon"),I=Zr(L.fill);I&&I[3]===0&&(I[3]=.2,L=U(U({},L),{fill:Aa(I,"rgba")}));var O=this._createItem(T,y,p,d,n,r,{},L,R,c,i);O.on("click",Uc(cH,null,y,i,h)).on("mouseover",Uc(rE,null,y,i,h)).on("mouseout",Uc(nE,null,y,i,h)),a.ssr&&O.eachChild(function(N){var P=mt(N);P.seriesIndex=T.seriesIndex,P.dataIndex=p,P.ssrType="legend"}),v&&O.eachChild(function(N){C.packEventData(N,n,T,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};mt(r).eventData=s},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();eE(r,function(u){var f=u.type,c=new zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);hr(c,{normal:v,emphasis:h},{defaultText:u.title}),cl(c)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=KCt(f,i,l,u,h,g,v),b=new z0,x=i.getModel("textStyle");if(ct(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;b.add(QCt({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var A=s==="left"?d+5:-5,T=s,C=o.get("formatter"),M=n;K(C)&&C?M=C.replace("{name}",n??""):ct(C)&&(M=C(n));var E=g?x.getTextColor():i.get("inactiveColor");b.add(new zt({style:oe(x,{text:M,x:A,y:p/2,fill:E,align:T,verticalAlign:"middle"},{inheritColor:E})}));var L=new Lt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),R=i.getModel("tooltip");return R.get("show")&&ys({el:L,componentModel:o,itemName:n,itemTooltipOption:R.option}),b.add(L),b.eachChild(function(I){I.silent=!0}),L.silent=!c,this.getContentGroup().add(b),cl(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();tf(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){tf("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ue);function KCt(e,t,r,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),eE(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:ph(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var v=t.getModel("lineStyle"),h=v.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),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function QCt(e){var t=e.icon||"roundRect",r=Fe(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=V.color.neutral00,r.style.lineWidth=2),r}function cH(e,t,r,n){nE(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),rE(e,t,r,n)}function rE(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function nE(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function qd(e,t,r){var n=e==="allSelect"||e==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),vH(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(a,function(l,u){s[l?"select":"unSelect"](u)}),vH(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function vH(e,t){var r=t||{};return D(e.getData(),function(n){var a=n.get("name");if(!(a===`
|
|
192
|
+
`||a==="")){var i=e.isSelected(a);nt(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function JCt(e){e.registerAction("legendToggleSelect","legendselectchanged",Mt(qd,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Mt(qd,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Mt(qd,"inverseSelect")),e.registerAction("legendSelect","legendselected",Mt(qd,"select")),e.registerAction("legendUnSelect","legendunselected",Mt(qd,"unSelect"))}var tMt=Iy(eMt);function eMt(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 Bq(e){e.registerComponentModel(tE),e.registerComponentView(kq),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,tMt),e.registerSubTypeDefaulter("legend",function(){return"plain"}),JCt(e)}var rMt=function(e){G(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,a){var i=cc(r);e.prototype.init.call(this,r,n,a),hH(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),hH(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Vl(tE.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:V.color.accent50,pageIconInactiveColor:V.color.accent10,pageIconSize:15,pageTextStyle:{color:V.color.tertiary},animationDurationUpdate:800}),t}(tE);function hH(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Qi(t,r,{type:"box",ignoreSize:!!a})}var dH=ht,cC=["width","height"],vC=["x","y"],nMt=function(e){G(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 dH),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dH)},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,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=Y(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new zt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Zh(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:et(u._pageGo,u,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=cC[u],c=vC[u],v=cC[1-u],h=vC[1-u];o&&tf("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ut(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(r,i,y,u,f,v,h,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;tf(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),tf("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?a[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new Lt({shape:x})),c.__rectSize=x[o]}else v.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&jt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?r:null),this._updatePageInfoView(r,w),b},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",K(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),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=cC[o],l=vC[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var w=x.getBoundingRect(),A=w[l]+x[l];return{s:A,e:A+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(kq);function aMt(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function iMt(e){At(Bq),e.registerComponentModel(rMt),e.registerComponentView(nMt),aMt(e)}function oMt(e){At(Bq),At(iMt)}var sMt=function(e){G(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=Vl(ay.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ay),OP=Tt();function lMt(e,t,r){OP(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function uMt(e,t){for(var r=OP(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||zq(r,o))}}}function zq(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function fMt(e,t){var r={model:t,containsPoint:Mt(vMt,t),dispatchAction:Mt(cMt,e),dataZoomInfoMap:null,controller:null},n=r.controller=new gc(e.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!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 cMt(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function vMt(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function hMt(e,t,r){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return e.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+c]>i[a+n]&&(n=c),o=o&&f.get("preventDefaultMouseMove",!0),s=ot(f.get("cursorGrab",!0),s),l=ot(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function dMt(e){e.registerUpdateLifecycle("coordsys:aftercreate",function(t,r){var n=OP(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=rt());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=_q(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,fMt(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=rt());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){zq(a,i);return}var f=hMt(l,i,r);o.enable(f.controlType,f.opt),Jh(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var pMt=function(e){G(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,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),lMt(a,r,{pan:et(hC.pan,this),zoom:et(hC.zoom,this),scrollMove:et(hC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){uMt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(wP),hC={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=dC[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*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Cl(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:pH(function(e,t,r,n,a,i){var o=dC[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:pH(function(e,t,r,n,a,i){var o=dC[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function pH(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(Cl(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var dC={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.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=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function Vq(e){TP(e),e.registerComponentModel(sMt),e.registerComponentView(pMt),dMt(e)}var gMt=function(e){G(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=Vl(ay.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:V.color.accent10,borderRadius:0,backgroundColor:V.color.transparent,dataBackground:{lineStyle:{color:V.color.accent30,width:.5},areaStyle:{color:V.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:V.color.accent40,width:.5},areaStyle:{color:V.color.accent20,opacity:.3}},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:V.color.neutral00,borderColor:V.color.accent20},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:V.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:V.color.tertiary},brushSelect:!0,brushStyle:{color:V.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:V.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(ay),Kd=Lt,yMt=1,pC=30,mMt=7,Qd="horizontal",gH="vertical",_Mt=5,SMt=["line","bar","candlestick","scatter"],bMt={easing:"cubicOut",duration:100,delay:0},xMt=function(e){G(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=et(this._onBrush,this),this._onBrushEnd=et(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Jh(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Pg(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 ht;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?mMt:0,o=or(r,n).refContainer,s=this._findCoordRect(),l=r.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Qd?{right:o.width-s.x-s.width,top:o.height-pC-l-i,width:s.width,height:pC}:{right:l,top:s.y,width:pC,height:s.height},f=cc(r.option);D(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=me(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===gH&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Qd&&!o?{scaleY:l?1:-1,scaleX:1}:a===Qd&&o?{scaleY:l?1:-1,scaleX:-1}:a===gH&&!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]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;r.x=n.x-f,r.y=n.y-c,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Kd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Kd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:et(this._onClickPanel,this)}),s=this.api.getZr();i?(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)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(r.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(c[1]-c[0]),S=r.thisAxis.type==="time",b=-m,x=Math.round(o.count()/n[0]),w;o.each([r.thisDim,l],function(E,L,R){if(x>0&&R%x){S||(b+=m);return}b=S?(+E-c[0])*_:b+m;var I=L==null||isNaN(L)||L==="",O=I?0:Wt(L,v,d,!0);I&&!w&&R?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!I&&w&&(g.push([b,0]),y.push([b,0])),I||(g.push([b,O]),y.push([b,O])),w=I}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var A=this.dataZoomModel;function T(E){var L=A.getModel(E?"selectedDataBackground":"dataBackground"),R=new ht,I=new Gr({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),O=new wr({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(I),R.add(O),R}for(var C=0;C<3;C++){var M=T(C===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&bt(SMt,u.get("type"))<0)){var f=i.getComponent(Ks(o),s).axis,c=wMt(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=n.filler=new Kd({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Kd({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:yMt,fill:V.color.transparent}})),D([0,1],function(_){var S=l.get("handleIcon");!t1[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Fe(S,-1,0,2,2,null,!0);b.attr({cursor:TMt(this._orient),draggable:!0,drift:et(this._onDragMove,this,_),ondragend:et(this._onDragEnd,this),onmouseover:et(this._onOverDataInfoTriggerArea,this,!0),onmouseout:et(this._onOverDataInfoTriggerArea,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=J(w,this._size[1]),this._handleWidth=x.width/x.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(),cl(b);var A=l.get("handleColor");A!=null&&(b.style.fill=A),o.add(a[_]=b);var T=l.getModel("textStyle"),C=l.get("handleLabel")||{},M=C.show||!1;r.add(i[_]=new zt({silent:!0,invisible:!M,style:oe(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=v;if(c){var d=J(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Lt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=Fe(l.get("moveHandleIcon"),-g/2,-g/2,g,g,V.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new Lt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:et(this._onActualMoveZoneDrift,this),ondragstart:et(this._onActualMoveZoneDragStart,this),ondragend:et(this._onActualMoveZoneDragEnd,this),onmouseover:et(this._onOverDataInfoTriggerArea,this,!0),onmouseout:et(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Wt(r[0],[0,100],n,!0),Wt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Cl(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Wt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Wt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Sr([Wt(i[0],o,l,!0),Wt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Sr(a.slice()),o=this._size;D([0,1],function(h){var d=n.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[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,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],v=c.getClipPath();v||(v=new Lt,c.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(r){var v={start:f[0],end:f[1]},h=bq(n,l);if(h){var d=h.calculateDataWindow(v).percentInverted;v={start:d[0],end:d[1]}}c=l.calculateDataWindow(v)}else c=l.getWindow();s=[yH(n,0,c,u),yH(n,1,c,u)]}}var p=Sr(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=Ju(a.handles[y].parent,this.group),_=nx(y===0?"right":"left",m),S=this._handleWidth/2+_Mt,b=Za([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:b[0],y:b[1],verticalAlign:o===Qd?"middle":_,align:o===Qd?_:"center",text:s[y]})}},t.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},t.prototype._showDataInfo=function(r){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=r||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(r,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",r,n,a)},t.prototype._onActualMoveZoneDragStart=function(r){r.target.attr("cursor","grabbing"),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(r){r.target.attr("cursor","grab"),this._onDragEnd()},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,es(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Za([n,a],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._isOverDataInfoTriggerArea||this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new yt(n,a),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 a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Cl(0,l,o,0,u.minSpan!=null?Wt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Wt(u.maxSpan,s,o,!0):null),this._range=Sr([Wt(l[0],o,s,!0),Wt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(es(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Kd({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?bMt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=_q(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(wP);function yH(e,t,r,n){var a=e.get("labelFormatter"),i=e.get("labelPrecision");(i==null||i==="auto")&&(i=r.valuePrecision);var o=r.value[t],s=o==null||isNaN(o)?"":Kr(n)||Uy(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?Yt(o,i,!0):o+"";return ct(a)?a(o,s):K(a)?a.replace("{value}",s):s}function wMt(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function TMt(e){return e==="vertical"?"ns-resize":"ew-resize"}function Gq(e){e.registerComponentModel(gMt),e.registerComponentView(xMt),TP(e)}function AMt(e){At(Vq),At(Gq)}var Hq={get:function(e,t,r){var n=ut((CMt[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},CMt={color:{active:["#006edd","#e0ffff"],inactive:[V.color.transparent]},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]}},mH=cr.mapVisual,MMt=cr.eachVisual,DMt=Y,gC=D,LMt=Sr,EMt=Wt,j1=function(e){G(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,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&Oq(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=et(r,this),this.controllerVisuals=KL(this.option.controller,n,r),this.targetVisuals=KL(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this,n=this.option.seriesTargets;if(n){var a=[];return gC(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;r.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=Hh(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return W(s,function(l){return l.componentIndex})},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Y(r)&&(r=r.slice(),u=!0);var f=n?r:u?[c(r[0]),c(r[1])]:c(r);if(K(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ct(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+f[1]:r[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=LMt([r.min,r.max]);this._dataExtent=n},t.prototype.getDimension=function(r){var n=this,a=this.option.seriesTargets;if(a){var i=ds(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===r||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(r).id});if(i)return i.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(r){var n=r.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return r.getDimensionIndex(a);for(var i=r.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=r.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});wt(i,a),wt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){DMt(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:r.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},gC(d,function(g,y){if(cr.isValidType(y)){var m=Hq.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";gC(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&ut(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ut(h)||(s?m[0]:[m[0],m[0]])),_.symbol=mH(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;MMt(S,function(x){x>b&&(b=x)}),_.symbolSize=mH(S,function(x){return EMt(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(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,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:V.color.transparent,borderColor:V.color.borderTint,contentColor:V.color.theme[0],inactiveColor:V.color.disabled,borderWidth:0,padding:V.size.m,textGap:10,precision:0,textStyle:{color:V.color.secondary}},t}(Et),_H=[20,140],OMt=function(e){G(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(a){a.mappingMethod="linear",a.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]=_H[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=_H[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=Sr((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,a=this.getExtent(),i=ot(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=r)&&(i&&n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=SH(this,"outOfRange",this.getExtent()),a=SH(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:r(h,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Vl(j1.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:V.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:V.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}}),t}(j1);function SH(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}var Uq=function(e){G(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,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=Kh(n.get("padding")||0),i=r.getBoundingRect();r.add(new Lt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var c=o.controllerVisuals[i||o.getValueState(r)],v=cr.prepareVisualTypes(c);return D(v,function(h){var d=c[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=c.__alphaForOpacity),cr.dependsOn(h,n)&&d&&d.applyVisual(r,u,f)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api,i=or(n,a).refContainer;sx(r,n.getBoxLayoutParams(),i)},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(ue),bH=[["left","right","width"],["top","bottom","height"]];function Fq(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=bH[o],l=[0,null,10],u={},f=0;f<3;f++)u[bH[1-o][f]]=l[f],u[s[f]]=f===2?r[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],v=me(u,i,n.padding);return s[(v.margin[c[2]]||0)+v[c[0]]+v[c[1]]*.5<i[c[1]]*.5?0:1]}function N_(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 gi=Wt,RMt=D,xH=Math.min,yC=Math.max,IMt=12,PMt=6,NMt=function(e){G(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=et(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=et(this._hideIndicator,this)},t.prototype.doRender=function(r,n,a,i){(!i||i.type!=="selectDataRange"||i.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 a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),v=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new zt({style:oe(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(v==="horizontal"?"middle":c),align:h.get("align")||(v==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=Fq(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new ht;u.add(f),f.add(a.outOfRange=wH()),f.add(a.inRange=wH(null,s?AH(this._orient):null,et(this._dragHandle,this,"all",!1),et(this._dragHandle,this,"all",!0))),f.setClipPath(new Lt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),v=yC(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,v,o),this._createHandle(n,u,1,i,v,o)),this._createIndicator(n,u,i,v,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=et(this._dragHandle,this,a,!1),u=et(this._dragHandle,this,a,!0),f=$i(r.get("handleSize"),i[0]),c=Fe(r.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=AH(this._orient);c.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){es(y.event)}}),c.x=i[0]/2,c.useStyle(r.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Vu(c,!0),n.add(c);var h=this.visualMapModel.textStyleModel,d=new zt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){es(y.event)},ondragend:u,style:oe(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(r,n,a,i,o){var s=$i(r.get("indicatorSize"),a[0]),l=Fe(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof dr){var f=l.style;l.useStyle(U({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,v=new zt({silent:!0,invisible:!0,style:oe(c,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:PMt)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],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():TH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[gi(n[0],a,i,!0),gi(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Cl(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[gi(i[0],o,s,!0),gi(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new lc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new ht(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);RMt([0,1],function(c){var v=o[c];v.setStyle("fill",n.handlesColor[c]),v.y=r[c];var h=gi(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=Za(a.handleLabelPoints[c],Ju(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",v),d=this.getControllerVisual(r,"symbolSize"),p=gi(r,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Za(f.indicatorLabelPoint,Ju(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:h}},A={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,T),_.animateTo(A,T)}else c.attr(w),_.attr(A);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var M=0;M<C.length;M++)this.api.enterBlur(C[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=xH(yC(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[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 a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=xH(yC(o[0],r),o[1]);var l=kMt(a,s,o),u=[r-l,r+l],f=gi(r,o,s,!0),c=[gi(u[0],o,s,!0),gi(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(n||TH(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=Bst(v,h);this._dispatchHighDown("downplay",N_(d[0],a)),this._dispatchHighDown("highlight",N_(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Hu(r.target,function(l){var u=mt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.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 a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",N_(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,a,i){var o=Ju(n,i?null:this.group);return Y(r)?Za(r,o,a):nx(r,o,a)},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}(Uq);function wH(e,t,r,n){return new Gr({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){es(a.event)},ondragend:n})}function kMt(e,t,r){var n=IMt/2,a=e.get("hoverLinkDataSize");return a&&(n=gi(a,t,r,!0)/2),n}function TH(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function AH(e){return e==="vertical"?"ns-resize":"ew-resize"}var BMt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},zMt=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},VMt=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(iCt(n.stateList,n.targetVisuals,et(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(et(GMt,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function GMt(e,t,r,n){for(var a=t.targetVisuals[n],i=cr.prepareVisualTypes(a),o={color:Hy(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(r,c,v)}return o.color;function c(h){return o[h]}function v(h,d){o[h]=d}}var CH=D;function HMt(e){var t=e&&e.visualMap;Y(t)||(t=t?[t]:[]),CH(t,function(r){if(r){Fc(r,"splitList")&&!Fc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Y(n)&&CH(n,function(a){gt(a)&&(Fc(a,"start")&&!Fc(a,"min")&&(a.min=a.start),Fc(a,"end")&&!Fc(a,"max")&&(a.max=a.end))})}})}function Fc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var MH=!1;function Yq(e){MH||(MH=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(BMt,zMt),D(VMt,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(HMt))}function jq(e){e.registerComponentModel(OMt),e.registerComponentView(NMt),Yq(e)}var UMt=function(e){G(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 a=this._mode=this._determineMode();this._pieceList=[],FMt[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ut(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=W(this._pieceList,function(l){return l=ut(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=cr.listVisualTypes(),i=this.isCategory();D(r.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(r,f,l)||o(r.target,f,l)},this),!u&&D(this.stateList,function(f){(r[f]||(r[f]={}))[l]=Hq.get(l,f==="inRange"?"active":"inactive",i)})},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 a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!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=ut(r)},t.prototype.getValueState=function(r){var n=cr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=cr.findPieceIndex(l,a);f===r&&o.push(u)},this),n.push({seriesId:i.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 a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=r(v,c);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:n.push({value:f[0],color:h},{value:f[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(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Vl(j1.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}(j1),FMt={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),_2(e),D(e,function(u,f){u.index=f,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),DH(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){gt(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var v=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=r[v[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=cr.retrieveVisuals(r),e.push(a)},this),DH(t,e),_2(e),D(e,function(r){var n=r.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function DH(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var YMt=function(e){G(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,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=Xr(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(r,u[0],s,f,o),D(l.viewPieceList,function(v){var h=v.piece,d=new ht;d.onclick=et(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new zt({style:oe(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:ot(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}r.add(d)},this),u&&this._renderEndsText(r,u[1],s,f,o),tf(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N_(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return Fq(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new ht,l=this.visualMapModel.textStyleModel;s.add(new zt({style:oe(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=W(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a,i){var o=Fe(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,r.add(o)},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ut(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!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}(Uq);function Wq(e){e.registerComponentModel(UMt),e.registerComponentView(YMt),Yq(e)}function jMt(e){At(jq),At(Wq)}var WMt=function(){function e(t){this._thumbnailModel=t}return e.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},e.prototype.renderContent=function(t){var r=t.api.getViewOfComponentModel(this._thumbnailModel);r&&(t.group.silent=!0,r.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:I9(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(t,r){var n=r.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},e}(),$Mt=function(e){G(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.optionUpdated=function(r,n){this._updateBridge()},t.prototype._updateBridge=function(){var r=this._birdge=this._birdge||new WMt(this);if(this._target=null,this.ecModel.eachSeries(function(a){oG(a,null)}),this.shouldShow()){var n=this.getTarget();oG(n.baseMapProvider,r)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var r=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return r?r.subType!=="graph"&&(r=null):r=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:r},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:V.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:V.color.neutral30,borderColor:V.color.neutral40,opacity:.3},z:10},t}(Et),XMt=function(e){G(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,a){if(this._api=a,this._model=r,this._coordSys||(this._coordSys=new Cx),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=r.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||V.color.neutral00);var l=or(r,a).refContainer,u=me(aj(r,!0),l),f=s.lineWidth||0,c=this._contentRect=Tf(u.clone(),f/2,!0,!0),v=new ht;i.add(v),v.setClipPath(new Lt({shape:c.plain()}));var h=this._targetGroup=new ht;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Lt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=r.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Lt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),EH(r,this)},t.prototype.renderContent=function(r){this._bridgeRendered=r,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),EH(this._model,this))},t.prototype._dealRenderContent=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!r){var o=r.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=r.z2Range.min-10,Mx(a,s.x,s.y,s.width,s.height);var l=me({left:"center",top:"center",aspect:s.width/s.height},i);A1(a,l.x,l.y,l.width,l.height),qg(o,a,Pf),o.dirty(),this._windowRect.z2=r.z2Range.max+10,this._resetRoamController(r.roamType)}}},t.prototype.updateWindow=function(r){var n=this._bridgeRendered;n&&n.renderVersion===r.renderVersion&&(n.targetTrans=r.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=qn([],r.targetTrans),a=Wn([],T1(null,this._coordSys),n);this._transThisToTarget=qn([],a);var i=r.viewportRect;i?i=i.clone():i=new dt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(pt({r:s},i))}},t.prototype._resetRoamController=function(r){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new gc(a.getZr())),!r||!this._isEnabled()){i.disable();return}i.enable(r,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",et(this._onPan,this)).on("zoom",et(this._onZoom,this))},t.prototype._onPan=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Oe([],[r.oldX,r.oldY],n),i=Oe([],[r.oldX-r.dx,r.oldY-r.dy],n);this._api.dispatchAction(LH(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},t.prototype._onZoom=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Oe([],[r.originX,r.originY],n);this._api.dispatchAction(LH(this._model.getTarget().baseMapProvider,{zoom:1/r.scale,originX:a[0],originY:a[1]}))}},t.prototype._isEnabled=function(){var r=this._model;if(!r||!r.shouldShow())return!1;var n=r.getTarget().baseMapProvider;return!!n},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(ue);function LH(e,t){var r=e.mainType==="series"?e.subType+"Roam":e.mainType+"Roam",n={type:r};return n[e.mainType+"Id"]=e.id,U(n,t),n}function EH(e,t){var r=Af(e);ax(t.group,r.z,r.zlevel)}function ZMt(e){e.registerComponentModel($Mt),e.registerComponentView(XMt)}var qMt={label:{enabled:!0},decal:{show:!1}},OH=Tt(),RH=Tt(),KMt=Iy(QMt);function QMt(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=RH(e).scope||(RH(e).scope={}),a=ut(qMt);wt(a.label,e.getLocaleModel().get("aria"),!1),wt(r.option,a,!1),i(),o();function i(){var f=r.getModel("decal"),c=f.get("show");if(c){var v=rt();e.eachSeries(function(h){h.isColorBySeries()||(OH(h).scope=v.get(h.type)||v.set(h.type,{}))}),e.eachSeries(function(h){if(ct(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=H2(h.ecModel,h.name,n,e.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",b(S,_))}else{var p=h.getRawData(),g={},y=OH(h).scope;d.each(function(x){var w=d.getRawIndex(x);g[w]=x});var m=p.count();p.each(function(x){var w=g[x],A=p.getName(x)||x+"",T=H2(h.ecModel,A,y,m),C=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",b(C,T))})}function b(x,w){var A=x?U(U({},w),x):w;return A.dirty=!0,A}})}}function o(){var f=t.getZr().dom;if(f){var c=e.getLocaleModel().get("aria"),v=r.getModel("label");if(v.option=pt(v.option,c),!!v.get("enabled")){if(f.setAttribute("role","img"),v.get("description")){f.setAttribute("aria-label",v.get("description"));return}var h=e.getSeriesCount(),d=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=v.get(["general","withTitle"]);y=s(_,{title:m})}else y=v.get(["general","withoutTitle"]);var S=[],b=h>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);y+=s(b,{seriesCount:h}),e.eachSeries(function(T,C){if(C<g){var M=void 0,E=T.get("name"),L=E?"withName":"withoutName";M=h>1?v.get(["series","multiple",L]):v.get(["series","single",L]),M=s(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var R=T.getData();if(R.count()>d){var I=v.get(["data","partialData"]);M+=s(I,{displayCnt:d})}else M+=v.get(["data","allData"]);for(var O=v.get(["data","separator","middle"]),N=v.get(["data","separator","end"]),P=v.get(["data","excludeDimensionId"]),B=[],z=0;z<R.count();z++)if(z<d){var H=R.getName(z),F=P?Xt(R.getValues(z),function(j,tt){return bt(P,tt)===-1}):R.getValues(z),$=v.get(["data",H?"withName":"withoutName"]);B.push(s($,{name:H,value:F.join(O)}))}M+=B.join(O)+N,S.push(M)}});var x=v.getModel(["series","multiple","separator"]),w=x.get("middle"),A=x.get("end");y+=S.join(w)+A,f.setAttribute("aria-label",y)}}}}function s(f,c){if(!K(f))return f;var v=f;return D(c,function(h,d){v=v.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),v}function l(){var f=e.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=e.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function JMt(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 tDt(e){e.registerPreprocessor(JMt),e.registerVisual(e.PRIORITY.VISUAL.ARIA,KMt)}var IH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eDt=function(){function e(t){var r=this._condVal=K(t)?new RegExp(t):j7(t)?t:null;if(r==null){var n="";$t(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return K(r)?this._condVal.test(t):Vt(r)?this._condVal.test(t+""):!1},e}(),rDt=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),nDt=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}(),aDt=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}(),iDt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),oDt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function RP(e,t){if(e===!0||e===!1){var r=new rDt;return r.value=e,r}var n="";return $q(e)||$t(n),e.and?PH("and",e,t):e.or?PH("or",e,t):e.not?sDt(e,t):lDt(e,t)}function PH(e,t,r){var n=t[e],a="";Y(n)||$t(a),n.length||$t(a);var i=e==="and"?new nDt:new aDt;return i.children=W(n,function(o){return RP(o,r)}),i.children.length||$t(a),i}function sDt(e,t){var r=e.not,n="";$q(r)||$t(n);var a=new iDt;return a.child=RP(r,t),a.child||$t(n),a}function lDt(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=Nt(e),o=e.parser,s=o?Tj(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=nt(IH,u)?IH[u]:u,c=e[u],v=s?s(c):c,h=nct(f,v)||f==="reg"&&new eDt(v);h||$t(r),a.push(h)}}a.length||$t(r);var d=new oDt;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function $q(e){return gt(e)&&!Br(e)}var uDt=function(){function e(t,r){this._cond=RP(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function fDt(e,t){return new uDt(e,t)}var cDt={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=fDt(e.config,{valueGetterAttrMap:rt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;nt(s,"dimension")||$t(l);var f=t.getDimensionInfo(u);return f||$t(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},vDt={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=le(r);a.length||$t(n);var i=[];D(a,function(f){var c=f.dimension,v=f.order,h=f.parser,d=f.incomparable;if(c==null&&$t(n),v!=="asc"&&v!=="desc"&&$t(n),d&&d!=="min"&&d!=="max"){var p="";$t(p)}if(v!=="asc"&&v!=="desc"){var g="";$t(g)}var y=t.getDimensionInfo(c);y||$t(n);var m=h?Tj(h):null;h&&!m&&$t(n),i.push({dimIdx:y.index,parser:m,comparator:new Cj(v,d)})});var o=t.sourceFormat;o!==xr&&o!==Jn&&$t(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var v=0;v<i.length;v++){var h=i[v],d=t.retrieveValueFromItem(f,h.dimIdx),p=t.retrieveValueFromItem(c,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function hDt(e){e.registerTransform(cDt),e.registerTransform(vDt)}var dDt=function(e){G(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,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new Rj(this),r5(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),r5(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Xa},t}(Et),pDt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(ue);function gDt(e){e.registerComponentModel(dDt),e.registerComponentView(pDt)}var hi=qi.CMD;function Tv(e,t){return Math.abs(e-t)<1e-5}function aE(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(L,R){a&&a.length>2&&n.push(a),a=[L,R]}function f(L,R,I,O){Tv(L,I)&&Tv(R,O)||a.push(L,R,I,O,I,O)}function c(L,R,I,O,N,P){var B=Math.abs(R-L),z=Math.tan(B/4)*4/3,H=R<L?-1:1,F=Math.cos(L),$=Math.sin(L),j=Math.cos(R),tt=Math.sin(R),_t=F*N+I,lt=$*P+O,it=j*N+I,Q=tt*P+O,st=N*z*H,Z=P*z*H;a.push(_t-st*$,lt+Z*F,it+st*tt,Q-Z*j,it,Q)}for(var v,h,d,p,g=0;g<r;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===hi.L||y===hi.C||y===hi.Q)&&(a=[s,l])),y){case hi.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case hi.L:v=t[g++],h=t[g++],f(i,o,v,h),i=v,o=h;break;case hi.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case hi.Q:v=t[g++],h=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(v-i),o+2/3*(h-o),d+2/3*(v-d),p+2/3*(h-p),d,p),i=d,o=p;break;case hi.A:var _=t[g++],S=t[g++],b=t[g++],x=t[g++],w=t[g++],A=t[g++]+w;g+=1;var T=!t[g++];v=Math.cos(w)*b+_,h=Math.sin(w)*x+S,m?(s=v,l=h,u(s,l)):f(i,o,v,h),i=Math.cos(A)*b+_,o=Math.sin(A)*x+S;for(var C=(T?-1:1)*Math.PI/2,M=w;T?M>A:M<A;M+=C){var E=T?Math.max(M+C,A):Math.min(M+C,A);c(M,E,_,S,b,x)}break;case hi.R:s=i=t[g++],l=o=t[g++],v=s+t[g++],h=l+t[g++],u(v,l),f(v,l,v,h),f(v,h,s,h),f(s,h,s,l),f(s,l,v,l);break;case hi.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function iE(e,t,r,n,a,i,o,s,l,u){if(Tv(e,r)&&Tv(t,n)&&Tv(a,o)&&Tv(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-e,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=r-e,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=v*p+h*g,x=-v*y-h*m,w=_-b*b,A=S-x*x;if(w<c&&b>=0&&A<c&&x>=0){l.push(o,s);return}var T=[],C=[];xl(e,r,a,o,.5,T),xl(t,n,i,s,.5,C),iE(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,u),iE(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,u)}function yDt(e,t){var r=aE(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],v=i[u++],h=i[u++],d=i[u++],p=i[u++];iE(s,l,f,c,v,h,d,p,o,t),s=d,l=p}n.push(o)}return n}function Xq(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function NH(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=Xq([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],p=0;p<c[h];p++){var g={};f?(g.startAngle=i+v*h,g.endAngle=i+v*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+v*h,g.r=n+v*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function mDt(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=Xq([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=e[s]/o.length,v=0;v<o.length;v++)for(var h=e[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*c,p[f]=d*h,p[s]=c,p[l]=h,p.x+=e.x,p.y+=e.y,r.push(p)}}function kH(e,t,r,n){return e*n-r*t}function _Dt(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,v=kH(f,c,l,u);if(Math.abs(v)<1e-6)return null;var h=e-a,d=t-i,p=kH(h,d,f,c)/v;return p<0||p>1?null:new yt(p*l+e,p*u+t)}function SDt(e,t,r){var n=new yt;yt.sub(n,r,t),n.normalize();var a=new yt;yt.sub(a,e,t);var i=a.dot(n);return i}function Yc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function bDt(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=_Dt(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:SDt(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var v=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[v],p=[h],i=u.idx+1;i<=f.idx;i++)Yc(d,e[i].slice());Yc(d,h),Yc(d,v);for(var i=f.idx+1;i<=u.idx+n;i++)Yc(p,e[i%n].slice());return Yc(p,v),Yc(p,h),[{points:d},{points:p}]}function BH(e){var t=e.points,r=[],n=[];Qb(t,r,n);var a=new dt(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new yt,f=new yt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),bDt(t,u,f)}function W1(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);W1(e,i[0],a,n),W1(e,i[1],r-a,n)}return n}function xDt(e,t){for(var r=[],n=0;n<t;n++)r.push(cR(e));return r}function wDt(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function TDt(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function ADt(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":mDt(n,t,r),a=Lt;break;case"sector":NH(n,t,r),a=Vr;break;case"circle":NH({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=Vr;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=W(yDt(e.getUpdatedPathProxy(),o),function(y){return TDt(y)}),l=s.length;if(l===0)W1(BH,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=W(s,function(y){var m=[],_=[];Qb(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var h=c[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(h.area/f*t);d<0||(W1(BH,{points:h.poly},d,r),v-=d)}}a=Gr;break}if(!a)return xDt(e,t);for(var p=[],u=0;u<r.length;u++){var g=new a;g.setShape(r[u]),wDt(e,g),p.push(g)}return p}function CDt(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],v=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],b=o[h++];if(v<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(v,f-1)+1,w=1;w<=x;w++){var A=w/x;xl(d,g,m,S,A,a),xl(p,y,_,b,A,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}v-=x-1}return o===e?[c,t]:[e,c]}function zH(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function MDt(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],f=void 0,c=void 0;l?u?(r=CDt(l,u),f=r[0],c=r[1],n=f,a=c):(c=zH(a||l,l),f=l):(f=zH(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function VH(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],f=e[i+1],c=s*f-u*l;t+=c,r+=(s+u)*c,n+=(l+f)*c}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function DDt(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,v=0;v<s;v+=2){var h=v===0?f:(f+v-2)%l+2,d=e[h]-r[0],p=e[h+1]-r[1],g=t[v]-n[0],y=t[v+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function LDt(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 EDt(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=VH(s),f=VH(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],v=[],h=0,d=1/0,p=[],g=s.length;i&&(s=LDt(s));for(var y=DDt(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var b=n/r,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),A=Math.cos(x),T=0,_=0;_<s.length;_+=2){var C=c[_],M=c[_+1],E=l[_]-f[0],L=l[_+1]-f[1],R=E*A-L*w,I=E*w+L*A;p[_]=R,p[_+1]=I;var O=R-C,N=I-M;T+=O*O+N*N}if(T<d){d=T,h=x;for(var P=0;P<p.length;P++)v[P]=p[P]}}a.push({from:c,to:v,fromCp:u,toCp:f,rotation:-h})}return a}function $1(e){return e.__isCombineMorphing}var Zq="__mOriginal_";function X1(e,t,r){var n=Zq+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Qp(e,t){var r=Zq+t;e[r]&&(e[t]=e[r],e[r]=null)}function GH(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function qq(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=MDt(aE(r),aE(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&GH(i,s),l&&GH(o,l),X1(t,"updateTransform",{replace:u}),t.transform=null;var f=EDt(i,o,10,Math.PI),c=[];X1(t,"buildPath",{replace:function(v){for(var h=t.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,b=y.fromCp,x=y.toCp,w=Math.sin(S),A=Math.cos(S);Vp(p,b,x,h);for(var T=0;T<m.length;T+=2){var C=m[T],M=m[T+1],E=_[T],L=_[T+1],R=C*d+E*h,I=M*d+L*h;c[T]=R*A-I*w+p[0],c[T+1]=R*w+I*A+p[1]}var O=c[0],N=c[1];v.moveTo(O,N);for(var T=2;T<m.length;){var E=c[T++],L=c[T++],P=c[T++],B=c[T++],z=c[T++],H=c[T++];O===E&&N===L&&P===z&&B===H?v.lineTo(z,H):v.bezierCurveTo(E,L,P,B,z,H),O=z,N=H}}}})}function IP(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;qq(e,t),t.__morphT=0;function i(){Qp(t,"buildPath"),Qp(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},pt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function ODt(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(e&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Z1(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=W(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),r=Math.min(c,r),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=W(i,function(s,l){return{cp:s,z:ODt(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Kq(e){return ADt(e.path,e.count)}function oE(){return{fromIndividuals:[],toIndividuals:[],count:0}}function RDt(e,t,r){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];$1(w)?a(w.childrenRef()):w instanceof Rt&&n.push(w)}}a(e);var i=n.length;if(!i)return oE();var o=r.dividePath||Kq,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),oE();n=Z1(n),s=Z1(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new ao,v=0;v<i;v++){var h=n[v],d=s[v];d.parent=t,d.copyTransform(c),f||qq(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}X1(t,"addSelfToZr",{after:function(b){p(b)}}),X1(t,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Qp(t,"addSelfToZr"),Qp(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?pt({delay:(r.delay||0)+f(v,y,n[v],s[v]),done:_},r):r;IP(n[v],s[v],S)}else t.__morphT=0,t.animateTo({__morphT:1},pt({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<e.length;b++)Qp(e[b],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function IDt(e,t,r){var n=t.length,a=[],i=r.dividePath||Kq;function o(h){for(var d=0;d<h.length;d++){var p=h[d];$1(p)?o(p.childrenRef()):p instanceof Rt&&a.push(p)}}if($1(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(cR(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var f=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),oE()}a=Z1(a),t=Z1(t);for(var c=r.individualDelay,u=0;u<n;u++){var v=c?pt({delay:(r.delay||0)+c(u,n,a[u],t[u])},r):r;IP(a[u],t[u],v)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function HH(e){return Y(e[0])}function UH(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var PDt={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 a=cR(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function mC(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=$h("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=U({setToFinal:!0},o),u,f;HH(e)&&(u=e,f=t),HH(t)&&(u=t,f=e);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var A=m?x[0]:w,T=m?w:x[0];if($1(A))c({many:[A],one:T},!0,_,S,!0);else{var C=s?pt({delay:s(_,S)},l):l;IP(A,T,C),i(A,T,A,T,C)}}else for(var M=pt({dividePath:PDt[r],individualDelay:s&&function(N,P,B,z){return s(N+_,S)}},l),E=m?RDt(x,w,M):IDt(w,x,M),L=E.fromIndividuals,R=E.toIndividuals,I=L.length,O=0;O<I;O++){var C=s?pt({delay:s(O,I)},l):l;i(L[O],R[O],m?x[O]:y.one,m?y.one:x[O],C)}}for(var v=u?u===e:e.length>t.length,h=u?UH(f,u):UH(v?t:e,[v?e:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)c(h[p],v,g,d),g+=h[p].many.length}function Ou(e){if(!e)return[];if(Y(e)){for(var t=[],r=0;r<e.length;r++)t.push(Ou(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof Rt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var Qq=1e4,NDt=0,FH=1,YH=2,kDt=Tt();function BDt(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var a=e.getDimensionInfo(r[n]);if(a&&a.otherDims[t]===0)return r[n]}}function zDt(e,t,r){var n=e.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=e.get(n.name,t);return a&&a.categories[i]||i+""}}function jH(e,t,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=BDt(e,a);if(i){var o=zDt(e,t,i);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 WH(e){var t=[];return D(e,function(r){var n=r.data,a=r.dataGroupId;if(!(n.count()>Qq))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:jH(n,o,a,!1),childGroupId:jH(n,o,a,!0),divide:r.divide,dataIndex:o})}),t}function _C(e,t,r){e.traverse(function(n){n instanceof Rt&&de(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function SC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function jc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function VDt(e,t,r){var n=$h("update",r,t);n&&e.traverse(function(a){if(a instanceof Ra){var i=Iut(a);i&&a.animateFrom({style:i},n)}})}function GDt(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Jq(e,t,r){var n=WH(e),a=WH(t);function i(_,S,b,x,w){(b||_)&&S.animateFrom({style:b&&b!==_?U(U({},b.style),_.style):_.style},w)}var o=!1,s=NDt,l=rt(),u=rt();D(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=FH;break}var v=a[f].childGroupId;if(v&&l.get(v)){s=YH;break}}function h(_,S){return function(b){var x=b.data,w=b.dataIndex;return S?x.getId(w):_?s===FH?b.childGroupId:b.groupId:s===YH?b.childGroupId:b.groupId}}var d=GDt(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var b=n[S],x=a[_],w=x.data.hostModel,A=b.data.getItemGraphicEl(b.dataIndex),T=x.data.getItemGraphicEl(x.dataIndex);if(A===T){T&&VDt(T,x.dataIndex,w);return}A&&p[A.id]||T&&(jc(T),A?(jc(A),SC(A),o=!0,mC(Ou(A),Ou(T),x.divide,w,_,i)):_C(T,w,_))}new os(n,a,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var b=a[_],x=b.data,w=x.hostModel,A=x.getItemGraphicEl(b.dataIndex),T=Xt(W(S,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==A&&!p[C.id]});A&&(jc(A),T.length?(D(T,function(C){jc(C),SC(C)}),o=!0,mC(Ou(T),Ou(A),b.divide,w,_,i)):_C(A,w,b.dataIndex))}).updateOneToMany(function(_,S){var b=n[S],x=b.data.getItemGraphicEl(b.dataIndex);if(!(x&&p[x.id])){var w=Xt(W(_,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==x}),A=a[_[0]].data.hostModel;w.length&&(D(w,function(T){return jc(T)}),x?(jc(x),SC(x),o=!0,mC(Ou(x),Ou(w),b.divide,A,_[0],i)):D(w,function(T){return _C(T,A,_[0])}))}}).updateManyToMany(function(_,S){new os(S,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,x){m(_[b],S[x])}).execute()}).execute(),o&&D(t,function(_){var S=_.data,b=S.hostModel,x=b&&r.getViewOfSeriesModel(b),w=$h("update",b,0);x&&b.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(A){A instanceof Rt&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function $H(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function XH(e){return Y(e)?e.sort().join(","):e}function Ps(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function HDt(e,t){var r=rt(),n=rt(),a=rt();return D(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=$H(i),f=XH(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=$H(i),u=XH(l),f=n.get(u);if(f)r.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ps(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Ps(s),data:s}]});else if(Y(l)){var c=[];D(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Ps(p.data),data:p.data})}),c.length&&r.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Ps(s)}]})}else{var v=a.get(l);if(v){var h=r.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ps(v.data)}],newSeries:[]},r.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Ps(s)})}}}}),r}function ZH(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 UDt(e,t,r,n){var a=[],i=[];D(le(e.from),function(o){var s=ZH(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ps(t.oldData[s]),groupIdDim:o.dimension})}),D(le(e.to),function(o){var s=ZH(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ps(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Jq(a,i,n)}function FDt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(le(n.seriesTransition),function(a){D(le(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][M_]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=kDt(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(le(i),function(h){UDt(h,a,n,r)});else{var o=HDt(a,n);D(o.keys(),function(h){var d=o.get(h);Jq(d.oldSeries,d.newSeries,r)})}D(n.updatedSeries,function(h){h[M_]&&(h[M_]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var v=s[c].getData();v.count()<Qq&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(v))}})}var YDt=function(){function e(t,r){oI(this,e.decoratedMethods),this._outOfBrk=eL(null,r),this._linear=eL(null,r),sI(this),this.breaks=t&&t.breaks||[]}return e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(t,r){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<t&&t<a.vmax){var i=r(t,a.vmax);return i}}return 0},e.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,r){return r==null||r===Fo?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,r){this.setExtent2(bn,t,r)},setExtent2:function(t,r,n){bf(r,n)&&(t===bn&&WDt(this,[r,n]),this._outOfBrk.setExtent2(t,r,n),this._linear.setExtent2(t,this.transformIn(r,null),this.transformIn(n,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,r){if(r&&r.depth===Fo)return t;for(var n=qH,a=KH,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(t<=s.vmax){t>s.vmin?n+=s.vmin-a+(t-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=t-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=t-a),n},transformOut:function(t,r){if(r&&r.depth===Fo)return t;for(var n=qH,a=KH,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-a,f=u+l.gapReal;if(t<=f){t>u?o=l.vmin+(t-u)/(f-u)*(l.vmax-l.vmin):o=a+t-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+t-n),o}},e}();function jDt(e,t){return new YDt(e,t)}var qH=0,KH=0;function WDt(e,t){var r=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};D(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(r+=l.val);var u=PP(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=v,n[l.type].val+=l.val}});var o=r*(0+(t[1]-t[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));D(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=r!==0?Dt(o,0)*l.val/r:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function $Dt(e,t,r,n,a,i){e!=="no"&&D(r,function(o){var s=PP(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=n(u),c=a*3/4;f>s.vmin-c&&f<s.vmax+c&&(e!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function XDt(e,t,r,n){D(t,function(a){var i=PP(a,r);i&&(e.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),e.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),t.length&&e.sort(function(a,i){return a.value-i.value})}function PP(e,t){var r=Dt(e.vmin,t[0]),n=te(e.vmax,t[1]);return r<n||r===n&&r>t[0]&&r<t[1]?{vmin:r,vmax:n,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function sE(e,t,r){var n=[];if(!e)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}D(e,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ut(o),vmin:t.parse(o.start),vmax:t.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(K(o.gap)){var u=zn(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t.parse(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),r&&r.noNegative&&D(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return D(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:Xt(n,function(o){return!!o})}}function NP(e,t){return lE(t)===lE(e)}function lE(e){return e.start+"_\0_"+e.end}function ZDt(e,t,r){var n=[];D(e,function(i,o){var s=t(i);s&&s.type==="vmin"&&n.push([o])}),D(e,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=ds(n,function(u){return NP(t(e[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return D(n,function(i){i.length===2&&a.push(r?i:[e[i[0]],e[i[1]]])}),a}function qDt(e,t,r,n){if(t.break){var a=t.break.parsedBreak,i=ds(r,function(f){return NP(f.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:n,depth:Fo},s=e.transformOut(a.vmin,o),l=e.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:ut(i.gapParsed),gapReal:a.gapReal};return{tickVal:u[t.break.type],vBreak:{type:t.break.type,parsedBreak:u}}}}function KDt(e,t,r,n,a){a.original=sE(e,t,r);var i=a.transformed=sE(e,t,r),o=a.lookup;i.breaks=W(i.breaks,function(s,l){var u={depth:Fo},f=t.transformIn(s.vmin,u),c=t.transformIn(s.vmax,u),v={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?t.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=c,o.to[n+l+1]=s.vmax,{vmin:f,vmax:c,gapParsed:v,gapReal:s.gapReal,breakOption:s.breakOption}})}var QDt={vmin:"start",vmax:"end"};function JDt(e,t){return t&&(e=e||{},e.break={type:QDt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function t2t(){Jut({createBreakScaleMapper:jDt,pruneTicksByBreak:$Dt,addBreaksToTicks:XDt,parseAxisBreakOption:sE,identifyAxisBreak:NP,serializeAxisBreakIdentifier:lE,retrieveAxisBreakPairs:ZDt,getTicksBreakOutwardTransform:qDt,parseAxisBreakOptionInwardTransform:KDt,makeAxisLabelFormatterParamBreak:JDt})}var QH=Tt();function e2t(e,t){var r=ds(e,function(n){return Ue().identifyAxisBreak(n.parsedBreak.breakOption,t.breakOption)});return r||e.push(r={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),r}function r2t(e){D(e,function(t){return t.shouldRemove=!0})}function n2t(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function a2t(e,t,r,n,a){var i=r.axis;if(i.scale.isBlank()||!Ue())return;var o=Ue().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(T){return T.break},!1);if(!o.length)return;var s=r.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new ht({ignoreModelZ:!0}),S=i.isHorizontal(),b=QH(t).visualList||(QH(t).visualList=[]);r2t(b);for(var x=function(T){var C=o[T][0].break.parsedBreak,M=[];M[0]=i.toGlobalCoord(i.dataToCoord(C.vmin,!0)),M[1]=i.toGlobalCoord(i.dataToCoord(C.vmax,!0)),M[1]<M[0]&&M.reverse();var E=e2t(b,C);E.shouldRemove=!1;var L=new ht;A(E.zigzagRandomList,L,M[0],M[1],S,C),c&&L.on("click",function(){var R={type:Sx,breaks:[{start:C.breakOption.start,end:C.breakOption.end}]};R[i.dim+"AxisIndex"]=r.componentIndex,a.dispatchAction(R)}),L.silent=!c,_.add(L)},w=0;w<o.length;w++)x(w);e.add(_),n2t(b);function A(T,C,M,E,L,R){var I={stroke:p,lineWidth:g,lineDash:y,fill:"none"},O=L?0:1,N=1-O,P=n[St[N]]+n[Ne[N]];function B(Ht){var Ct=[],Ut=[];Ct[O]=Ut[O]=Ht,Ct[N]=n[St[N]],Ut[N]=P;var Zt={x1:Ct[0],y1:Ct[1],x2:Ut[0],y2:Ut[1]};return tx(Zt,Zt,{lineWidth:1}),Ct[0]=Zt.x1,Ct[1]=Zt.y1,Ct[O]}M=B(M),E=B(E);for(var z=[],H=[],F=!0,$=n[St[N]],j=0;;j++){var tt=$===n[St[N]],_t=$>=P;_t&&($=P);var lt=[],it=[];lt[O]=M,it[O]=E,!tt&&!_t&&(lt[O]+=F?-l:l,it[O]-=F?l:-l),lt[N]=$,it[N]=$,z.push(lt),H.push(it);var Q=void 0;if(j<T.length?Q=T[j]:(Q=Math.random(),T.push(Q)),$+=Q*(f-u)+u,F=!F,_t)break}var st=Ue().serializeAxisBreakIdentifier(R.breakOption);if(C.add(new wr({anid:"break_a_"+st,shape:{points:z},style:I,z:v})),R.gapReal!==0){C.add(new wr({anid:"break_b_"+st,shape:{points:H},style:I,z:v}));var Z=H.slice();Z.reverse();var at=z.concat(Z);C.add(new Gr({anid:"break_c_"+st,shape:{points:at},style:{fill:m,opacity:d.opacity},z:v}))}}}function i2t(e,t,r,n){var a=e.axis,i=r.transform;zr(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=Ue().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=W(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:Ue().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c<l.length;c++){var v=l[c],h=Math.max(v.coordPair[0],o[0]),d=Math.min(v.coordPair[1],o[1]);u<=h&&p(u,h,f,v),u=d,f=v}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(M,E){i&&(Oe(M,M,i),Oe(E,E,i))}function b(M,E){var L={x1:M[0],y1:M[1],x2:E[0],y2:E[1]};tx(L,L,n.style),M[0]=L.x1,M[1]=L.y1,E[0]=L.x2,E[1]=L.y2}var x=[g,0],w=[y,0],A=[g,5],T=[y,5];S(x,A),b(x,A),S(w,T),b(w,T),b(x,w);var C=new He(U({shape:{x1:x[0],y1:x[1],x2:w[0],y2:w[1]}},n));t.add(C),C.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function o2t(e,t,r){if(ds(r,function(m){return!m}))return;var n=new yt;if(!mx(r[0],r[1],n,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var a=Se();ps(a,a,-t);var i=W(r,function(m){return m.transform?Wn(Se(),a,m.transform):a});function o(m){var _=r[0].localRect,S=new yt(_[Ne[m]]*i[0][0],_[Ne[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=W(r,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new yt;u.copy(r[0].label).add(r[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),c=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new yt,y=new yt;yt.scale(g,n,-s),yt.scale(y,n,1-s),sL(r[0],g),sL(r[1],y)}function s2t(e,t){var r={breaks:[]};return D(t.breaks,function(n){if(n){var a=ds(e.get("breaks",!0),function(s){return Ue().identifyAxisBreak(s,n)});if(a){var i=t.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===Sx?!0:i===Y$?!1:i===j$?!a.isExpanded:a.isExpanded,r.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),r}function l2t(){Tgt({adjustBreakLabelPair:o2t,buildAxisBreakLine:i2t,rectCoordBuildBreakAxis:a2t,updateModelAxisBreak:s2t})}function u2t(e){Dgt(e),t2t(),l2t()}function f2t(){Yyt(c2t)}function c2t(e,t){D(e,function(r){if(!r.model.get(["axisLabel","inside"])){var n=v2t(r);if(n){var a=r.isHorizontal()?"height":"width",i=r.model.get(["axisLabel","margin"]);t[a]-=n[a]+i,r.position==="top"?t.y+=n.height+i:r.position==="left"&&(t.x+=n.width+i)}}})}function v2t(e){var t=e.model,r=e.scale;if(!t.get(["axisLabel","show"])||r.isBlank())return;var n,a,i=r.getExtent();r instanceof Vg?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Yy(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},v=s(c,f),h=o.getTextRect(v),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,b=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),x=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new dt(g.x,g.y,b,x);return w}}At([rgt]);At([Zpt]);At([wgt,myt,Lyt,fmt,wmt,C0t,t_t,B_t,fSt,mSt,TSt,ISt,T1t,q1t,ubt,Mbt,Obt,Hbt,Xbt,ixt,vxt,Txt,lwt]);At(Mwt);At(rTt);At(XX);At(dTt);At(NZ);At(mTt);At(zTt);At($Tt);At(kAt);At(eCt);At(Ky);At(yCt);At(SCt);At(LCt);At(BCt);At(FCt);At(ZCt);At(oMt);At(AMt);At(Vq);At(Gq);At(jMt);At(jq);At(Wq);At(ZMt);At(tDt);At(hDt);At(gDt);At(FDt);At(dpt);At(u2t);At(f2t);At(cmt);const h2t=Object.freeze(Object.defineProperty({__proto__:null,Axis:ka,ChartView:ee,ComponentModel:Et,ComponentView:ue,List:qr,Model:Ot,PRIORITY:fW,SeriesModel:ne,color:Rot,connect:qvt,dataTool:aht,dependencies:Rvt,disConnect:Kvt,disconnect:mW,dispose:Qvt,env:Bt,extendChartView:Jdt,extendComponentModel:qdt,extendComponentView:Kdt,extendSeriesModel:Qdt,format:Rdt,getCoordinateSystemDimensions:tht,getInstanceByDom:qR,getInstanceById:Jvt,getMap:nht,graphic:Odt,helper:wdt,init:Zvt,innerDrawElementOnCanvas:WR,matrix:oot,number:Ldt,parseGeoJSON:iL,parseGeoJson:iL,registerAction:ii,registerCoordinateSystem:bW,registerCustomSeries:eht,registerLayout:xW,registerLoading:eI,registerLocale:wR,registerMap:wW,registerPostInit:_W,registerPostUpdate:SW,registerPreprocessor:QR,registerProcessor:JR,registerTheme:KR,registerTransform:TW,registerUpdateLifecycle:hx,registerVisual:Gl,setCanvasCreator:rht,setPlatformAPI:G7,throttle:fx,time:Edt,use:At,util:Idt,vector:jit,version:Ovt,zrUtil:zit,zrender:dst},Symbol.toStringTag,{value:"Module"}));var af={},gl={},tK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(tK);var Px={},Nx={},kP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(a),a=setTimeout(function(){r.apply(i,s)},n)}}})(kP);var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.SizeSensorId=Yi.SensorTabIndex=Yi.SensorClassName=void 0;Yi.SizeSensorId="size-sensor-id";Yi.SensorClassName="size-sensor-object";Yi.SensorTabIndex="-1";Object.defineProperty(Nx,"__esModule",{value:!0});Nx.createSensor=void 0;var d2t=p2t(kP),bC=Yi;function p2t(e){return e&&e.__esModule?e:{default:e}}Nx.createSensor=function(t,r){var n=void 0,a=[],i=function(){getComputedStyle(t).position==="static"&&(t.style.position="relative");var c=document.createElement("object");return c.onload=function(){c.contentDocument.defaultView.addEventListener("resize",o),o()},c.style.display="block",c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.height="100%",c.style.width="100%",c.style.overflow="hidden",c.style.pointerEvents="none",c.style.zIndex="-1",c.style.opacity="0",c.setAttribute("class",bC.SensorClassName),c.setAttribute("tabindex",bC.SensorTabIndex),c.type="text/html",t.appendChild(c),c.data="about:blank",c},o=(0,d2t.default)(function(){a.forEach(function(f){f(t)})}),s=function(c){n||(n=i()),a.indexOf(c)===-1&&a.push(c)},l=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",o),n.parentNode.removeChild(n),t.removeAttribute(bC.SizeSensorId),n=void 0,a=[],r&&r())},u=function(c){var v=a.indexOf(c);v!==-1&&a.splice(v,1),a.length===0&&n&&l()};return{element:t,bind:s,destroy:l,unbind:u}};var kx={};Object.defineProperty(kx,"__esModule",{value:!0});kx.createSensor=void 0;var g2t=Yi,y2t=m2t(kP);function m2t(e){return e&&e.__esModule?e:{default:e}}kx.createSensor=function(t,r){var n=void 0,a=[],i=(0,y2t.default)(function(){a.forEach(function(f){f(t)})}),o=function(){var c=new ResizeObserver(i);return c.observe(t),i(),c},s=function(c){n||(n=o()),a.indexOf(c)===-1&&a.push(c)},l=function(){n&&n.disconnect(),a=[],n=void 0,t.removeAttribute(g2t.SizeSensorId),r&&r()},u=function(c){var v=a.indexOf(c);v!==-1&&a.splice(v,1),a.length===0&&n&&l()};return{element:t,bind:s,destroy:l,unbind:u}};Object.defineProperty(Px,"__esModule",{value:!0});Px.createSensor=void 0;var _2t=Nx,S2t=kx;Px.createSensor=typeof ResizeObserver<"u"?S2t.createSensor:_2t.createSensor;Object.defineProperty(gl,"__esModule",{value:!0});gl.removeSensor=gl.getSensor=gl.Sensors=void 0;var b2t=w2t(tK),x2t=Px,uE=Yi;function w2t(e){return e&&e.__esModule?e:{default:e}}var Jp=gl.Sensors={};function eK(e){e&&Jp[e]&&delete Jp[e]}gl.getSensor=function(t){var r=t.getAttribute(uE.SizeSensorId);if(r&&Jp[r])return Jp[r];var n=(0,b2t.default)();t.setAttribute(uE.SizeSensorId,n);var a=(0,x2t.createSensor)(t,function(){return eK(n)});return Jp[n]=a,a};gl.removeSensor=function(t){var r=t.element.getAttribute(uE.SizeSensorId);t.destroy(),eK(r)};var BP,zP;Object.defineProperty(af,"__esModule",{value:!0});af.ver=zP=af.clear=BP=af.bind=void 0;var fE=gl;BP=af.bind=function(t,r){var n=(0,fE.getSensor)(t);return n.bind(r),function(){n.unbind(r)}};zP=af.clear=function(t){var r=(0,fE.getSensor)(t);(0,fE.removeSensor)(r)};af.ver="1.0.3";function JH(e,t){var r={};return t.forEach(function(n){r[n]=e[n]}),r}function xC(e){return typeof e=="function"}function T2t(e){return typeof e=="string"}var A2t=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const Wc=ly(A2t);var C2t=function(e){z7(t,e);function t(r){var n=e.call(this,r)||this;return n.echarts=r.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(r){var n=this.props.shouldSetOption;if(!(xC(n)&&!n(r,this.props))){if(!Wc(r.theme,this.props.theme)||!Wc(r.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var a=this.getEchartsInstance();Wc(r.onEvents,this.props.onEvents)||(this.unbindEvents(a),this.bindEvents(a,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Wc(JH(this.props,i),JH(r,i))||this.updateEChartsOption(),(!Wc(r.style,this.props.style)||!Wc(r.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return uB(this,void 0,void 0,function(){var r=this;return fB(this,function(n){return[2,new Promise(function(a){r.echarts.init(r.ele,r.props.theme,r.props.opts);var i=r.getEchartsInstance();i.on("finished",function(){var o=r.ele.clientWidth,s=r.ele.clientHeight;r.echarts.dispose(r.ele);var l=Nn({width:o,height:s},r.props.opts);a(r.echarts.init(r.ele,r.props.theme,l))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{zP(this.ele)}catch(r){console.warn(r)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return uB(this,void 0,void 0,function(){var r,n,a,i,o,s,l=this;return fB(this,function(u){switch(u.label){case 0:return r=this.props,n=r.onEvents,a=r.onChartReady,i=r.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,n||{}),xC(a)&&a(s),this.ele&&o&&BP(this.ele,function(){l.resize()}),[2]}})})},t.prototype.bindEvents=function(r,n){var a=this,i=function(s,l){if(T2t(s)&&xC(l)){var u=function(f){l(f,r)};r.on(s,u),a.eventHandlerRefs[s]=u}};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i(o,n[o])},t.prototype.unbindEvents=function(r){for(var n=0,a=Object.entries(this.eventHandlerRefs);n<a.length;n++){var i=a[n],o=i[0],s=i[1];r.off(o,s)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var r=this.props,n=r.option,a=r.notMerge,i=a===void 0?!1:a,o=r.replaceMerge,s=o===void 0?null:o,l=r.lazyUpdate,u=l===void 0?!1:l,f=r.showLoading,c=r.loadingOption,v=c===void 0?null:c,h=this.getEchartsInstance();return h.setOption(n,{notMerge:i,replaceMerge:s,lazyUpdate:u}),f?h.showLoading(v):h.hideLoading(),h},t.prototype.resize=function(){var r=this.getEchartsInstance();if(!this.isInitialResize)try{r.resize({width:"auto",height:"auto"})}catch(n){console.warn(n)}this.isInitialResize=!1},t.prototype.render=function(){var r=this,n=this.props,a=n.style,i=n.className,o=i===void 0?"":i;n.echarts,n.option,n.theme,n.notMerge,n.replaceMerge,n.lazyUpdate,n.showLoading,n.loadingOption,n.opts,n.onChartReady,n.onEvents,n.shouldSetOption,n.autoResize;var s=NO(n,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=Nn({height:300},a);return V_.createElement("div",Nn({ref:function(u){r.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},t}(k.PureComponent),M2t=function(e){z7(t,e);function t(r){var n=e.call(this,r)||this;return n.echarts=h2t,n}return t}(C2t);const D2t=My(()=>{const{t:e,i18n:t}=Ob(),{usageData:r}=ze,[n,a]=k.useState(null),i=k.useMemo(()=>{if(!r||!r.byDay||r.byDay.length===0)return null;const l=N7(t.language),u=r.byDay.map(p=>k7(p.date,l)),f=r.byDay.map(p=>p.date),c=r.byDay.map(p=>p.inputTokens),v=r.byDay.map(p=>p.outputTokens),h=r.byDay.map(p=>p.totalTokens),d=r.byDay.map(p=>p.sessionCount);return{dates:u,rawDates:f,inputTokens:c,outputTokens:v,totalTokens:h,sessionCounts:d}},[r,t.language]);k.useEffect(()=>{a(null)},[r]);const o=l=>{const u=Array.isArray(l==null?void 0:l.batch)?l.batch[0]:l,f=typeof(u==null?void 0:u.start)=="number"?u.start:null,c=typeof(u==null?void 0:u.end)=="number"?u.end:null;if(!(f==null||c==null||!i)&&(a({start:f,end:c}),i.rawDates.length>0)){const v=i.rawDates.length,h=Math.floor(f/100*v),d=Math.min(Math.ceil(c/100*v)-1,v-1),p=i.rawDates[h],g=i.rawDates[d];ze.setDateRange(p,g)}};if(!i)return X.jsx("div",{className:an("p-8 flex justify-center items-center"),children:X.jsx("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",style:{borderColor:`${xt.chart.spinner} transparent ${xt.chart.spinner} transparent`},role:"status",children:X.jsx("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:e("loading")})})});const s={backgroundColor:"transparent",color:xt.chart.colors,tooltip:{trigger:"axis",backgroundColor:xt.chart.tooltip.background,borderColor:xt.chart.tooltip.border,textStyle:{color:xt.chart.tooltip.text},formatter:l=>{let u=`<div style="font-weight: 600; margin-bottom: 4px;">${l[0].axisValue}</div>`;return l.forEach(f=>{u+=`<div style="margin: 2px 0;">${f.marker} ${f.seriesName}: ${ku(f.value)}</div>`}),u}},grid:{left:60,right:60,top:30,bottom:80},dataZoom:[{type:"inside",xAxisIndex:0,start:n==null?void 0:n.start,end:n==null?void 0:n.end},{type:"slider",xAxisIndex:0,height:24,bottom:20,borderColor:xt.chart.zoom.border,fillerColor:xt.chart.zoom.filler,handleStyle:{color:xt.chart.zoom.handle},start:n==null?void 0:n.start,end:n==null?void 0:n.end}],xAxis:{type:"category",data:i.dates,axisLabel:{hideOverlap:!0,color:xt.chart.axis.label},axisLine:{lineStyle:{color:xt.chart.axis.line}}},yAxis:[{type:"value",name:e("tokens"),position:"left",axisLabel:{color:xt.chart.axis.label,formatter:l=>ku(l)},splitLine:{lineStyle:{color:xt.chart.axis.split}}},{type:"value",name:e("sessionCount"),position:"right",axisLabel:{color:xt.chart.axis.label,formatter:l=>ku(l)},splitLine:{show:!1}}],series:[ze.seriesVisibility.inputTokens&&{name:e("inputTokens"),type:"line",smooth:!0,data:i.inputTokens,yAxisIndex:0,itemStyle:{color:xt.chart.colors[0]},lineStyle:{color:xt.chart.colors[0]}},ze.seriesVisibility.outputTokens&&{name:e("outputTokens"),type:"line",smooth:!0,data:i.outputTokens,yAxisIndex:0,itemStyle:{color:xt.chart.colors[1]},lineStyle:{color:xt.chart.colors[1]}},ze.seriesVisibility.totalTokens&&{name:e("totalTokens"),type:"line",smooth:!0,data:i.totalTokens,yAxisIndex:0,itemStyle:{color:xt.chart.colors[2]},lineStyle:{color:xt.chart.colors[2]}},ze.seriesVisibility.sessionCount&&{name:e("sessionCount"),type:"line",smooth:!0,data:i.sessionCounts,yAxisIndex:1,itemStyle:{color:xt.chart.colors[3]},lineStyle:{color:xt.chart.colors[3]}}].filter(Boolean)};return X.jsx("div",{children:X.jsx(M2t,{style:{height:400},onEvents:{dataZoom:o},option:s,notMerge:!0,lazyUpdate:!0})})});function tU(e,[t,r]){return Math.min(r,Math.max(t,e))}function Je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a||!a.defaultPrevented)return t==null?void 0:t(a)}}function VP(e,t=[]){let r=[];function n(i,o){const s=k.createContext(o);s.displayName=i+"Context";const l=r.length;r=[...r,o];const u=c=>{var y;const{scope:v,children:h,...d}=c,p=((y=v==null?void 0:v[e])==null?void 0:y[l])||s,g=k.useMemo(()=>d,Object.values(d));return X.jsx(p.Provider,{value:g,children:h})};u.displayName=i+"Provider";function f(c,v,h={}){var y;const{optional:d=!1}=h,p=((y=v==null?void 0:v[e])==null?void 0:y[l])||s,g=k.useContext(p);if(g)return g;if(o!==void 0)return o;if(!d)throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,f]}const a=()=>{const i=r.map(o=>k.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return k.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[n,L2t(a,...t)]}function L2t(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function eU(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function E2t(...e){return t=>{let r=!1;const n=e.map(a=>{const i=eU(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():eU(e[a],null)}}}}function Tr(...e){return k.useCallback(E2t(...e),e)}function q1(e){const t=k.forwardRef((r,n)=>{let{children:a,...i}=r,o=null,s=!1;const l=[];rU(a)&&typeof V0=="function"&&(a=V0(a._payload)),k.Children.forEach(a,v=>{var h;if(N2t(v)){s=!0;const d=v;let p="child"in d.props?d.props.child:d.props.children;rU(p)&&typeof V0=="function"&&(p=V0(p._payload)),o=R2t(d,p),l.push((h=o==null?void 0:o.props)==null?void 0:h.children)}else l.push(v)}),o?o=k.cloneElement(o,void 0,l):!s&&k.Children.count(a)===1&&k.isValidElement(a)&&(o=a);const u=o?P2t(o):void 0,f=Tr(n,u);if(!o){if(a||a===0)throw new Error(s?V2t(e):z2t(e));return a}const c=I2t(i,o.props??{});return o.type!==k.Fragment&&(c.ref=n?f:u),k.cloneElement(o,c)});return t.displayName=`${e}.Slot`,t}var O2t=Symbol.for("radix.slottable"),R2t=(e,t)=>{if("child"in e.props){const r=e.props.child;return k.isValidElement(r)?k.cloneElement(r,void 0,e.props.children(r.props.children)):null}return k.isValidElement(t)?t:null};function I2t(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function P2t(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function N2t(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O2t}var k2t=Symbol.for("react.lazy");function rU(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===k2t&&"_payload"in e&&B2t(e._payload)}function B2t(e){return typeof e=="object"&&e!==null&&"then"in e}var z2t=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,V2t=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,V0=AE[" use ".trim().toString()];function G2t(e){const t=e+"CollectionProvider",[r,n]=VP(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:g,children:y}=p,m=k.useRef(null),_=k.useRef(new Map).current;return X.jsx(a,{scope:g,itemMap:_,collectionRef:m,children:y})};o.displayName=t;const s=e+"CollectionSlot",l=q1(s),u=k.forwardRef((p,g)=>{const{scope:y,children:m}=p,_=i(s,y),S=Tr(g,_.collectionRef);return X.jsx(l,{ref:S,children:m})});u.displayName=s;const f=e+"CollectionItemSlot",c="data-radix-collection-item",v=q1(f),h=k.forwardRef((p,g)=>{const{scope:y,children:m,..._}=p,S=k.useRef(null),b=Tr(g,S),x=i(f,y);return k.useEffect(()=>(x.itemMap.set(S,{ref:S,..._}),()=>void x.itemMap.delete(S))),X.jsx(v,{[c]:"",ref:b,children:m})});h.displayName=f;function d(p){const g=i(e+"CollectionConsumer",p);return k.useCallback(()=>{const m=g.collectionRef.current;if(!m)return[];const _=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((x,w)=>_.indexOf(x.ref.current)-_.indexOf(w.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},d,n]}var H2t=k.createContext(void 0);function U2t(e){const t=k.useContext(H2t);return e||t||"ltr"}var F2t=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=F2t.reduce((e,t)=>{const r=q1(`Primitive.${t}`),n=k.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),X.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Y2t(e,t){e&&Ff.flushSync(()=>e.dispatchEvent(t))}function fs(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var j2t="DismissableLayer",cE="dismissableLayer.update",W2t="dismissableLayer.pointerDownOutside",$2t="dismissableLayer.focusOutside",nU,rK=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),nK=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,f=k.useContext(rK),[c,v]=k.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=k.useState({}),p=Tr(t,v),g=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=y?g.indexOf(y):-1,_=c?g.indexOf(c):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,b=_>=m,x=k.useRef(!1),w=K2t(M=>{i==null||i(M),s==null||s(M),M.defaultPrevented||l==null||l()},{ownerDocument:h,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:x,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(M=>{if(!(M instanceof Node))return!1;const E=[...f.branches].some(L=>L.contains(M));return b&&!E},[f.branches,b])}),A=Q2t(M=>{if(n&&x.current)return;const E=M.target;[...f.branches].some(R=>R.contains(E))||(o==null||o(M),s==null||s(M),M.defaultPrevented||l==null||l())},h),T=c?_===g.length-1:!1,C=fs(M=>{M.key==="Escape"&&(a==null||a(M),!M.defaultPrevented&&l&&(M.preventDefault(),l()))});return k.useEffect(()=>{if(T)return h.addEventListener("keydown",C,{capture:!0}),()=>h.removeEventListener("keydown",C,{capture:!0})},[h,T,C]),k.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(nU=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),aU(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(c),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=nU))}},[c,h,r,f]),k.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),aU())},[c,f]),k.useEffect(()=>{const M=()=>d({});return document.addEventListener(cE,M),()=>document.removeEventListener(cE,M)},[]),X.jsx(Ze.div,{...u,ref:p,style:{pointerEvents:S?b?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,w.onPointerDownCapture)})});nK.displayName=j2t;var X2t="DismissableLayerBranch",Z2t=k.forwardRef((e,t)=>{const r=k.useContext(rK),n=k.useRef(null),a=Tr(t,n);return k.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),X.jsx(Ze.div,{...e,ref:a})});Z2t.displayName=X2t;var q2t=()=>!0;function K2t(e,t){const{ownerDocument:r=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:i,shouldHandlePointerDownOutside:o=q2t}=t,s=fs(e),l=k.useRef(!1),u=k.useRef(!1),f=k.useRef(new Map),c=k.useRef(()=>{});return k.useEffect(()=>{function v(){u.current=!1,a.current=!1,f.current.clear()}function h(){return Array.from(f.current.values()).some(Boolean)}function d(_){if(!u.current)return;const S=_.target;S instanceof Node&&[...i].some(x=>x.contains(S))||f.current.set(_.type,!0),_.type==="click"&&window.setTimeout(()=>{u.current&&c.current()},0)}function p(_){u.current&&f.current.set(_.type,!1)}const g=_=>{if(_.target&&!l.current){let S=function(){r.removeEventListener("click",c.current);const x=h();v(),x||aK(W2t,s,b,{discrete:!0})};if(!o(_.target)){r.removeEventListener("click",c.current),v(),l.current=!1;return}const b={originalEvent:_};u.current=!0,a.current=n&&_.button===0,f.current.clear(),!n||_.button!==0?S():(r.removeEventListener("click",c.current),c.current=S,r.addEventListener("click",c.current,{once:!0}))}else r.removeEventListener("click",c.current),v();l.current=!1},y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const _ of y)r.addEventListener(_,d,!0),r.addEventListener(_,p);const m=window.setTimeout(()=>{r.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",g),r.removeEventListener("click",c.current);for(const _ of y)r.removeEventListener(_,d,!0),r.removeEventListener(_,p)}},[r,s,n,a,i,o]),{onPointerDownCapture:()=>l.current=!0}}function Q2t(e,t=globalThis==null?void 0:globalThis.document){const r=fs(e),n=k.useRef(!1);return k.useEffect(()=>{const a=i=>{i.target&&!n.current&&aK($2t,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function aU(){const e=new CustomEvent(cE);document.dispatchEvent(e)}function aK(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Y2t(a,i):a.dispatchEvent(i)}var G0=0,di=null;function J2t(){k.useEffect(()=>{di||(di={start:iU(),end:iU()});const{start:e,end:t}=di;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),G0++,()=>{G0===1&&(di==null||di.start.remove(),di==null||di.end.remove(),di=null),G0=Math.max(0,G0-1)}},[])}function iU(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wC="focusScope.autoFocusOnMount",TC="focusScope.autoFocusOnUnmount",oU={bubbles:!1,cancelable:!0},tLt="FocusScope",iK=k.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=k.useState(null),u=fs(a),f=fs(i),c=k.useRef(null),v=Tr(t,l),h=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(n){let p=function(_){if(h.paused||!s)return;const S=_.target;s.contains(S)?c.current=S:Es(c.current,{select:!0})},g=function(_){if(h.paused||!s)return;const S=_.relatedTarget;S!==null&&(s.contains(S)||Es(c.current,{select:!0}))},y=function(_){if(document.activeElement===document.body)for(const b of _)b.removedNodes.length>0&&Es(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const m=new MutationObserver(y);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),m.disconnect()}}},[n,s,h.paused]),k.useEffect(()=>{if(s){lU.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(wC,oU);s.addEventListener(wC,u),s.dispatchEvent(y),y.defaultPrevented||(eLt(oLt(oK(s)),{select:!0}),document.activeElement===p&&Es(s))}return()=>{s.removeEventListener(wC,u),setTimeout(()=>{const y=new CustomEvent(TC,oU);s.addEventListener(TC,f),s.dispatchEvent(y),y.defaultPrevented||Es(p??document.body,{select:!0}),s.removeEventListener(TC,f),lU.remove(h)},0)}}},[s,u,f,h]);const d=k.useCallback(p=>{if(!r&&!n||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const m=p.currentTarget,[_,S]=rLt(m);_&&S?!p.shiftKey&&y===S?(p.preventDefault(),r&&Es(_,{select:!0})):p.shiftKey&&y===_&&(p.preventDefault(),r&&Es(S,{select:!0})):y===m&&p.preventDefault()}},[r,n,h.paused]);return X.jsx(Ze.div,{tabIndex:-1,...o,ref:v,onKeyDown:d})});iK.displayName=tLt;function eLt(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Es(n,{select:t}),document.activeElement!==r)return}function rLt(e){const t=oK(e),r=sU(t,e),n=sU(t.reverse(),e);return[r,n]}function oK(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function sU(e,t){const r=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):nLt(n,{upTo:t})))return n}function nLt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aLt(e){return e instanceof HTMLInputElement&&"select"in e}function Es(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&aLt(e)&&t&&e.select()}}var lU=iLt();function iLt(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uU(e,t),e.unshift(t)},remove(t){var r;e=uU(e,t),(r=e[0])==null||r.resume()}}}function uU(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function oLt(e){return e.filter(t=>t.tagName!=="A")}var kr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},sLt=AE[" useId ".trim().toString()]||(()=>{}),lLt=0;function GP(e){const[t,r]=k.useState(sLt());return kr(()=>{r(n=>n??String(lLt++))},[e]),t?`radix-${t}`:""}const uLt=["top","right","bottom","left"],El=Math.min,On=Math.max,K1=Math.round,H0=Math.floor,ji=e=>({x:e,y:e}),fLt={left:"right",right:"left",bottom:"top",top:"bottom"};function vE(e,t,r){return On(e,El(t,r))}function cs(e,t){return typeof e=="function"?e(t):e}function vs(e){return e.split("-")[0]}function ud(e){return e.split("-")[1]}function HP(e){return e==="x"?"y":"x"}function UP(e){return e==="y"?"height":"width"}function Oi(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function FP(e){return HP(Oi(e))}function cLt(e,t,r){r===void 0&&(r=!1);const n=ud(e),a=FP(e),i=UP(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Q1(o)),[o,Q1(o)]}function vLt(e){const t=Q1(e);return[hE(e),t,hE(t)]}function hE(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const fU=["left","right"],cU=["right","left"],hLt=["top","bottom"],dLt=["bottom","top"];function pLt(e,t,r){switch(e){case"top":case"bottom":return r?t?cU:fU:t?fU:cU;case"left":case"right":return t?hLt:dLt;default:return[]}}function gLt(e,t,r,n){const a=ud(e);let i=pLt(vs(e),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(hE)))),i}function Q1(e){const t=vs(e);return fLt[t]+e.slice(t.length)}function yLt(e){return{top:0,right:0,bottom:0,left:0,...e}}function sK(e){return typeof e!="number"?yLt(e):{top:e,right:e,bottom:e,left:e}}function J1(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function vU(e,t,r){let{reference:n,floating:a}=e;const i=Oi(t),o=FP(t),s=UP(o),l=vs(t),u=i==="y",f=n.x+n.width/2-a.width/2,c=n.y+n.height/2-a.height/2,v=n[s]/2-a[s]/2;let h;switch(l){case"top":h={x:f,y:n.y-a.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:c};break;case"left":h={x:n.x-a.width,y:c};break;default:h={x:n.x,y:n.y}}switch(ud(t)){case"start":h[o]-=v*(r&&u?-1:1);break;case"end":h[o]+=v*(r&&u?-1:1);break}return h}async function mLt(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:v=!1,padding:h=0}=cs(t,e),d=sK(h),g=s[v?c==="floating"?"reference":"floating":c],y=J1(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),m=c==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},b=J1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:_,strategy:l}):m);return{top:(y.top-b.top+d.top)/S.y,bottom:(b.bottom-y.bottom+d.bottom)/S.y,left:(y.left-b.left+d.left)/S.x,right:(b.right-y.right+d.right)/S.x}}const _Lt=50,SLt=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=o.detectOverflow?o:{...o,detectOverflow:mLt},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:c}=vU(u,n,l),v=n,h=0;const d={};for(let p=0;p<i.length;p++){const g=i[p];if(!g)continue;const{name:y,fn:m}=g,{x:_,y:S,data:b,reset:x}=await m({x:f,y:c,initialPlacement:n,placement:v,strategy:a,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});f=_??f,c=S??c,d[y]={...d[y],...b},x&&h<_Lt&&(h++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:f,y:c}=vU(u,v,l)),p=-1)}return{x:f,y:c,placement:v,strategy:a,middlewareData:d}},bLt=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=cs(e,t)||{};if(u==null)return{};const c=sK(f),v={x:r,y:n},h=FP(a),d=UP(h),p=await o.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",_=g?"clientHeight":"clientWidth",S=i.reference[d]+i.reference[h]-v[h]-i.floating[d],b=v[h]-i.reference[h],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let w=x?x[_]:0;(!w||!await(o.isElement==null?void 0:o.isElement(x)))&&(w=s.floating[_]||i.floating[d]);const A=S/2-b/2,T=w/2-p[d]/2-1,C=El(c[y],T),M=El(c[m],T),E=C,L=w-p[d]-M,R=w/2-p[d]/2+A,I=vE(E,R,L),O=!l.arrow&&ud(a)!=null&&R!==I&&i.reference[d]/2-(R<E?C:M)-p[d]/2<0,N=O?R<E?R-E:R-L:0;return{[h]:v[h]+N,data:{[h]:I,centerOffset:R-I-N,...O&&{alignmentOffset:N}},reset:O}}}),xLt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0,...g}=cs(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=vs(a),m=Oi(s),_=vs(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=v||(_||!p?[Q1(s)]:vLt(s)),x=d!=="none";!v&&x&&b.push(...gLt(s,p,d,S));const w=[s,...b],A=await l.detectOverflow(t,g),T=[];let C=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&T.push(A[y]),c){const R=cLt(a,o,S);T.push(A[R[0]],A[R[1]])}if(C=[...C,{placement:a,overflows:T}],!T.every(R=>R<=0)){var M,E;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,I=w[R];if(I&&(!(c==="alignment"?m!==Oi(I):!1)||C.every(P=>Oi(P.placement)===m?P.overflows[0]>0:!0)))return{data:{index:R,overflows:C},reset:{placement:I}};let O=(E=C.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:E.placement;if(!O)switch(h){case"bestFit":{var L;const N=(L=C.filter(P=>{if(x){const B=Oi(P.placement);return B===m||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,z)=>B+z,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:L[0];N&&(O=N);break}case"initialPlacement":O=s;break}if(a!==O)return{reset:{placement:O}}}return{}}}};function hU(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dU(e){return uLt.some(t=>e[t]>=0)}const wLt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:a="referenceHidden",...i}=cs(e,t);switch(a){case"referenceHidden":{const o=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=hU(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:dU(s)}}}case"escaped":{const o=await n.detectOverflow(t,{...i,altBoundary:!0}),s=hU(o,r.floating);return{data:{escapedOffsets:s,escaped:dU(s)}}}default:return{}}}}},lK=new Set(["left","top"]);async function TLt(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=vs(r),s=ud(r),l=Oi(r)==="y",u=lK.has(o)?-1:1,f=i&&l?-1:1,c=cs(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:d}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof d=="number"&&(h=s==="end"?d*-1:d),l?{x:h*f,y:v*u}:{x:v*u,y:h*f}}const ALt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await TLt(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},CLt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:m,y:_}=y;return{x:m,y:_}}},...u}=cs(e,t),f={x:r,y:n},c=await i.detectOverflow(t,u),v=Oi(vs(a)),h=HP(v);let d=f[h],p=f[v];if(o){const y=h==="y"?"top":"left",m=h==="y"?"bottom":"right",_=d+c[y],S=d-c[m];d=vE(_,d,S)}if(s){const y=v==="y"?"top":"left",m=v==="y"?"bottom":"right",_=p+c[y],S=p-c[m];p=vE(_,p,S)}const g=l.fn({...t,[h]:d,[v]:p});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:o,[v]:s}}}}}},MLt=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=cs(e,t),f={x:r,y:n},c=Oi(a),v=HP(c);let h=f[v],d=f[c];const p=cs(s,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const _=v==="y"?"height":"width",S=i.reference[v]-i.floating[_]+g.mainAxis,b=i.reference[v]+i.reference[_]-g.mainAxis;h<S?h=S:h>b&&(h=b)}if(u){var y,m;const _=v==="y"?"width":"height",S=lK.has(vs(a)),b=i.reference[c]-i.floating[_]+(S&&((y=o.offset)==null?void 0:y[c])||0)+(S?0:g.crossAxis),x=i.reference[c]+i.reference[_]+(S?0:((m=o.offset)==null?void 0:m[c])||0)-(S?g.crossAxis:0);d<b?d=b:d>x&&(d=x)}return{[v]:h,[c]:d}}}},DLt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...u}=cs(e,t),f=await o.detectOverflow(t,u),c=vs(a),v=ud(a),h=Oi(a)==="y",{width:d,height:p}=i.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=v===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=v==="end"?"top":"bottom");const m=p-f.top-f.bottom,_=d-f.left-f.right,S=El(p-f[g],m),b=El(d-f[y],_),x=!t.middlewareData.shift;let w=S,A=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=_),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(w=m),x&&!v){const C=On(f.left,0),M=On(f.right,0),E=On(f.top,0),L=On(f.bottom,0);h?A=d-2*(C!==0||M!==0?C+M:On(f.left,f.right)):w=p-2*(E!==0||L!==0?E+L:On(f.top,f.bottom))}await l({...t,availableWidth:A,availableHeight:w});const T=await o.getDimensions(s.floating);return d!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Bx(){return typeof window<"u"}function fd(e){return uK(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lo(e){var t;return(t=(uK(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uK(e){return Bx()?e instanceof Node||e instanceof $n(e).Node:!1}function ti(e){return Bx()?e instanceof Element||e instanceof $n(e).Element:!1}function ms(e){return Bx()?e instanceof HTMLElement||e instanceof $n(e).HTMLElement:!1}function pU(e){return!Bx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}function Qy(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function LLt(e){return/^(table|td|th)$/.test(fd(e))}function zx(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ELt=/transform|translate|scale|rotate|perspective|filter/,OLt=/paint|layout|strict|content/,Su=e=>!!e&&e!=="none";let AC;function YP(e){const t=ti(e)?ei(e):e;return Su(t.transform)||Su(t.translate)||Su(t.scale)||Su(t.rotate)||Su(t.perspective)||!jP()&&(Su(t.backdropFilter)||Su(t.filter))||ELt.test(t.willChange||"")||OLt.test(t.contain||"")}function RLt(e){let t=Ol(e);for(;ms(t)&&!Mh(t);){if(YP(t))return t;if(zx(t))return null;t=Ol(t)}return null}function jP(){return AC==null&&(AC=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),AC}function Mh(e){return/^(html|body|#document)$/.test(fd(e))}function ei(e){return $n(e).getComputedStyle(e)}function Vx(e){return ti(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ol(e){if(fd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pU(e)&&e.host||lo(e);return pU(t)?t.host:t}function fK(e){const t=Ol(e);return Mh(t)?e.ownerDocument?e.ownerDocument.body:e.body:ms(t)&&Qy(t)?t:fK(t)}function sy(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=fK(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=$n(a);if(i){const s=dE(o);return t.concat(o,o.visualViewport||[],Qy(a)?a:[],s&&r?sy(s):[])}else return t.concat(a,sy(a,[],r))}function dE(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cK(e){const t=ei(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=ms(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=K1(r)!==i||K1(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function WP(e){return ti(e)?e:e.contextElement}function Yv(e){const t=WP(e);if(!ms(t))return ji(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=cK(t);let o=(i?K1(r.width):r.width)/n,s=(i?K1(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const ILt=ji(0);function vK(e){const t=$n(e);return!jP()||!t.visualViewport?ILt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PLt(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==$n(e)?!1:t}function Hf(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=WP(e);let o=ji(1);t&&(n?ti(n)&&(o=Yv(n)):o=Yv(e));const s=PLt(i,r,n)?vK(i):ji(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,f=a.width/o.x,c=a.height/o.y;if(i){const v=$n(i),h=n&&ti(n)?$n(n):n;let d=v,p=dE(d);for(;p&&n&&h!==d;){const g=Yv(p),y=p.getBoundingClientRect(),m=ei(p),_=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x,S=y.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,f*=g.x,c*=g.y,l+=_,u+=S,d=$n(p),p=dE(d)}}return J1({width:f,height:c,x:l,y:u})}function Gx(e,t){const r=Vx(e).scrollLeft;return t?t.left+r:Hf(lo(e)).left+r}function hK(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Gx(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function NLt(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",o=lo(n),s=t?zx(t.floating):!1;if(n===o||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=ji(1);const f=ji(0),c=ms(n);if((c||!c&&!i)&&((fd(n)!=="body"||Qy(o))&&(l=Vx(n)),c)){const h=Hf(n);u=Yv(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const v=o&&!c&&!i?hK(o,l):ji(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+f.x+v.x,y:r.y*u.y-l.scrollTop*u.y+f.y+v.y}}function kLt(e){return Array.from(e.getClientRects())}function BLt(e){const t=lo(e),r=Vx(e),n=e.ownerDocument.body,a=On(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=On(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Gx(e);const s=-r.scrollTop;return ei(n).direction==="rtl"&&(o+=On(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}const gU=25;function zLt(e,t){const r=$n(e),n=lo(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const f=jP();(!f||f&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const u=Gx(n);if(u<=0){const f=n.ownerDocument,c=f.body,v=getComputedStyle(c),h=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,d=Math.abs(n.clientWidth-c.clientWidth-h);d<=gU&&(i-=d)}else u<=gU&&(i+=u);return{width:i,height:o,x:s,y:l}}function VLt(e,t){const r=Hf(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=ms(e)?Yv(e):ji(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:o,height:s,x:l,y:u}}function yU(e,t,r){let n;if(t==="viewport")n=zLt(e,r);else if(t==="document")n=BLt(lo(e));else if(ti(t))n=VLt(t,r);else{const a=vK(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return J1(n)}function dK(e,t){const r=Ol(e);return r===t||!ti(r)||Mh(r)?!1:ei(r).position==="fixed"||dK(r,t)}function GLt(e,t){const r=t.get(e);if(r)return r;let n=sy(e,[],!1).filter(s=>ti(s)&&fd(s)!=="body"),a=null;const i=ei(e).position==="fixed";let o=i?Ol(e):e;for(;ti(o)&&!Mh(o);){const s=ei(o),l=YP(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Qy(o)&&!l&&dK(e,o))?n=n.filter(f=>f!==o):a=s,o=Ol(o)}return t.set(e,n),n}function HLt(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?zx(t)?[]:GLt(t,this._c):[].concat(r),n],s=yU(t,o[0],a);let l=s.top,u=s.right,f=s.bottom,c=s.left;for(let v=1;v<o.length;v++){const h=yU(t,o[v],a);l=On(h.top,l),u=El(h.right,u),f=El(h.bottom,f),c=On(h.left,c)}return{width:u-c,height:f-l,x:c,y:l}}function ULt(e){const{width:t,height:r}=cK(e);return{width:t,height:r}}function FLt(e,t,r){const n=ms(t),a=lo(t),i=r==="fixed",o=Hf(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ji(0);function u(){l.x=Gx(a)}if(n||!n&&!i)if((fd(t)!=="body"||Qy(a))&&(s=Vx(t)),n){const h=Hf(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else a&&u();i&&!n&&a&&u();const f=a&&!n&&!i?hK(a,s):ji(0),c=o.left+s.scrollLeft-l.x-f.x,v=o.top+s.scrollTop-l.y-f.y;return{x:c,y:v,width:o.width,height:o.height}}function CC(e){return ei(e).position==="static"}function mU(e,t){if(!ms(e)||ei(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return lo(e)===r&&(r=r.ownerDocument.body),r}function pK(e,t){const r=$n(e);if(zx(e))return r;if(!ms(e)){let a=Ol(e);for(;a&&!Mh(a);){if(ti(a)&&!CC(a))return a;a=Ol(a)}return r}let n=mU(e,t);for(;n&&LLt(n)&&CC(n);)n=mU(n,t);return n&&Mh(n)&&CC(n)&&!YP(n)?r:n||RLt(e)||r}const YLt=async function(e){const t=this.getOffsetParent||pK,r=this.getDimensions,n=await r(e.floating);return{reference:FLt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jLt(e){return ei(e).direction==="rtl"}const WLt={convertOffsetParentRelativeRectToViewportRelativeRect:NLt,getDocumentElement:lo,getClippingRect:HLt,getOffsetParent:pK,getElementRects:YLt,getClientRects:kLt,getDimensions:ULt,getScale:Yv,isElement:ti,isRTL:jLt};function gK(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $Lt(e,t){let r=null,n;const a=lo(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:f,top:c,width:v,height:h}=u;if(s||t(),!v||!h)return;const d=H0(c),p=H0(a.clientWidth-(f+v)),g=H0(a.clientHeight-(c+h)),y=H0(f),_={rootMargin:-d+"px "+-p+"px "+-g+"px "+-y+"px",threshold:On(0,El(1,l))||1};let S=!0;function b(x){const w=x[0].intersectionRatio;if(w!==l){if(!S)return o();w?o(!1,w):n=setTimeout(()=>{o(!1,1e-7)},1e3)}w===1&&!gK(u,e.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(b,{..._,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,_)}r.observe(e)}return o(!0),i}function XLt(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=WP(e),f=a||i?[...u?sy(u):[],...t?sy(t):[]]:[];f.forEach(y=>{a&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const c=u&&s?$Lt(u,r):null;let v=-1,h=null;o&&(h=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),r()}),u&&!l&&h.observe(u),t&&h.observe(t));let d,p=l?Hf(e):null;l&&g();function g(){const y=Hf(e);p&&!gK(p,y)&&r(),p=y,d=requestAnimationFrame(g)}return r(),()=>{var y;f.forEach(m=>{a&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),c==null||c(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(d)}}const ZLt=ALt,qLt=CLt,KLt=xLt,QLt=DLt,JLt=wLt,_U=bLt,tEt=MLt,eEt=(e,t,r)=>{const n=new Map,a={platform:WLt,...r},i={...a.platform,_c:n};return SLt(e,t,{...a,platform:i})};var rEt=typeof document<"u",nEt=function(){},k_=rEt?k.useLayoutEffect:nEt;function tb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!tb(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!tb(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yK(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function SU(e,t){const r=yK(e);return Math.round(t*r)/r}function MC(e){const t=k.useRef(e);return k_(()=>{t.current=e}),t}function aEt(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=k.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=k.useState(n);tb(v,n)||h(n);const[d,p]=k.useState(null),[g,y]=k.useState(null),m=k.useCallback(P=>{P!==x.current&&(x.current=P,p(P))},[]),_=k.useCallback(P=>{P!==w.current&&(w.current=P,y(P))},[]),S=i||d,b=o||g,x=k.useRef(null),w=k.useRef(null),A=k.useRef(f),T=l!=null,C=MC(l),M=MC(a),E=MC(u),L=k.useCallback(()=>{if(!x.current||!w.current)return;const P={placement:t,strategy:r,middleware:v};M.current&&(P.platform=M.current),eEt(x.current,w.current,P).then(B=>{const z={...B,isPositioned:E.current!==!1};R.current&&!tb(A.current,z)&&(A.current=z,Ff.flushSync(()=>{c(z)}))})},[v,t,r,M,E]);k_(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(P=>({...P,isPositioned:!1})))},[u]);const R=k.useRef(!1);k_(()=>(R.current=!0,()=>{R.current=!1}),[]),k_(()=>{if(S&&(x.current=S),b&&(w.current=b),S&&b){if(C.current)return C.current(S,b,L);L()}},[S,b,L,C,T]);const I=k.useMemo(()=>({reference:x,floating:w,setReference:m,setFloating:_}),[m,_]),O=k.useMemo(()=>({reference:S,floating:b}),[S,b]),N=k.useMemo(()=>{const P={position:r,left:0,top:0};if(!O.floating)return P;const B=SU(O.floating,f.x),z=SU(O.floating,f.y);return s?{...P,transform:"translate("+B+"px, "+z+"px)",...yK(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:z}},[r,s,O.floating,f.x,f.y]);return k.useMemo(()=>({...f,update:L,refs:I,elements:O,floatingStyles:N}),[f,L,I,O,N])}const iEt=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?_U({element:n.current,padding:a}).fn(r):{}:n?_U({element:n,padding:a}).fn(r):{}}}},oEt=(e,t)=>{const r=ZLt(e);return{name:r.name,fn:r.fn,options:[e,t]}},sEt=(e,t)=>{const r=qLt(e);return{name:r.name,fn:r.fn,options:[e,t]}},lEt=(e,t)=>({fn:tEt(e).fn,options:[e,t]}),uEt=(e,t)=>{const r=KLt(e);return{name:r.name,fn:r.fn,options:[e,t]}},fEt=(e,t)=>{const r=QLt(e);return{name:r.name,fn:r.fn,options:[e,t]}},cEt=(e,t)=>{const r=JLt(e);return{name:r.name,fn:r.fn,options:[e,t]}},vEt=(e,t)=>{const r=iEt(e);return{name:r.name,fn:r.fn,options:[e,t]}};var hEt="Arrow",mK=k.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return X.jsx(Ze.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:X.jsx("polygon",{points:"0,0 30,0 15,10"})})});mK.displayName=hEt;var dEt=mK;function pEt(e){const[t,r]=k.useState(void 0);return kr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var $P="Popper",[_K,SK]=VP($P),[gEt,bK]=_K($P),xK=e=>{const{__scopePopper:t,children:r}=e,[n,a]=k.useState(null),[i,o]=k.useState(void 0);return X.jsx(gEt,{scope:t,anchor:n,onAnchorChange:a,placementState:i,setPlacementState:o,children:r})};xK.displayName=$P;var wK="PopperAnchor",TK=k.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=bK(wK,r),o=k.useRef(null),s=i.onAnchorChange,l=k.useCallback(d=>{o.current=d,d&&s(d)},[s]),u=Tr(t,l),f=k.useRef(null);k.useEffect(()=>{if(!n)return;const d=f.current;f.current=n.current,d!==f.current&&s(f.current)});const c=i.placementState&&ZP(i.placementState),v=c==null?void 0:c[0],h=c==null?void 0:c[1];return n?null:X.jsx(Ze.div,{"data-radix-popper-side":v,"data-radix-popper-align":h,...a,ref:u})});TK.displayName=wK;var XP="PopperContent",[yEt,mEt]=_K(XP),AK=k.forwardRef((e,t)=>{var it,Q,st,Z,at,Ht;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:d,...p}=e,g=bK(XP,r),[y,m]=k.useState(null),_=Tr(t,m),[S,b]=k.useState(null),x=pEt(S),w=(x==null?void 0:x.width)??0,A=(x==null?void 0:x.height)??0,T=n+(i!=="center"?"-"+i:""),C=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(u)?u:[u],E=M.length>0,L={padding:C,boundary:M.filter(SEt),altBoundary:E},{refs:R,floatingStyles:I,placement:O,isPositioned:N,middlewareData:P}=aEt({strategy:"fixed",placement:T,whileElementsMounted:(...Ct)=>XLt(...Ct,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[oEt({mainAxis:a+A,alignmentAxis:o}),l&&sEt({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?lEt():void 0,...L}),l&&uEt({...L}),fEt({...L,apply:({elements:Ct,rects:Ut,availableWidth:Zt,availableHeight:_e})=>{const{width:Qr,height:Fr}=Ut.reference,ta=Ct.floating.style;ta.setProperty("--radix-popper-available-width",`${Zt}px`),ta.setProperty("--radix-popper-available-height",`${_e}px`),ta.setProperty("--radix-popper-anchor-width",`${Qr}px`),ta.setProperty("--radix-popper-anchor-height",`${Fr}px`)}}),S&&vEt({element:S,padding:s}),bEt({arrowWidth:w,arrowHeight:A}),v&&cEt({strategy:"referenceHidden",...L,boundary:E?L.boundary:void 0})]}),B=g.setPlacementState;kr(()=>(B(O),()=>{B(void 0)}),[O,B]);const[z,H]=ZP(O),F=fs(d);kr(()=>{N&&(F==null||F())},[N,F]);const $=(it=P.arrow)==null?void 0:it.x,j=(Q=P.arrow)==null?void 0:Q.y,tt=((st=P.arrow)==null?void 0:st.centerOffset)!==0,[_t,lt]=k.useState();return kr(()=>{y&<(window.getComputedStyle(y).zIndex)},[y]),X.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:N?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_t,"--radix-popper-transform-origin":[(Z=P.transformOrigin)==null?void 0:Z.x,(at=P.transformOrigin)==null?void 0:at.y].join(" "),...((Ht=P.hide)==null?void 0:Ht.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:X.jsx(yEt,{scope:r,placedSide:z,placedAlign:H,onArrowChange:b,arrowX:$,arrowY:j,shouldHideArrow:tt,children:X.jsx(Ze.div,{"data-side":z,"data-align":H,...p,ref:_,style:{...p.style,animation:N?void 0:"none"}})})})});AK.displayName=XP;var CK="PopperArrow",_Et={top:"bottom",right:"left",bottom:"top",left:"right"},MK=k.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=mEt(CK,n),o=_Et[i.placedSide];return X.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:X.jsx(dEt,{...a,ref:r,style:{...a.style,display:"block"}})})});MK.displayName=CK;function SEt(e){return e!==null}var bEt=e=>({name:"transformOrigin",options:e,fn(t){var g,y,m;const{placement:r,rects:n,middlewareData:a}=t,o=((g=a.arrow)==null?void 0:g.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,f]=ZP(r),c={start:"0%",center:"50%",end:"100%"}[f],v=(((y=a.arrow)==null?void 0:y.x)??0)+s/2,h=(((m=a.arrow)==null?void 0:m.y)??0)+l/2;let d="",p="";return u==="bottom"?(d=o?c:`${v}px`,p=`${-l}px`):u==="top"?(d=o?c:`${v}px`,p=`${n.floating.height+l}px`):u==="right"?(d=`${-l}px`,p=o?c:`${h}px`):u==="left"&&(d=`${n.floating.width+l}px`,p=o?c:`${h}px`),{data:{x:d,y:p}}}});function ZP(e){const[t,r="center"]=e.split("-");return[t,r]}var xEt=xK,wEt=TK,TEt=AK,AEt=MK,CEt="Portal",DK=k.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[a,i]=k.useState(!1);kr(()=>i(!0),[]);const o=r||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?Ff.createPortal(X.jsx(Ze.div,{...n,ref:t}),o):null});DK.displayName=CEt;function MEt(e,t){return k.useReducer((r,n)=>t[r][n]??r,e)}var LK=e=>{const{present:t,children:r}=e,n=DEt(t),a=typeof r=="function"?r({present:n.isPresent}):k.Children.only(r),i=LEt(n.ref,EEt(a));return typeof r=="function"||n.isPresent?k.cloneElement(a,{ref:i}):null};LK.displayName="Presence";function DEt(e){const[t,r]=k.useState(),n=k.useRef(null),a=k.useRef(e),i=k.useRef("none"),o=k.useRef(void 0),s=e?"mounted":"unmounted",[l,u]=MEt(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{l==="mounted"?(i.current=o.current??Jd(n.current),o.current=void 0):i.current="none"},[l]),kr(()=>{const f=n.current,c=a.current;if(c!==e){const h=i.current,d=Jd(f);e?(o.current=d,u("MOUNT")):d==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),kr(()=>{if(t){let f;const c=t.ownerDocument.defaultView??window,v=d=>{const g=Jd(n.current).includes(CSS.escape(d.animationName));if(d.target===t&&g&&(u("ANIMATION_END"),!a.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",f=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=d=>{d.target===t&&(i.current=Jd(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{c.clearTimeout(f),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:k.useCallback(f=>{if(f){const c=getComputedStyle(f);n.current=c,o.current=Jd(c)}else n.current=null;r(f)},[])}}function bU(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function LEt(...e){const t=k.useRef(e);return t.current=e,k.useCallback(r=>{const n=t.current;let a=!1;const i=n.map(o=>{const s=bU(o,r);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():bU(n[o],null)}}},[])}function Jd(e){return(e==null?void 0:e.animationName)||"none"}function EEt(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var OEt=AE[" useInsertionEffect ".trim().toString()]||kr;function xU({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,o]=REt({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:a;{const f=k.useRef(e!==void 0);k.useEffect(()=>{const c=f.current;c!==s&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,n])}const u=k.useCallback(f=>{var c;if(s){const v=IEt(f)?f(e):f;v!==e&&((c=o.current)==null||c.call(o,v))}else i(f)},[s,e,i,o]);return[l,u]}function REt({defaultProp:e,onChange:t}){const[r,n]=k.useState(e),a=k.useRef(r),i=k.useRef(t);return OEt(()=>{i.current=t},[t]),k.useEffect(()=>{var o;a.current!==r&&((o=i.current)==null||o.call(i,r),a.current=r)},[r,a]),[r,n,i]}function IEt(e){return typeof e=="function"}function PEt(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var EK=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),NEt="VisuallyHidden",kEt=k.forwardRef((e,t)=>X.jsx(Ze.span,{...e,ref:t,style:{...EK,...e.style}}));kEt.displayName=NEt;var BEt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$c=new WeakMap,U0=new WeakMap,F0={},DC=0,OK=function(e){return e&&(e.host||OK(e.parentNode))},zEt=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=OK(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},VEt=function(e,t,r,n){var a=zEt(t,Array.isArray(e)?e:[e]);F0[r]||(F0[r]=new WeakMap);var i=F0[r],o=[],s=new Set,l=new Set(a),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};a.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(v){if(s.has(v))f(v);else try{var h=v.getAttribute(n),d=h!==null&&h!=="false",p=($c.get(v)||0)+1,g=(i.get(v)||0)+1;$c.set(v,p),i.set(v,g),o.push(v),p===1&&d&&U0.set(v,!0),g===1&&v.setAttribute(r,"true"),d||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return f(t),s.clear(),DC++,function(){o.forEach(function(c){var v=$c.get(c)-1,h=i.get(c)-1;$c.set(c,v),i.set(c,h),v||(U0.has(c)||c.removeAttribute(n),U0.delete(c)),h||c.removeAttribute(r)}),DC--,DC||($c=new WeakMap,$c=new WeakMap,U0=new WeakMap,F0={})}},GEt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=BEt(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),VEt(n,a,r,"aria-hidden")):function(){return null}},B_="right-scroll-bar-position",z_="width-before-scroll-bar",HEt="with-scroll-bars-hidden",UEt="--removed-body-scroll-bar-size";function LC(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FEt(e,t){var r=k.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var YEt=typeof window<"u"?k.useLayoutEffect:k.useEffect,wU=new WeakMap;function jEt(e,t){var r=FEt(null,function(n){return e.forEach(function(a){return LC(a,n)})});return YEt(function(){var n=wU.get(r);if(n){var a=new Set(n),i=new Set(e),o=r.current;a.forEach(function(s){i.has(s)||LC(s,null)}),i.forEach(function(s){a.has(s)||LC(s,o)})}wU.set(r,e)},[e]),r}function WEt(e){return e}function $Et(e,t){t===void 0&&(t=WEt);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(i),o=r}var l=function(){var f=o;o=[],f.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(f){o.push(f),u()},filter:function(f){return o=o.filter(f),r}}}};return a}function XEt(e){e===void 0&&(e={});var t=$Et(null);return t.options=Nn({async:!0,ssr:!1},e),t}var RK=function(e){var t=e.sideCar,r=NO(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return k.createElement(n,Nn({},r))};RK.isSideCarExport=!0;function ZEt(e,t){return e.useMedium(t),RK}var IK=XEt(),EC=function(){},Hx=k.forwardRef(function(e,t){var r=k.useRef(null),n=k.useState({onScrollCapture:EC,onWheelCapture:EC,onTouchMoveCapture:EC}),a=n[0],i=n[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,v=e.sideCar,h=e.noRelative,d=e.noIsolation,p=e.inert,g=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,_=e.gapMode,S=NO(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=v,x=jEt([r,t]),w=Nn(Nn({},S),a);return k.createElement(k.Fragment,null,f&&k.createElement(b,{sideCar:IK,removeScrollBar:u,shards:c,noRelative:h,noIsolation:d,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:_}),o?k.cloneElement(k.Children.only(s),Nn(Nn({},w),{ref:x})):k.createElement(m,Nn({},w,{className:l,ref:x}),s))});Hx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hx.classNames={fullWidth:z_,zeroRight:B_};var qEt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KEt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qEt();return t&&e.setAttribute("nonce",t),e}function QEt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JEt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tOt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=KEt())&&(QEt(t,r),JEt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eOt=function(){var e=tOt();return function(t,r){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},PK=function(){var e=eOt(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},rOt={left:0,top:0,right:0,gap:0},OC=function(e){return parseInt(e||"",10)||0},nOt=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[OC(r),OC(n),OC(a)]},aOt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rOt;var t=nOt(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},iOt=PK(),jv="data-scroll-locked",oOt=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
193
|
+
.`.concat(HEt,` {
|
|
194
|
+
overflow: hidden `).concat(n,`;
|
|
195
|
+
padding-right: `).concat(s,"px ").concat(n,`;
|
|
196
|
+
}
|
|
197
|
+
body[`).concat(jv,`] {
|
|
198
|
+
overflow: hidden `).concat(n,`;
|
|
199
|
+
overscroll-behavior: contain;
|
|
200
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
201
|
+
padding-left: `.concat(a,`px;
|
|
202
|
+
padding-top: `).concat(i,`px;
|
|
203
|
+
padding-right: `).concat(o,`px;
|
|
204
|
+
margin-left:0;
|
|
205
|
+
margin-top:0;
|
|
206
|
+
margin-right: `).concat(s,"px ").concat(n,`;
|
|
207
|
+
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.`).concat(B_,` {
|
|
211
|
+
right: `).concat(s,"px ").concat(n,`;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.`).concat(z_,` {
|
|
215
|
+
margin-right: `).concat(s,"px ").concat(n,`;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.`).concat(B_," .").concat(B_,` {
|
|
219
|
+
right: 0 `).concat(n,`;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.`).concat(z_," .").concat(z_,` {
|
|
223
|
+
margin-right: 0 `).concat(n,`;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
body[`).concat(jv,`] {
|
|
227
|
+
`).concat(UEt,": ").concat(s,`px;
|
|
228
|
+
}
|
|
229
|
+
`)},TU=function(){var e=parseInt(document.body.getAttribute(jv)||"0",10);return isFinite(e)?e:0},sOt=function(){k.useEffect(function(){return document.body.setAttribute(jv,(TU()+1).toString()),function(){var e=TU()-1;e<=0?document.body.removeAttribute(jv):document.body.setAttribute(jv,e.toString())}},[])},lOt=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;sOt();var i=k.useMemo(function(){return aOt(a)},[a]);return k.createElement(iOt,{styles:oOt(i,!t,a,r?"":"!important")})},pE=!1;if(typeof window<"u")try{var Y0=Object.defineProperty({},"passive",{get:function(){return pE=!0,!0}});window.addEventListener("test",Y0,Y0),window.removeEventListener("test",Y0,Y0)}catch{pE=!1}var Xc=pE?{passive:!1}:!1,uOt=function(e){return e.tagName==="TEXTAREA"},NK=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uOt(e)&&r[t]==="visible")},fOt=function(e){return NK(e,"overflowY")},cOt=function(e){return NK(e,"overflowX")},AU=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=kK(e,n);if(a){var i=BK(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},vOt=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},hOt=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},kK=function(e,t){return e==="v"?fOt(t):cOt(t)},BK=function(e,t){return e==="v"?vOt(t):hOt(t)},dOt=function(e,t){return e==="h"&&t==="rtl"?-1:1},pOt=function(e,t,r,n,a){var i=dOt(e,window.getComputedStyle(t).direction),o=i*n,s=r.target,l=t.contains(s),u=!1,f=o>0,c=0,v=0;do{if(!s)break;var h=BK(e,s),d=h[0],p=h[1],g=h[2],y=p-g-i*d;(d||y)&&kK(e,s)&&(c+=y,v+=d);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(v)<1)&&(u=!0),u},j0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},CU=function(e){return[e.deltaX,e.deltaY]},MU=function(e){return e&&"current"in e?e.current:e},gOt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yOt=function(e){return`
|
|
230
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
231
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
232
|
+
`)},mOt=0,Zc=[];function _Ot(e){var t=k.useRef([]),r=k.useRef([0,0]),n=k.useRef(),a=k.useState(mOt++)[0],i=k.useState(PK)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=Sit([e.lockRef.current],(e.shards||[]).map(MU),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=j0(p),m=r.current,_="deltaX"in p?p.deltaX:m[0]-y[0],S="deltaY"in p?p.deltaY:m[1]-y[1],b,x=p.target,w=Math.abs(_)>Math.abs(S)?"h":"v";if("touches"in p&&w==="h"&&x.type==="range")return!1;var A=window.getSelection(),T=A&&A.anchorNode,C=T?T===x||T.contains(x):!1;if(C)return!1;var M=AU(w,x);if(!M)return!0;if(M?b=w:(b=w==="v"?"h":"v",M=AU(w,x)),!M)return!1;if(!n.current&&"changedTouches"in p&&(_||S)&&(n.current=b),!b)return!0;var E=n.current||b;return pOt(E,g,p,E==="h"?_:S)},[]),l=k.useCallback(function(p){var g=p;if(!(!Zc.length||Zc[Zc.length-1]!==i)){var y="deltaY"in g?CU(g):j0(g),m=t.current.filter(function(b){return b.name===g.type&&(b.target===g.target||g.target===b.shadowParent)&&gOt(b.delta,y)})[0];if(m&&m.should){g.cancelable&&g.preventDefault();return}if(!m){var _=(o.current.shards||[]).map(MU).filter(Boolean).filter(function(b){return b.contains(g.target)}),S=_.length>0?s(g,_[0]):!o.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=k.useCallback(function(p,g,y,m){var _={name:p,delta:g,target:y,should:m,shadowParent:SOt(y)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(S){return S!==_})},1)},[]),f=k.useCallback(function(p){r.current=j0(p),n.current=void 0},[]),c=k.useCallback(function(p){u(p.type,CU(p),p.target,s(p,e.lockRef.current))},[]),v=k.useCallback(function(p){u(p.type,j0(p),p.target,s(p,e.lockRef.current))},[]);k.useEffect(function(){return Zc.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Xc),document.addEventListener("touchmove",l,Xc),document.addEventListener("touchstart",f,Xc),function(){Zc=Zc.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Xc),document.removeEventListener("touchmove",l,Xc),document.removeEventListener("touchstart",f,Xc)}},[]);var h=e.removeScrollBar,d=e.inert;return k.createElement(k.Fragment,null,d?k.createElement(i,{styles:yOt(a)}):null,h?k.createElement(lOt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SOt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bOt=ZEt(IK,_Ot);var zK=k.forwardRef(function(e,t){return k.createElement(Hx,Nn({},e,{ref:t,sideCar:bOt}))});zK.classNames=Hx.classNames;var xOt=[" ","Enter","ArrowUp","ArrowDown"],wOt=[" ","Enter"],Uf="Select",[Ux,Fx,TOt]=G2t(Uf),[yc]=VP(Uf,[TOt,SK]),Yx=SK(),[AOt,Hl]=yc(Uf),[COt,MOt]=yc(Uf),DOt="SelectProvider";function VK(e){const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:v,required:h,form:d,internal_do_not_use_render:p}=e,g=Yx(t),[y,m]=k.useState(null),[_,S]=k.useState(null),[b,x]=k.useState(!1),w=U2t(u),[A,T]=xU({prop:n,defaultProp:a??!1,onChange:i,caller:Uf}),[C,M]=xU({prop:o,defaultProp:s,onChange:l,caller:Uf}),E=k.useRef(null),L=k.useRef(C);k.useEffect(()=>{const F=d?y==null?void 0:y.ownerDocument.getElementById(d):y==null?void 0:y.form;if(F instanceof HTMLFormElement){const $=()=>M(L.current);return F.addEventListener("reset",$),()=>F.removeEventListener("reset",$)}},[d,y,M]);const R=y?!!d||!!y.closest("form"):!0,[I,O]=k.useState(new Set),N=GP(),P=Array.from(I).map(F=>F.props.value).join(";"),B=k.useCallback(F=>{O($=>new Set($).add(F))},[]),z=k.useCallback(F=>{O($=>{const j=new Set($);return j.delete(F),j})},[]),H={required:h,trigger:y,onTriggerChange:m,valueNode:_,onValueNodeChange:S,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:N,value:C,onValueChange:M,open:A,onOpenChange:T,dir:w,triggerPointerDownPosRef:E,disabled:v,name:f,autoComplete:c,form:d,nativeOptions:I,nativeSelectKey:P,isFormControl:R};return X.jsx(xEt,{...g,children:X.jsx(AOt,{scope:t,...H,children:X.jsx(Ux.Provider,{scope:t,children:X.jsx(COt,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:z,children:$Ot(p)?p(H):r})})})})}VK.displayName=DOt;var GK=e=>{const{__scopeSelect:t,children:r,...n}=e;return X.jsx(VK,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:a})=>X.jsxs(X.Fragment,{children:[r,a?X.jsx(fQ,{__scopeSelect:t}):null]})})};GK.displayName=Uf;var HK="SelectTrigger",UK=k.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...a}=e,i=Yx(r),o=Hl(HK,r),s=o.disabled||n,l=Tr(t,o.onTriggerChange),u=Fx(r),f=k.useRef("touch"),[c,v,h]=cQ(p=>{const g=u().filter(_=>!_.disabled),y=g.find(_=>_.value===o.value),m=vQ(g,p,y);m!==void 0&&o.onValueChange(m.value)}),d=p=>{s||(o.onOpenChange(!0),h()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return X.jsx(wEt,{asChild:!0,...i,children:X.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":jx(o.value)?"":void 0,...a,ref:l,onClick:Je(a.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&d(p)}),onPointerDown:Je(a.onPointerDown,p=>{f.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(d(p),p.preventDefault())}),onKeyDown:Je(a.onKeyDown,p=>{const g=c.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&v(p.key),!(g&&p.key===" ")&&xOt.includes(p.key)&&(d(),p.preventDefault())})})})});UK.displayName=HK;var FK="SelectValue",YK=k.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,children:i,placeholder:o="",...s}=e,l=Hl(FK,r),{onValueNodeHasChildrenChange:u}=l,f=i!==void 0,c=Tr(t,l.onValueNodeChange);kr(()=>{u(f)},[u,f]);const v=jx(l.value);return X.jsx(Ze.span,{...s,asChild:v?!1:s.asChild,ref:c,style:{pointerEvents:"none"},children:X.jsx(k.Fragment,{children:v?o:i},v?"placeholder":"value")})});YK.displayName=FK;var LOt="SelectIcon",jK=k.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...a}=e;return X.jsx(Ze.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})});jK.displayName=LOt;var WK="SelectPortal",[EOt,OOt]=yc(WK,{forceMount:void 0}),$K=e=>{const{__scopeSelect:t,forceMount:r,...n}=e;return X.jsx(EOt,{scope:e.__scopeSelect,forceMount:r,children:X.jsx(DK,{asChild:!0,...n})})};$K.displayName=WK;var Rl="SelectContent",XK=k.forwardRef((e,t)=>{const r=OOt(Rl,e.__scopeSelect),{forceMount:n=r.forceMount,...a}=e,i=Hl(Rl,e.__scopeSelect),[o,s]=k.useState();return kr(()=>{s(new DocumentFragment)},[]),X.jsx(LK,{present:n||i.open,children:({present:l})=>l?X.jsx(KK,{...a,ref:t}):X.jsx(ZK,{...a,fragment:o})})});XK.displayName=Rl;var ZK=k.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,fragment:a}=e;return a?Ff.createPortal(X.jsx(qK,{scope:r,children:X.jsx(Ux.Slot,{scope:r,children:X.jsx("div",{ref:t,children:n})})}),a):null});ZK.displayName="SelectContentFragment";var Ha=10,[qK,Ul]=yc(Rl),ROt="SelectContentImpl",IOt=q1("SelectContent.RemoveScroll"),KK=k.forwardRef((e,t)=>{const{__scopeSelect:r}=e,{position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:v,collisionPadding:h,sticky:d,hideWhenDetached:p,avoidCollisions:g,...y}=e,m=Hl(Rl,r),[_,S]=k.useState(null),[b,x]=k.useState(null),w=Tr(t,S),[A,T]=k.useState(null),[C,M]=k.useState(null),E=Fx(r),[L,R]=k.useState(!1),I=k.useRef(!1);k.useEffect(()=>{if(_)return GEt(_)},[_]),J2t();const O=k.useCallback(lt=>{const[it,...Q]=E().map(at=>at.ref.current),[st]=Q.slice(-1),Z=document.activeElement;for(const at of lt)if(at===Z||(at==null||at.scrollIntoView({block:"nearest"}),at===it&&b&&(b.scrollTop=0),at===st&&b&&(b.scrollTop=b.scrollHeight),at==null||at.focus(),document.activeElement!==Z))return},[E,b]),N=k.useCallback(()=>O([A,_]),[O,A,_]);k.useEffect(()=>{L&&N()},[L,N]);const{onOpenChange:P,triggerPointerDownPosRef:B}=m;k.useEffect(()=>{if(_){let lt={x:0,y:0};const it=st=>{var Z,at;lt={x:Math.abs(Math.round(st.pageX)-(((Z=B.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(st.pageY)-(((at=B.current)==null?void 0:at.y)??0))}},Q=st=>{lt.x<=10&<.y<=10?st.preventDefault():st.composedPath().includes(_)||P(!1),document.removeEventListener("pointermove",it),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",it),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",it),document.removeEventListener("pointerup",Q,{capture:!0})}}},[_,P,B]),k.useEffect(()=>{const lt=()=>P(!1);return window.addEventListener("blur",lt),window.addEventListener("resize",lt),()=>{window.removeEventListener("blur",lt),window.removeEventListener("resize",lt)}},[P]);const[z,H]=cQ(lt=>{const it=E().filter(Z=>!Z.disabled),Q=it.find(Z=>Z.ref.current===document.activeElement),st=vQ(it,lt,Q);st&&setTimeout(()=>{var Z;return(Z=st.ref.current)==null?void 0:Z.focus()})}),F=k.useCallback((lt,it,Q)=>{const st=!I.current&&!Q;(m.value!==void 0&&m.value===it||st)&&(T(lt),st&&(I.current=!0))},[m.value]),$=k.useCallback(()=>_==null?void 0:_.focus(),[_]),j=k.useCallback((lt,it,Q)=>{const st=!I.current&&!Q;(m.value!==void 0&&m.value===it||st)&&M(lt)},[m.value]),tt=n==="popper"?gE:QK,_t=tt===gE?{side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:v,collisionPadding:h,sticky:d,hideWhenDetached:p,avoidCollisions:g}:{};return X.jsx(qK,{scope:r,content:_,viewport:b,onViewportChange:x,itemRefCallback:F,selectedItem:A,onItemLeave:$,itemTextRefCallback:j,focusSelectedItem:N,selectedItemText:C,position:n,isPositioned:L,searchRef:z,children:X.jsx(zK,{as:IOt,allowPinchZoom:!0,children:X.jsx(iK,{asChild:!0,trapped:m.open,onMountAutoFocus:lt=>{lt.preventDefault()},onUnmountAutoFocus:Je(a,lt=>{var it;(it=m.trigger)==null||it.focus({preventScroll:!0}),lt.preventDefault()}),children:X.jsx(nK,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:lt=>lt.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:X.jsx(tt,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:lt=>lt.preventDefault(),...y,..._t,onPlaced:()=>R(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Je(y.onKeyDown,lt=>{const it=lt.ctrlKey||lt.altKey||lt.metaKey;if(lt.key==="Tab"&<.preventDefault(),!it&<.key.length===1&&H(lt.key),["ArrowUp","ArrowDown","Home","End"].includes(lt.key)){let st=E().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(lt.key)&&(st=st.slice().reverse()),["ArrowUp","ArrowDown"].includes(lt.key)){const Z=lt.target,at=st.indexOf(Z);st=st.slice(at+1)}setTimeout(()=>O(st)),lt.preventDefault()}})})})})})})});KK.displayName=ROt;var POt="SelectItemAlignedPosition",QK=k.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...a}=e,i=Hl(Rl,r),o=Ul(Rl,r),[s,l]=k.useState(null),[u,f]=k.useState(null),c=Tr(t,f),v=Fx(r),h=k.useRef(!1),d=k.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:m}=o,_=k.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&p&&g&&y){const w=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),C=y.getBoundingClientRect();if(i.dir!=="rtl"){const Z=C.left-A.left,at=T.left-Z,Ht=w.left-at,Ct=w.width+Ht,Ut=Math.max(Ct,A.width),Zt=window.innerWidth-Ha,_e=tU(at,[Ha,Math.max(Ha,Zt-Ut)]);s.style.minWidth=Ct+"px",s.style.left=_e+"px"}else{const Z=A.right-C.right,at=window.innerWidth-T.right-Z,Ht=window.innerWidth-w.right-at,Ct=w.width+Ht,Ut=Math.max(Ct,A.width),Zt=window.innerWidth-Ha,_e=tU(at,[Ha,Math.max(Ha,Zt-Ut)]);s.style.minWidth=Ct+"px",s.style.right=_e+"px"}const M=v(),E=window.innerHeight-Ha*2,L=p.scrollHeight,R=window.getComputedStyle(u),I=parseInt(R.borderTopWidth,10),O=parseInt(R.paddingTop,10),N=parseInt(R.borderBottomWidth,10),P=parseInt(R.paddingBottom,10),B=I+O+L+P+N,z=Math.min(g.offsetHeight*5,B),H=window.getComputedStyle(p),F=parseInt(H.paddingTop,10),$=parseInt(H.paddingBottom,10),j=w.top+w.height/2-Ha,tt=E-j,_t=g.offsetHeight/2,lt=g.offsetTop+_t,it=I+O+lt,Q=B-it;if(it<=j){const Z=M.length>0&&g===M[M.length-1].ref.current;s.style.bottom="0px";const at=u.clientHeight-p.offsetTop-p.offsetHeight,Ht=Math.max(tt,_t+(Z?$:0)+at+N),Ct=it+Ht;s.style.height=Ct+"px"}else{const Z=M.length>0&&g===M[0].ref.current;s.style.top="0px";const Ht=Math.max(j,I+p.offsetTop+(Z?F:0)+_t)+Q;s.style.height=Ht+"px",p.scrollTop=it-j+p.offsetTop}s.style.margin=`${Ha}px 0`,s.style.minHeight=z+"px",s.style.maxHeight=E+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[v,i.trigger,i.valueNode,s,u,p,g,y,i.dir,n]);kr(()=>_(),[_]);const[S,b]=k.useState();kr(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const x=k.useCallback(w=>{w&&d.current===!0&&(_(),m==null||m(),d.current=!1)},[_,m]);return X.jsx(kOt,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:x,children:X.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:X.jsx(Ze.div,{...a,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});QK.displayName=POt;var NOt="SelectPopperPosition",gE=k.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:a=Ha,...i}=e,o=Yx(r);return X.jsx(TEt,{...o,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gE.displayName=NOt;var[kOt,qP]=yc(Rl,{}),yE="SelectViewport",JK=k.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...a}=e,i=Ul(yE,r),o=qP(yE,r),s=Tr(t,i.onViewportChange),l=k.useRef(0);return X.jsxs(X.Fragment,{children:[X.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),X.jsx(Ux.Slot,{scope:r,children:X.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Je(a.onScroll,u=>{const f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:v}=o;if(v!=null&&v.current&&c){const h=Math.abs(l.current-f.scrollTop);if(h>0){const d=window.innerHeight-Ha*2,p=parseFloat(c.style.minHeight),g=parseFloat(c.style.height),y=Math.max(p,g);if(y<d){const m=y+h,_=Math.min(d,m),S=m-_;c.style.height=_+"px",c.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,c.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});JK.displayName=yE;var tQ="SelectGroup",[BOt,zOt]=yc(tQ),VOt=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=GP();return X.jsx(BOt,{scope:r,id:a,children:X.jsx(Ze.div,{role:"group","aria-labelledby":a,...n,ref:t})})});VOt.displayName=tQ;var eQ="SelectLabel",GOt=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=zOt(eQ,r);return X.jsx(Ze.div,{id:a.id,...n,ref:t})});GOt.displayName=eQ;var eb="SelectItem",[HOt,rQ]=yc(eb),nQ=k.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:a=!1,textValue:i,...o}=e,s=Hl(eb,r),l=Ul(eb,r),u=s.value===n,[f,c]=k.useState(i??""),[v,h]=k.useState(!1),d=fs(_=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,_,n,a)}),p=Tr(t,d),g=GP(),y=k.useRef("touch"),m=()=>{a||(s.onValueChange(n),s.onOpenChange(!1))};return X.jsx(HOt,{scope:r,value:n,disabled:a,textId:g,isSelected:u,onItemTextChange:k.useCallback(_=>{c(S=>S||((_==null?void 0:_.textContent)??"").trim())},[]),children:X.jsx(Ux.ItemSlot,{scope:r,value:n,disabled:a,textValue:f,children:X.jsx(Ze.div,{role:"option","aria-labelledby":g,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:p,onFocus:Je(o.onFocus,()=>h(!0)),onBlur:Je(o.onBlur,()=>h(!1)),onClick:Je(o.onClick,()=>{y.current!=="mouse"&&m()}),onPointerUp:Je(o.onPointerUp,()=>{y.current==="mouse"&&m()}),onPointerDown:Je(o.onPointerDown,_=>{y.current=_.pointerType}),onPointerMove:Je(o.onPointerMove,_=>{var S;y.current=_.pointerType,a?(S=l.onItemLeave)==null||S.call(l):y.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(o.onPointerLeave,_=>{var S;_.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:Je(o.onKeyDown,_=>{var b;a||_.target!==_.currentTarget||((b=l.searchRef)==null?void 0:b.current)!==""&&_.key===" "||(wOt.includes(_.key)&&m(),_.key===" "&&_.preventDefault())})})})})});nQ.displayName=eb;var mp="SelectItemText",aQ=k.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,...i}=e,o=Hl(mp,r),s=Ul(mp,r),l=rQ(mp,r),u=MOt(mp,r),[f,c]=k.useState(null),v=fs(m=>{var _;return(_=s.itemTextRefCallback)==null?void 0:_.call(s,m,l.value,l.disabled)}),h=Tr(t,c,l.onItemTextChange,v),d=f==null?void 0:f.textContent,p=k.useMemo(()=>X.jsx("option",{value:l.value,disabled:l.disabled,children:d},l.value),[l.disabled,l.value,d]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=u;return kr(()=>(g(p),()=>y(p)),[g,y,p]),X.jsxs(X.Fragment,{children:[X.jsx(Ze.span,{id:l.textId,...i,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!jx(o.value)?Ff.createPortal(i.children,o.valueNode):null]})});aQ.displayName=mp;var iQ="SelectItemIndicator",oQ=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return rQ(iQ,r).isSelected?X.jsx(Ze.span,{"aria-hidden":!0,...n,ref:t}):null});oQ.displayName=iQ;var mE="SelectScrollUpButton",UOt=k.forwardRef((e,t)=>{const r=Ul(mE,e.__scopeSelect),n=qP(mE,e.__scopeSelect),[a,i]=k.useState(!1),o=Tr(t,n.onScrollButtonChange);return kr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),a?X.jsx(sQ,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});UOt.displayName=mE;var _E="SelectScrollDownButton",FOt=k.forwardRef((e,t)=>{const r=Ul(_E,e.__scopeSelect),n=qP(_E,e.__scopeSelect),[a,i]=k.useState(!1),o=Tr(t,n.onScrollButtonChange);return kr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;i(f)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),a?X.jsx(sQ,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});FOt.displayName=_E;var sQ=k.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...a}=e,i=Ul("SelectScrollButton",r),o=k.useRef(null),s=Fx(r),l=k.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return k.useEffect(()=>()=>l(),[l]),kr(()=>{var f;const u=s().find(c=>c.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),X.jsx(Ze.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Je(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Je(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Je(a.onPointerLeave,()=>{l()})})}),YOt="SelectSeparator",jOt=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return X.jsx(Ze.div,{"aria-hidden":!0,...n,ref:t})});jOt.displayName=YOt;var lQ="SelectArrow",WOt=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=Yx(r);return Ul(lQ,r).position==="popper"?X.jsx(AEt,{...a,...n,ref:t}):null});WOt.displayName=lQ;var uQ="SelectBubbleInput",fQ=k.forwardRef(({__scopeSelect:e,...t},r)=>{const n=Hl(uQ,e),{value:a,onValueChange:i,required:o,disabled:s,name:l,autoComplete:u,form:f}=n,{nativeOptions:c,nativeSelectKey:v}=n,h=k.useRef(null),d=Tr(r,h),p=a??"",g=PEt(p),y=Array.from(c).some(m=>(m.props.value??"")==="");return k.useEffect(()=>{const m=h.current;if(!m)return;const _=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(_,"value").set;if(g!==p&&b){const x=new Event("change",{bubbles:!0});b.call(m,p),m.dispatchEvent(x)}},[g,p]),X.jsxs(Ze.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:l,autoComplete:u,disabled:s,form:f,onChange:m=>i(m.target.value),...t,style:{...EK,...t.style},ref:d,defaultValue:p,children:[jx(a)&&!y?X.jsx("option",{value:""}):null,Array.from(c)]},v)});fQ.displayName=uQ;function $Ot(e){return typeof e=="function"}function jx(e){return e===""||e===void 0}function cQ(e){const t=fs(e),r=k.useRef(""),n=k.useRef(0),a=k.useCallback(o=>{const s=r.current+o;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=k.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,i]}function vQ(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=XOt(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const l=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function XOt(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const ZOt=[{value:"claude-code",labelKey:"claudeCode"},{value:"codex",labelKey:"codex"}],qOt=My(()=>{const{t:e}=Ob();return X.jsxs(GK,{value:ze.dataSource,onValueChange:t=>ze.switchDataSource(t),disabled:ze.loading,children:[X.jsxs(UK,{className:an(xt.select.trigger.base,xt.select.trigger.background,xt.text.primary,xt.select.trigger.border,xt.select.trigger.hover,xt.select.trigger.focus,xt.select.trigger.disabled),children:[X.jsx(YK,{}),X.jsx(jK,{children:X.jsx(hit,{className:"w-4 h-4"})})]}),X.jsx($K,{children:X.jsx(XK,{className:an(xt.select.content.base,xt.select.content.background,xt.select.content.border),position:"popper",sideOffset:4,children:X.jsx(JK,{className:"p-1",children:ZOt.map(({value:t,labelKey:r})=>X.jsxs(nQ,{value:t,className:an(xt.select.item.base,xt.text.primary,xt.select.item.highlighted),children:[X.jsx(oQ,{className:"absolute left-2",children:X.jsx(cit,{className:"w-4 h-4"})}),X.jsx(aQ,{children:e(r)})]},t))})})})]})}),KOt="input tokens",QOt="output tokens",JOt="total tokens",tRt="sessions",eRt="Error loading data",rRt="Claude Code",nRt="Codex",aRt="tokens",iRt="Loading...",oRt="Unknown error occurred",sRt={inputTokens:KOt,outputTokens:QOt,totalTokens:JOt,sessionCount:tRt,errorTitle:eRt,claudeCode:rRt,codex:nRt,tokens:aRt,loading:iRt,unknownError:oRt},lRt="输入 token",uRt="输出 token",fRt="总 token",cRt="会话数",vRt="加载数据失败",hRt="Claude Code",dRt="Codex",pRt="token",gRt="加载中...",yRt="发生未知错误",mRt={inputTokens:lRt,outputTokens:uRt,totalTokens:fRt,sessionCount:cRt,errorTitle:vRt,claudeCode:hRt,codex:dRt,tokens:pRt,loading:gRt,unknownError:yRt};Ur.use(vat).init({resources:{"en-US":{translation:sRt},"zh-CN":{translation:mRt}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const _Rt=My(()=>{const{t:e,i18n:t}=Ob(),{usageData:r,dateRange:n,filteredStats:a}=ze,i=()=>{if(!n)return"";const o=N7(t.language),s=l=>k7(l,o,{year:"numeric"});return n.start===n.end?s(n.start):`${s(n.start)} - ${s(n.end)}`};return X.jsx("div",{className:an("min-h-screen py-2 px-4",xt.background.primary),children:X.jsxs("div",{className:"mx-auto max-w-6xl",children:[X.jsx("header",{className:"mb-2",children:X.jsxs("div",{className:"grid grid-cols-3 items-center gap-3",children:[X.jsx("div",{className:"flex justify-start",children:X.jsx(qOt,{})}),X.jsx("div",{className:an("text-sm font-medium text-center",xt.text.secondary),children:n&&i()}),X.jsx("div",{className:"flex justify-end",children:X.jsx(_it,{})})]})}),X.jsx(mit,{}),r&&!ze.error&&a&&X.jsxs(X.Fragment,{children:[X.jsxs("div",{className:"grid grid-cols-4 gap-2 mb-4",children:[X.jsx(_m,{label:e("inputTokens"),value:ku(a.inputTokens),color:"blue",isActive:ze.seriesVisibility.inputTokens,onClick:()=>ze.toggleSeriesVisibility("inputTokens")}),X.jsx(_m,{label:e("outputTokens"),value:ku(a.outputTokens),color:"green",isActive:ze.seriesVisibility.outputTokens,onClick:()=>ze.toggleSeriesVisibility("outputTokens")}),X.jsx(_m,{label:e("totalTokens"),value:ku(a.totalTokens),color:"purple",isActive:ze.seriesVisibility.totalTokens,onClick:()=>ze.toggleSeriesVisibility("totalTokens")}),X.jsx(_m,{label:e("sessionCount"),value:ku(a.sessionCount),color:"orange",isActive:ze.seriesVisibility.sessionCount,onClick:()=>ze.toggleSeriesVisibility("sessionCount")})]}),X.jsx("div",{children:X.jsx(D2t,{})})]})]})})});(async function(){const e=await tinker.getLanguage();Ur.changeLanguage(e);const t=document.getElementById("app");vet.createRoot(t).render(X.jsx(_Rt,{}))})();
|