index-CVqvBXat.js 1.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. var lV=Object.defineProperty;var uV=(r,t,e)=>t in r?lV(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var d5=(r,t,e)=>uV(r,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function e(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=e(n);fetch(n.href,i)}})();var s_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Km(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function cV(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var e=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var n=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(e,a,n.get?n:{enumerable:!0,get:function(){return r[a]}})}),e}var l_={exports:{}},ch={};/**
  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 p5;function fV(){if(p5)return ch;p5=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function e(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var s in n)s!=="key"&&(i[s]=n[s])}else i=n;return n=i.ref,{$$typeof:r,type:a,key:o,ref:n!==void 0?n:null,props:i}}return ch.Fragment=t,ch.jsx=e,ch.jsxs=e,ch}var g5;function hV(){return g5||(g5=1,l_.exports=fV()),l_.exports}var A=hV(),u_={exports:{}},$e={};/**
  10. * @license React
  11. * react.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. */var m5;function vV(){if(m5)return $e;m5=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),v=Symbol.iterator;function p(j){return j===null||typeof j!="object"?null:(j=v&&j[v]||j["@@iterator"],typeof j=="function"?j:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function _(j,U,Z){this.props=j,this.context=U,this.refs=x,this.updater=Z||g}_.prototype.isReactComponent={},_.prototype.setState=function(j,U){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,U,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function S(){}S.prototype=_.prototype;function w(j,U,Z){this.props=j,this.context=U,this.refs=x,this.updater=Z||g}var C=w.prototype=new S;C.constructor=w,y(C,_.prototype),C.isPureReactComponent=!0;var D=Array.isArray;function M(){}var E={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function B(j,U,Z){var $=Z.ref;return{$$typeof:r,type:j,key:U,ref:$!==void 0?$:null,props:Z}}function R(j,U){return B(j.type,U,j.props)}function I(j){return typeof j=="object"&&j!==null&&j.$$typeof===r}function P(j){var U={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return U[Z]})}var z=/\/+/g;function V(j,U){return typeof j=="object"&&j!==null&&j.key!=null?P(""+j.key):U.toString(36)}function G(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(M,M):(j.status="pending",j.then(function(U){j.status==="pending"&&(j.status="fulfilled",j.value=U)},function(U){j.status==="pending"&&(j.status="rejected",j.reason=U)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function F(j,U,Z,$,fe){var ye=typeof j;(ye==="undefined"||ye==="boolean")&&(j=null);var ee=!1;if(j===null)ee=!0;else switch(ye){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(j.$$typeof){case r:case t:ee=!0;break;case c:return ee=j._init,F(ee(j._payload),U,Z,$,fe)}}if(ee)return fe=fe(j),ee=$===""?"."+V(j,0):$,D(fe)?(Z="",ee!=null&&(Z=ee.replace(z,"$&/")+"/"),F(fe,U,Z,"",function(we){return we})):fe!=null&&(I(fe)&&(fe=R(fe,Z+(fe.key==null||j&&j.key===fe.key?"":(""+fe.key).replace(z,"$&/")+"/")+ee)),U.push(fe)),1;ee=0;var se=$===""?".":$+":";if(D(j))for(var ue=0;ue<j.length;ue++)$=j[ue],ye=se+V($,ue),ee+=F($,U,Z,ye,fe);else if(ue=p(j),typeof ue=="function")for(j=ue.call(j),ue=0;!($=j.next()).done;)$=$.value,ye=se+V($,ue++),ee+=F($,U,Z,ye,fe);else if(ye==="object"){if(typeof j.then=="function")return F(G(j),U,Z,$,fe);throw U=String(j),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Y(j,U,Z){if(j==null)return j;var $=[],fe=0;return F(j,$,"","",function(ye){return U.call(Z,ye,fe++)}),$}function W(j){if(j._status===-1){var U=j._result;U=U(),U.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=U)}if(j._status===1)return j._result.default;throw j._result}var X=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},te={map:Y,forEach:function(j,U,Z){Y(j,function(){U.apply(this,arguments)},Z)},count:function(j){var U=0;return Y(j,function(){U++}),U},toArray:function(j){return Y(j,function(U){return U})||[]},only:function(j){if(!I(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return $e.Activity=h,$e.Children=te,$e.Component=_,$e.Fragment=e,$e.Profiler=n,$e.PureComponent=w,$e.StrictMode=a,$e.Suspense=l,$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,$e.__COMPILER_RUNTIME={__proto__:null,c:function(j){return E.H.useMemoCache(j)}},$e.cache=function(j){return function(){return j.apply(null,arguments)}},$e.cacheSignal=function(){return null},$e.cloneElement=function(j,U,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var $=y({},j.props),fe=j.key;if(U!=null)for(ye in U.key!==void 0&&(fe=""+U.key),U)!N.call(U,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&U.ref===void 0||($[ye]=U[ye]);var ye=arguments.length-2;if(ye===1)$.children=Z;else if(1<ye){for(var ee=Array(ye),se=0;se<ye;se++)ee[se]=arguments[se+2];$.children=ee}return B(j.type,fe,$)},$e.createContext=function(j){return j={$$typeof:o,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:i,_context:j},j},$e.createElement=function(j,U,Z){var $,fe={},ye=null;if(U!=null)for($ in U.key!==void 0&&(ye=""+U.key),U)N.call(U,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(fe[$]=U[$]);var ee=arguments.length-2;if(ee===1)fe.children=Z;else if(1<ee){for(var se=Array(ee),ue=0;ue<ee;ue++)se[ue]=arguments[ue+2];fe.children=se}if(j&&j.defaultProps)for($ in ee=j.defaultProps,ee)fe[$]===void 0&&(fe[$]=ee[$]);return B(j,ye,fe)},$e.createRef=function(){return{current:null}},$e.forwardRef=function(j){return{$$typeof:s,render:j}},$e.isValidElement=I,$e.lazy=function(j){return{$$typeof:c,_payload:{_status:-1,_result:j},_init:W}},$e.memo=function(j,U){return{$$typeof:u,type:j,compare:U===void 0?null:U}},$e.startTransition=function(j){var U=E.T,Z={};E.T=Z;try{var $=j(),fe=E.S;fe!==null&&fe(Z,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(M,X)}catch(ye){X(ye)}finally{U!==null&&Z.types!==null&&(U.types=Z.types),E.T=U}},$e.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},$e.use=function(j){return E.H.use(j)},$e.useActionState=function(j,U,Z){return E.H.useActionState(j,U,Z)},$e.useCallback=function(j,U){return E.H.useCallback(j,U)},$e.useContext=function(j){return E.H.useContext(j)},$e.useDebugValue=function(){},$e.useDeferredValue=function(j,U){return E.H.useDeferredValue(j,U)},$e.useEffect=function(j,U){return E.H.useEffect(j,U)},$e.useEffectEvent=function(j){return E.H.useEffectEvent(j)},$e.useId=function(){return E.H.useId()},$e.useImperativeHandle=function(j,U,Z){return E.H.useImperativeHandle(j,U,Z)},$e.useInsertionEffect=function(j,U){return E.H.useInsertionEffect(j,U)},$e.useLayoutEffect=function(j,U){return E.H.useLayoutEffect(j,U)},$e.useMemo=function(j,U){return E.H.useMemo(j,U)},$e.useOptimistic=function(j,U){return E.H.useOptimistic(j,U)},$e.useReducer=function(j,U,Z){return E.H.useReducer(j,U,Z)},$e.useRef=function(j){return E.H.useRef(j)},$e.useState=function(j){return E.H.useState(j)},$e.useSyncExternalStore=function(j,U,Z){return E.H.useSyncExternalStore(j,U,Z)},$e.useTransition=function(){return E.H.useTransition()},$e.version="19.2.3",$e}var y5;function jw(){return y5||(y5=1,u_.exports=vV()),u_.exports}var q=jw();const bc=Km(q);var c_={exports:{}},fh={},f_={exports:{}},h_={};/**
  18. * @license React
  19. * scheduler.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 x5;function dV(){return x5||(x5=1,(function(r){function t(F,Y){var W=F.length;F.push(Y);e:for(;0<W;){var X=W-1>>>1,te=F[X];if(0<n(te,Y))F[X]=Y,F[W]=te,W=X;else break e}}function e(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var Y=F[0],W=F.pop();if(W!==Y){F[0]=W;e:for(var X=0,te=F.length,j=te>>>1;X<j;){var U=2*(X+1)-1,Z=F[U],$=U+1,fe=F[$];if(0>n(Z,W))$<te&&0>n(fe,Z)?(F[X]=fe,F[$]=W,X=$):(F[X]=Z,F[U]=W,X=U);else if($<te&&0>n(fe,W))F[X]=fe,F[$]=W,X=$;else break e}}return Y}function n(F,Y){var W=F.sortIndex-Y.sortIndex;return W!==0?W:F.id-Y.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;r.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,h=null,v=3,p=!1,g=!1,y=!1,x=!1,_=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function C(F){for(var Y=e(u);Y!==null;){if(Y.callback===null)a(u);else if(Y.startTime<=F)a(u),Y.sortIndex=Y.expirationTime,t(l,Y);else break;Y=e(u)}}function D(F){if(y=!1,C(F),!g)if(e(l)!==null)g=!0,M||(M=!0,P());else{var Y=e(u);Y!==null&&G(D,Y.startTime-F)}}var M=!1,E=-1,N=5,B=-1;function R(){return x?!0:!(r.unstable_now()-B<N)}function I(){if(x=!1,M){var F=r.unstable_now();B=F;var Y=!0;try{e:{g=!1,y&&(y=!1,S(E),E=-1),p=!0;var W=v;try{t:{for(C(F),h=e(l);h!==null&&!(h.expirationTime>F&&R());){var X=h.callback;if(typeof X=="function"){h.callback=null,v=h.priorityLevel;var te=X(h.expirationTime<=F);if(F=r.unstable_now(),typeof te=="function"){h.callback=te,C(F),Y=!0;break t}h===e(l)&&a(l),C(F)}else a(l);h=e(l)}if(h!==null)Y=!0;else{var j=e(u);j!==null&&G(D,j.startTime-F),Y=!1}}break e}finally{h=null,v=W,p=!1}Y=void 0}}finally{Y?P():M=!1}}}var P;if(typeof w=="function")P=function(){w(I)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,V=z.port2;z.port1.onmessage=I,P=function(){V.postMessage(null)}}else P=function(){_(I,0)};function G(F,Y){E=_(function(){F(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(F){F.callback=null},r.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<F?Math.floor(1e3/F):5},r.unstable_getCurrentPriorityLevel=function(){return v},r.unstable_next=function(F){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var W=v;v=Y;try{return F()}finally{v=W}},r.unstable_requestPaint=function(){x=!0},r.unstable_runWithPriority=function(F,Y){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var W=v;v=F;try{return Y()}finally{v=W}},r.unstable_scheduleCallback=function(F,Y,W){var X=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?X+W:X):W=X,F){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=W+te,F={id:c++,callback:Y,priorityLevel:F,startTime:W,expirationTime:te,sortIndex:-1},W>X?(F.sortIndex=W,t(u,F),e(l)===null&&F===e(u)&&(y?(S(E),E=-1):y=!0,G(D,W-X))):(F.sortIndex=te,t(l,F),g||p||(g=!0,M||(M=!0,P()))),F},r.unstable_shouldYield=R,r.unstable_wrapCallback=function(F){var Y=v;return function(){var W=v;v=Y;try{return F.apply(this,arguments)}finally{v=W}}}})(h_)),h_}var _5;function pV(){return _5||(_5=1,f_.exports=dV()),f_.exports}var v_={exports:{}},jr={};/**
  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 b5;function gV(){if(b5)return jr;b5=1;var r=jw();function t(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e(){}var a={d:{f:e,r:function(){throw Error(t(522))},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(l,u,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:l,containerInfo:u,implementation:c}}var o=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,jr.createPortal=function(l,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(l,u,null,c)},jr.flushSync=function(l){var u=o.T,c=a.p;try{if(o.T=null,a.p=2,l)return l()}finally{o.T=u,a.p=c,a.d.f()}},jr.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(l,u))},jr.prefetchDNS=function(l){typeof l=="string"&&a.d.D(l)},jr.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var c=u.as,h=s(c,u.crossOrigin),v=typeof u.integrity=="string"?u.integrity:void 0,p=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?a.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:v,fetchPriority:p}):c==="script"&&a.d.X(l,{crossOrigin:h,integrity:v,fetchPriority:p,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},jr.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=s(u.as,u.crossOrigin);a.d.M(l,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(l)},jr.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,h=s(c,u.crossOrigin);a.d.L(l,c,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},jr.preloadModule=function(l,u){if(typeof l=="string")if(u){var c=s(u.as,u.crossOrigin);a.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(l)},jr.requestFormReset=function(l){a.d.r(l)},jr.unstable_batchedUpdates=function(l,u){return l(u)},jr.useFormState=function(l,u,c){return o.H.useFormState(l,u,c)},jr.useFormStatus=function(){return o.H.useHostTransitionStatus()},jr.version="19.2.3",jr}var S5;function mV(){if(S5)return v_.exports;S5=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),v_.exports=gV(),v_.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 w5;function yV(){if(w5)return fh;w5=1;var r=pV(),t=jw(),e=mV();function a(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function i(f){var d=f,m=f;if(f.alternate)for(;d.return;)d=d.return;else{f=d;do d=f,(d.flags&4098)!==0&&(m=d.return),f=d.return;while(f)}return d.tag===3?m:null}function o(f){if(f.tag===13){var d=f.memoizedState;if(d===null&&(f=f.alternate,f!==null&&(d=f.memoizedState)),d!==null)return d.dehydrated}return null}function s(f){if(f.tag===31){var d=f.memoizedState;if(d===null&&(f=f.alternate,f!==null&&(d=f.memoizedState)),d!==null)return d.dehydrated}return null}function l(f){if(i(f)!==f)throw Error(a(188))}function u(f){var d=f.alternate;if(!d){if(d=i(f),d===null)throw Error(a(188));return d!==f?null:f}for(var m=f,b=d;;){var T=m.return;if(T===null)break;var L=T.alternate;if(L===null){if(b=T.return,b!==null){m=b;continue}break}if(T.child===L.child){for(L=T.child;L;){if(L===m)return l(T),f;if(L===b)return l(T),d;L=L.sibling}throw Error(a(188))}if(m.return!==b.return)m=T,b=L;else{for(var k=!1,H=T.child;H;){if(H===m){k=!0,m=T,b=L;break}if(H===b){k=!0,b=T,m=L;break}H=H.sibling}if(!k){for(H=L.child;H;){if(H===m){k=!0,m=L,b=T;break}if(H===b){k=!0,b=L,m=T;break}H=H.sibling}if(!k)throw Error(a(189))}}if(m.alternate!==b)throw Error(a(190))}if(m.tag!==3)throw Error(a(188));return m.stateNode.current===m?f:d}function c(f){var d=f.tag;if(d===5||d===26||d===27||d===6)return f;for(f=f.child;f!==null;){if(d=c(f),d!==null)return d;f=f.sibling}return null}var h=Object.assign,v=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function P(f){return f===null||typeof f!="object"?null:(f=I&&f[I]||f["@@iterator"],typeof f=="function"?f:null)}var z=Symbol.for("react.client.reference");function V(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===z?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case y:return"Fragment";case _:return"Profiler";case x:return"StrictMode";case D:return"Suspense";case M:return"SuspenseList";case B:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case g:return"Portal";case w:return f.displayName||"Context";case S:return(f._context.displayName||"Context")+".Consumer";case C:var d=f.render;return f=f.displayName,f||(f=d.displayName||d.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case E:return d=f.displayName||null,d!==null?d:V(f.type)||"Memo";case N:d=f._payload,f=f._init;try{return V(f(d))}catch{}}return null}var G=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},X=[],te=-1;function j(f){return{current:f}}function U(f){0>te||(f.current=X[te],X[te]=null,te--)}function Z(f,d){te++,X[te]=f.current,f.current=d}var $=j(null),fe=j(null),ye=j(null),ee=j(null);function se(f,d){switch(Z(ye,d),Z(fe,f),Z($,null),d.nodeType){case 9:case 11:f=(f=d.documentElement)&&(f=f.namespaceURI)?PM(f):0;break;default:if(f=d.tagName,d=d.namespaceURI)d=PM(d),f=zM(d,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}U($),Z($,f)}function ue(){U($),U(fe),U(ye)}function we(f){f.memoizedState!==null&&Z(ee,f);var d=$.current,m=zM(d,f.type);d!==m&&(Z(fe,f),Z($,m))}function ve(f){fe.current===f&&(U($),U(fe)),ee.current===f&&(U(ee),oh._currentValue=W)}var Ae,Ue;function De(f){if(Ae===void 0)try{throw Error()}catch(m){var d=m.stack.trim().match(/\n( *(at )?)/);Ae=d&&d[1]||"",Ue=-1<m.stack.indexOf(`
  42. at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
  43. `+Ae+f+Ue}var Ke=!1;function ot(f,d){if(!f||Ke)return"";Ke=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(d){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(le){var ie=le}Reflect.construct(f,[],ge)}else{try{ge.call()}catch(le){ie=le}f.call(ge.prototype)}}else{try{throw Error()}catch(le){ie=le}(ge=f())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(le){if(le&&ie&&typeof le.stack=="string")return[le.stack,ie.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var L=b.DetermineComponentFrameRoot(),k=L[0],H=L[1];if(k&&H){var K=k.split(`
  44. `),ne=H.split(`
  45. `);for(T=b=0;b<K.length&&!K[b].includes("DetermineComponentFrameRoot");)b++;for(;T<ne.length&&!ne[T].includes("DetermineComponentFrameRoot");)T++;if(b===K.length||T===ne.length)for(b=K.length-1,T=ne.length-1;1<=b&&0<=T&&K[b]!==ne[T];)T--;for(;1<=b&&0<=T;b--,T--)if(K[b]!==ne[T]){if(b!==1||T!==1)do if(b--,T--,0>T||K[b]!==ne[T]){var de=`
  46. `+K[b].replace(" at new "," at ");return f.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",f.displayName)),de}while(1<=b&&0<=T);break}}}finally{Ke=!1,Error.prepareStackTrace=m}return(m=f?f.displayName||f.name:"")?De(m):""}function Lt(f,d){switch(f.tag){case 26:case 27:case 5:return De(f.type);case 16:return De("Lazy");case 13:return f.child!==d&&d!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return ot(f.type,!1);case 11:return ot(f.type.render,!1);case 1:return ot(f.type,!0);case 31:return De("Activity");default:return""}}function Pt(f){try{var d="",m=null;do d+=Lt(f,m),m=f,f=f.return;while(f);return d}catch(b){return`
  47. Error generating stack: `+b.message+`
  48. `+b.stack}}var Ht=Object.prototype.hasOwnProperty,vr=r.unstable_scheduleCallback,kt=r.unstable_cancelCallback,Wt=r.unstable_shouldYield,Pr=r.unstable_requestPaint,or=r.unstable_now,au=r.unstable_getCurrentPriorityLevel,ja=r.unstable_ImmediatePriority,ua=r.unstable_UserBlockingPriority,oo=r.unstable_NormalPriority,nu=r.unstable_LowPriority,me=r.unstable_IdlePriority,at=r.log,zt=r.unstable_setDisableYieldValue,er=null,Zt=null;function yn(f){if(typeof at=="function"&&zt(f),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(er,f)}catch{}}var Jr=Math.clz32?Math.clz32:Zy,Xy=Math.log,Ed=Math.LN2;function Zy(f){return f>>>=0,f===0?32:31-(Xy(f)/Ed|0)|0}var ys=256,iu=262144,xs=4194304;function pi(f){var d=f&42;if(d!==0)return d;switch(f&-f){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 f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function ou(f,d,m){var b=f.pendingLanes;if(b===0)return 0;var T=0,L=f.suspendedLanes,k=f.pingedLanes;f=f.warmLanes;var H=b&134217727;return H!==0?(b=H&~L,b!==0?T=pi(b):(k&=H,k!==0?T=pi(k):m||(m=H&~f,m!==0&&(T=pi(m))))):(H=b&~L,H!==0?T=pi(H):k!==0?T=pi(k):m||(m=b&~f,m!==0&&(T=pi(m)))),T===0?0:d!==0&&d!==T&&(d&L)===0&&(L=T&-T,m=d&-d,L>=m||L===32&&(m&4194048)!==0)?d:T}function _s(f,d){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&d)===0}function Ld(f,d){switch(f){case 1:case 2:case 4:case 8:case 64:return d+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 d+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 Nd(){var f=xs;return xs<<=1,(xs&62914560)===0&&(xs=4194304),f}function yf(f){for(var d=[],m=0;31>m;m++)d.push(f);return d}function so(f,d){f.pendingLanes|=d,d!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function $y(f,d,m,b,T,L){var k=f.pendingLanes;f.pendingLanes=m,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=m,f.entangledLanes&=m,f.errorRecoveryDisabledLanes&=m,f.shellSuspendCounter=0;var H=f.entanglements,K=f.expirationTimes,ne=f.hiddenUpdates;for(m=k&~m;0<m;){var de=31-Jr(m),ge=1<<de;H[de]=0,K[de]=-1;var ie=ne[de];if(ie!==null)for(ne[de]=null,de=0;de<ie.length;de++){var le=ie[de];le!==null&&(le.lane&=-536870913)}m&=~ge}b!==0&&xf(f,b,0),L!==0&&T===0&&f.tag!==0&&(f.suspendedLanes|=L&~(k&~d))}function xf(f,d,m){f.pendingLanes|=d,f.suspendedLanes&=~d;var b=31-Jr(d);f.entangledLanes|=d,f.entanglements[b]=f.entanglements[b]|1073741824|m&261930}function zr(f,d){var m=f.entangledLanes|=d;for(f=f.entanglements;m;){var b=31-Jr(m),T=1<<b;T&d|f[b]&d&&(f[b]|=d),m&=~T}}function xn(f,d){var m=d&-d;return m=(m&42)!==0?1:su(m),(m&(f.suspendedLanes|d))!==0?0:m}function su(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=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:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function _f(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function SD(){var f=Y.p;return f!==0?f:(f=window.event,f===void 0?32:s5(f.type))}function wD(f,d){var m=Y.p;try{return Y.p=f,d()}finally{Y.p=m}}var lo=Math.random().toString(36).slice(2),Tr="__reactFiber$"+lo,ca="__reactProps$"+lo,lu="__reactContainer$"+lo,Ky="__reactEvents$"+lo,K9="__reactListeners$"+lo,Q9="__reactHandles$"+lo,CD="__reactResources$"+lo,bf="__reactMarker$"+lo;function Qy(f){delete f[Tr],delete f[ca],delete f[Ky],delete f[K9],delete f[Q9]}function uu(f){var d=f[Tr];if(d)return d;for(var m=f.parentNode;m;){if(d=m[lu]||m[Tr]){if(m=d.alternate,d.child!==null||m!==null&&m.child!==null)for(f=YM(f);f!==null;){if(m=f[Tr])return m;f=YM(f)}return d}f=m,m=f.parentNode}return null}function cu(f){if(f=f[Tr]||f[lu]){var d=f.tag;if(d===5||d===6||d===13||d===31||d===26||d===27||d===3)return f}return null}function Sf(f){var d=f.tag;if(d===5||d===26||d===27||d===6)return f.stateNode;throw Error(a(33))}function fu(f){var d=f[CD];return d||(d=f[CD]={hoistableStyles:new Map,hoistableScripts:new Map}),d}function Sr(f){f[bf]=!0}var AD=new Set,DD={};function bs(f,d){hu(f,d),hu(f+"Capture",d)}function hu(f,d){for(DD[f]=d,f=0;f<d.length;f++)AD.add(d[f])}var J9=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]*$"),TD={},MD={};function ej(f){return Ht.call(MD,f)?!0:Ht.call(TD,f)?!1:J9.test(f)?MD[f]=!0:(TD[f]=!0,!1)}function Rd(f,d,m){if(ej(d))if(m===null)f.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":f.removeAttribute(d);return;case"boolean":var b=d.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){f.removeAttribute(d);return}}f.setAttribute(d,""+m)}}function Bd(f,d,m){if(m===null)f.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(d);return}f.setAttribute(d,""+m)}}function gi(f,d,m,b){if(b===null)f.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(m);return}f.setAttributeNS(d,m,""+b)}}function Fa(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function ED(f){var d=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function tj(f,d,m){var b=Object.getOwnPropertyDescriptor(f.constructor.prototype,d);if(!f.hasOwnProperty(d)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var T=b.get,L=b.set;return Object.defineProperty(f,d,{configurable:!0,get:function(){return T.call(this)},set:function(k){m=""+k,L.call(this,k)}}),Object.defineProperty(f,d,{enumerable:b.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){f._valueTracker=null,delete f[d]}}}}function Jy(f){if(!f._valueTracker){var d=ED(f)?"checked":"value";f._valueTracker=tj(f,d,""+f[d])}}function LD(f){if(!f)return!1;var d=f._valueTracker;if(!d)return!0;var m=d.getValue(),b="";return f&&(b=ED(f)?f.checked?"true":"false":f.value),f=b,f!==m?(d.setValue(f),!0):!1}function Id(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var rj=/[\n"\\]/g;function Va(f){return f.replace(rj,function(d){return"\\"+d.charCodeAt(0).toString(16)+" "})}function ex(f,d,m,b,T,L,k,H){f.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?f.type=k:f.removeAttribute("type"),d!=null?k==="number"?(d===0&&f.value===""||f.value!=d)&&(f.value=""+Fa(d)):f.value!==""+Fa(d)&&(f.value=""+Fa(d)):k!=="submit"&&k!=="reset"||f.removeAttribute("value"),d!=null?tx(f,k,Fa(d)):m!=null?tx(f,k,Fa(m)):b!=null&&f.removeAttribute("value"),T==null&&L!=null&&(f.defaultChecked=!!L),T!=null&&(f.checked=T&&typeof T!="function"&&typeof T!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?f.name=""+Fa(H):f.removeAttribute("name")}function ND(f,d,m,b,T,L,k,H){if(L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(f.type=L),d!=null||m!=null){if(!(L!=="submit"&&L!=="reset"||d!=null)){Jy(f);return}m=m!=null?""+Fa(m):"",d=d!=null?""+Fa(d):m,H||d===f.value||(f.value=d),f.defaultValue=d}b=b??T,b=typeof b!="function"&&typeof b!="symbol"&&!!b,f.checked=H?f.checked:!!b,f.defaultChecked=!!b,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(f.name=k),Jy(f)}function tx(f,d,m){d==="number"&&Id(f.ownerDocument)===f||f.defaultValue===""+m||(f.defaultValue=""+m)}function vu(f,d,m,b){if(f=f.options,d){d={};for(var T=0;T<m.length;T++)d["$"+m[T]]=!0;for(m=0;m<f.length;m++)T=d.hasOwnProperty("$"+f[m].value),f[m].selected!==T&&(f[m].selected=T),T&&b&&(f[m].defaultSelected=!0)}else{for(m=""+Fa(m),d=null,T=0;T<f.length;T++){if(f[T].value===m){f[T].selected=!0,b&&(f[T].defaultSelected=!0);return}d!==null||f[T].disabled||(d=f[T])}d!==null&&(d.selected=!0)}}function RD(f,d,m){if(d!=null&&(d=""+Fa(d),d!==f.value&&(f.value=d),m==null)){f.defaultValue!==d&&(f.defaultValue=d);return}f.defaultValue=m!=null?""+Fa(m):""}function BD(f,d,m,b){if(d==null){if(b!=null){if(m!=null)throw Error(a(92));if(G(b)){if(1<b.length)throw Error(a(93));b=b[0]}m=b}m==null&&(m=""),d=m}m=Fa(d),f.defaultValue=m,b=f.textContent,b===m&&b!==""&&b!==null&&(f.value=b),Jy(f)}function du(f,d){if(d){var m=f.firstChild;if(m&&m===f.lastChild&&m.nodeType===3){m.nodeValue=d;return}}f.textContent=d}var aj=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 ID(f,d,m){var b=d.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?b?f.setProperty(d,""):d==="float"?f.cssFloat="":f[d]="":b?f.setProperty(d,m):typeof m!="number"||m===0||aj.has(d)?d==="float"?f.cssFloat=m:f[d]=(""+m).trim():f[d]=m+"px"}function kD(f,d,m){if(d!=null&&typeof d!="object")throw Error(a(62));if(f=f.style,m!=null){for(var b in m)!m.hasOwnProperty(b)||d!=null&&d.hasOwnProperty(b)||(b.indexOf("--")===0?f.setProperty(b,""):b==="float"?f.cssFloat="":f[b]="");for(var T in d)b=d[T],d.hasOwnProperty(T)&&m[T]!==b&&ID(f,T,b)}else for(var L in d)d.hasOwnProperty(L)&&ID(f,L,d[L])}function rx(f){if(f.indexOf("-")===-1)return!1;switch(f){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 nj=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"]]),ij=/^[\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 kd(f){return ij.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}function mi(){}var ax=null;function nx(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var pu=null,gu=null;function OD(f){var d=cu(f);if(d&&(f=d.stateNode)){var m=f[ca]||null;e:switch(f=d.stateNode,d.type){case"input":if(ex(f,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),d=m.name,m.type==="radio"&&d!=null){for(m=f;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Va(""+d)+'"][type="radio"]'),d=0;d<m.length;d++){var b=m[d];if(b!==f&&b.form===f.form){var T=b[ca]||null;if(!T)throw Error(a(90));ex(b,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(d=0;d<m.length;d++)b=m[d],b.form===f.form&&LD(b)}break e;case"textarea":RD(f,m.value,m.defaultValue);break e;case"select":d=m.value,d!=null&&vu(f,!!m.multiple,d,!1)}}}var ix=!1;function PD(f,d,m){if(ix)return f(d,m);ix=!0;try{var b=f(d);return b}finally{if(ix=!1,(pu!==null||gu!==null)&&(S0(),pu&&(d=pu,f=gu,gu=pu=null,OD(d),f)))for(d=0;d<f.length;d++)OD(f[d])}}function wf(f,d){var m=f.stateNode;if(m===null)return null;var b=m[ca]||null;if(b===null)return null;m=b[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(f=f.type,b=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!b;break e;default:f=!1}if(f)return null;if(m&&typeof m!="function")throw Error(a(231,d,typeof m));return m}var yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ox=!1;if(yi)try{var Cf={};Object.defineProperty(Cf,"passive",{get:function(){ox=!0}}),window.addEventListener("test",Cf,Cf),window.removeEventListener("test",Cf,Cf)}catch{ox=!1}var uo=null,sx=null,Od=null;function zD(){if(Od)return Od;var f,d=sx,m=d.length,b,T="value"in uo?uo.value:uo.textContent,L=T.length;for(f=0;f<m&&d[f]===T[f];f++);var k=m-f;for(b=1;b<=k&&d[m-b]===T[L-b];b++);return Od=T.slice(f,1<b?1-b:void 0)}function Pd(f){var d=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&d===13&&(f=13)):f=d,f===10&&(f=13),32<=f||f===13?f:0}function zd(){return!0}function jD(){return!1}function fa(f){function d(m,b,T,L,k){this._reactName=m,this._targetInst=T,this.type=b,this.nativeEvent=L,this.target=k,this.currentTarget=null;for(var H in f)f.hasOwnProperty(H)&&(m=f[H],this[H]=m?m(L):L[H]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?zd:jD,this.isPropagationStopped=jD,this}return h(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=zd)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=zd)},persist:function(){},isPersistent:zd}),d}var Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=fa(Ss),Af=h({},Ss,{view:0,detail:0}),oj=fa(Af),lx,ux,Df,Fd=h({},Af,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fx,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==Df&&(Df&&f.type==="mousemove"?(lx=f.screenX-Df.screenX,ux=f.screenY-Df.screenY):ux=lx=0,Df=f),lx)},movementY:function(f){return"movementY"in f?f.movementY:ux}}),FD=fa(Fd),sj=h({},Fd,{dataTransfer:0}),lj=fa(sj),uj=h({},Af,{relatedTarget:0}),cx=fa(uj),cj=h({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),fj=fa(cj),hj=h({},Ss,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),vj=fa(hj),dj=h({},Ss,{data:0}),VD=fa(dj),pj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gj={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"},mj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yj(f){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(f):(f=mj[f])?!!d[f]:!1}function fx(){return yj}var xj=h({},Af,{key:function(f){if(f.key){var d=pj[f.key]||f.key;if(d!=="Unidentified")return d}return f.type==="keypress"?(f=Pd(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?gj[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fx,charCode:function(f){return f.type==="keypress"?Pd(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?Pd(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),_j=fa(xj),bj=h({},Fd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HD=fa(bj),Sj=h({},Af,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fx}),wj=fa(Sj),Cj=h({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),Aj=fa(Cj),Dj=h({},Fd,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),Tj=fa(Dj),Mj=h({},Ss,{newState:0,oldState:0}),Ej=fa(Mj),Lj=[9,13,27,32],hx=yi&&"CompositionEvent"in window,Tf=null;yi&&"documentMode"in document&&(Tf=document.documentMode);var Nj=yi&&"TextEvent"in window&&!Tf,GD=yi&&(!hx||Tf&&8<Tf&&11>=Tf),UD=" ",YD=!1;function WD(f,d){switch(f){case"keyup":return Lj.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qD(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var mu=!1;function Rj(f,d){switch(f){case"compositionend":return qD(d);case"keypress":return d.which!==32?null:(YD=!0,UD);case"textInput":return f=d.data,f===UD&&YD?null:f;default:return null}}function Bj(f,d){if(mu)return f==="compositionend"||!hx&&WD(f,d)?(f=zD(),Od=sx=uo=null,mu=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return GD&&d.locale!=="ko"?null:d.data;default:return null}}var Ij={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 XD(f){var d=f&&f.nodeName&&f.nodeName.toLowerCase();return d==="input"?!!Ij[f.type]:d==="textarea"}function ZD(f,d,m,b){pu?gu?gu.push(b):gu=[b]:pu=b,d=E0(d,"onChange"),0<d.length&&(m=new jd("onChange","change",null,m,b),f.push({event:m,listeners:d}))}var Mf=null,Ef=null;function kj(f){NM(f,0)}function Vd(f){var d=Sf(f);if(LD(d))return f}function $D(f,d){if(f==="change")return d}var KD=!1;if(yi){var vx;if(yi){var dx="oninput"in document;if(!dx){var QD=document.createElement("div");QD.setAttribute("oninput","return;"),dx=typeof QD.oninput=="function"}vx=dx}else vx=!1;KD=vx&&(!document.documentMode||9<document.documentMode)}function JD(){Mf&&(Mf.detachEvent("onpropertychange",eT),Ef=Mf=null)}function eT(f){if(f.propertyName==="value"&&Vd(Ef)){var d=[];ZD(d,Ef,f,nx(f)),PD(kj,d)}}function Oj(f,d,m){f==="focusin"?(JD(),Mf=d,Ef=m,Mf.attachEvent("onpropertychange",eT)):f==="focusout"&&JD()}function Pj(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return Vd(Ef)}function zj(f,d){if(f==="click")return Vd(d)}function jj(f,d){if(f==="input"||f==="change")return Vd(d)}function Fj(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var Ca=typeof Object.is=="function"?Object.is:Fj;function Lf(f,d){if(Ca(f,d))return!0;if(typeof f!="object"||f===null||typeof d!="object"||d===null)return!1;var m=Object.keys(f),b=Object.keys(d);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var T=m[b];if(!Ht.call(d,T)||!Ca(f[T],d[T]))return!1}return!0}function tT(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function rT(f,d){var m=tT(f);f=0;for(var b;m;){if(m.nodeType===3){if(b=f+m.textContent.length,f<=d&&b>=d)return{node:m,offset:d-f};f=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=tT(m)}}function aT(f,d){return f&&d?f===d?!0:f&&f.nodeType===3?!1:d&&d.nodeType===3?aT(f,d.parentNode):"contains"in f?f.contains(d):f.compareDocumentPosition?!!(f.compareDocumentPosition(d)&16):!1:!1}function nT(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var d=Id(f.document);d instanceof f.HTMLIFrameElement;){try{var m=typeof d.contentWindow.location.href=="string"}catch{m=!1}if(m)f=d.contentWindow;else break;d=Id(f.document)}return d}function px(f){var d=f&&f.nodeName&&f.nodeName.toLowerCase();return d&&(d==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||d==="textarea"||f.contentEditable==="true")}var Vj=yi&&"documentMode"in document&&11>=document.documentMode,yu=null,gx=null,Nf=null,mx=!1;function iT(f,d,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;mx||yu==null||yu!==Id(b)||(b=yu,"selectionStart"in b&&px(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Nf&&Lf(Nf,b)||(Nf=b,b=E0(gx,"onSelect"),0<b.length&&(d=new jd("onSelect","select",null,d,m),f.push({event:d,listeners:b}),d.target=yu)))}function ws(f,d){var m={};return m[f.toLowerCase()]=d.toLowerCase(),m["Webkit"+f]="webkit"+d,m["Moz"+f]="moz"+d,m}var xu={animationend:ws("Animation","AnimationEnd"),animationiteration:ws("Animation","AnimationIteration"),animationstart:ws("Animation","AnimationStart"),transitionrun:ws("Transition","TransitionRun"),transitionstart:ws("Transition","TransitionStart"),transitioncancel:ws("Transition","TransitionCancel"),transitionend:ws("Transition","TransitionEnd")},yx={},oT={};yi&&(oT=document.createElement("div").style,"AnimationEvent"in window||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),"TransitionEvent"in window||delete xu.transitionend.transition);function Cs(f){if(yx[f])return yx[f];if(!xu[f])return f;var d=xu[f],m;for(m in d)if(d.hasOwnProperty(m)&&m in oT)return yx[f]=d[m];return f}var sT=Cs("animationend"),lT=Cs("animationiteration"),uT=Cs("animationstart"),Hj=Cs("transitionrun"),Gj=Cs("transitionstart"),Uj=Cs("transitioncancel"),cT=Cs("transitionend"),fT=new Map,xx="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(" ");xx.push("scrollEnd");function _n(f,d){fT.set(f,d),bs(d,[f])}var Hd=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},Ha=[],_u=0,_x=0;function Gd(){for(var f=_u,d=_x=_u=0;d<f;){var m=Ha[d];Ha[d++]=null;var b=Ha[d];Ha[d++]=null;var T=Ha[d];Ha[d++]=null;var L=Ha[d];if(Ha[d++]=null,b!==null&&T!==null){var k=b.pending;k===null?T.next=T:(T.next=k.next,k.next=T),b.pending=T}L!==0&&hT(m,T,L)}}function Ud(f,d,m,b){Ha[_u++]=f,Ha[_u++]=d,Ha[_u++]=m,Ha[_u++]=b,_x|=b,f.lanes|=b,f=f.alternate,f!==null&&(f.lanes|=b)}function bx(f,d,m,b){return Ud(f,d,m,b),Yd(f)}function As(f,d){return Ud(f,null,null,d),Yd(f)}function hT(f,d,m){f.lanes|=m;var b=f.alternate;b!==null&&(b.lanes|=m);for(var T=!1,L=f.return;L!==null;)L.childLanes|=m,b=L.alternate,b!==null&&(b.childLanes|=m),L.tag===22&&(f=L.stateNode,f===null||f._visibility&1||(T=!0)),f=L,L=L.return;return f.tag===3?(L=f.stateNode,T&&d!==null&&(T=31-Jr(m),f=L.hiddenUpdates,b=f[T],b===null?f[T]=[d]:b.push(d),d.lane=m|536870912),L):null}function Yd(f){if(50<Jf)throw Jf=0,N1=null,Error(a(185));for(var d=f.return;d!==null;)f=d,d=f.return;return f.tag===3?f.stateNode:null}var bu={};function Yj(f,d,m,b){this.tag=f,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Aa(f,d,m,b){return new Yj(f,d,m,b)}function Sx(f){return f=f.prototype,!(!f||!f.isReactComponent)}function xi(f,d){var m=f.alternate;return m===null?(m=Aa(f.tag,d,f.key,f.mode),m.elementType=f.elementType,m.type=f.type,m.stateNode=f.stateNode,m.alternate=f,f.alternate=m):(m.pendingProps=d,m.type=f.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=f.flags&65011712,m.childLanes=f.childLanes,m.lanes=f.lanes,m.child=f.child,m.memoizedProps=f.memoizedProps,m.memoizedState=f.memoizedState,m.updateQueue=f.updateQueue,d=f.dependencies,m.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},m.sibling=f.sibling,m.index=f.index,m.ref=f.ref,m.refCleanup=f.refCleanup,m}function vT(f,d){f.flags&=65011714;var m=f.alternate;return m===null?(f.childLanes=0,f.lanes=d,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=m.childLanes,f.lanes=m.lanes,f.child=m.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=m.memoizedProps,f.memoizedState=m.memoizedState,f.updateQueue=m.updateQueue,f.type=m.type,d=m.dependencies,f.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext}),f}function Wd(f,d,m,b,T,L){var k=0;if(b=f,typeof f=="function")Sx(f)&&(k=1);else if(typeof f=="string")k=$F(f,m,$.current)?26:f==="html"||f==="head"||f==="body"?27:5;else e:switch(f){case B:return f=Aa(31,m,d,T),f.elementType=B,f.lanes=L,f;case y:return Ds(m.children,T,L,d);case x:k=8,T|=24;break;case _:return f=Aa(12,m,d,T|2),f.elementType=_,f.lanes=L,f;case D:return f=Aa(13,m,d,T),f.elementType=D,f.lanes=L,f;case M:return f=Aa(19,m,d,T),f.elementType=M,f.lanes=L,f;default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case w:k=10;break e;case S:k=9;break e;case C:k=11;break e;case E:k=14;break e;case N:k=16,b=null;break e}k=29,m=Error(a(130,f===null?"null":typeof f,"")),b=null}return d=Aa(k,m,d,T),d.elementType=f,d.type=b,d.lanes=L,d}function Ds(f,d,m,b){return f=Aa(7,f,b,d),f.lanes=m,f}function Cx(f,d,m){return f=Aa(6,f,null,d),f.lanes=m,f}function dT(f){var d=Aa(18,null,null,0);return d.stateNode=f,d}function Ax(f,d,m){return d=Aa(4,f.children!==null?f.children:[],f.key,d),d.lanes=m,d.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},d}var pT=new WeakMap;function Ga(f,d){if(typeof f=="object"&&f!==null){var m=pT.get(f);return m!==void 0?m:(d={value:f,source:d,stack:Pt(d)},pT.set(f,d),d)}return{value:f,source:d,stack:Pt(d)}}var Su=[],wu=0,qd=null,Rf=0,Ua=[],Ya=0,co=null,Vn=1,Hn="";function _i(f,d){Su[wu++]=Rf,Su[wu++]=qd,qd=f,Rf=d}function gT(f,d,m){Ua[Ya++]=Vn,Ua[Ya++]=Hn,Ua[Ya++]=co,co=f;var b=Vn;f=Hn;var T=32-Jr(b)-1;b&=~(1<<T),m+=1;var L=32-Jr(d)+T;if(30<L){var k=T-T%5;L=(b&(1<<k)-1).toString(32),b>>=k,T-=k,Vn=1<<32-Jr(d)+T|m<<T|b,Hn=L+f}else Vn=1<<L|m<<T|b,Hn=f}function Dx(f){f.return!==null&&(_i(f,1),gT(f,1,0))}function Tx(f){for(;f===qd;)qd=Su[--wu],Su[wu]=null,Rf=Su[--wu],Su[wu]=null;for(;f===co;)co=Ua[--Ya],Ua[Ya]=null,Hn=Ua[--Ya],Ua[Ya]=null,Vn=Ua[--Ya],Ua[Ya]=null}function mT(f,d){Ua[Ya++]=Vn,Ua[Ya++]=Hn,Ua[Ya++]=co,Vn=d.id,Hn=d.overflow,co=f}var Mr=null,jt=null,gt=!1,fo=null,Wa=!1,Mx=Error(a(519));function ho(f){var d=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bf(Ga(d,f)),Mx}function yT(f){var d=f.stateNode,m=f.type,b=f.memoizedProps;switch(d[Tr]=f,d[ca]=b,m){case"dialog":ft("cancel",d),ft("close",d);break;case"iframe":case"object":case"embed":ft("load",d);break;case"video":case"audio":for(m=0;m<th.length;m++)ft(th[m],d);break;case"source":ft("error",d);break;case"img":case"image":case"link":ft("error",d),ft("load",d);break;case"details":ft("toggle",d);break;case"input":ft("invalid",d),ND(d,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case"select":ft("invalid",d);break;case"textarea":ft("invalid",d),BD(d,b.value,b.defaultValue,b.children)}m=b.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||d.textContent===""+m||b.suppressHydrationWarning===!0||kM(d.textContent,m)?(b.popover!=null&&(ft("beforetoggle",d),ft("toggle",d)),b.onScroll!=null&&ft("scroll",d),b.onScrollEnd!=null&&ft("scrollend",d),b.onClick!=null&&(d.onclick=mi),d=!0):d=!1,d||ho(f,!0)}function xT(f){for(Mr=f.return;Mr;)switch(Mr.tag){case 5:case 31:case 13:Wa=!1;return;case 27:case 3:Wa=!0;return;default:Mr=Mr.return}}function Cu(f){if(f!==Mr)return!1;if(!gt)return xT(f),gt=!0,!1;var d=f.tag,m;if((m=d!==3&&d!==27)&&((m=d===5)&&(m=f.type,m=!(m!=="form"&&m!=="button")||W1(f.type,f.memoizedProps)),m=!m),m&&jt&&ho(f),xT(f),d===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));jt=UM(f)}else if(d===31){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));jt=UM(f)}else d===27?(d=jt,To(f.type)?(f=K1,K1=null,jt=f):jt=d):jt=Mr?Xa(f.stateNode.nextSibling):null;return!0}function Ts(){jt=Mr=null,gt=!1}function Ex(){var f=fo;return f!==null&&(pa===null?pa=f:pa.push.apply(pa,f),fo=null),f}function Bf(f){fo===null?fo=[f]:fo.push(f)}var Lx=j(null),Ms=null,bi=null;function vo(f,d,m){Z(Lx,d._currentValue),d._currentValue=m}function Si(f){f._currentValue=Lx.current,U(Lx)}function Nx(f,d,m){for(;f!==null;){var b=f.alternate;if((f.childLanes&d)!==d?(f.childLanes|=d,b!==null&&(b.childLanes|=d)):b!==null&&(b.childLanes&d)!==d&&(b.childLanes|=d),f===m)break;f=f.return}}function Rx(f,d,m,b){var T=f.child;for(T!==null&&(T.return=f);T!==null;){var L=T.dependencies;if(L!==null){var k=T.child;L=L.firstContext;e:for(;L!==null;){var H=L;L=T;for(var K=0;K<d.length;K++)if(H.context===d[K]){L.lanes|=m,H=L.alternate,H!==null&&(H.lanes|=m),Nx(L.return,m,f),b||(k=null);break e}L=H.next}}else if(T.tag===18){if(k=T.return,k===null)throw Error(a(341));k.lanes|=m,L=k.alternate,L!==null&&(L.lanes|=m),Nx(k,m,f),k=null}else k=T.child;if(k!==null)k.return=T;else for(k=T;k!==null;){if(k===f){k=null;break}if(T=k.sibling,T!==null){T.return=k.return,k=T;break}k=k.return}T=k}}function Au(f,d,m,b){f=null;for(var T=d,L=!1;T!==null;){if(!L){if((T.flags&524288)!==0)L=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var k=T.alternate;if(k===null)throw Error(a(387));if(k=k.memoizedProps,k!==null){var H=T.type;Ca(T.pendingProps.value,k.value)||(f!==null?f.push(H):f=[H])}}else if(T===ee.current){if(k=T.alternate,k===null)throw Error(a(387));k.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(f!==null?f.push(oh):f=[oh])}T=T.return}f!==null&&Rx(d,f,m,b),d.flags|=262144}function Xd(f){for(f=f.firstContext;f!==null;){if(!Ca(f.context._currentValue,f.memoizedValue))return!0;f=f.next}return!1}function Es(f){Ms=f,bi=null,f=f.dependencies,f!==null&&(f.firstContext=null)}function Er(f){return _T(Ms,f)}function Zd(f,d){return Ms===null&&Es(f),_T(f,d)}function _T(f,d){var m=d._currentValue;if(d={context:d,memoizedValue:m,next:null},bi===null){if(f===null)throw Error(a(308));bi=d,f.dependencies={lanes:0,firstContext:d},f.flags|=524288}else bi=bi.next=d;return m}var Wj=typeof AbortController<"u"?AbortController:function(){var f=[],d=this.signal={aborted:!1,addEventListener:function(m,b){f.push(b)}};this.abort=function(){d.aborted=!0,f.forEach(function(m){return m()})}},qj=r.unstable_scheduleCallback,Xj=r.unstable_NormalPriority,sr={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bx(){return{controller:new Wj,data:new Map,refCount:0}}function If(f){f.refCount--,f.refCount===0&&qj(Xj,function(){f.controller.abort()})}var kf=null,Ix=0,Du=0,Tu=null;function Zj(f,d){if(kf===null){var m=kf=[];Ix=0,Du=P1(),Tu={status:"pending",value:void 0,then:function(b){m.push(b)}}}return Ix++,d.then(bT,bT),d}function bT(){if(--Ix===0&&kf!==null){Tu!==null&&(Tu.status="fulfilled");var f=kf;kf=null,Du=0,Tu=null;for(var d=0;d<f.length;d++)(0,f[d])()}}function $j(f,d){var m=[],b={status:"pending",value:null,reason:null,then:function(T){m.push(T)}};return f.then(function(){b.status="fulfilled",b.value=d;for(var T=0;T<m.length;T++)(0,m[T])(d)},function(T){for(b.status="rejected",b.reason=T,T=0;T<m.length;T++)(0,m[T])(void 0)}),b}var ST=F.S;F.S=function(f,d){iM=or(),typeof d=="object"&&d!==null&&typeof d.then=="function"&&Zj(f,d),ST!==null&&ST(f,d)};var Ls=j(null);function kx(){var f=Ls.current;return f!==null?f:Ot.pooledCache}function $d(f,d){d===null?Z(Ls,Ls.current):Z(Ls,d.pool)}function wT(){var f=kx();return f===null?null:{parent:sr._currentValue,pool:f}}var Mu=Error(a(460)),Ox=Error(a(474)),Kd=Error(a(542)),Qd={then:function(){}};function CT(f){return f=f.status,f==="fulfilled"||f==="rejected"}function AT(f,d,m){switch(m=f[m],m===void 0?f.push(d):m!==d&&(d.then(mi,mi),d=m),d.status){case"fulfilled":return d.value;case"rejected":throw f=d.reason,TT(f),f;default:if(typeof d.status=="string")d.then(mi,mi);else{if(f=Ot,f!==null&&100<f.shellSuspendCounter)throw Error(a(482));f=d,f.status="pending",f.then(function(b){if(d.status==="pending"){var T=d;T.status="fulfilled",T.value=b}},function(b){if(d.status==="pending"){var T=d;T.status="rejected",T.reason=b}})}switch(d.status){case"fulfilled":return d.value;case"rejected":throw f=d.reason,TT(f),f}throw Rs=d,Mu}}function Ns(f){try{var d=f._init;return d(f._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Rs=m,Mu):m}}var Rs=null;function DT(){if(Rs===null)throw Error(a(459));var f=Rs;return Rs=null,f}function TT(f){if(f===Mu||f===Kd)throw Error(a(483))}var Eu=null,Of=0;function Jd(f){var d=Of;return Of+=1,Eu===null&&(Eu=[]),AT(Eu,f,d)}function Pf(f,d){d=d.props.ref,f.ref=d!==void 0?d:null}function e0(f,d){throw d.$$typeof===v?Error(a(525)):(f=Object.prototype.toString.call(d),Error(a(31,f==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":f)))}function MT(f){function d(re,J){if(f){var ae=re.deletions;ae===null?(re.deletions=[J],re.flags|=16):ae.push(J)}}function m(re,J){if(!f)return null;for(;J!==null;)d(re,J),J=J.sibling;return null}function b(re){for(var J=new Map;re!==null;)re.key!==null?J.set(re.key,re):J.set(re.index,re),re=re.sibling;return J}function T(re,J){return re=xi(re,J),re.index=0,re.sibling=null,re}function L(re,J,ae){return re.index=ae,f?(ae=re.alternate,ae!==null?(ae=ae.index,ae<J?(re.flags|=67108866,J):ae):(re.flags|=67108866,J)):(re.flags|=1048576,J)}function k(re){return f&&re.alternate===null&&(re.flags|=67108866),re}function H(re,J,ae,pe){return J===null||J.tag!==6?(J=Cx(ae,re.mode,pe),J.return=re,J):(J=T(J,ae),J.return=re,J)}function K(re,J,ae,pe){var je=ae.type;return je===y?de(re,J,ae.props.children,pe,ae.key):J!==null&&(J.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===N&&Ns(je)===J.type)?(J=T(J,ae.props),Pf(J,ae),J.return=re,J):(J=Wd(ae.type,ae.key,ae.props,null,re.mode,pe),Pf(J,ae),J.return=re,J)}function ne(re,J,ae,pe){return J===null||J.tag!==4||J.stateNode.containerInfo!==ae.containerInfo||J.stateNode.implementation!==ae.implementation?(J=Ax(ae,re.mode,pe),J.return=re,J):(J=T(J,ae.children||[]),J.return=re,J)}function de(re,J,ae,pe,je){return J===null||J.tag!==7?(J=Ds(ae,re.mode,pe,je),J.return=re,J):(J=T(J,ae),J.return=re,J)}function ge(re,J,ae){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=Cx(""+J,re.mode,ae),J.return=re,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case p:return ae=Wd(J.type,J.key,J.props,null,re.mode,ae),Pf(ae,J),ae.return=re,ae;case g:return J=Ax(J,re.mode,ae),J.return=re,J;case N:return J=Ns(J),ge(re,J,ae)}if(G(J)||P(J))return J=Ds(J,re.mode,ae,null),J.return=re,J;if(typeof J.then=="function")return ge(re,Jd(J),ae);if(J.$$typeof===w)return ge(re,Zd(re,J),ae);e0(re,J)}return null}function ie(re,J,ae,pe){var je=J!==null?J.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return je!==null?null:H(re,J,""+ae,pe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case p:return ae.key===je?K(re,J,ae,pe):null;case g:return ae.key===je?ne(re,J,ae,pe):null;case N:return ae=Ns(ae),ie(re,J,ae,pe)}if(G(ae)||P(ae))return je!==null?null:de(re,J,ae,pe,null);if(typeof ae.then=="function")return ie(re,J,Jd(ae),pe);if(ae.$$typeof===w)return ie(re,J,Zd(re,ae),pe);e0(re,ae)}return null}function le(re,J,ae,pe,je){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return re=re.get(ae)||null,H(J,re,""+pe,je);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case p:return re=re.get(pe.key===null?ae:pe.key)||null,K(J,re,pe,je);case g:return re=re.get(pe.key===null?ae:pe.key)||null,ne(J,re,pe,je);case N:return pe=Ns(pe),le(re,J,ae,pe,je)}if(G(pe)||P(pe))return re=re.get(ae)||null,de(J,re,pe,je,null);if(typeof pe.then=="function")return le(re,J,ae,Jd(pe),je);if(pe.$$typeof===w)return le(re,J,ae,Zd(J,pe),je);e0(J,pe)}return null}function Ne(re,J,ae,pe){for(var je=null,xt=null,Ie=J,nt=J=0,vt=null;Ie!==null&&nt<ae.length;nt++){Ie.index>nt?(vt=Ie,Ie=null):vt=Ie.sibling;var _t=ie(re,Ie,ae[nt],pe);if(_t===null){Ie===null&&(Ie=vt);break}f&&Ie&&_t.alternate===null&&d(re,Ie),J=L(_t,J,nt),xt===null?je=_t:xt.sibling=_t,xt=_t,Ie=vt}if(nt===ae.length)return m(re,Ie),gt&&_i(re,nt),je;if(Ie===null){for(;nt<ae.length;nt++)Ie=ge(re,ae[nt],pe),Ie!==null&&(J=L(Ie,J,nt),xt===null?je=Ie:xt.sibling=Ie,xt=Ie);return gt&&_i(re,nt),je}for(Ie=b(Ie);nt<ae.length;nt++)vt=le(Ie,re,nt,ae[nt],pe),vt!==null&&(f&&vt.alternate!==null&&Ie.delete(vt.key===null?nt:vt.key),J=L(vt,J,nt),xt===null?je=vt:xt.sibling=vt,xt=vt);return f&&Ie.forEach(function(Ro){return d(re,Ro)}),gt&&_i(re,nt),je}function Ge(re,J,ae,pe){if(ae==null)throw Error(a(151));for(var je=null,xt=null,Ie=J,nt=J=0,vt=null,_t=ae.next();Ie!==null&&!_t.done;nt++,_t=ae.next()){Ie.index>nt?(vt=Ie,Ie=null):vt=Ie.sibling;var Ro=ie(re,Ie,_t.value,pe);if(Ro===null){Ie===null&&(Ie=vt);break}f&&Ie&&Ro.alternate===null&&d(re,Ie),J=L(Ro,J,nt),xt===null?je=Ro:xt.sibling=Ro,xt=Ro,Ie=vt}if(_t.done)return m(re,Ie),gt&&_i(re,nt),je;if(Ie===null){for(;!_t.done;nt++,_t=ae.next())_t=ge(re,_t.value,pe),_t!==null&&(J=L(_t,J,nt),xt===null?je=_t:xt.sibling=_t,xt=_t);return gt&&_i(re,nt),je}for(Ie=b(Ie);!_t.done;nt++,_t=ae.next())_t=le(Ie,re,nt,_t.value,pe),_t!==null&&(f&&_t.alternate!==null&&Ie.delete(_t.key===null?nt:_t.key),J=L(_t,J,nt),xt===null?je=_t:xt.sibling=_t,xt=_t);return f&&Ie.forEach(function(sV){return d(re,sV)}),gt&&_i(re,nt),je}function Bt(re,J,ae,pe){if(typeof ae=="object"&&ae!==null&&ae.type===y&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case p:e:{for(var je=ae.key;J!==null;){if(J.key===je){if(je=ae.type,je===y){if(J.tag===7){m(re,J.sibling),pe=T(J,ae.props.children),pe.return=re,re=pe;break e}}else if(J.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===N&&Ns(je)===J.type){m(re,J.sibling),pe=T(J,ae.props),Pf(pe,ae),pe.return=re,re=pe;break e}m(re,J);break}else d(re,J);J=J.sibling}ae.type===y?(pe=Ds(ae.props.children,re.mode,pe,ae.key),pe.return=re,re=pe):(pe=Wd(ae.type,ae.key,ae.props,null,re.mode,pe),Pf(pe,ae),pe.return=re,re=pe)}return k(re);case g:e:{for(je=ae.key;J!==null;){if(J.key===je)if(J.tag===4&&J.stateNode.containerInfo===ae.containerInfo&&J.stateNode.implementation===ae.implementation){m(re,J.sibling),pe=T(J,ae.children||[]),pe.return=re,re=pe;break e}else{m(re,J);break}else d(re,J);J=J.sibling}pe=Ax(ae,re.mode,pe),pe.return=re,re=pe}return k(re);case N:return ae=Ns(ae),Bt(re,J,ae,pe)}if(G(ae))return Ne(re,J,ae,pe);if(P(ae)){if(je=P(ae),typeof je!="function")throw Error(a(150));return ae=je.call(ae),Ge(re,J,ae,pe)}if(typeof ae.then=="function")return Bt(re,J,Jd(ae),pe);if(ae.$$typeof===w)return Bt(re,J,Zd(re,ae),pe);e0(re,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,J!==null&&J.tag===6?(m(re,J.sibling),pe=T(J,ae),pe.return=re,re=pe):(m(re,J),pe=Cx(ae,re.mode,pe),pe.return=re,re=pe),k(re)):m(re,J)}return function(re,J,ae,pe){try{Of=0;var je=Bt(re,J,ae,pe);return Eu=null,je}catch(Ie){if(Ie===Mu||Ie===Kd)throw Ie;var xt=Aa(29,Ie,null,re.mode);return xt.lanes=pe,xt.return=re,xt}finally{}}}var Bs=MT(!0),ET=MT(!1),po=!1;function Px(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zx(f,d){f=f.updateQueue,d.updateQueue===f&&(d.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function go(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function mo(f,d,m){var b=f.updateQueue;if(b===null)return null;if(b=b.shared,(wt&2)!==0){var T=b.pending;return T===null?d.next=d:(d.next=T.next,T.next=d),b.pending=d,d=Yd(f),hT(f,null,m),d}return Ud(f,b,d,m),Yd(f)}function zf(f,d,m){if(d=d.updateQueue,d!==null&&(d=d.shared,(m&4194048)!==0)){var b=d.lanes;b&=f.pendingLanes,m|=b,d.lanes=m,zr(f,m)}}function jx(f,d){var m=f.updateQueue,b=f.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var T=null,L=null;if(m=m.firstBaseUpdate,m!==null){do{var k={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};L===null?T=L=k:L=L.next=k,m=m.next}while(m!==null);L===null?T=L=d:L=L.next=d}else T=L=d;m={baseState:b.baseState,firstBaseUpdate:T,lastBaseUpdate:L,shared:b.shared,callbacks:b.callbacks},f.updateQueue=m;return}f=m.lastBaseUpdate,f===null?m.firstBaseUpdate=d:f.next=d,m.lastBaseUpdate=d}var Fx=!1;function jf(){if(Fx){var f=Tu;if(f!==null)throw f}}function Ff(f,d,m,b){Fx=!1;var T=f.updateQueue;po=!1;var L=T.firstBaseUpdate,k=T.lastBaseUpdate,H=T.shared.pending;if(H!==null){T.shared.pending=null;var K=H,ne=K.next;K.next=null,k===null?L=ne:k.next=ne,k=K;var de=f.alternate;de!==null&&(de=de.updateQueue,H=de.lastBaseUpdate,H!==k&&(H===null?de.firstBaseUpdate=ne:H.next=ne,de.lastBaseUpdate=K))}if(L!==null){var ge=T.baseState;k=0,de=ne=K=null,H=L;do{var ie=H.lane&-536870913,le=ie!==H.lane;if(le?(ht&ie)===ie:(b&ie)===ie){ie!==0&&ie===Du&&(Fx=!0),de!==null&&(de=de.next={lane:0,tag:H.tag,payload:H.payload,callback:null,next:null});e:{var Ne=f,Ge=H;ie=d;var Bt=m;switch(Ge.tag){case 1:if(Ne=Ge.payload,typeof Ne=="function"){ge=Ne.call(Bt,ge,ie);break e}ge=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ge.payload,ie=typeof Ne=="function"?Ne.call(Bt,ge,ie):Ne,ie==null)break e;ge=h({},ge,ie);break e;case 2:po=!0}}ie=H.callback,ie!==null&&(f.flags|=64,le&&(f.flags|=8192),le=T.callbacks,le===null?T.callbacks=[ie]:le.push(ie))}else le={lane:ie,tag:H.tag,payload:H.payload,callback:H.callback,next:null},de===null?(ne=de=le,K=ge):de=de.next=le,k|=ie;if(H=H.next,H===null){if(H=T.shared.pending,H===null)break;le=H,H=le.next,le.next=null,T.lastBaseUpdate=le,T.shared.pending=null}}while(!0);de===null&&(K=ge),T.baseState=K,T.firstBaseUpdate=ne,T.lastBaseUpdate=de,L===null&&(T.shared.lanes=0),So|=k,f.lanes=k,f.memoizedState=ge}}function LT(f,d){if(typeof f!="function")throw Error(a(191,f));f.call(d)}function NT(f,d){var m=f.callbacks;if(m!==null)for(f.callbacks=null,f=0;f<m.length;f++)LT(m[f],d)}var Lu=j(null),t0=j(0);function RT(f,d){f=Ni,Z(t0,f),Z(Lu,d),Ni=f|d.baseLanes}function Vx(){Z(t0,Ni),Z(Lu,Lu.current)}function Hx(){Ni=t0.current,U(Lu),U(t0)}var Da=j(null),qa=null;function yo(f){var d=f.alternate;Z(tr,tr.current&1),Z(Da,f),qa===null&&(d===null||Lu.current!==null||d.memoizedState!==null)&&(qa=f)}function Gx(f){Z(tr,tr.current),Z(Da,f),qa===null&&(qa=f)}function BT(f){f.tag===22?(Z(tr,tr.current),Z(Da,f),qa===null&&(qa=f)):xo()}function xo(){Z(tr,tr.current),Z(Da,Da.current)}function Ta(f){U(Da),qa===f&&(qa=null),U(tr)}var tr=j(0);function r0(f){for(var d=f;d!==null;){if(d.tag===13){var m=d.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Z1(m)||$1(m)))return d}else if(d.tag===19&&(d.memoizedProps.revealOrder==="forwards"||d.memoizedProps.revealOrder==="backwards"||d.memoizedProps.revealOrder==="unstable_legacy-backwards"||d.memoizedProps.revealOrder==="together")){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===f)break;for(;d.sibling===null;){if(d.return===null||d.return===f)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var wi=0,et=null,Nt=null,lr=null,a0=!1,Nu=!1,Is=!1,n0=0,Vf=0,Ru=null,Kj=0;function $t(){throw Error(a(321))}function Ux(f,d){if(d===null)return!1;for(var m=0;m<d.length&&m<f.length;m++)if(!Ca(f[m],d[m]))return!1;return!0}function Yx(f,d,m,b,T,L){return wi=L,et=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,F.H=f===null||f.memoizedState===null?g4:o1,Is=!1,L=m(b,T),Is=!1,Nu&&(L=kT(d,m,b,T)),IT(f),L}function IT(f){F.H=Uf;var d=Nt!==null&&Nt.next!==null;if(wi=0,lr=Nt=et=null,a0=!1,Vf=0,Ru=null,d)throw Error(a(300));f===null||ur||(f=f.dependencies,f!==null&&Xd(f)&&(ur=!0))}function kT(f,d,m,b){et=f;var T=0;do{if(Nu&&(Ru=null),Vf=0,Nu=!1,25<=T)throw Error(a(301));if(T+=1,lr=Nt=null,f.updateQueue!=null){var L=f.updateQueue;L.lastEffect=null,L.events=null,L.stores=null,L.memoCache!=null&&(L.memoCache.index=0)}F.H=m4,L=d(m,b)}while(Nu);return L}function Qj(){var f=F.H,d=f.useState()[0];return d=typeof d.then=="function"?Hf(d):d,f=f.useState()[0],(Nt!==null?Nt.memoizedState:null)!==f&&(et.flags|=1024),d}function Wx(){var f=n0!==0;return n0=0,f}function qx(f,d,m){d.updateQueue=f.updateQueue,d.flags&=-2053,f.lanes&=~m}function Xx(f){if(a0){for(f=f.memoizedState;f!==null;){var d=f.queue;d!==null&&(d.pending=null),f=f.next}a0=!1}wi=0,lr=Nt=et=null,Nu=!1,Vf=n0=0,Ru=null}function ea(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lr===null?et.memoizedState=lr=f:lr=lr.next=f,lr}function rr(){if(Nt===null){var f=et.alternate;f=f!==null?f.memoizedState:null}else f=Nt.next;var d=lr===null?et.memoizedState:lr.next;if(d!==null)lr=d,Nt=f;else{if(f===null)throw et.alternate===null?Error(a(467)):Error(a(310));Nt=f,f={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},lr===null?et.memoizedState=lr=f:lr=lr.next=f}return lr}function i0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hf(f){var d=Vf;return Vf+=1,Ru===null&&(Ru=[]),f=AT(Ru,f,d),d=et,(lr===null?d.memoizedState:lr.next)===null&&(d=d.alternate,F.H=d===null||d.memoizedState===null?g4:o1),f}function o0(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return Hf(f);if(f.$$typeof===w)return Er(f)}throw Error(a(438,String(f)))}function Zx(f){var d=null,m=et.updateQueue;if(m!==null&&(d=m.memoCache),d==null){var b=et.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(d={data:b.data.map(function(T){return T.slice()}),index:0})))}if(d==null&&(d={data:[],index:0}),m===null&&(m=i0(),et.updateQueue=m),m.memoCache=d,m=d.data[d.index],m===void 0)for(m=d.data[d.index]=Array(f),b=0;b<f;b++)m[b]=R;return d.index++,m}function Ci(f,d){return typeof d=="function"?d(f):d}function s0(f){var d=rr();return $x(d,Nt,f)}function $x(f,d,m){var b=f.queue;if(b===null)throw Error(a(311));b.lastRenderedReducer=m;var T=f.baseQueue,L=b.pending;if(L!==null){if(T!==null){var k=T.next;T.next=L.next,L.next=k}d.baseQueue=T=L,b.pending=null}if(L=f.baseState,T===null)f.memoizedState=L;else{d=T.next;var H=k=null,K=null,ne=d,de=!1;do{var ge=ne.lane&-536870913;if(ge!==ne.lane?(ht&ge)===ge:(wi&ge)===ge){var ie=ne.revertLane;if(ie===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),ge===Du&&(de=!0);else if((wi&ie)===ie){ne=ne.next,ie===Du&&(de=!0);continue}else ge={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},K===null?(H=K=ge,k=L):K=K.next=ge,et.lanes|=ie,So|=ie;ge=ne.action,Is&&m(L,ge),L=ne.hasEagerState?ne.eagerState:m(L,ge)}else ie={lane:ge,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},K===null?(H=K=ie,k=L):K=K.next=ie,et.lanes|=ge,So|=ge;ne=ne.next}while(ne!==null&&ne!==d);if(K===null?k=L:K.next=H,!Ca(L,f.memoizedState)&&(ur=!0,de&&(m=Tu,m!==null)))throw m;f.memoizedState=L,f.baseState=k,f.baseQueue=K,b.lastRenderedState=L}return T===null&&(b.lanes=0),[f.memoizedState,b.dispatch]}function Kx(f){var d=rr(),m=d.queue;if(m===null)throw Error(a(311));m.lastRenderedReducer=f;var b=m.dispatch,T=m.pending,L=d.memoizedState;if(T!==null){m.pending=null;var k=T=T.next;do L=f(L,k.action),k=k.next;while(k!==T);Ca(L,d.memoizedState)||(ur=!0),d.memoizedState=L,d.baseQueue===null&&(d.baseState=L),m.lastRenderedState=L}return[L,b]}function OT(f,d,m){var b=et,T=rr(),L=gt;if(L){if(m===void 0)throw Error(a(407));m=m()}else m=d();var k=!Ca((Nt||T).memoizedState,m);if(k&&(T.memoizedState=m,ur=!0),T=T.queue,e1(jT.bind(null,b,T,f),[f]),T.getSnapshot!==d||k||lr!==null&&lr.memoizedState.tag&1){if(b.flags|=2048,Bu(9,{destroy:void 0},zT.bind(null,b,T,m,d),null),Ot===null)throw Error(a(349));L||(wi&127)!==0||PT(b,d,m)}return m}function PT(f,d,m){f.flags|=16384,f={getSnapshot:d,value:m},d=et.updateQueue,d===null?(d=i0(),et.updateQueue=d,d.stores=[f]):(m=d.stores,m===null?d.stores=[f]:m.push(f))}function zT(f,d,m,b){d.value=m,d.getSnapshot=b,FT(d)&&VT(f)}function jT(f,d,m){return m(function(){FT(d)&&VT(f)})}function FT(f){var d=f.getSnapshot;f=f.value;try{var m=d();return!Ca(f,m)}catch{return!0}}function VT(f){var d=As(f,2);d!==null&&ga(d,f,2)}function Qx(f){var d=ea();if(typeof f=="function"){var m=f;if(f=m(),Is){yn(!0);try{m()}finally{yn(!1)}}}return d.memoizedState=d.baseState=f,d.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:f},d}function HT(f,d,m,b){return f.baseState=m,$x(f,Nt,typeof b=="function"?b:Ci)}function Jj(f,d,m,b,T){if(c0(f))throw Error(a(485));if(f=d.action,f!==null){var L={payload:T,action:f,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){L.listeners.push(k)}};F.T!==null?m(!0):L.isTransition=!1,b(L),m=d.pending,m===null?(L.next=d.pending=L,GT(d,L)):(L.next=m.next,d.pending=m.next=L)}}function GT(f,d){var m=d.action,b=d.payload,T=f.state;if(d.isTransition){var L=F.T,k={};F.T=k;try{var H=m(T,b),K=F.S;K!==null&&K(k,H),UT(f,d,H)}catch(ne){Jx(f,d,ne)}finally{L!==null&&k.types!==null&&(L.types=k.types),F.T=L}}else try{L=m(T,b),UT(f,d,L)}catch(ne){Jx(f,d,ne)}}function UT(f,d,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(b){YT(f,d,b)},function(b){return Jx(f,d,b)}):YT(f,d,m)}function YT(f,d,m){d.status="fulfilled",d.value=m,WT(d),f.state=m,d=f.pending,d!==null&&(m=d.next,m===d?f.pending=null:(m=m.next,d.next=m,GT(f,m)))}function Jx(f,d,m){var b=f.pending;if(f.pending=null,b!==null){b=b.next;do d.status="rejected",d.reason=m,WT(d),d=d.next;while(d!==b)}f.action=null}function WT(f){f=f.listeners;for(var d=0;d<f.length;d++)(0,f[d])()}function qT(f,d){return d}function XT(f,d){if(gt){var m=Ot.formState;if(m!==null){e:{var b=et;if(gt){if(jt){t:{for(var T=jt,L=Wa;T.nodeType!==8;){if(!L){T=null;break t}if(T=Xa(T.nextSibling),T===null){T=null;break t}}L=T.data,T=L==="F!"||L==="F"?T:null}if(T){jt=Xa(T.nextSibling),b=T.data==="F!";break e}}ho(b)}b=!1}b&&(d=m[0])}}return m=ea(),m.memoizedState=m.baseState=d,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qT,lastRenderedState:d},m.queue=b,m=v4.bind(null,et,b),b.dispatch=m,b=Qx(!1),L=i1.bind(null,et,!1,b.queue),b=ea(),T={state:d,dispatch:null,action:f,pending:null},b.queue=T,m=Jj.bind(null,et,T,L,m),T.dispatch=m,b.memoizedState=f,[d,m,!1]}function ZT(f){var d=rr();return $T(d,Nt,f)}function $T(f,d,m){if(d=$x(f,d,qT)[0],f=s0(Ci)[0],typeof d=="object"&&d!==null&&typeof d.then=="function")try{var b=Hf(d)}catch(k){throw k===Mu?Kd:k}else b=d;d=rr();var T=d.queue,L=T.dispatch;return m!==d.memoizedState&&(et.flags|=2048,Bu(9,{destroy:void 0},eF.bind(null,T,m),null)),[b,L,f]}function eF(f,d){f.action=d}function KT(f){var d=rr(),m=Nt;if(m!==null)return $T(d,m,f);rr(),d=d.memoizedState,m=rr();var b=m.queue.dispatch;return m.memoizedState=f,[d,b,!1]}function Bu(f,d,m,b){return f={tag:f,create:m,deps:b,inst:d,next:null},d=et.updateQueue,d===null&&(d=i0(),et.updateQueue=d),m=d.lastEffect,m===null?d.lastEffect=f.next=f:(b=m.next,m.next=f,f.next=b,d.lastEffect=f),f}function QT(){return rr().memoizedState}function l0(f,d,m,b){var T=ea();et.flags|=f,T.memoizedState=Bu(1|d,{destroy:void 0},m,b===void 0?null:b)}function u0(f,d,m,b){var T=rr();b=b===void 0?null:b;var L=T.memoizedState.inst;Nt!==null&&b!==null&&Ux(b,Nt.memoizedState.deps)?T.memoizedState=Bu(d,L,m,b):(et.flags|=f,T.memoizedState=Bu(1|d,L,m,b))}function JT(f,d){l0(8390656,8,f,d)}function e1(f,d){u0(2048,8,f,d)}function tF(f){et.flags|=4;var d=et.updateQueue;if(d===null)d=i0(),et.updateQueue=d,d.events=[f];else{var m=d.events;m===null?d.events=[f]:m.push(f)}}function e4(f){var d=rr().memoizedState;return tF({ref:d,nextImpl:f}),function(){if((wt&2)!==0)throw Error(a(440));return d.impl.apply(void 0,arguments)}}function t4(f,d){return u0(4,2,f,d)}function r4(f,d){return u0(4,4,f,d)}function a4(f,d){if(typeof d=="function"){f=f();var m=d(f);return function(){typeof m=="function"?m():d(null)}}if(d!=null)return f=f(),d.current=f,function(){d.current=null}}function n4(f,d,m){m=m!=null?m.concat([f]):null,u0(4,4,a4.bind(null,d,f),m)}function t1(){}function i4(f,d){var m=rr();d=d===void 0?null:d;var b=m.memoizedState;return d!==null&&Ux(d,b[1])?b[0]:(m.memoizedState=[f,d],f)}function o4(f,d){var m=rr();d=d===void 0?null:d;var b=m.memoizedState;if(d!==null&&Ux(d,b[1]))return b[0];if(b=f(),Is){yn(!0);try{f()}finally{yn(!1)}}return m.memoizedState=[b,d],b}function r1(f,d,m){return m===void 0||(wi&1073741824)!==0&&(ht&261930)===0?f.memoizedState=d:(f.memoizedState=m,f=sM(),et.lanes|=f,So|=f,m)}function s4(f,d,m,b){return Ca(m,d)?m:Lu.current!==null?(f=r1(f,m,b),Ca(f,d)||(ur=!0),f):(wi&42)===0||(wi&1073741824)!==0&&(ht&261930)===0?(ur=!0,f.memoizedState=m):(f=sM(),et.lanes|=f,So|=f,d)}function l4(f,d,m,b,T){var L=Y.p;Y.p=L!==0&&8>L?L:8;var k=F.T,H={};F.T=H,i1(f,!1,d,m);try{var K=T(),ne=F.S;if(ne!==null&&ne(H,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var de=$j(K,b);Gf(f,d,de,La(f))}else Gf(f,d,b,La(f))}catch(ge){Gf(f,d,{then:function(){},status:"rejected",reason:ge},La())}finally{Y.p=L,k!==null&&H.types!==null&&(k.types=H.types),F.T=k}}function rF(){}function a1(f,d,m,b){if(f.tag!==5)throw Error(a(476));var T=u4(f).queue;l4(f,T,d,W,m===null?rF:function(){return c4(f),m(b)})}function u4(f){var d=f.memoizedState;if(d!==null)return d;d={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:W},next:null};var m={};return d.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:m},next:null},f.memoizedState=d,f=f.alternate,f!==null&&(f.memoizedState=d),d}function c4(f){var d=u4(f);d.next===null&&(d=f.alternate.memoizedState),Gf(f,d.next.queue,{},La())}function n1(){return Er(oh)}function f4(){return rr().memoizedState}function h4(){return rr().memoizedState}function aF(f){for(var d=f.return;d!==null;){switch(d.tag){case 24:case 3:var m=La();f=go(m);var b=mo(d,f,m);b!==null&&(ga(b,d,m),zf(b,d,m)),d={cache:Bx()},f.payload=d;return}d=d.return}}function nF(f,d,m){var b=La();m={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},c0(f)?d4(d,m):(m=bx(f,d,m,b),m!==null&&(ga(m,f,b),p4(m,d,b)))}function v4(f,d,m){var b=La();Gf(f,d,m,b)}function Gf(f,d,m,b){var T={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(c0(f))d4(d,T);else{var L=f.alternate;if(f.lanes===0&&(L===null||L.lanes===0)&&(L=d.lastRenderedReducer,L!==null))try{var k=d.lastRenderedState,H=L(k,m);if(T.hasEagerState=!0,T.eagerState=H,Ca(H,k))return Ud(f,d,T,0),Ot===null&&Gd(),!1}catch{}finally{}if(m=bx(f,d,T,b),m!==null)return ga(m,f,b),p4(m,d,b),!0}return!1}function i1(f,d,m,b){if(b={lane:2,revertLane:P1(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},c0(f)){if(d)throw Error(a(479))}else d=bx(f,m,b,2),d!==null&&ga(d,f,2)}function c0(f){var d=f.alternate;return f===et||d!==null&&d===et}function d4(f,d){Nu=a0=!0;var m=f.pending;m===null?d.next=d:(d.next=m.next,m.next=d),f.pending=d}function p4(f,d,m){if((m&4194048)!==0){var b=d.lanes;b&=f.pendingLanes,m|=b,d.lanes=m,zr(f,m)}}var Uf={readContext:Er,use:o0,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};Uf.useEffectEvent=$t;var g4={readContext:Er,use:o0,useCallback:function(f,d){return ea().memoizedState=[f,d===void 0?null:d],f},useContext:Er,useEffect:JT,useImperativeHandle:function(f,d,m){m=m!=null?m.concat([f]):null,l0(4194308,4,a4.bind(null,d,f),m)},useLayoutEffect:function(f,d){return l0(4194308,4,f,d)},useInsertionEffect:function(f,d){l0(4,2,f,d)},useMemo:function(f,d){var m=ea();d=d===void 0?null:d;var b=f();if(Is){yn(!0);try{f()}finally{yn(!1)}}return m.memoizedState=[b,d],b},useReducer:function(f,d,m){var b=ea();if(m!==void 0){var T=m(d);if(Is){yn(!0);try{m(d)}finally{yn(!1)}}}else T=d;return b.memoizedState=b.baseState=T,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:T},b.queue=f,f=f.dispatch=nF.bind(null,et,f),[b.memoizedState,f]},useRef:function(f){var d=ea();return f={current:f},d.memoizedState=f},useState:function(f){f=Qx(f);var d=f.queue,m=v4.bind(null,et,d);return d.dispatch=m,[f.memoizedState,m]},useDebugValue:t1,useDeferredValue:function(f,d){var m=ea();return r1(m,f,d)},useTransition:function(){var f=Qx(!1);return f=l4.bind(null,et,f.queue,!0,!1),ea().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,d,m){var b=et,T=ea();if(gt){if(m===void 0)throw Error(a(407));m=m()}else{if(m=d(),Ot===null)throw Error(a(349));(ht&127)!==0||PT(b,d,m)}T.memoizedState=m;var L={value:m,getSnapshot:d};return T.queue=L,JT(jT.bind(null,b,L,f),[f]),b.flags|=2048,Bu(9,{destroy:void 0},zT.bind(null,b,L,m,d),null),m},useId:function(){var f=ea(),d=Ot.identifierPrefix;if(gt){var m=Hn,b=Vn;m=(b&~(1<<32-Jr(b)-1)).toString(32)+m,d="_"+d+"R_"+m,m=n0++,0<m&&(d+="H"+m.toString(32)),d+="_"}else m=Kj++,d="_"+d+"r_"+m.toString(32)+"_";return f.memoizedState=d},useHostTransitionStatus:n1,useFormState:XT,useActionState:XT,useOptimistic:function(f){var d=ea();d.memoizedState=d.baseState=f;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return d.queue=m,d=i1.bind(null,et,!0,m),m.dispatch=d,[f,d]},useMemoCache:Zx,useCacheRefresh:function(){return ea().memoizedState=aF.bind(null,et)},useEffectEvent:function(f){var d=ea(),m={impl:f};return d.memoizedState=m,function(){if((wt&2)!==0)throw Error(a(440));return m.impl.apply(void 0,arguments)}}},o1={readContext:Er,use:o0,useCallback:i4,useContext:Er,useEffect:e1,useImperativeHandle:n4,useInsertionEffect:t4,useLayoutEffect:r4,useMemo:o4,useReducer:s0,useRef:QT,useState:function(){return s0(Ci)},useDebugValue:t1,useDeferredValue:function(f,d){var m=rr();return s4(m,Nt.memoizedState,f,d)},useTransition:function(){var f=s0(Ci)[0],d=rr().memoizedState;return[typeof f=="boolean"?f:Hf(f),d]},useSyncExternalStore:OT,useId:f4,useHostTransitionStatus:n1,useFormState:ZT,useActionState:ZT,useOptimistic:function(f,d){var m=rr();return HT(m,Nt,f,d)},useMemoCache:Zx,useCacheRefresh:h4};o1.useEffectEvent=e4;var m4={readContext:Er,use:o0,useCallback:i4,useContext:Er,useEffect:e1,useImperativeHandle:n4,useInsertionEffect:t4,useLayoutEffect:r4,useMemo:o4,useReducer:Kx,useRef:QT,useState:function(){return Kx(Ci)},useDebugValue:t1,useDeferredValue:function(f,d){var m=rr();return Nt===null?r1(m,f,d):s4(m,Nt.memoizedState,f,d)},useTransition:function(){var f=Kx(Ci)[0],d=rr().memoizedState;return[typeof f=="boolean"?f:Hf(f),d]},useSyncExternalStore:OT,useId:f4,useHostTransitionStatus:n1,useFormState:KT,useActionState:KT,useOptimistic:function(f,d){var m=rr();return Nt!==null?HT(m,Nt,f,d):(m.baseState=f,[f,m.queue.dispatch])},useMemoCache:Zx,useCacheRefresh:h4};m4.useEffectEvent=e4;function s1(f,d,m,b){d=f.memoizedState,m=m(b,d),m=m==null?d:h({},d,m),f.memoizedState=m,f.lanes===0&&(f.updateQueue.baseState=m)}var l1={enqueueSetState:function(f,d,m){f=f._reactInternals;var b=La(),T=go(b);T.payload=d,m!=null&&(T.callback=m),d=mo(f,T,b),d!==null&&(ga(d,f,b),zf(d,f,b))},enqueueReplaceState:function(f,d,m){f=f._reactInternals;var b=La(),T=go(b);T.tag=1,T.payload=d,m!=null&&(T.callback=m),d=mo(f,T,b),d!==null&&(ga(d,f,b),zf(d,f,b))},enqueueForceUpdate:function(f,d){f=f._reactInternals;var m=La(),b=go(m);b.tag=2,d!=null&&(b.callback=d),d=mo(f,b,m),d!==null&&(ga(d,f,m),zf(d,f,m))}};function y4(f,d,m,b,T,L,k){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(b,L,k):d.prototype&&d.prototype.isPureReactComponent?!Lf(m,b)||!Lf(T,L):!0}function x4(f,d,m,b){f=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(m,b),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(m,b),d.state!==f&&l1.enqueueReplaceState(d,d.state,null)}function ks(f,d){var m=d;if("ref"in d){m={};for(var b in d)b!=="ref"&&(m[b]=d[b])}if(f=f.defaultProps){m===d&&(m=h({},m));for(var T in f)m[T]===void 0&&(m[T]=f[T])}return m}function _4(f){Hd(f)}function b4(f){console.error(f)}function S4(f){Hd(f)}function f0(f,d){try{var m=f.onUncaughtError;m(d.value,{componentStack:d.stack})}catch(b){setTimeout(function(){throw b})}}function w4(f,d,m){try{var b=f.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:d.tag===1?d.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function u1(f,d,m){return m=go(m),m.tag=3,m.payload={element:null},m.callback=function(){f0(f,d)},m}function C4(f){return f=go(f),f.tag=3,f}function A4(f,d,m,b){var T=m.type.getDerivedStateFromError;if(typeof T=="function"){var L=b.value;f.payload=function(){return T(L)},f.callback=function(){w4(d,m,b)}}var k=m.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(f.callback=function(){w4(d,m,b),typeof T!="function"&&(wo===null?wo=new Set([this]):wo.add(this));var H=b.stack;this.componentDidCatch(b.value,{componentStack:H!==null?H:""})})}function iF(f,d,m,b,T){if(m.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(d=m.alternate,d!==null&&Au(d,m,T,!0),m=Da.current,m!==null){switch(m.tag){case 31:case 13:return qa===null?w0():m.alternate===null&&Kt===0&&(Kt=3),m.flags&=-257,m.flags|=65536,m.lanes=T,b===Qd?m.flags|=16384:(d=m.updateQueue,d===null?m.updateQueue=new Set([b]):d.add(b),I1(f,b,T)),!1;case 22:return m.flags|=65536,b===Qd?m.flags|=16384:(d=m.updateQueue,d===null?(d={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=d):(m=d.retryQueue,m===null?d.retryQueue=new Set([b]):m.add(b)),I1(f,b,T)),!1}throw Error(a(435,m.tag))}return I1(f,b,T),w0(),!1}if(gt)return d=Da.current,d!==null?((d.flags&65536)===0&&(d.flags|=256),d.flags|=65536,d.lanes=T,b!==Mx&&(f=Error(a(422),{cause:b}),Bf(Ga(f,m)))):(b!==Mx&&(d=Error(a(423),{cause:b}),Bf(Ga(d,m))),f=f.current.alternate,f.flags|=65536,T&=-T,f.lanes|=T,b=Ga(b,m),T=u1(f.stateNode,b,T),jx(f,T),Kt!==4&&(Kt=2)),!1;var L=Error(a(520),{cause:b});if(L=Ga(L,m),Qf===null?Qf=[L]:Qf.push(L),Kt!==4&&(Kt=2),d===null)return!0;b=Ga(b,m),m=d;do{switch(m.tag){case 3:return m.flags|=65536,f=T&-T,m.lanes|=f,f=u1(m.stateNode,b,f),jx(m,f),!1;case 1:if(d=m.type,L=m.stateNode,(m.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(wo===null||!wo.has(L))))return m.flags|=65536,T&=-T,m.lanes|=T,T=C4(T),A4(T,f,m,b),jx(m,T),!1}m=m.return}while(m!==null);return!1}var c1=Error(a(461)),ur=!1;function Lr(f,d,m,b){d.child=f===null?ET(d,null,m,b):Bs(d,f.child,m,b)}function D4(f,d,m,b,T){m=m.render;var L=d.ref;if("ref"in b){var k={};for(var H in b)H!=="ref"&&(k[H]=b[H])}else k=b;return Es(d),b=Yx(f,d,m,k,L,T),H=Wx(),f!==null&&!ur?(qx(f,d,T),Ai(f,d,T)):(gt&&H&&Dx(d),d.flags|=1,Lr(f,d,b,T),d.child)}function T4(f,d,m,b,T){if(f===null){var L=m.type;return typeof L=="function"&&!Sx(L)&&L.defaultProps===void 0&&m.compare===null?(d.tag=15,d.type=L,M4(f,d,L,b,T)):(f=Wd(m.type,null,b,d,d.mode,T),f.ref=d.ref,f.return=d,d.child=f)}if(L=f.child,!y1(f,T)){var k=L.memoizedProps;if(m=m.compare,m=m!==null?m:Lf,m(k,b)&&f.ref===d.ref)return Ai(f,d,T)}return d.flags|=1,f=xi(L,b),f.ref=d.ref,f.return=d,d.child=f}function M4(f,d,m,b,T){if(f!==null){var L=f.memoizedProps;if(Lf(L,b)&&f.ref===d.ref)if(ur=!1,d.pendingProps=b=L,y1(f,T))(f.flags&131072)!==0&&(ur=!0);else return d.lanes=f.lanes,Ai(f,d,T)}return f1(f,d,m,b,T)}function E4(f,d,m,b){var T=b.children,L=f!==null?f.memoizedState:null;if(f===null&&d.stateNode===null&&(d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),b.mode==="hidden"){if((d.flags&128)!==0){if(L=L!==null?L.baseLanes|m:m,f!==null){for(b=d.child=f.child,T=0;b!==null;)T=T|b.lanes|b.childLanes,b=b.sibling;b=T&~L}else b=0,d.child=null;return L4(f,d,L,m,b)}if((m&536870912)!==0)d.memoizedState={baseLanes:0,cachePool:null},f!==null&&$d(d,L!==null?L.cachePool:null),L!==null?RT(d,L):Vx(),BT(d);else return b=d.lanes=536870912,L4(f,d,L!==null?L.baseLanes|m:m,m,b)}else L!==null?($d(d,L.cachePool),RT(d,L),xo(),d.memoizedState=null):(f!==null&&$d(d,null),Vx(),xo());return Lr(f,d,T,m),d.child}function Yf(f,d){return f!==null&&f.tag===22||d.stateNode!==null||(d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.sibling}function L4(f,d,m,b,T){var L=kx();return L=L===null?null:{parent:sr._currentValue,pool:L},d.memoizedState={baseLanes:m,cachePool:L},f!==null&&$d(d,null),Vx(),BT(d),f!==null&&Au(f,d,b,!0),d.childLanes=T,null}function h0(f,d){return d=d0({mode:d.mode,children:d.children},f.mode),d.ref=f.ref,f.child=d,d.return=f,d}function N4(f,d,m){return Bs(d,f.child,null,m),f=h0(d,d.pendingProps),f.flags|=2,Ta(d),d.memoizedState=null,f}function oF(f,d,m){var b=d.pendingProps,T=(d.flags&128)!==0;if(d.flags&=-129,f===null){if(gt){if(b.mode==="hidden")return f=h0(d,b),d.lanes=536870912,Yf(null,f);if(Gx(d),(f=jt)?(f=GM(f,Wa),f=f!==null&&f.data==="&"?f:null,f!==null&&(d.memoizedState={dehydrated:f,treeContext:co!==null?{id:Vn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},m=dT(f),m.return=d,d.child=m,Mr=d,jt=null)):f=null,f===null)throw ho(d);return d.lanes=536870912,null}return h0(d,b)}var L=f.memoizedState;if(L!==null){var k=L.dehydrated;if(Gx(d),T)if(d.flags&256)d.flags&=-257,d=N4(f,d,m);else if(d.memoizedState!==null)d.child=f.child,d.flags|=128,d=null;else throw Error(a(558));else if(ur||Au(f,d,m,!1),T=(m&f.childLanes)!==0,ur||T){if(b=Ot,b!==null&&(k=xn(b,m),k!==0&&k!==L.retryLane))throw L.retryLane=k,As(f,k),ga(b,f,k),c1;w0(),d=N4(f,d,m)}else f=L.treeContext,jt=Xa(k.nextSibling),Mr=d,gt=!0,fo=null,Wa=!1,f!==null&&mT(d,f),d=h0(d,b),d.flags|=4096;return d}return f=xi(f.child,{mode:b.mode,children:b.children}),f.ref=d.ref,d.child=f,f.return=d,f}function v0(f,d){var m=d.ref;if(m===null)f!==null&&f.ref!==null&&(d.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(a(284));(f===null||f.ref!==m)&&(d.flags|=4194816)}}function f1(f,d,m,b,T){return Es(d),m=Yx(f,d,m,b,void 0,T),b=Wx(),f!==null&&!ur?(qx(f,d,T),Ai(f,d,T)):(gt&&b&&Dx(d),d.flags|=1,Lr(f,d,m,T),d.child)}function R4(f,d,m,b,T,L){return Es(d),d.updateQueue=null,m=kT(d,b,m,T),IT(f),b=Wx(),f!==null&&!ur?(qx(f,d,L),Ai(f,d,L)):(gt&&b&&Dx(d),d.flags|=1,Lr(f,d,m,L),d.child)}function B4(f,d,m,b,T){if(Es(d),d.stateNode===null){var L=bu,k=m.contextType;typeof k=="object"&&k!==null&&(L=Er(k)),L=new m(b,L),d.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,L.updater=l1,d.stateNode=L,L._reactInternals=d,L=d.stateNode,L.props=b,L.state=d.memoizedState,L.refs={},Px(d),k=m.contextType,L.context=typeof k=="object"&&k!==null?Er(k):bu,L.state=d.memoizedState,k=m.getDerivedStateFromProps,typeof k=="function"&&(s1(d,m,k,b),L.state=d.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(k=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),k!==L.state&&l1.enqueueReplaceState(L,L.state,null),Ff(d,b,L,T),jf(),L.state=d.memoizedState),typeof L.componentDidMount=="function"&&(d.flags|=4194308),b=!0}else if(f===null){L=d.stateNode;var H=d.memoizedProps,K=ks(m,H);L.props=K;var ne=L.context,de=m.contextType;k=bu,typeof de=="object"&&de!==null&&(k=Er(de));var ge=m.getDerivedStateFromProps;de=typeof ge=="function"||typeof L.getSnapshotBeforeUpdate=="function",H=d.pendingProps!==H,de||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(H||ne!==k)&&x4(d,L,b,k),po=!1;var ie=d.memoizedState;L.state=ie,Ff(d,b,L,T),jf(),ne=d.memoizedState,H||ie!==ne||po?(typeof ge=="function"&&(s1(d,m,ge,b),ne=d.memoizedState),(K=po||y4(d,m,K,b,ie,ne,k))?(de||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(d.flags|=4194308)):(typeof L.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=b,d.memoizedState=ne),L.props=b,L.state=ne,L.context=k,b=K):(typeof L.componentDidMount=="function"&&(d.flags|=4194308),b=!1)}else{L=d.stateNode,zx(f,d),k=d.memoizedProps,de=ks(m,k),L.props=de,ge=d.pendingProps,ie=L.context,ne=m.contextType,K=bu,typeof ne=="object"&&ne!==null&&(K=Er(ne)),H=m.getDerivedStateFromProps,(ne=typeof H=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(k!==ge||ie!==K)&&x4(d,L,b,K),po=!1,ie=d.memoizedState,L.state=ie,Ff(d,b,L,T),jf();var le=d.memoizedState;k!==ge||ie!==le||po||f!==null&&f.dependencies!==null&&Xd(f.dependencies)?(typeof H=="function"&&(s1(d,m,H,b),le=d.memoizedState),(de=po||y4(d,m,de,b,ie,le,K)||f!==null&&f.dependencies!==null&&Xd(f.dependencies))?(ne||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(b,le,K),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(b,le,K)),typeof L.componentDidUpdate=="function"&&(d.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof L.componentDidUpdate!="function"||k===f.memoizedProps&&ie===f.memoizedState||(d.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||k===f.memoizedProps&&ie===f.memoizedState||(d.flags|=1024),d.memoizedProps=b,d.memoizedState=le),L.props=b,L.state=le,L.context=K,b=de):(typeof L.componentDidUpdate!="function"||k===f.memoizedProps&&ie===f.memoizedState||(d.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||k===f.memoizedProps&&ie===f.memoizedState||(d.flags|=1024),b=!1)}return L=b,v0(f,d),b=(d.flags&128)!==0,L||b?(L=d.stateNode,m=b&&typeof m.getDerivedStateFromError!="function"?null:L.render(),d.flags|=1,f!==null&&b?(d.child=Bs(d,f.child,null,T),d.child=Bs(d,null,m,T)):Lr(f,d,m,T),d.memoizedState=L.state,f=d.child):f=Ai(f,d,T),f}function I4(f,d,m,b){return Ts(),d.flags|=256,Lr(f,d,m,b),d.child}var h1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function v1(f){return{baseLanes:f,cachePool:wT()}}function d1(f,d,m){return f=f!==null?f.childLanes&~m:0,d&&(f|=Ea),f}function k4(f,d,m){var b=d.pendingProps,T=!1,L=(d.flags&128)!==0,k;if((k=L)||(k=f!==null&&f.memoizedState===null?!1:(tr.current&2)!==0),k&&(T=!0,d.flags&=-129),k=(d.flags&32)!==0,d.flags&=-33,f===null){if(gt){if(T?yo(d):xo(),(f=jt)?(f=GM(f,Wa),f=f!==null&&f.data!=="&"?f:null,f!==null&&(d.memoizedState={dehydrated:f,treeContext:co!==null?{id:Vn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},m=dT(f),m.return=d,d.child=m,Mr=d,jt=null)):f=null,f===null)throw ho(d);return $1(f)?d.lanes=32:d.lanes=536870912,null}var H=b.children;return b=b.fallback,T?(xo(),T=d.mode,H=d0({mode:"hidden",children:H},T),b=Ds(b,T,m,null),H.return=d,b.return=d,H.sibling=b,d.child=H,b=d.child,b.memoizedState=v1(m),b.childLanes=d1(f,k,m),d.memoizedState=h1,Yf(null,b)):(yo(d),p1(d,H))}var K=f.memoizedState;if(K!==null&&(H=K.dehydrated,H!==null)){if(L)d.flags&256?(yo(d),d.flags&=-257,d=g1(f,d,m)):d.memoizedState!==null?(xo(),d.child=f.child,d.flags|=128,d=null):(xo(),H=b.fallback,T=d.mode,b=d0({mode:"visible",children:b.children},T),H=Ds(H,T,m,null),H.flags|=2,b.return=d,H.return=d,b.sibling=H,d.child=b,Bs(d,f.child,null,m),b=d.child,b.memoizedState=v1(m),b.childLanes=d1(f,k,m),d.memoizedState=h1,d=Yf(null,b));else if(yo(d),$1(H)){if(k=H.nextSibling&&H.nextSibling.dataset,k)var ne=k.dgst;k=ne,b=Error(a(419)),b.stack="",b.digest=k,Bf({value:b,source:null,stack:null}),d=g1(f,d,m)}else if(ur||Au(f,d,m,!1),k=(m&f.childLanes)!==0,ur||k){if(k=Ot,k!==null&&(b=xn(k,m),b!==0&&b!==K.retryLane))throw K.retryLane=b,As(f,b),ga(k,f,b),c1;Z1(H)||w0(),d=g1(f,d,m)}else Z1(H)?(d.flags|=192,d.child=f.child,d=null):(f=K.treeContext,jt=Xa(H.nextSibling),Mr=d,gt=!0,fo=null,Wa=!1,f!==null&&mT(d,f),d=p1(d,b.children),d.flags|=4096);return d}return T?(xo(),H=b.fallback,T=d.mode,K=f.child,ne=K.sibling,b=xi(K,{mode:"hidden",children:b.children}),b.subtreeFlags=K.subtreeFlags&65011712,ne!==null?H=xi(ne,H):(H=Ds(H,T,m,null),H.flags|=2),H.return=d,b.return=d,b.sibling=H,d.child=b,Yf(null,b),b=d.child,H=f.child.memoizedState,H===null?H=v1(m):(T=H.cachePool,T!==null?(K=sr._currentValue,T=T.parent!==K?{parent:K,pool:K}:T):T=wT(),H={baseLanes:H.baseLanes|m,cachePool:T}),b.memoizedState=H,b.childLanes=d1(f,k,m),d.memoizedState=h1,Yf(f.child,b)):(yo(d),m=f.child,f=m.sibling,m=xi(m,{mode:"visible",children:b.children}),m.return=d,m.sibling=null,f!==null&&(k=d.deletions,k===null?(d.deletions=[f],d.flags|=16):k.push(f)),d.child=m,d.memoizedState=null,m)}function p1(f,d){return d=d0({mode:"visible",children:d},f.mode),d.return=f,f.child=d}function d0(f,d){return f=Aa(22,f,null,d),f.lanes=0,f}function g1(f,d,m){return Bs(d,f.child,null,m),f=p1(d,d.pendingProps.children),f.flags|=2,d.memoizedState=null,f}function O4(f,d,m){f.lanes|=d;var b=f.alternate;b!==null&&(b.lanes|=d),Nx(f.return,d,m)}function m1(f,d,m,b,T,L){var k=f.memoizedState;k===null?f.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:T,treeForkCount:L}:(k.isBackwards=d,k.rendering=null,k.renderingStartTime=0,k.last=b,k.tail=m,k.tailMode=T,k.treeForkCount=L)}function P4(f,d,m){var b=d.pendingProps,T=b.revealOrder,L=b.tail;b=b.children;var k=tr.current,H=(k&2)!==0;if(H?(k=k&1|2,d.flags|=128):k&=1,Z(tr,k),Lr(f,d,b,m),b=gt?Rf:0,!H&&f!==null&&(f.flags&128)!==0)e:for(f=d.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&O4(f,m,d);else if(f.tag===19)O4(f,m,d);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===d)break e;for(;f.sibling===null;){if(f.return===null||f.return===d)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}switch(T){case"forwards":for(m=d.child,T=null;m!==null;)f=m.alternate,f!==null&&r0(f)===null&&(T=m),m=m.sibling;m=T,m===null?(T=d.child,d.child=null):(T=m.sibling,m.sibling=null),m1(d,!1,T,m,L,b);break;case"backwards":case"unstable_legacy-backwards":for(m=null,T=d.child,d.child=null;T!==null;){if(f=T.alternate,f!==null&&r0(f)===null){d.child=T;break}f=T.sibling,T.sibling=m,m=T,T=f}m1(d,!0,m,null,L,b);break;case"together":m1(d,!1,null,null,void 0,b);break;default:d.memoizedState=null}return d.child}function Ai(f,d,m){if(f!==null&&(d.dependencies=f.dependencies),So|=d.lanes,(m&d.childLanes)===0)if(f!==null){if(Au(f,d,m,!1),(m&d.childLanes)===0)return null}else return null;if(f!==null&&d.child!==f.child)throw Error(a(153));if(d.child!==null){for(f=d.child,m=xi(f,f.pendingProps),d.child=m,m.return=d;f.sibling!==null;)f=f.sibling,m=m.sibling=xi(f,f.pendingProps),m.return=d;m.sibling=null}return d.child}function y1(f,d){return(f.lanes&d)!==0?!0:(f=f.dependencies,!!(f!==null&&Xd(f)))}function sF(f,d,m){switch(d.tag){case 3:se(d,d.stateNode.containerInfo),vo(d,sr,f.memoizedState.cache),Ts();break;case 27:case 5:we(d);break;case 4:se(d,d.stateNode.containerInfo);break;case 10:vo(d,d.type,d.memoizedProps.value);break;case 31:if(d.memoizedState!==null)return d.flags|=128,Gx(d),null;break;case 13:var b=d.memoizedState;if(b!==null)return b.dehydrated!==null?(yo(d),d.flags|=128,null):(m&d.child.childLanes)!==0?k4(f,d,m):(yo(d),f=Ai(f,d,m),f!==null?f.sibling:null);yo(d);break;case 19:var T=(f.flags&128)!==0;if(b=(m&d.childLanes)!==0,b||(Au(f,d,m,!1),b=(m&d.childLanes)!==0),T){if(b)return P4(f,d,m);d.flags|=128}if(T=d.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),Z(tr,tr.current),b)break;return null;case 22:return d.lanes=0,E4(f,d,m,d.pendingProps);case 24:vo(d,sr,f.memoizedState.cache)}return Ai(f,d,m)}function z4(f,d,m){if(f!==null)if(f.memoizedProps!==d.pendingProps)ur=!0;else{if(!y1(f,m)&&(d.flags&128)===0)return ur=!1,sF(f,d,m);ur=(f.flags&131072)!==0}else ur=!1,gt&&(d.flags&1048576)!==0&&gT(d,Rf,d.index);switch(d.lanes=0,d.tag){case 16:e:{var b=d.pendingProps;if(f=Ns(d.elementType),d.type=f,typeof f=="function")Sx(f)?(b=ks(f,b),d.tag=1,d=B4(null,d,f,b,m)):(d.tag=0,d=f1(null,d,f,b,m));else{if(f!=null){var T=f.$$typeof;if(T===C){d.tag=11,d=D4(null,d,f,b,m);break e}else if(T===E){d.tag=14,d=T4(null,d,f,b,m);break e}}throw d=V(f)||f,Error(a(306,d,""))}}return d;case 0:return f1(f,d,d.type,d.pendingProps,m);case 1:return b=d.type,T=ks(b,d.pendingProps),B4(f,d,b,T,m);case 3:e:{if(se(d,d.stateNode.containerInfo),f===null)throw Error(a(387));b=d.pendingProps;var L=d.memoizedState;T=L.element,zx(f,d),Ff(d,b,null,m);var k=d.memoizedState;if(b=k.cache,vo(d,sr,b),b!==L.cache&&Rx(d,[sr],m,!0),jf(),b=k.element,L.isDehydrated)if(L={element:b,isDehydrated:!1,cache:k.cache},d.updateQueue.baseState=L,d.memoizedState=L,d.flags&256){d=I4(f,d,b,m);break e}else if(b!==T){T=Ga(Error(a(424)),d),Bf(T),d=I4(f,d,b,m);break e}else{switch(f=d.stateNode.containerInfo,f.nodeType){case 9:f=f.body;break;default:f=f.nodeName==="HTML"?f.ownerDocument.body:f}for(jt=Xa(f.firstChild),Mr=d,gt=!0,fo=null,Wa=!0,m=ET(d,null,b,m),d.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Ts(),b===T){d=Ai(f,d,m);break e}Lr(f,d,b,m)}d=d.child}return d;case 26:return v0(f,d),f===null?(m=ZM(d.type,null,d.pendingProps,null))?d.memoizedState=m:gt||(m=d.type,f=d.pendingProps,b=L0(ye.current).createElement(m),b[Tr]=d,b[ca]=f,Nr(b,m,f),Sr(b),d.stateNode=b):d.memoizedState=ZM(d.type,f.memoizedProps,d.pendingProps,f.memoizedState),null;case 27:return we(d),f===null&&gt&&(b=d.stateNode=WM(d.type,d.pendingProps,ye.current),Mr=d,Wa=!0,T=jt,To(d.type)?(K1=T,jt=Xa(b.firstChild)):jt=T),Lr(f,d,d.pendingProps.children,m),v0(f,d),f===null&&(d.flags|=4194304),d.child;case 5:return f===null&&gt&&((T=b=jt)&&(b=PF(b,d.type,d.pendingProps,Wa),b!==null?(d.stateNode=b,Mr=d,jt=Xa(b.firstChild),Wa=!1,T=!0):T=!1),T||ho(d)),we(d),T=d.type,L=d.pendingProps,k=f!==null?f.memoizedProps:null,b=L.children,W1(T,L)?b=null:k!==null&&W1(T,k)&&(d.flags|=32),d.memoizedState!==null&&(T=Yx(f,d,Qj,null,null,m),oh._currentValue=T),v0(f,d),Lr(f,d,b,m),d.child;case 6:return f===null&&gt&&((f=m=jt)&&(m=zF(m,d.pendingProps,Wa),m!==null?(d.stateNode=m,Mr=d,jt=null,f=!0):f=!1),f||ho(d)),null;case 13:return k4(f,d,m);case 4:return se(d,d.stateNode.containerInfo),b=d.pendingProps,f===null?d.child=Bs(d,null,b,m):Lr(f,d,b,m),d.child;case 11:return D4(f,d,d.type,d.pendingProps,m);case 7:return Lr(f,d,d.pendingProps,m),d.child;case 8:return Lr(f,d,d.pendingProps.children,m),d.child;case 12:return Lr(f,d,d.pendingProps.children,m),d.child;case 10:return b=d.pendingProps,vo(d,d.type,b.value),Lr(f,d,b.children,m),d.child;case 9:return T=d.type._context,b=d.pendingProps.children,Es(d),T=Er(T),b=b(T),d.flags|=1,Lr(f,d,b,m),d.child;case 14:return T4(f,d,d.type,d.pendingProps,m);case 15:return M4(f,d,d.type,d.pendingProps,m);case 19:return P4(f,d,m);case 31:return oF(f,d,m);case 22:return E4(f,d,m,d.pendingProps);case 24:return Es(d),b=Er(sr),f===null?(T=kx(),T===null&&(T=Ot,L=Bx(),T.pooledCache=L,L.refCount++,L!==null&&(T.pooledCacheLanes|=m),T=L),d.memoizedState={parent:b,cache:T},Px(d),vo(d,sr,T)):((f.lanes&m)!==0&&(zx(f,d),Ff(d,null,null,m),jf()),T=f.memoizedState,L=d.memoizedState,T.parent!==b?(T={parent:b,cache:b},d.memoizedState=T,d.lanes===0&&(d.memoizedState=d.updateQueue.baseState=T),vo(d,sr,b)):(b=L.cache,vo(d,sr,b),b!==T.cache&&Rx(d,[sr],m,!0))),Lr(f,d,d.pendingProps.children,m),d.child;case 29:throw d.pendingProps}throw Error(a(156,d.tag))}function Di(f){f.flags|=4}function x1(f,d,m,b,T){if((d=(f.mode&32)!==0)&&(d=!1),d){if(f.flags|=16777216,(T&335544128)===T)if(f.stateNode.complete)f.flags|=8192;else if(fM())f.flags|=8192;else throw Rs=Qd,Ox}else f.flags&=-16777217}function j4(f,d){if(d.type!=="stylesheet"||(d.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!e5(d))if(fM())f.flags|=8192;else throw Rs=Qd,Ox}function p0(f,d){d!==null&&(f.flags|=4),f.flags&16384&&(d=f.tag!==22?Nd():536870912,f.lanes|=d,Pu|=d)}function Wf(f,d){if(!gt)switch(f.tailMode){case"hidden":d=f.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?f.tail=null:m.sibling=null;break;case"collapsed":m=f.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?d||f.tail===null?f.tail=null:f.tail.sibling=null:b.sibling=null}}function Ft(f){var d=f.alternate!==null&&f.alternate.child===f.child,m=0,b=0;if(d)for(var T=f.child;T!==null;)m|=T.lanes|T.childLanes,b|=T.subtreeFlags&65011712,b|=T.flags&65011712,T.return=f,T=T.sibling;else for(T=f.child;T!==null;)m|=T.lanes|T.childLanes,b|=T.subtreeFlags,b|=T.flags,T.return=f,T=T.sibling;return f.subtreeFlags|=b,f.childLanes=m,d}function lF(f,d,m){var b=d.pendingProps;switch(Tx(d),d.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(d),null;case 1:return Ft(d),null;case 3:return m=d.stateNode,b=null,f!==null&&(b=f.memoizedState.cache),d.memoizedState.cache!==b&&(d.flags|=2048),Si(sr),ue(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(f===null||f.child===null)&&(Cu(d)?Di(d):f===null||f.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Ex())),Ft(d),null;case 26:var T=d.type,L=d.memoizedState;return f===null?(Di(d),L!==null?(Ft(d),j4(d,L)):(Ft(d),x1(d,T,null,b,m))):L?L!==f.memoizedState?(Di(d),Ft(d),j4(d,L)):(Ft(d),d.flags&=-16777217):(f=f.memoizedProps,f!==b&&Di(d),Ft(d),x1(d,T,f,b,m)),null;case 27:if(ve(d),m=ye.current,T=d.type,f!==null&&d.stateNode!=null)f.memoizedProps!==b&&Di(d);else{if(!b){if(d.stateNode===null)throw Error(a(166));return Ft(d),null}f=$.current,Cu(d)?yT(d):(f=WM(T,b,m),d.stateNode=f,Di(d))}return Ft(d),null;case 5:if(ve(d),T=d.type,f!==null&&d.stateNode!=null)f.memoizedProps!==b&&Di(d);else{if(!b){if(d.stateNode===null)throw Error(a(166));return Ft(d),null}if(L=$.current,Cu(d))yT(d);else{var k=L0(ye.current);switch(L){case 1:L=k.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:L=k.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":L=k.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":L=k.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":L=k.createElement("div"),L.innerHTML="<script><\/script>",L=L.removeChild(L.firstChild);break;case"select":L=typeof b.is=="string"?k.createElement("select",{is:b.is}):k.createElement("select"),b.multiple?L.multiple=!0:b.size&&(L.size=b.size);break;default:L=typeof b.is=="string"?k.createElement(T,{is:b.is}):k.createElement(T)}}L[Tr]=d,L[ca]=b;e:for(k=d.child;k!==null;){if(k.tag===5||k.tag===6)L.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===d)break e;for(;k.sibling===null;){if(k.return===null||k.return===d)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}d.stateNode=L;e:switch(Nr(L,T,b),T){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}b&&Di(d)}}return Ft(d),x1(d,d.type,f===null?null:f.memoizedProps,d.pendingProps,m),null;case 6:if(f&&d.stateNode!=null)f.memoizedProps!==b&&Di(d);else{if(typeof b!="string"&&d.stateNode===null)throw Error(a(166));if(f=ye.current,Cu(d)){if(f=d.stateNode,m=d.memoizedProps,b=null,T=Mr,T!==null)switch(T.tag){case 27:case 5:b=T.memoizedProps}f[Tr]=d,f=!!(f.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||kM(f.nodeValue,m)),f||ho(d,!0)}else f=L0(f).createTextNode(b),f[Tr]=d,d.stateNode=f}return Ft(d),null;case 31:if(m=d.memoizedState,f===null||f.memoizedState!==null){if(b=Cu(d),m!==null){if(f===null){if(!b)throw Error(a(318));if(f=d.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(557));f[Tr]=d}else Ts(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;Ft(d),f=!1}else m=Ex(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=m),f=!0;if(!f)return d.flags&256?(Ta(d),d):(Ta(d),null);if((d.flags&128)!==0)throw Error(a(558))}return Ft(d),null;case 13:if(b=d.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(T=Cu(d),b!==null&&b.dehydrated!==null){if(f===null){if(!T)throw Error(a(318));if(T=d.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(a(317));T[Tr]=d}else Ts(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;Ft(d),T=!1}else T=Ex(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=T),T=!0;if(!T)return d.flags&256?(Ta(d),d):(Ta(d),null)}return Ta(d),(d.flags&128)!==0?(d.lanes=m,d):(m=b!==null,f=f!==null&&f.memoizedState!==null,m&&(b=d.child,T=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(T=b.alternate.memoizedState.cachePool.pool),L=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(L=b.memoizedState.cachePool.pool),L!==T&&(b.flags|=2048)),m!==f&&m&&(d.child.flags|=8192),p0(d,d.updateQueue),Ft(d),null);case 4:return ue(),f===null&&V1(d.stateNode.containerInfo),Ft(d),null;case 10:return Si(d.type),Ft(d),null;case 19:if(U(tr),b=d.memoizedState,b===null)return Ft(d),null;if(T=(d.flags&128)!==0,L=b.rendering,L===null)if(T)Wf(b,!1);else{if(Kt!==0||f!==null&&(f.flags&128)!==0)for(f=d.child;f!==null;){if(L=r0(f),L!==null){for(d.flags|=128,Wf(b,!1),f=L.updateQueue,d.updateQueue=f,p0(d,f),d.subtreeFlags=0,f=m,m=d.child;m!==null;)vT(m,f),m=m.sibling;return Z(tr,tr.current&1|2),gt&&_i(d,b.treeForkCount),d.child}f=f.sibling}b.tail!==null&&or()>_0&&(d.flags|=128,T=!0,Wf(b,!1),d.lanes=4194304)}else{if(!T)if(f=r0(L),f!==null){if(d.flags|=128,T=!0,f=f.updateQueue,d.updateQueue=f,p0(d,f),Wf(b,!0),b.tail===null&&b.tailMode==="hidden"&&!L.alternate&&!gt)return Ft(d),null}else 2*or()-b.renderingStartTime>_0&&m!==536870912&&(d.flags|=128,T=!0,Wf(b,!1),d.lanes=4194304);b.isBackwards?(L.sibling=d.child,d.child=L):(f=b.last,f!==null?f.sibling=L:d.child=L,b.last=L)}return b.tail!==null?(f=b.tail,b.rendering=f,b.tail=f.sibling,b.renderingStartTime=or(),f.sibling=null,m=tr.current,Z(tr,T?m&1|2:m&1),gt&&_i(d,b.treeForkCount),f):(Ft(d),null);case 22:case 23:return Ta(d),Hx(),b=d.memoizedState!==null,f!==null?f.memoizedState!==null!==b&&(d.flags|=8192):b&&(d.flags|=8192),b?(m&536870912)!==0&&(d.flags&128)===0&&(Ft(d),d.subtreeFlags&6&&(d.flags|=8192)):Ft(d),m=d.updateQueue,m!==null&&p0(d,m.retryQueue),m=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(m=f.memoizedState.cachePool.pool),b=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==m&&(d.flags|=2048),f!==null&&U(Ls),null;case 24:return m=null,f!==null&&(m=f.memoizedState.cache),d.memoizedState.cache!==m&&(d.flags|=2048),Si(sr),Ft(d),null;case 25:return null;case 30:return null}throw Error(a(156,d.tag))}function uF(f,d){switch(Tx(d),d.tag){case 1:return f=d.flags,f&65536?(d.flags=f&-65537|128,d):null;case 3:return Si(sr),ue(),f=d.flags,(f&65536)!==0&&(f&128)===0?(d.flags=f&-65537|128,d):null;case 26:case 27:case 5:return ve(d),null;case 31:if(d.memoizedState!==null){if(Ta(d),d.alternate===null)throw Error(a(340));Ts()}return f=d.flags,f&65536?(d.flags=f&-65537|128,d):null;case 13:if(Ta(d),f=d.memoizedState,f!==null&&f.dehydrated!==null){if(d.alternate===null)throw Error(a(340));Ts()}return f=d.flags,f&65536?(d.flags=f&-65537|128,d):null;case 19:return U(tr),null;case 4:return ue(),null;case 10:return Si(d.type),null;case 22:case 23:return Ta(d),Hx(),f!==null&&U(Ls),f=d.flags,f&65536?(d.flags=f&-65537|128,d):null;case 24:return Si(sr),null;case 25:return null;default:return null}}function F4(f,d){switch(Tx(d),d.tag){case 3:Si(sr),ue();break;case 26:case 27:case 5:ve(d);break;case 4:ue();break;case 31:d.memoizedState!==null&&Ta(d);break;case 13:Ta(d);break;case 19:U(tr);break;case 10:Si(d.type);break;case 22:case 23:Ta(d),Hx(),f!==null&&U(Ls);break;case 24:Si(sr)}}function qf(f,d){try{var m=d.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var T=b.next;m=T;do{if((m.tag&f)===f){b=void 0;var L=m.create,k=m.inst;b=L(),k.destroy=b}m=m.next}while(m!==T)}}catch(H){Tt(d,d.return,H)}}function _o(f,d,m){try{var b=d.updateQueue,T=b!==null?b.lastEffect:null;if(T!==null){var L=T.next;b=L;do{if((b.tag&f)===f){var k=b.inst,H=k.destroy;if(H!==void 0){k.destroy=void 0,T=d;var K=m,ne=H;try{ne()}catch(de){Tt(T,K,de)}}}b=b.next}while(b!==L)}}catch(de){Tt(d,d.return,de)}}function V4(f){var d=f.updateQueue;if(d!==null){var m=f.stateNode;try{NT(d,m)}catch(b){Tt(f,f.return,b)}}}function H4(f,d,m){m.props=ks(f.type,f.memoizedProps),m.state=f.memoizedState;try{m.componentWillUnmount()}catch(b){Tt(f,d,b)}}function Xf(f,d){try{var m=f.ref;if(m!==null){switch(f.tag){case 26:case 27:case 5:var b=f.stateNode;break;case 30:b=f.stateNode;break;default:b=f.stateNode}typeof m=="function"?f.refCleanup=m(b):m.current=b}}catch(T){Tt(f,d,T)}}function Gn(f,d){var m=f.ref,b=f.refCleanup;if(m!==null)if(typeof b=="function")try{b()}catch(T){Tt(f,d,T)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(T){Tt(f,d,T)}else m.current=null}function G4(f){var d=f.type,m=f.memoizedProps,b=f.stateNode;try{e:switch(d){case"button":case"input":case"select":case"textarea":m.autoFocus&&b.focus();break e;case"img":m.src?b.src=m.src:m.srcSet&&(b.srcset=m.srcSet)}}catch(T){Tt(f,f.return,T)}}function _1(f,d,m){try{var b=f.stateNode;NF(b,f.type,m,d),b[ca]=d}catch(T){Tt(f,f.return,T)}}function U4(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&To(f.type)||f.tag===4}function b1(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||U4(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&To(f.type)||f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function S1(f,d,m){var b=f.tag;if(b===5||b===6)f=f.stateNode,d?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(f,d):(d=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,d.appendChild(f),m=m._reactRootContainer,m!=null||d.onclick!==null||(d.onclick=mi));else if(b!==4&&(b===27&&To(f.type)&&(m=f.stateNode,d=null),f=f.child,f!==null))for(S1(f,d,m),f=f.sibling;f!==null;)S1(f,d,m),f=f.sibling}function g0(f,d,m){var b=f.tag;if(b===5||b===6)f=f.stateNode,d?m.insertBefore(f,d):m.appendChild(f);else if(b!==4&&(b===27&&To(f.type)&&(m=f.stateNode),f=f.child,f!==null))for(g0(f,d,m),f=f.sibling;f!==null;)g0(f,d,m),f=f.sibling}function Y4(f){var d=f.stateNode,m=f.memoizedProps;try{for(var b=f.type,T=d.attributes;T.length;)d.removeAttributeNode(T[0]);Nr(d,b,m),d[Tr]=f,d[ca]=m}catch(L){Tt(f,f.return,L)}}var Ti=!1,cr=!1,w1=!1,W4=typeof WeakSet=="function"?WeakSet:Set,wr=null;function cF(f,d){if(f=f.containerInfo,U1=P0,f=nT(f),px(f)){if("selectionStart"in f)var m={start:f.selectionStart,end:f.selectionEnd};else e:{m=(m=f.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var T=b.anchorOffset,L=b.focusNode;b=b.focusOffset;try{m.nodeType,L.nodeType}catch{m=null;break e}var k=0,H=-1,K=-1,ne=0,de=0,ge=f,ie=null;t:for(;;){for(var le;ge!==m||T!==0&&ge.nodeType!==3||(H=k+T),ge!==L||b!==0&&ge.nodeType!==3||(K=k+b),ge.nodeType===3&&(k+=ge.nodeValue.length),(le=ge.firstChild)!==null;)ie=ge,ge=le;for(;;){if(ge===f)break t;if(ie===m&&++ne===T&&(H=k),ie===L&&++de===b&&(K=k),(le=ge.nextSibling)!==null)break;ge=ie,ie=ge.parentNode}ge=le}m=H===-1||K===-1?null:{start:H,end:K}}else m=null}m=m||{start:0,end:0}}else m=null;for(Y1={focusedElem:f,selectionRange:m},P0=!1,wr=d;wr!==null;)if(d=wr,f=d.child,(d.subtreeFlags&1028)!==0&&f!==null)f.return=d,wr=f;else for(;wr!==null;){switch(d=wr,L=d.alternate,f=d.flags,d.tag){case 0:if((f&4)!==0&&(f=d.updateQueue,f=f!==null?f.events:null,f!==null))for(m=0;m<f.length;m++)T=f[m],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((f&1024)!==0&&L!==null){f=void 0,m=d,T=L.memoizedProps,L=L.memoizedState,b=m.stateNode;try{var Ne=ks(m.type,T);f=b.getSnapshotBeforeUpdate(Ne,L),b.__reactInternalSnapshotBeforeUpdate=f}catch(Ge){Tt(m,m.return,Ge)}}break;case 3:if((f&1024)!==0){if(f=d.stateNode.containerInfo,m=f.nodeType,m===9)X1(f);else if(m===1)switch(f.nodeName){case"HEAD":case"HTML":case"BODY":X1(f);break;default:f.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error(a(163))}if(f=d.sibling,f!==null){f.return=d.return,wr=f;break}wr=d.return}}function q4(f,d,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:Ei(f,m),b&4&&qf(5,m);break;case 1:if(Ei(f,m),b&4)if(f=m.stateNode,d===null)try{f.componentDidMount()}catch(k){Tt(m,m.return,k)}else{var T=ks(m.type,d.memoizedProps);d=d.memoizedState;try{f.componentDidUpdate(T,d,f.__reactInternalSnapshotBeforeUpdate)}catch(k){Tt(m,m.return,k)}}b&64&&V4(m),b&512&&Xf(m,m.return);break;case 3:if(Ei(f,m),b&64&&(f=m.updateQueue,f!==null)){if(d=null,m.child!==null)switch(m.child.tag){case 27:case 5:d=m.child.stateNode;break;case 1:d=m.child.stateNode}try{NT(f,d)}catch(k){Tt(m,m.return,k)}}break;case 27:d===null&&b&4&&Y4(m);case 26:case 5:Ei(f,m),d===null&&b&4&&G4(m),b&512&&Xf(m,m.return);break;case 12:Ei(f,m);break;case 31:Ei(f,m),b&4&&$4(f,m);break;case 13:Ei(f,m),b&4&&K4(f,m),b&64&&(f=m.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(m=xF.bind(null,m),jF(f,m))));break;case 22:if(b=m.memoizedState!==null||Ti,!b){d=d!==null&&d.memoizedState!==null||cr,T=Ti;var L=cr;Ti=b,(cr=d)&&!L?Li(f,m,(m.subtreeFlags&8772)!==0):Ei(f,m),Ti=T,cr=L}break;case 30:break;default:Ei(f,m)}}function X4(f){var d=f.alternate;d!==null&&(f.alternate=null,X4(d)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(d=f.stateNode,d!==null&&Qy(d)),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}var Gt=null,ha=!1;function Mi(f,d,m){for(m=m.child;m!==null;)Z4(f,d,m),m=m.sibling}function Z4(f,d,m){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(er,m)}catch{}switch(m.tag){case 26:cr||Gn(m,d),Mi(f,d,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:cr||Gn(m,d);var b=Gt,T=ha;To(m.type)&&(Gt=m.stateNode,ha=!1),Mi(f,d,m),ah(m.stateNode),Gt=b,ha=T;break;case 5:cr||Gn(m,d);case 6:if(b=Gt,T=ha,Gt=null,Mi(f,d,m),Gt=b,ha=T,Gt!==null)if(ha)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(m.stateNode)}catch(L){Tt(m,d,L)}else try{Gt.removeChild(m.stateNode)}catch(L){Tt(m,d,L)}break;case 18:Gt!==null&&(ha?(f=Gt,VM(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,m.stateNode),Yu(f)):VM(Gt,m.stateNode));break;case 4:b=Gt,T=ha,Gt=m.stateNode.containerInfo,ha=!0,Mi(f,d,m),Gt=b,ha=T;break;case 0:case 11:case 14:case 15:_o(2,m,d),cr||_o(4,m,d),Mi(f,d,m);break;case 1:cr||(Gn(m,d),b=m.stateNode,typeof b.componentWillUnmount=="function"&&H4(m,d,b)),Mi(f,d,m);break;case 21:Mi(f,d,m);break;case 22:cr=(b=cr)||m.memoizedState!==null,Mi(f,d,m),cr=b;break;default:Mi(f,d,m)}}function $4(f,d){if(d.memoizedState===null&&(f=d.alternate,f!==null&&(f=f.memoizedState,f!==null))){f=f.dehydrated;try{Yu(f)}catch(m){Tt(d,d.return,m)}}}function K4(f,d){if(d.memoizedState===null&&(f=d.alternate,f!==null&&(f=f.memoizedState,f!==null&&(f=f.dehydrated,f!==null))))try{Yu(f)}catch(m){Tt(d,d.return,m)}}function fF(f){switch(f.tag){case 31:case 13:case 19:var d=f.stateNode;return d===null&&(d=f.stateNode=new W4),d;case 22:return f=f.stateNode,d=f._retryCache,d===null&&(d=f._retryCache=new W4),d;default:throw Error(a(435,f.tag))}}function m0(f,d){var m=fF(f);d.forEach(function(b){if(!m.has(b)){m.add(b);var T=_F.bind(null,f,b);b.then(T,T)}})}function va(f,d){var m=d.deletions;if(m!==null)for(var b=0;b<m.length;b++){var T=m[b],L=f,k=d,H=k;e:for(;H!==null;){switch(H.tag){case 27:if(To(H.type)){Gt=H.stateNode,ha=!1;break e}break;case 5:Gt=H.stateNode,ha=!1;break e;case 3:case 4:Gt=H.stateNode.containerInfo,ha=!0;break e}H=H.return}if(Gt===null)throw Error(a(160));Z4(L,k,T),Gt=null,ha=!1,L=T.alternate,L!==null&&(L.return=null),T.return=null}if(d.subtreeFlags&13886)for(d=d.child;d!==null;)Q4(d,f),d=d.sibling}var bn=null;function Q4(f,d){var m=f.alternate,b=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:va(d,f),da(f),b&4&&(_o(3,f,f.return),qf(3,f),_o(5,f,f.return));break;case 1:va(d,f),da(f),b&512&&(cr||m===null||Gn(m,m.return)),b&64&&Ti&&(f=f.updateQueue,f!==null&&(b=f.callbacks,b!==null&&(m=f.shared.hiddenCallbacks,f.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var T=bn;if(va(d,f),da(f),b&512&&(cr||m===null||Gn(m,m.return)),b&4){var L=m!==null?m.memoizedState:null;if(b=f.memoizedState,m===null)if(b===null)if(f.stateNode===null){e:{b=f.type,m=f.memoizedProps,T=T.ownerDocument||T;t:switch(b){case"title":L=T.getElementsByTagName("title")[0],(!L||L[bf]||L[Tr]||L.namespaceURI==="http://www.w3.org/2000/svg"||L.hasAttribute("itemprop"))&&(L=T.createElement(b),T.head.insertBefore(L,T.querySelector("head > title"))),Nr(L,b,m),L[Tr]=f,Sr(L),b=L;break e;case"link":var k=QM("link","href",T).get(b+(m.href||""));if(k){for(var H=0;H<k.length;H++)if(L=k[H],L.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){k.splice(H,1);break t}}L=T.createElement(b),Nr(L,b,m),T.head.appendChild(L);break;case"meta":if(k=QM("meta","content",T).get(b+(m.content||""))){for(H=0;H<k.length;H++)if(L=k[H],L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){k.splice(H,1);break t}}L=T.createElement(b),Nr(L,b,m),T.head.appendChild(L);break;default:throw Error(a(468,b))}L[Tr]=f,Sr(L),b=L}f.stateNode=b}else JM(T,f.type,f.stateNode);else f.stateNode=KM(T,b,f.memoizedProps);else L!==b?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,b===null?JM(T,f.type,f.stateNode):KM(T,b,f.memoizedProps)):b===null&&f.stateNode!==null&&_1(f,f.memoizedProps,m.memoizedProps)}break;case 27:va(d,f),da(f),b&512&&(cr||m===null||Gn(m,m.return)),m!==null&&b&4&&_1(f,f.memoizedProps,m.memoizedProps);break;case 5:if(va(d,f),da(f),b&512&&(cr||m===null||Gn(m,m.return)),f.flags&32){T=f.stateNode;try{du(T,"")}catch(Ne){Tt(f,f.return,Ne)}}b&4&&f.stateNode!=null&&(T=f.memoizedProps,_1(f,T,m!==null?m.memoizedProps:T)),b&1024&&(w1=!0);break;case 6:if(va(d,f),da(f),b&4){if(f.stateNode===null)throw Error(a(162));b=f.memoizedProps,m=f.stateNode;try{m.nodeValue=b}catch(Ne){Tt(f,f.return,Ne)}}break;case 3:if(B0=null,T=bn,bn=N0(d.containerInfo),va(d,f),bn=T,da(f),b&4&&m!==null&&m.memoizedState.isDehydrated)try{Yu(d.containerInfo)}catch(Ne){Tt(f,f.return,Ne)}w1&&(w1=!1,J4(f));break;case 4:b=bn,bn=N0(f.stateNode.containerInfo),va(d,f),da(f),bn=b;break;case 12:va(d,f),da(f);break;case 31:va(d,f),da(f),b&4&&(b=f.updateQueue,b!==null&&(f.updateQueue=null,m0(f,b)));break;case 13:va(d,f),da(f),f.child.flags&8192&&f.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(x0=or()),b&4&&(b=f.updateQueue,b!==null&&(f.updateQueue=null,m0(f,b)));break;case 22:T=f.memoizedState!==null;var K=m!==null&&m.memoizedState!==null,ne=Ti,de=cr;if(Ti=ne||T,cr=de||K,va(d,f),cr=de,Ti=ne,da(f),b&8192)e:for(d=f.stateNode,d._visibility=T?d._visibility&-2:d._visibility|1,T&&(m===null||K||Ti||cr||Os(f)),m=null,d=f;;){if(d.tag===5||d.tag===26){if(m===null){K=m=d;try{if(L=K.stateNode,T)k=L.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{H=K.stateNode;var ge=K.memoizedProps.style,ie=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;H.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Ne){Tt(K,K.return,Ne)}}}else if(d.tag===6){if(m===null){K=d;try{K.stateNode.nodeValue=T?"":K.memoizedProps}catch(Ne){Tt(K,K.return,Ne)}}}else if(d.tag===18){if(m===null){K=d;try{var le=K.stateNode;T?HM(le,!0):HM(K.stateNode,!1)}catch(Ne){Tt(K,K.return,Ne)}}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===f)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===f)break e;for(;d.sibling===null;){if(d.return===null||d.return===f)break e;m===d&&(m=null),d=d.return}m===d&&(m=null),d.sibling.return=d.return,d=d.sibling}b&4&&(b=f.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,m0(f,m))));break;case 19:va(d,f),da(f),b&4&&(b=f.updateQueue,b!==null&&(f.updateQueue=null,m0(f,b)));break;case 30:break;case 21:break;default:va(d,f),da(f)}}function da(f){var d=f.flags;if(d&2){try{for(var m,b=f.return;b!==null;){if(U4(b)){m=b;break}b=b.return}if(m==null)throw Error(a(160));switch(m.tag){case 27:var T=m.stateNode,L=b1(f);g0(f,L,T);break;case 5:var k=m.stateNode;m.flags&32&&(du(k,""),m.flags&=-33);var H=b1(f);g0(f,H,k);break;case 3:case 4:var K=m.stateNode.containerInfo,ne=b1(f);S1(f,ne,K);break;default:throw Error(a(161))}}catch(de){Tt(f,f.return,de)}f.flags&=-3}d&4096&&(f.flags&=-4097)}function J4(f){if(f.subtreeFlags&1024)for(f=f.child;f!==null;){var d=f;J4(d),d.tag===5&&d.flags&1024&&d.stateNode.reset(),f=f.sibling}}function Ei(f,d){if(d.subtreeFlags&8772)for(d=d.child;d!==null;)q4(f,d.alternate,d),d=d.sibling}function Os(f){for(f=f.child;f!==null;){var d=f;switch(d.tag){case 0:case 11:case 14:case 15:_o(4,d,d.return),Os(d);break;case 1:Gn(d,d.return);var m=d.stateNode;typeof m.componentWillUnmount=="function"&&H4(d,d.return,m),Os(d);break;case 27:ah(d.stateNode);case 26:case 5:Gn(d,d.return),Os(d);break;case 22:d.memoizedState===null&&Os(d);break;case 30:Os(d);break;default:Os(d)}f=f.sibling}}function Li(f,d,m){for(m=m&&(d.subtreeFlags&8772)!==0,d=d.child;d!==null;){var b=d.alternate,T=f,L=d,k=L.flags;switch(L.tag){case 0:case 11:case 15:Li(T,L,m),qf(4,L);break;case 1:if(Li(T,L,m),b=L,T=b.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(ne){Tt(b,b.return,ne)}if(b=L,T=b.updateQueue,T!==null){var H=b.stateNode;try{var K=T.shared.hiddenCallbacks;if(K!==null)for(T.shared.hiddenCallbacks=null,T=0;T<K.length;T++)LT(K[T],H)}catch(ne){Tt(b,b.return,ne)}}m&&k&64&&V4(L),Xf(L,L.return);break;case 27:Y4(L);case 26:case 5:Li(T,L,m),m&&b===null&&k&4&&G4(L),Xf(L,L.return);break;case 12:Li(T,L,m);break;case 31:Li(T,L,m),m&&k&4&&$4(T,L);break;case 13:Li(T,L,m),m&&k&4&&K4(T,L);break;case 22:L.memoizedState===null&&Li(T,L,m),Xf(L,L.return);break;case 30:break;default:Li(T,L,m)}d=d.sibling}}function C1(f,d){var m=null;f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(m=f.memoizedState.cachePool.pool),f=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(f=d.memoizedState.cachePool.pool),f!==m&&(f!=null&&f.refCount++,m!=null&&If(m))}function A1(f,d){f=null,d.alternate!==null&&(f=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==f&&(d.refCount++,f!=null&&If(f))}function Sn(f,d,m,b){if(d.subtreeFlags&10256)for(d=d.child;d!==null;)eM(f,d,m,b),d=d.sibling}function eM(f,d,m,b){var T=d.flags;switch(d.tag){case 0:case 11:case 15:Sn(f,d,m,b),T&2048&&qf(9,d);break;case 1:Sn(f,d,m,b);break;case 3:Sn(f,d,m,b),T&2048&&(f=null,d.alternate!==null&&(f=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==f&&(d.refCount++,f!=null&&If(f)));break;case 12:if(T&2048){Sn(f,d,m,b),f=d.stateNode;try{var L=d.memoizedProps,k=L.id,H=L.onPostCommit;typeof H=="function"&&H(k,d.alternate===null?"mount":"update",f.passiveEffectDuration,-0)}catch(K){Tt(d,d.return,K)}}else Sn(f,d,m,b);break;case 31:Sn(f,d,m,b);break;case 13:Sn(f,d,m,b);break;case 23:break;case 22:L=d.stateNode,k=d.alternate,d.memoizedState!==null?L._visibility&2?Sn(f,d,m,b):Zf(f,d):L._visibility&2?Sn(f,d,m,b):(L._visibility|=2,Iu(f,d,m,b,(d.subtreeFlags&10256)!==0||!1)),T&2048&&C1(k,d);break;case 24:Sn(f,d,m,b),T&2048&&A1(d.alternate,d);break;default:Sn(f,d,m,b)}}function Iu(f,d,m,b,T){for(T=T&&((d.subtreeFlags&10256)!==0||!1),d=d.child;d!==null;){var L=f,k=d,H=m,K=b,ne=k.flags;switch(k.tag){case 0:case 11:case 15:Iu(L,k,H,K,T),qf(8,k);break;case 23:break;case 22:var de=k.stateNode;k.memoizedState!==null?de._visibility&2?Iu(L,k,H,K,T):Zf(L,k):(de._visibility|=2,Iu(L,k,H,K,T)),T&&ne&2048&&C1(k.alternate,k);break;case 24:Iu(L,k,H,K,T),T&&ne&2048&&A1(k.alternate,k);break;default:Iu(L,k,H,K,T)}d=d.sibling}}function Zf(f,d){if(d.subtreeFlags&10256)for(d=d.child;d!==null;){var m=f,b=d,T=b.flags;switch(b.tag){case 22:Zf(m,b),T&2048&&C1(b.alternate,b);break;case 24:Zf(m,b),T&2048&&A1(b.alternate,b);break;default:Zf(m,b)}d=d.sibling}}var $f=8192;function ku(f,d,m){if(f.subtreeFlags&$f)for(f=f.child;f!==null;)tM(f,d,m),f=f.sibling}function tM(f,d,m){switch(f.tag){case 26:ku(f,d,m),f.flags&$f&&f.memoizedState!==null&&KF(m,bn,f.memoizedState,f.memoizedProps);break;case 5:ku(f,d,m);break;case 3:case 4:var b=bn;bn=N0(f.stateNode.containerInfo),ku(f,d,m),bn=b;break;case 22:f.memoizedState===null&&(b=f.alternate,b!==null&&b.memoizedState!==null?(b=$f,$f=16777216,ku(f,d,m),$f=b):ku(f,d,m));break;default:ku(f,d,m)}}function rM(f){var d=f.alternate;if(d!==null&&(f=d.child,f!==null)){d.child=null;do d=f.sibling,f.sibling=null,f=d;while(f!==null)}}function Kf(f){var d=f.deletions;if((f.flags&16)!==0){if(d!==null)for(var m=0;m<d.length;m++){var b=d[m];wr=b,nM(b,f)}rM(f)}if(f.subtreeFlags&10256)for(f=f.child;f!==null;)aM(f),f=f.sibling}function aM(f){switch(f.tag){case 0:case 11:case 15:Kf(f),f.flags&2048&&_o(9,f,f.return);break;case 3:Kf(f);break;case 12:Kf(f);break;case 22:var d=f.stateNode;f.memoizedState!==null&&d._visibility&2&&(f.return===null||f.return.tag!==13)?(d._visibility&=-3,y0(f)):Kf(f);break;default:Kf(f)}}function y0(f){var d=f.deletions;if((f.flags&16)!==0){if(d!==null)for(var m=0;m<d.length;m++){var b=d[m];wr=b,nM(b,f)}rM(f)}for(f=f.child;f!==null;){switch(d=f,d.tag){case 0:case 11:case 15:_o(8,d,d.return),y0(d);break;case 22:m=d.stateNode,m._visibility&2&&(m._visibility&=-3,y0(d));break;default:y0(d)}f=f.sibling}}function nM(f,d){for(;wr!==null;){var m=wr;switch(m.tag){case 0:case 11:case 15:_o(8,m,d);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var b=m.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:If(m.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,wr=b;else e:for(m=f;wr!==null;){b=wr;var T=b.sibling,L=b.return;if(X4(b),b===m){wr=null;break e}if(T!==null){T.return=L,wr=T;break e}wr=L}}}var hF={getCacheForType:function(f){var d=Er(sr),m=d.data.get(f);return m===void 0&&(m=f(),d.data.set(f,m)),m},cacheSignal:function(){return Er(sr).controller.signal}},vF=typeof WeakMap=="function"?WeakMap:Map,wt=0,Ot=null,ct=null,ht=0,Dt=0,Ma=null,bo=!1,Ou=!1,D1=!1,Ni=0,Kt=0,So=0,Ps=0,T1=0,Ea=0,Pu=0,Qf=null,pa=null,M1=!1,x0=0,iM=0,_0=1/0,b0=null,wo=null,dr=0,Co=null,zu=null,Ri=0,E1=0,L1=null,oM=null,Jf=0,N1=null;function La(){return(wt&2)!==0&&ht!==0?ht&-ht:F.T!==null?P1():SD()}function sM(){if(Ea===0)if((ht&536870912)===0||gt){var f=iu;iu<<=1,(iu&3932160)===0&&(iu=262144),Ea=f}else Ea=536870912;return f=Da.current,f!==null&&(f.flags|=32),Ea}function ga(f,d,m){(f===Ot&&(Dt===2||Dt===9)||f.cancelPendingCommit!==null)&&(ju(f,0),Ao(f,ht,Ea,!1)),so(f,m),((wt&2)===0||f!==Ot)&&(f===Ot&&((wt&2)===0&&(Ps|=m),Kt===4&&Ao(f,ht,Ea,!1)),Un(f))}function lM(f,d,m){if((wt&6)!==0)throw Error(a(327));var b=!m&&(d&127)===0&&(d&f.expiredLanes)===0||_s(f,d),T=b?gF(f,d):B1(f,d,!0),L=b;do{if(T===0){Ou&&!b&&Ao(f,d,0,!1);break}else{if(m=f.current.alternate,L&&!dF(m)){T=B1(f,d,!1),L=!1;continue}if(T===2){if(L=d,f.errorRecoveryDisabledLanes&L)var k=0;else k=f.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){d=k;e:{var H=f;T=Qf;var K=H.current.memoizedState.isDehydrated;if(K&&(ju(H,k).flags|=256),k=B1(H,k,!1),k!==2){if(D1&&!K){H.errorRecoveryDisabledLanes|=L,Ps|=L,T=4;break e}L=pa,pa=T,L!==null&&(pa===null?pa=L:pa.push.apply(pa,L))}T=k}if(L=!1,T!==2)continue}}if(T===1){ju(f,0),Ao(f,d,0,!0);break}e:{switch(b=f,L=T,L){case 0:case 1:throw Error(a(345));case 4:if((d&4194048)!==d)break;case 6:Ao(b,d,Ea,!bo);break e;case 2:pa=null;break;case 3:case 5:break;default:throw Error(a(329))}if((d&62914560)===d&&(T=x0+300-or(),10<T)){if(Ao(b,d,Ea,!bo),ou(b,0,!0)!==0)break e;Ri=d,b.timeoutHandle=jM(uM.bind(null,b,m,pa,b0,M1,d,Ea,Ps,Pu,bo,L,"Throttled",-0,0),T);break e}uM(b,m,pa,b0,M1,d,Ea,Ps,Pu,bo,L,null,-0,0)}}break}while(!0);Un(f)}function uM(f,d,m,b,T,L,k,H,K,ne,de,ge,ie,le){if(f.timeoutHandle=-1,ge=d.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mi},tM(d,L,ge);var Ne=(L&62914560)===L?x0-or():(L&4194048)===L?iM-or():0;if(Ne=QF(ge,Ne),Ne!==null){Ri=L,f.cancelPendingCommit=Ne(mM.bind(null,f,d,L,m,b,T,k,H,K,de,ge,null,ie,le)),Ao(f,L,k,!ne);return}}mM(f,d,L,m,b,T,k,H,K)}function dF(f){for(var d=f;;){var m=d.tag;if((m===0||m===11||m===15)&&d.flags&16384&&(m=d.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var T=m[b],L=T.getSnapshot;T=T.value;try{if(!Ca(L(),T))return!1}catch{return!1}}if(m=d.child,d.subtreeFlags&16384&&m!==null)m.return=d,d=m;else{if(d===f)break;for(;d.sibling===null;){if(d.return===null||d.return===f)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function Ao(f,d,m,b){d&=~T1,d&=~Ps,f.suspendedLanes|=d,f.pingedLanes&=~d,b&&(f.warmLanes|=d),b=f.expirationTimes;for(var T=d;0<T;){var L=31-Jr(T),k=1<<L;b[L]=-1,T&=~k}m!==0&&xf(f,m,d)}function S0(){return(wt&6)===0?(eh(0),!1):!0}function R1(){if(ct!==null){if(Dt===0)var f=ct.return;else f=ct,bi=Ms=null,Xx(f),Eu=null,Of=0,f=ct;for(;f!==null;)F4(f.alternate,f),f=f.return;ct=null}}function ju(f,d){var m=f.timeoutHandle;m!==-1&&(f.timeoutHandle=-1,IF(m)),m=f.cancelPendingCommit,m!==null&&(f.cancelPendingCommit=null,m()),Ri=0,R1(),Ot=f,ct=m=xi(f.current,null),ht=d,Dt=0,Ma=null,bo=!1,Ou=_s(f,d),D1=!1,Pu=Ea=T1=Ps=So=Kt=0,pa=Qf=null,M1=!1,(d&8)!==0&&(d|=d&32);var b=f.entangledLanes;if(b!==0)for(f=f.entanglements,b&=d;0<b;){var T=31-Jr(b),L=1<<T;d|=f[T],b&=~L}return Ni=d,Gd(),m}function cM(f,d){et=null,F.H=Uf,d===Mu||d===Kd?(d=DT(),Dt=3):d===Ox?(d=DT(),Dt=4):Dt=d===c1?8:d!==null&&typeof d=="object"&&typeof d.then=="function"?6:1,Ma=d,ct===null&&(Kt=1,f0(f,Ga(d,f.current)))}function fM(){var f=Da.current;return f===null?!0:(ht&4194048)===ht?qa===null:(ht&62914560)===ht||(ht&536870912)!==0?f===qa:!1}function hM(){var f=F.H;return F.H=Uf,f===null?Uf:f}function vM(){var f=F.A;return F.A=hF,f}function w0(){Kt=4,bo||(ht&4194048)!==ht&&Da.current!==null||(Ou=!0),(So&134217727)===0&&(Ps&134217727)===0||Ot===null||Ao(Ot,ht,Ea,!1)}function B1(f,d,m){var b=wt;wt|=2;var T=hM(),L=vM();(Ot!==f||ht!==d)&&(b0=null,ju(f,d)),d=!1;var k=Kt;e:do try{if(Dt!==0&&ct!==null){var H=ct,K=Ma;switch(Dt){case 8:R1(),k=6;break e;case 3:case 2:case 9:case 6:Da.current===null&&(d=!0);var ne=Dt;if(Dt=0,Ma=null,Fu(f,H,K,ne),m&&Ou){k=0;break e}break;default:ne=Dt,Dt=0,Ma=null,Fu(f,H,K,ne)}}pF(),k=Kt;break}catch(de){cM(f,de)}while(!0);return d&&f.shellSuspendCounter++,bi=Ms=null,wt=b,F.H=T,F.A=L,ct===null&&(Ot=null,ht=0,Gd()),k}function pF(){for(;ct!==null;)dM(ct)}function gF(f,d){var m=wt;wt|=2;var b=hM(),T=vM();Ot!==f||ht!==d?(b0=null,_0=or()+500,ju(f,d)):Ou=_s(f,d);e:do try{if(Dt!==0&&ct!==null){d=ct;var L=Ma;t:switch(Dt){case 1:Dt=0,Ma=null,Fu(f,d,L,1);break;case 2:case 9:if(CT(L)){Dt=0,Ma=null,pM(d);break}d=function(){Dt!==2&&Dt!==9||Ot!==f||(Dt=7),Un(f)},L.then(d,d);break e;case 3:Dt=7;break e;case 4:Dt=5;break e;case 7:CT(L)?(Dt=0,Ma=null,pM(d)):(Dt=0,Ma=null,Fu(f,d,L,7));break;case 5:var k=null;switch(ct.tag){case 26:k=ct.memoizedState;case 5:case 27:var H=ct;if(k?e5(k):H.stateNode.complete){Dt=0,Ma=null;var K=H.sibling;if(K!==null)ct=K;else{var ne=H.return;ne!==null?(ct=ne,C0(ne)):ct=null}break t}}Dt=0,Ma=null,Fu(f,d,L,5);break;case 6:Dt=0,Ma=null,Fu(f,d,L,6);break;case 8:R1(),Kt=6;break e;default:throw Error(a(462))}}mF();break}catch(de){cM(f,de)}while(!0);return bi=Ms=null,F.H=b,F.A=T,wt=m,ct!==null?0:(Ot=null,ht=0,Gd(),Kt)}function mF(){for(;ct!==null&&!Wt();)dM(ct)}function dM(f){var d=z4(f.alternate,f,Ni);f.memoizedProps=f.pendingProps,d===null?C0(f):ct=d}function pM(f){var d=f,m=d.alternate;switch(d.tag){case 15:case 0:d=R4(m,d,d.pendingProps,d.type,void 0,ht);break;case 11:d=R4(m,d,d.pendingProps,d.type.render,d.ref,ht);break;case 5:Xx(d);default:F4(m,d),d=ct=vT(d,Ni),d=z4(m,d,Ni)}f.memoizedProps=f.pendingProps,d===null?C0(f):ct=d}function Fu(f,d,m,b){bi=Ms=null,Xx(d),Eu=null,Of=0;var T=d.return;try{if(iF(f,T,d,m,ht)){Kt=1,f0(f,Ga(m,f.current)),ct=null;return}}catch(L){if(T!==null)throw ct=T,L;Kt=1,f0(f,Ga(m,f.current)),ct=null;return}d.flags&32768?(gt||b===1?f=!0:Ou||(ht&536870912)!==0?f=!1:(bo=f=!0,(b===2||b===9||b===3||b===6)&&(b=Da.current,b!==null&&b.tag===13&&(b.flags|=16384))),gM(d,f)):C0(d)}function C0(f){var d=f;do{if((d.flags&32768)!==0){gM(d,bo);return}f=d.return;var m=lF(d.alternate,d,Ni);if(m!==null){ct=m;return}if(d=d.sibling,d!==null){ct=d;return}ct=d=f}while(d!==null);Kt===0&&(Kt=5)}function gM(f,d){do{var m=uF(f.alternate,f);if(m!==null){m.flags&=32767,ct=m;return}if(m=f.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!d&&(f=f.sibling,f!==null)){ct=f;return}ct=f=m}while(f!==null);Kt=6,ct=null}function mM(f,d,m,b,T,L,k,H,K){f.cancelPendingCommit=null;do A0();while(dr!==0);if((wt&6)!==0)throw Error(a(327));if(d!==null){if(d===f.current)throw Error(a(177));if(L=d.lanes|d.childLanes,L|=_x,$y(f,m,L,k,H,K),f===Ot&&(ct=Ot=null,ht=0),zu=d,Co=f,Ri=m,E1=L,L1=T,oM=b,(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?(f.callbackNode=null,f.callbackPriority=0,bF(oo,function(){return SM(),null})):(f.callbackNode=null,f.callbackPriority=0),b=(d.flags&13878)!==0,(d.subtreeFlags&13878)!==0||b){b=F.T,F.T=null,T=Y.p,Y.p=2,k=wt,wt|=4;try{cF(f,d,m)}finally{wt=k,Y.p=T,F.T=b}}dr=1,yM(),xM(),_M()}}function yM(){if(dr===1){dr=0;var f=Co,d=zu,m=(d.flags&13878)!==0;if((d.subtreeFlags&13878)!==0||m){m=F.T,F.T=null;var b=Y.p;Y.p=2;var T=wt;wt|=4;try{Q4(d,f);var L=Y1,k=nT(f.containerInfo),H=L.focusedElem,K=L.selectionRange;if(k!==H&&H&&H.ownerDocument&&aT(H.ownerDocument.documentElement,H)){if(K!==null&&px(H)){var ne=K.start,de=K.end;if(de===void 0&&(de=ne),"selectionStart"in H)H.selectionStart=ne,H.selectionEnd=Math.min(de,H.value.length);else{var ge=H.ownerDocument||document,ie=ge&&ge.defaultView||window;if(ie.getSelection){var le=ie.getSelection(),Ne=H.textContent.length,Ge=Math.min(K.start,Ne),Bt=K.end===void 0?Ge:Math.min(K.end,Ne);!le.extend&&Ge>Bt&&(k=Bt,Bt=Ge,Ge=k);var re=rT(H,Ge),J=rT(H,Bt);if(re&&J&&(le.rangeCount!==1||le.anchorNode!==re.node||le.anchorOffset!==re.offset||le.focusNode!==J.node||le.focusOffset!==J.offset)){var ae=ge.createRange();ae.setStart(re.node,re.offset),le.removeAllRanges(),Ge>Bt?(le.addRange(ae),le.extend(J.node,J.offset)):(ae.setEnd(J.node,J.offset),le.addRange(ae))}}}}for(ge=[],le=H;le=le.parentNode;)le.nodeType===1&&ge.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<ge.length;H++){var pe=ge[H];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}P0=!!U1,Y1=U1=null}finally{wt=T,Y.p=b,F.T=m}}f.current=d,dr=2}}function xM(){if(dr===2){dr=0;var f=Co,d=zu,m=(d.flags&8772)!==0;if((d.subtreeFlags&8772)!==0||m){m=F.T,F.T=null;var b=Y.p;Y.p=2;var T=wt;wt|=4;try{q4(f,d.alternate,d)}finally{wt=T,Y.p=b,F.T=m}}dr=3}}function _M(){if(dr===4||dr===3){dr=0,Pr();var f=Co,d=zu,m=Ri,b=oM;(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?dr=5:(dr=0,zu=Co=null,bM(f,f.pendingLanes));var T=f.pendingLanes;if(T===0&&(wo=null),_f(m),d=d.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(er,d,void 0,(d.current.flags&128)===128)}catch{}if(b!==null){d=F.T,T=Y.p,Y.p=2,F.T=null;try{for(var L=f.onRecoverableError,k=0;k<b.length;k++){var H=b[k];L(H.value,{componentStack:H.stack})}}finally{F.T=d,Y.p=T}}(Ri&3)!==0&&A0(),Un(f),T=f.pendingLanes,(m&261930)!==0&&(T&42)!==0?f===N1?Jf++:(Jf=0,N1=f):Jf=0,eh(0)}}function bM(f,d){(f.pooledCacheLanes&=d)===0&&(d=f.pooledCache,d!=null&&(f.pooledCache=null,If(d)))}function A0(){return yM(),xM(),_M(),SM()}function SM(){if(dr!==5)return!1;var f=Co,d=E1;E1=0;var m=_f(Ri),b=F.T,T=Y.p;try{Y.p=32>m?32:m,F.T=null,m=L1,L1=null;var L=Co,k=Ri;if(dr=0,zu=Co=null,Ri=0,(wt&6)!==0)throw Error(a(331));var H=wt;if(wt|=4,aM(L.current),eM(L,L.current,k,m),wt=H,eh(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(er,L)}catch{}return!0}finally{Y.p=T,F.T=b,bM(f,d)}}function wM(f,d,m){d=Ga(m,d),d=u1(f.stateNode,d,2),f=mo(f,d,2),f!==null&&(so(f,2),Un(f))}function Tt(f,d,m){if(f.tag===3)wM(f,f,m);else for(;d!==null;){if(d.tag===3){wM(d,f,m);break}else if(d.tag===1){var b=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(wo===null||!wo.has(b))){f=Ga(m,f),m=C4(2),b=mo(d,m,2),b!==null&&(A4(m,b,d,f),so(b,2),Un(b));break}}d=d.return}}function I1(f,d,m){var b=f.pingCache;if(b===null){b=f.pingCache=new vF;var T=new Set;b.set(d,T)}else T=b.get(d),T===void 0&&(T=new Set,b.set(d,T));T.has(m)||(D1=!0,T.add(m),f=yF.bind(null,f,d,m),d.then(f,f))}function yF(f,d,m){var b=f.pingCache;b!==null&&b.delete(d),f.pingedLanes|=f.suspendedLanes&m,f.warmLanes&=~m,Ot===f&&(ht&m)===m&&(Kt===4||Kt===3&&(ht&62914560)===ht&&300>or()-x0?(wt&2)===0&&ju(f,0):T1|=m,Pu===ht&&(Pu=0)),Un(f)}function CM(f,d){d===0&&(d=Nd()),f=As(f,d),f!==null&&(so(f,d),Un(f))}function xF(f){var d=f.memoizedState,m=0;d!==null&&(m=d.retryLane),CM(f,m)}function _F(f,d){var m=0;switch(f.tag){case 31:case 13:var b=f.stateNode,T=f.memoizedState;T!==null&&(m=T.retryLane);break;case 19:b=f.stateNode;break;case 22:b=f.stateNode._retryCache;break;default:throw Error(a(314))}b!==null&&b.delete(d),CM(f,m)}function bF(f,d){return vr(f,d)}var D0=null,Vu=null,k1=!1,T0=!1,O1=!1,Do=0;function Un(f){f!==Vu&&f.next===null&&(Vu===null?D0=Vu=f:Vu=Vu.next=f),T0=!0,k1||(k1=!0,wF())}function eh(f,d){if(!O1&&T0){O1=!0;do for(var m=!1,b=D0;b!==null;){if(f!==0){var T=b.pendingLanes;if(T===0)var L=0;else{var k=b.suspendedLanes,H=b.pingedLanes;L=(1<<31-Jr(42|f)+1)-1,L&=T&~(k&~H),L=L&201326741?L&201326741|1:L?L|2:0}L!==0&&(m=!0,MM(b,L))}else L=ht,L=ou(b,b===Ot?L:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(L&3)===0||_s(b,L)||(m=!0,MM(b,L));b=b.next}while(m);O1=!1}}function SF(){AM()}function AM(){T0=k1=!1;var f=0;Do!==0&&BF()&&(f=Do);for(var d=or(),m=null,b=D0;b!==null;){var T=b.next,L=DM(b,d);L===0?(b.next=null,m===null?D0=T:m.next=T,T===null&&(Vu=m)):(m=b,(f!==0||(L&3)!==0)&&(T0=!0)),b=T}dr!==0&&dr!==5||eh(f),Do!==0&&(Do=0)}function DM(f,d){for(var m=f.suspendedLanes,b=f.pingedLanes,T=f.expirationTimes,L=f.pendingLanes&-62914561;0<L;){var k=31-Jr(L),H=1<<k,K=T[k];K===-1?((H&m)===0||(H&b)!==0)&&(T[k]=Ld(H,d)):K<=d&&(f.expiredLanes|=H),L&=~H}if(d=Ot,m=ht,m=ou(f,f===d?m:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),b=f.callbackNode,m===0||f===d&&(Dt===2||Dt===9)||f.cancelPendingCommit!==null)return b!==null&&b!==null&&kt(b),f.callbackNode=null,f.callbackPriority=0;if((m&3)===0||_s(f,m)){if(d=m&-m,d===f.callbackPriority)return d;switch(b!==null&&kt(b),_f(m)){case 2:case 8:m=ua;break;case 32:m=oo;break;case 268435456:m=me;break;default:m=oo}return b=TM.bind(null,f),m=vr(m,b),f.callbackPriority=d,f.callbackNode=m,d}return b!==null&&b!==null&&kt(b),f.callbackPriority=2,f.callbackNode=null,2}function TM(f,d){if(dr!==0&&dr!==5)return f.callbackNode=null,f.callbackPriority=0,null;var m=f.callbackNode;if(A0()&&f.callbackNode!==m)return null;var b=ht;return b=ou(f,f===Ot?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),b===0?null:(lM(f,b,d),DM(f,or()),f.callbackNode!=null&&f.callbackNode===m?TM.bind(null,f):null)}function MM(f,d){if(A0())return null;lM(f,d,!0)}function wF(){kF(function(){(wt&6)!==0?vr(ja,SF):AM()})}function P1(){if(Do===0){var f=Du;f===0&&(f=ys,ys<<=1,(ys&261888)===0&&(ys=256)),Do=f}return Do}function EM(f){return f==null||typeof f=="symbol"||typeof f=="boolean"?null:typeof f=="function"?f:kd(""+f)}function LM(f,d){var m=d.ownerDocument.createElement("input");return m.name=d.name,m.value=d.value,f.id&&m.setAttribute("form",f.id),d.parentNode.insertBefore(m,d),f=new FormData(f),m.parentNode.removeChild(m),f}function CF(f,d,m,b,T){if(d==="submit"&&m&&m.stateNode===T){var L=EM((T[ca]||null).action),k=b.submitter;k&&(d=(d=k[ca]||null)?EM(d.formAction):k.getAttribute("formAction"),d!==null&&(L=d,k=null));var H=new jd("action","action",null,b,T);f.push({event:H,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Do!==0){var K=k?LM(T,k):new FormData(T);a1(m,{pending:!0,data:K,method:T.method,action:L},null,K)}}else typeof L=="function"&&(H.preventDefault(),K=k?LM(T,k):new FormData(T),a1(m,{pending:!0,data:K,method:T.method,action:L},L,K))},currentTarget:T}]})}}for(var z1=0;z1<xx.length;z1++){var j1=xx[z1],AF=j1.toLowerCase(),DF=j1[0].toUpperCase()+j1.slice(1);_n(AF,"on"+DF)}_n(sT,"onAnimationEnd"),_n(lT,"onAnimationIteration"),_n(uT,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(Hj,"onTransitionRun"),_n(Gj,"onTransitionStart"),_n(Uj,"onTransitionCancel"),_n(cT,"onTransitionEnd"),hu("onMouseEnter",["mouseout","mouseover"]),hu("onMouseLeave",["mouseout","mouseover"]),hu("onPointerEnter",["pointerout","pointerover"]),hu("onPointerLeave",["pointerout","pointerover"]),bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var th="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),TF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(th));function NM(f,d){d=(d&4)!==0;for(var m=0;m<f.length;m++){var b=f[m],T=b.event;b=b.listeners;e:{var L=void 0;if(d)for(var k=b.length-1;0<=k;k--){var H=b[k],K=H.instance,ne=H.currentTarget;if(H=H.listener,K!==L&&T.isPropagationStopped())break e;L=H,T.currentTarget=ne;try{L(T)}catch(de){Hd(de)}T.currentTarget=null,L=K}else for(k=0;k<b.length;k++){if(H=b[k],K=H.instance,ne=H.currentTarget,H=H.listener,K!==L&&T.isPropagationStopped())break e;L=H,T.currentTarget=ne;try{L(T)}catch(de){Hd(de)}T.currentTarget=null,L=K}}}}function ft(f,d){var m=d[Ky];m===void 0&&(m=d[Ky]=new Set);var b=f+"__bubble";m.has(b)||(RM(d,f,2,!1),m.add(b))}function F1(f,d,m){var b=0;d&&(b|=4),RM(m,f,b,d)}var M0="_reactListening"+Math.random().toString(36).slice(2);function V1(f){if(!f[M0]){f[M0]=!0,AD.forEach(function(m){m!=="selectionchange"&&(TF.has(m)||F1(m,!1,f),F1(m,!0,f))});var d=f.nodeType===9?f:f.ownerDocument;d===null||d[M0]||(d[M0]=!0,F1("selectionchange",!1,d))}}function RM(f,d,m,b){switch(s5(d)){case 2:var T=tV;break;case 8:T=rV;break;default:T=r_}m=T.bind(null,d,m,f),T=void 0,!ox||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(T=!0),b?T!==void 0?f.addEventListener(d,m,{capture:!0,passive:T}):f.addEventListener(d,m,!0):T!==void 0?f.addEventListener(d,m,{passive:T}):f.addEventListener(d,m,!1)}function H1(f,d,m,b,T){var L=b;if((d&1)===0&&(d&2)===0&&b!==null)e:for(;;){if(b===null)return;var k=b.tag;if(k===3||k===4){var H=b.stateNode.containerInfo;if(H===T)break;if(k===4)for(k=b.return;k!==null;){var K=k.tag;if((K===3||K===4)&&k.stateNode.containerInfo===T)return;k=k.return}for(;H!==null;){if(k=uu(H),k===null)return;if(K=k.tag,K===5||K===6||K===26||K===27){b=L=k;continue e}H=H.parentNode}}b=b.return}PD(function(){var ne=L,de=nx(m),ge=[];e:{var ie=fT.get(f);if(ie!==void 0){var le=jd,Ne=f;switch(f){case"keypress":if(Pd(m)===0)break e;case"keydown":case"keyup":le=_j;break;case"focusin":Ne="focus",le=cx;break;case"focusout":Ne="blur",le=cx;break;case"beforeblur":case"afterblur":le=cx;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=FD;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=lj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=wj;break;case sT:case lT:case uT:le=fj;break;case cT:le=Aj;break;case"scroll":case"scrollend":le=oj;break;case"wheel":le=Tj;break;case"copy":case"cut":case"paste":le=vj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=HD;break;case"toggle":case"beforetoggle":le=Ej}var Ge=(d&4)!==0,Bt=!Ge&&(f==="scroll"||f==="scrollend"),re=Ge?ie!==null?ie+"Capture":null:ie;Ge=[];for(var J=ne,ae;J!==null;){var pe=J;if(ae=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||ae===null||re===null||(pe=wf(J,re),pe!=null&&Ge.push(rh(J,pe,ae))),Bt)break;J=J.return}0<Ge.length&&(ie=new le(ie,Ne,null,m,de),ge.push({event:ie,listeners:Ge}))}}if((d&7)===0){e:{if(ie=f==="mouseover"||f==="pointerover",le=f==="mouseout"||f==="pointerout",ie&&m!==ax&&(Ne=m.relatedTarget||m.fromElement)&&(uu(Ne)||Ne[lu]))break e;if((le||ie)&&(ie=de.window===de?de:(ie=de.ownerDocument)?ie.defaultView||ie.parentWindow:window,le?(Ne=m.relatedTarget||m.toElement,le=ne,Ne=Ne?uu(Ne):null,Ne!==null&&(Bt=i(Ne),Ge=Ne.tag,Ne!==Bt||Ge!==5&&Ge!==27&&Ge!==6)&&(Ne=null)):(le=null,Ne=ne),le!==Ne)){if(Ge=FD,pe="onMouseLeave",re="onMouseEnter",J="mouse",(f==="pointerout"||f==="pointerover")&&(Ge=HD,pe="onPointerLeave",re="onPointerEnter",J="pointer"),Bt=le==null?ie:Sf(le),ae=Ne==null?ie:Sf(Ne),ie=new Ge(pe,J+"leave",le,m,de),ie.target=Bt,ie.relatedTarget=ae,pe=null,uu(de)===ne&&(Ge=new Ge(re,J+"enter",Ne,m,de),Ge.target=ae,Ge.relatedTarget=Bt,pe=Ge),Bt=pe,le&&Ne)t:{for(Ge=MF,re=le,J=Ne,ae=0,pe=re;pe;pe=Ge(pe))ae++;pe=0;for(var je=J;je;je=Ge(je))pe++;for(;0<ae-pe;)re=Ge(re),ae--;for(;0<pe-ae;)J=Ge(J),pe--;for(;ae--;){if(re===J||J!==null&&re===J.alternate){Ge=re;break t}re=Ge(re),J=Ge(J)}Ge=null}else Ge=null;le!==null&&BM(ge,ie,le,Ge,!1),Ne!==null&&Bt!==null&&BM(ge,Bt,Ne,Ge,!0)}}e:{if(ie=ne?Sf(ne):window,le=ie.nodeName&&ie.nodeName.toLowerCase(),le==="select"||le==="input"&&ie.type==="file")var xt=$D;else if(XD(ie))if(KD)xt=jj;else{xt=Pj;var Ie=Oj}else le=ie.nodeName,!le||le.toLowerCase()!=="input"||ie.type!=="checkbox"&&ie.type!=="radio"?ne&&rx(ne.elementType)&&(xt=$D):xt=zj;if(xt&&(xt=xt(f,ne))){ZD(ge,xt,m,de);break e}Ie&&Ie(f,ie,ne),f==="focusout"&&ne&&ie.type==="number"&&ne.memoizedProps.value!=null&&tx(ie,"number",ie.value)}switch(Ie=ne?Sf(ne):window,f){case"focusin":(XD(Ie)||Ie.contentEditable==="true")&&(yu=Ie,gx=ne,Nf=null);break;case"focusout":Nf=gx=yu=null;break;case"mousedown":mx=!0;break;case"contextmenu":case"mouseup":case"dragend":mx=!1,iT(ge,m,de);break;case"selectionchange":if(Vj)break;case"keydown":case"keyup":iT(ge,m,de)}var nt;if(hx)e:{switch(f){case"compositionstart":var vt="onCompositionStart";break e;case"compositionend":vt="onCompositionEnd";break e;case"compositionupdate":vt="onCompositionUpdate";break e}vt=void 0}else mu?WD(f,m)&&(vt="onCompositionEnd"):f==="keydown"&&m.keyCode===229&&(vt="onCompositionStart");vt&&(GD&&m.locale!=="ko"&&(mu||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&mu&&(nt=zD()):(uo=de,sx="value"in uo?uo.value:uo.textContent,mu=!0)),Ie=E0(ne,vt),0<Ie.length&&(vt=new VD(vt,f,null,m,de),ge.push({event:vt,listeners:Ie}),nt?vt.data=nt:(nt=qD(m),nt!==null&&(vt.data=nt)))),(nt=Nj?Rj(f,m):Bj(f,m))&&(vt=E0(ne,"onBeforeInput"),0<vt.length&&(Ie=new VD("onBeforeInput","beforeinput",null,m,de),ge.push({event:Ie,listeners:vt}),Ie.data=nt)),CF(ge,f,ne,m,de)}NM(ge,d)})}function rh(f,d,m){return{instance:f,listener:d,currentTarget:m}}function E0(f,d){for(var m=d+"Capture",b=[];f!==null;){var T=f,L=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||L===null||(T=wf(f,m),T!=null&&b.unshift(rh(f,T,L)),T=wf(f,d),T!=null&&b.push(rh(f,T,L))),f.tag===3)return b;f=f.return}return[]}function MF(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5&&f.tag!==27);return f||null}function BM(f,d,m,b,T){for(var L=d._reactName,k=[];m!==null&&m!==b;){var H=m,K=H.alternate,ne=H.stateNode;if(H=H.tag,K!==null&&K===b)break;H!==5&&H!==26&&H!==27||ne===null||(K=ne,T?(ne=wf(m,L),ne!=null&&k.unshift(rh(m,ne,K))):T||(ne=wf(m,L),ne!=null&&k.push(rh(m,ne,K)))),m=m.return}k.length!==0&&f.push({event:d,listeners:k})}var EF=/\r\n?/g,LF=/\u0000|\uFFFD/g;function IM(f){return(typeof f=="string"?f:""+f).replace(EF,`
  49. `).replace(LF,"")}function kM(f,d){return d=IM(d),IM(f)===d}function Rt(f,d,m,b,T,L){switch(m){case"children":typeof b=="string"?d==="body"||d==="textarea"&&b===""||du(f,b):(typeof b=="number"||typeof b=="bigint")&&d!=="body"&&du(f,""+b);break;case"className":Bd(f,"class",b);break;case"tabIndex":Bd(f,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Bd(f,m,b);break;case"style":kD(f,b,L);break;case"data":if(d!=="object"){Bd(f,"data",b);break}case"src":case"href":if(b===""&&(d!=="a"||m!=="href")){f.removeAttribute(m);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){f.removeAttribute(m);break}b=kd(""+b),f.setAttribute(m,b);break;case"action":case"formAction":if(typeof b=="function"){f.setAttribute(m,"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 L=="function"&&(m==="formAction"?(d!=="input"&&Rt(f,d,"name",T.name,T,null),Rt(f,d,"formEncType",T.formEncType,T,null),Rt(f,d,"formMethod",T.formMethod,T,null),Rt(f,d,"formTarget",T.formTarget,T,null)):(Rt(f,d,"encType",T.encType,T,null),Rt(f,d,"method",T.method,T,null),Rt(f,d,"target",T.target,T,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){f.removeAttribute(m);break}b=kd(""+b),f.setAttribute(m,b);break;case"onClick":b!=null&&(f.onclick=mi);break;case"onScroll":b!=null&&ft("scroll",f);break;case"onScrollEnd":b!=null&&ft("scrollend",f);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(a(61));if(m=b.__html,m!=null){if(T.children!=null)throw Error(a(60));f.innerHTML=m}}break;case"multiple":f.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":f.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){f.removeAttribute("xlink:href");break}m=kd(""+b),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?f.setAttribute(m,""+b):f.removeAttribute(m);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":b&&typeof b!="function"&&typeof b!="symbol"?f.setAttribute(m,""):f.removeAttribute(m);break;case"capture":case"download":b===!0?f.setAttribute(m,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?f.setAttribute(m,b):f.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?f.setAttribute(m,b):f.removeAttribute(m);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?f.removeAttribute(m):f.setAttribute(m,b);break;case"popover":ft("beforetoggle",f),ft("toggle",f),Rd(f,"popover",b);break;case"xlinkActuate":gi(f,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":gi(f,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":gi(f,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":gi(f,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":gi(f,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":gi(f,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":gi(f,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":gi(f,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":gi(f,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":Rd(f,"is",b);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=nj.get(m)||m,Rd(f,m,b))}}function G1(f,d,m,b,T,L){switch(m){case"style":kD(f,b,L);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(a(61));if(m=b.__html,m!=null){if(T.children!=null)throw Error(a(60));f.innerHTML=m}}break;case"children":typeof b=="string"?du(f,b):(typeof b=="number"||typeof b=="bigint")&&du(f,""+b);break;case"onScroll":b!=null&&ft("scroll",f);break;case"onScrollEnd":b!=null&&ft("scrollend",f);break;case"onClick":b!=null&&(f.onclick=mi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!DD.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(T=m.endsWith("Capture"),d=m.slice(2,T?m.length-7:void 0),L=f[ca]||null,L=L!=null?L[m]:null,typeof L=="function"&&f.removeEventListener(d,L,T),typeof b=="function")){typeof L!="function"&&L!==null&&(m in f?f[m]=null:f.hasAttribute(m)&&f.removeAttribute(m)),f.addEventListener(d,b,T);break e}m in f?f[m]=b:b===!0?f.setAttribute(m,""):Rd(f,m,b)}}}function Nr(f,d,m){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",f),ft("load",f);var b=!1,T=!1,L;for(L in m)if(m.hasOwnProperty(L)){var k=m[L];if(k!=null)switch(L){case"src":b=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,d));default:Rt(f,d,L,k,m,null)}}T&&Rt(f,d,"srcSet",m.srcSet,m,null),b&&Rt(f,d,"src",m.src,m,null);return;case"input":ft("invalid",f);var H=L=k=T=null,K=null,ne=null;for(b in m)if(m.hasOwnProperty(b)){var de=m[b];if(de!=null)switch(b){case"name":T=de;break;case"type":k=de;break;case"checked":K=de;break;case"defaultChecked":ne=de;break;case"value":L=de;break;case"defaultValue":H=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(a(137,d));break;default:Rt(f,d,b,de,m,null)}}ND(f,L,H,K,ne,k,T,!1);return;case"select":ft("invalid",f),b=k=L=null;for(T in m)if(m.hasOwnProperty(T)&&(H=m[T],H!=null))switch(T){case"value":L=H;break;case"defaultValue":k=H;break;case"multiple":b=H;default:Rt(f,d,T,H,m,null)}d=L,m=k,f.multiple=!!b,d!=null?vu(f,!!b,d,!1):m!=null&&vu(f,!!b,m,!0);return;case"textarea":ft("invalid",f),L=T=b=null;for(k in m)if(m.hasOwnProperty(k)&&(H=m[k],H!=null))switch(k){case"value":b=H;break;case"defaultValue":T=H;break;case"children":L=H;break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(91));break;default:Rt(f,d,k,H,m,null)}BD(f,b,T,L);return;case"option":for(K in m)if(m.hasOwnProperty(K)&&(b=m[K],b!=null))switch(K){case"selected":f.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Rt(f,d,K,b,m,null)}return;case"dialog":ft("beforetoggle",f),ft("toggle",f),ft("cancel",f),ft("close",f);break;case"iframe":case"object":ft("load",f);break;case"video":case"audio":for(b=0;b<th.length;b++)ft(th[b],f);break;case"image":ft("error",f),ft("load",f);break;case"details":ft("toggle",f);break;case"embed":case"source":case"link":ft("error",f),ft("load",f);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in m)if(m.hasOwnProperty(ne)&&(b=m[ne],b!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,d));default:Rt(f,d,ne,b,m,null)}return;default:if(rx(d)){for(de in m)m.hasOwnProperty(de)&&(b=m[de],b!==void 0&&G1(f,d,de,b,m,void 0));return}}for(H in m)m.hasOwnProperty(H)&&(b=m[H],b!=null&&Rt(f,d,H,b,m,null))}function NF(f,d,m,b){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,L=null,k=null,H=null,K=null,ne=null,de=null;for(le in m){var ge=m[le];if(m.hasOwnProperty(le)&&ge!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":K=ge;default:b.hasOwnProperty(le)||Rt(f,d,le,null,b,ge)}}for(var ie in b){var le=b[ie];if(ge=m[ie],b.hasOwnProperty(ie)&&(le!=null||ge!=null))switch(ie){case"type":L=le;break;case"name":T=le;break;case"checked":ne=le;break;case"defaultChecked":de=le;break;case"value":k=le;break;case"defaultValue":H=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(137,d));break;default:le!==ge&&Rt(f,d,ie,le,b,ge)}}ex(f,k,H,K,ne,de,L,T);return;case"select":le=k=H=ie=null;for(L in m)if(K=m[L],m.hasOwnProperty(L)&&K!=null)switch(L){case"value":break;case"multiple":le=K;default:b.hasOwnProperty(L)||Rt(f,d,L,null,b,K)}for(T in b)if(L=b[T],K=m[T],b.hasOwnProperty(T)&&(L!=null||K!=null))switch(T){case"value":ie=L;break;case"defaultValue":H=L;break;case"multiple":k=L;default:L!==K&&Rt(f,d,T,L,b,K)}d=H,m=k,b=le,ie!=null?vu(f,!!m,ie,!1):!!b!=!!m&&(d!=null?vu(f,!!m,d,!0):vu(f,!!m,m?[]:"",!1));return;case"textarea":le=ie=null;for(H in m)if(T=m[H],m.hasOwnProperty(H)&&T!=null&&!b.hasOwnProperty(H))switch(H){case"value":break;case"children":break;default:Rt(f,d,H,null,b,T)}for(k in b)if(T=b[k],L=m[k],b.hasOwnProperty(k)&&(T!=null||L!=null))switch(k){case"value":ie=T;break;case"defaultValue":le=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:T!==L&&Rt(f,d,k,T,b,L)}RD(f,ie,le);return;case"option":for(var Ne in m)if(ie=m[Ne],m.hasOwnProperty(Ne)&&ie!=null&&!b.hasOwnProperty(Ne))switch(Ne){case"selected":f.selected=!1;break;default:Rt(f,d,Ne,null,b,ie)}for(K in b)if(ie=b[K],le=m[K],b.hasOwnProperty(K)&&ie!==le&&(ie!=null||le!=null))switch(K){case"selected":f.selected=ie&&typeof ie!="function"&&typeof ie!="symbol";break;default:Rt(f,d,K,ie,b,le)}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 Ge in m)ie=m[Ge],m.hasOwnProperty(Ge)&&ie!=null&&!b.hasOwnProperty(Ge)&&Rt(f,d,Ge,null,b,ie);for(ne in b)if(ie=b[ne],le=m[ne],b.hasOwnProperty(ne)&&ie!==le&&(ie!=null||le!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,d));break;default:Rt(f,d,ne,ie,b,le)}return;default:if(rx(d)){for(var Bt in m)ie=m[Bt],m.hasOwnProperty(Bt)&&ie!==void 0&&!b.hasOwnProperty(Bt)&&G1(f,d,Bt,void 0,b,ie);for(de in b)ie=b[de],le=m[de],!b.hasOwnProperty(de)||ie===le||ie===void 0&&le===void 0||G1(f,d,de,ie,b,le);return}}for(var re in m)ie=m[re],m.hasOwnProperty(re)&&ie!=null&&!b.hasOwnProperty(re)&&Rt(f,d,re,null,b,ie);for(ge in b)ie=b[ge],le=m[ge],!b.hasOwnProperty(ge)||ie===le||ie==null&&le==null||Rt(f,d,ge,ie,b,le)}function OM(f){switch(f){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RF(){if(typeof performance.getEntriesByType=="function"){for(var f=0,d=0,m=performance.getEntriesByType("resource"),b=0;b<m.length;b++){var T=m[b],L=T.transferSize,k=T.initiatorType,H=T.duration;if(L&&H&&OM(k)){for(k=0,H=T.responseEnd,b+=1;b<m.length;b++){var K=m[b],ne=K.startTime;if(ne>H)break;var de=K.transferSize,ge=K.initiatorType;de&&OM(ge)&&(K=K.responseEnd,k+=de*(K<H?1:(H-ne)/(K-ne)))}if(--b,d+=8*(L+k)/(T.duration/1e3),f++,10<f)break}}if(0<f)return d/f/1e6}return navigator.connection&&(f=navigator.connection.downlink,typeof f=="number")?f:5}var U1=null,Y1=null;function L0(f){return f.nodeType===9?f:f.ownerDocument}function PM(f){switch(f){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zM(f,d){if(f===0)switch(d){case"svg":return 1;case"math":return 2;default:return 0}return f===1&&d==="foreignObject"?0:f}function W1(f,d){return f==="textarea"||f==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.children=="bigint"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var q1=null;function BF(){var f=window.event;return f&&f.type==="popstate"?f===q1?!1:(q1=f,!0):(q1=null,!1)}var jM=typeof setTimeout=="function"?setTimeout:void 0,IF=typeof clearTimeout=="function"?clearTimeout:void 0,FM=typeof Promise=="function"?Promise:void 0,kF=typeof queueMicrotask=="function"?queueMicrotask:typeof FM<"u"?function(f){return FM.resolve(null).then(f).catch(OF)}:jM;function OF(f){setTimeout(function(){throw f})}function To(f){return f==="head"}function VM(f,d){var m=d,b=0;do{var T=m.nextSibling;if(f.removeChild(m),T&&T.nodeType===8)if(m=T.data,m==="/$"||m==="/&"){if(b===0){f.removeChild(T),Yu(d);return}b--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")b++;else if(m==="html")ah(f.ownerDocument.documentElement);else if(m==="head"){m=f.ownerDocument.head,ah(m);for(var L=m.firstChild;L;){var k=L.nextSibling,H=L.nodeName;L[bf]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&L.rel.toLowerCase()==="stylesheet"||m.removeChild(L),L=k}}else m==="body"&&ah(f.ownerDocument.body);m=T}while(m);Yu(d)}function HM(f,d){var m=f;f=0;do{var b=m.nextSibling;if(m.nodeType===1?d?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(d?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),b&&b.nodeType===8)if(m=b.data,m==="/$"){if(f===0)break;f--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||f++;m=b}while(m)}function X1(f){var d=f.firstChild;for(d&&d.nodeType===10&&(d=d.nextSibling);d;){var m=d;switch(d=d.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":X1(m),Qy(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}f.removeChild(m)}}function PF(f,d,m,b){for(;f.nodeType===1;){var T=m;if(f.nodeName.toLowerCase()!==d.toLowerCase()){if(!b&&(f.nodeName!=="INPUT"||f.type!=="hidden"))break}else if(b){if(!f[bf])switch(d){case"meta":if(!f.hasAttribute("itemprop"))break;return f;case"link":if(L=f.getAttribute("rel"),L==="stylesheet"&&f.hasAttribute("data-precedence"))break;if(L!==T.rel||f.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||f.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||f.getAttribute("title")!==(T.title==null?null:T.title))break;return f;case"style":if(f.hasAttribute("data-precedence"))break;return f;case"script":if(L=f.getAttribute("src"),(L!==(T.src==null?null:T.src)||f.getAttribute("type")!==(T.type==null?null:T.type)||f.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&L&&f.hasAttribute("async")&&!f.hasAttribute("itemprop"))break;return f;default:return f}}else if(d==="input"&&f.type==="hidden"){var L=T.name==null?null:""+T.name;if(T.type==="hidden"&&f.getAttribute("name")===L)return f}else return f;if(f=Xa(f.nextSibling),f===null)break}return null}function zF(f,d,m){if(d==="")return null;for(;f.nodeType!==3;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!m||(f=Xa(f.nextSibling),f===null))return null;return f}function GM(f,d){for(;f.nodeType!==8;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!d||(f=Xa(f.nextSibling),f===null))return null;return f}function Z1(f){return f.data==="$?"||f.data==="$~"}function $1(f){return f.data==="$!"||f.data==="$?"&&f.ownerDocument.readyState!=="loading"}function jF(f,d){var m=f.ownerDocument;if(f.data==="$~")f._reactRetry=d;else if(f.data!=="$?"||m.readyState!=="loading")d();else{var b=function(){d(),m.removeEventListener("DOMContentLoaded",b)};m.addEventListener("DOMContentLoaded",b),f._reactRetry=b}}function Xa(f){for(;f!=null;f=f.nextSibling){var d=f.nodeType;if(d===1||d===3)break;if(d===8){if(d=f.data,d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"||d==="F!"||d==="F")break;if(d==="/$"||d==="/&")return null}}return f}var K1=null;function UM(f){f=f.nextSibling;for(var d=0;f;){if(f.nodeType===8){var m=f.data;if(m==="/$"||m==="/&"){if(d===0)return Xa(f.nextSibling);d--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||d++}f=f.nextSibling}return null}function YM(f){f=f.previousSibling;for(var d=0;f;){if(f.nodeType===8){var m=f.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(d===0)return f;d--}else m!=="/$"&&m!=="/&"||d++}f=f.previousSibling}return null}function WM(f,d,m){switch(d=L0(m),f){case"html":if(f=d.documentElement,!f)throw Error(a(452));return f;case"head":if(f=d.head,!f)throw Error(a(453));return f;case"body":if(f=d.body,!f)throw Error(a(454));return f;default:throw Error(a(451))}}function ah(f){for(var d=f.attributes;d.length;)f.removeAttributeNode(d[0]);Qy(f)}var Za=new Map,qM=new Set;function N0(f){return typeof f.getRootNode=="function"?f.getRootNode():f.nodeType===9?f:f.ownerDocument}var Bi=Y.d;Y.d={f:FF,r:VF,D:HF,C:GF,L:UF,m:YF,X:qF,S:WF,M:XF};function FF(){var f=Bi.f(),d=S0();return f||d}function VF(f){var d=cu(f);d!==null&&d.tag===5&&d.type==="form"?c4(d):Bi.r(f)}var Hu=typeof document>"u"?null:document;function XM(f,d,m){var b=Hu;if(b&&typeof d=="string"&&d){var T=Va(d);T='link[rel="'+f+'"][href="'+T+'"]',typeof m=="string"&&(T+='[crossorigin="'+m+'"]'),qM.has(T)||(qM.add(T),f={rel:f,crossOrigin:m,href:d},b.querySelector(T)===null&&(d=b.createElement("link"),Nr(d,"link",f),Sr(d),b.head.appendChild(d)))}}function HF(f){Bi.D(f),XM("dns-prefetch",f,null)}function GF(f,d){Bi.C(f,d),XM("preconnect",f,d)}function UF(f,d,m){Bi.L(f,d,m);var b=Hu;if(b&&f&&d){var T='link[rel="preload"][as="'+Va(d)+'"]';d==="image"&&m&&m.imageSrcSet?(T+='[imagesrcset="'+Va(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(T+='[imagesizes="'+Va(m.imageSizes)+'"]')):T+='[href="'+Va(f)+'"]';var L=T;switch(d){case"style":L=Gu(f);break;case"script":L=Uu(f)}Za.has(L)||(f=h({rel:"preload",href:d==="image"&&m&&m.imageSrcSet?void 0:f,as:d},m),Za.set(L,f),b.querySelector(T)!==null||d==="style"&&b.querySelector(nh(L))||d==="script"&&b.querySelector(ih(L))||(d=b.createElement("link"),Nr(d,"link",f),Sr(d),b.head.appendChild(d)))}}function YF(f,d){Bi.m(f,d);var m=Hu;if(m&&f){var b=d&&typeof d.as=="string"?d.as:"script",T='link[rel="modulepreload"][as="'+Va(b)+'"][href="'+Va(f)+'"]',L=T;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":L=Uu(f)}if(!Za.has(L)&&(f=h({rel:"modulepreload",href:f},d),Za.set(L,f),m.querySelector(T)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(ih(L)))return}b=m.createElement("link"),Nr(b,"link",f),Sr(b),m.head.appendChild(b)}}}function WF(f,d,m){Bi.S(f,d,m);var b=Hu;if(b&&f){var T=fu(b).hoistableStyles,L=Gu(f);d=d||"default";var k=T.get(L);if(!k){var H={loading:0,preload:null};if(k=b.querySelector(nh(L)))H.loading=5;else{f=h({rel:"stylesheet",href:f,"data-precedence":d},m),(m=Za.get(L))&&Q1(f,m);var K=k=b.createElement("link");Sr(K),Nr(K,"link",f),K._p=new Promise(function(ne,de){K.onload=ne,K.onerror=de}),K.addEventListener("load",function(){H.loading|=1}),K.addEventListener("error",function(){H.loading|=2}),H.loading|=4,R0(k,d,b)}k={type:"stylesheet",instance:k,count:1,state:H},T.set(L,k)}}}function qF(f,d){Bi.X(f,d);var m=Hu;if(m&&f){var b=fu(m).hoistableScripts,T=Uu(f),L=b.get(T);L||(L=m.querySelector(ih(T)),L||(f=h({src:f,async:!0},d),(d=Za.get(T))&&J1(f,d),L=m.createElement("script"),Sr(L),Nr(L,"link",f),m.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},b.set(T,L))}}function XF(f,d){Bi.M(f,d);var m=Hu;if(m&&f){var b=fu(m).hoistableScripts,T=Uu(f),L=b.get(T);L||(L=m.querySelector(ih(T)),L||(f=h({src:f,async:!0,type:"module"},d),(d=Za.get(T))&&J1(f,d),L=m.createElement("script"),Sr(L),Nr(L,"link",f),m.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},b.set(T,L))}}function ZM(f,d,m,b){var T=(T=ye.current)?N0(T):null;if(!T)throw Error(a(446));switch(f){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(d=Gu(m.href),m=fu(T).hoistableStyles,b=m.get(d),b||(b={type:"style",instance:null,count:0,state:null},m.set(d,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){f=Gu(m.href);var L=fu(T).hoistableStyles,k=L.get(f);if(k||(T=T.ownerDocument||T,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},L.set(f,k),(L=T.querySelector(nh(f)))&&!L._p&&(k.instance=L,k.state.loading=5),Za.has(f)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},Za.set(f,m),L||ZF(T,f,m,k.state))),d&&b===null)throw Error(a(528,""));return k}if(d&&b!==null)throw Error(a(529,""));return null;case"script":return d=m.async,m=m.src,typeof m=="string"&&d&&typeof d!="function"&&typeof d!="symbol"?(d=Uu(m),m=fu(T).hoistableScripts,b=m.get(d),b||(b={type:"script",instance:null,count:0,state:null},m.set(d,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,f))}}function Gu(f){return'href="'+Va(f)+'"'}function nh(f){return'link[rel="stylesheet"]['+f+"]"}function $M(f){return h({},f,{"data-precedence":f.precedence,precedence:null})}function ZF(f,d,m,b){f.querySelector('link[rel="preload"][as="style"]['+d+"]")?b.loading=1:(d=f.createElement("link"),b.preload=d,d.addEventListener("load",function(){return b.loading|=1}),d.addEventListener("error",function(){return b.loading|=2}),Nr(d,"link",m),Sr(d),f.head.appendChild(d))}function Uu(f){return'[src="'+Va(f)+'"]'}function ih(f){return"script[async]"+f}function KM(f,d,m){if(d.count++,d.instance===null)switch(d.type){case"style":var b=f.querySelector('style[data-href~="'+Va(m.href)+'"]');if(b)return d.instance=b,Sr(b),b;var T=h({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return b=(f.ownerDocument||f).createElement("style"),Sr(b),Nr(b,"style",T),R0(b,m.precedence,f),d.instance=b;case"stylesheet":T=Gu(m.href);var L=f.querySelector(nh(T));if(L)return d.state.loading|=4,d.instance=L,Sr(L),L;b=$M(m),(T=Za.get(T))&&Q1(b,T),L=(f.ownerDocument||f).createElement("link"),Sr(L);var k=L;return k._p=new Promise(function(H,K){k.onload=H,k.onerror=K}),Nr(L,"link",b),d.state.loading|=4,R0(L,m.precedence,f),d.instance=L;case"script":return L=Uu(m.src),(T=f.querySelector(ih(L)))?(d.instance=T,Sr(T),T):(b=m,(T=Za.get(L))&&(b=h({},m),J1(b,T)),f=f.ownerDocument||f,T=f.createElement("script"),Sr(T),Nr(T,"link",b),f.head.appendChild(T),d.instance=T);case"void":return null;default:throw Error(a(443,d.type))}else d.type==="stylesheet"&&(d.state.loading&4)===0&&(b=d.instance,d.state.loading|=4,R0(b,m.precedence,f));return d.instance}function R0(f,d,m){for(var b=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=b.length?b[b.length-1]:null,L=T,k=0;k<b.length;k++){var H=b[k];if(H.dataset.precedence===d)L=H;else if(L!==T)break}L?L.parentNode.insertBefore(f,L.nextSibling):(d=m.nodeType===9?m.head:m,d.insertBefore(f,d.firstChild))}function Q1(f,d){f.crossOrigin==null&&(f.crossOrigin=d.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=d.referrerPolicy),f.title==null&&(f.title=d.title)}function J1(f,d){f.crossOrigin==null&&(f.crossOrigin=d.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=d.referrerPolicy),f.integrity==null&&(f.integrity=d.integrity)}var B0=null;function QM(f,d,m){if(B0===null){var b=new Map,T=B0=new Map;T.set(m,b)}else T=B0,b=T.get(m),b||(b=new Map,T.set(m,b));if(b.has(f))return b;for(b.set(f,null),m=m.getElementsByTagName(f),T=0;T<m.length;T++){var L=m[T];if(!(L[bf]||L[Tr]||f==="link"&&L.getAttribute("rel")==="stylesheet")&&L.namespaceURI!=="http://www.w3.org/2000/svg"){var k=L.getAttribute(d)||"";k=f+k;var H=b.get(k);H?H.push(L):b.set(k,[L])}}return b}function JM(f,d,m){f=f.ownerDocument||f,f.head.insertBefore(m,d==="title"?f.querySelector("head > title"):null)}function $F(f,d,m){if(m===1||d.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof d.precedence!="string"||typeof d.href!="string"||d.href==="")break;return!0;case"link":if(typeof d.rel!="string"||typeof d.href!="string"||d.href===""||d.onLoad||d.onError)break;switch(d.rel){case"stylesheet":return f=d.disabled,typeof d.precedence=="string"&&f==null;default:return!0}case"script":if(d.async&&typeof d.async!="function"&&typeof d.async!="symbol"&&!d.onLoad&&!d.onError&&d.src&&typeof d.src=="string")return!0}return!1}function e5(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}function KF(f,d,m,b){if(m.type==="stylesheet"&&(typeof b.media!="string"||matchMedia(b.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var T=Gu(b.href),L=d.querySelector(nh(T));if(L){d=L._p,d!==null&&typeof d=="object"&&typeof d.then=="function"&&(f.count++,f=I0.bind(f),d.then(f,f)),m.state.loading|=4,m.instance=L,Sr(L);return}L=d.ownerDocument||d,b=$M(b),(T=Za.get(T))&&Q1(b,T),L=L.createElement("link"),Sr(L);var k=L;k._p=new Promise(function(H,K){k.onload=H,k.onerror=K}),Nr(L,"link",b),m.instance=L}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(m,d),(d=m.state.preload)&&(m.state.loading&3)===0&&(f.count++,m=I0.bind(f),d.addEventListener("load",m),d.addEventListener("error",m))}}var e_=0;function QF(f,d){return f.stylesheets&&f.count===0&&O0(f,f.stylesheets),0<f.count||0<f.imgCount?function(m){var b=setTimeout(function(){if(f.stylesheets&&O0(f,f.stylesheets),f.unsuspend){var L=f.unsuspend;f.unsuspend=null,L()}},6e4+d);0<f.imgBytes&&e_===0&&(e_=62500*RF());var T=setTimeout(function(){if(f.waitingForImages=!1,f.count===0&&(f.stylesheets&&O0(f,f.stylesheets),f.unsuspend)){var L=f.unsuspend;f.unsuspend=null,L()}},(f.imgBytes>e_?50:800)+d);return f.unsuspend=m,function(){f.unsuspend=null,clearTimeout(b),clearTimeout(T)}}:null}function I0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)O0(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var k0=null;function O0(f,d){f.stylesheets=null,f.unsuspend!==null&&(f.count++,k0=new Map,d.forEach(JF,f),k0=null,I0.call(f))}function JF(f,d){if(!(d.state.loading&4)){var m=k0.get(f);if(m)var b=m.get(null);else{m=new Map,k0.set(f,m);for(var T=f.querySelectorAll("link[data-precedence],style[data-precedence]"),L=0;L<T.length;L++){var k=T[L];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(m.set(k.dataset.precedence,k),b=k)}b&&m.set(null,b)}T=d.instance,k=T.getAttribute("data-precedence"),L=m.get(k)||b,L===b&&m.set(null,T),m.set(k,T),this.count++,b=I0.bind(this),T.addEventListener("load",b),T.addEventListener("error",b),L?L.parentNode.insertBefore(T,L.nextSibling):(f=f.nodeType===9?f.head:f,f.insertBefore(T,f.firstChild)),d.state.loading|=4}}var oh={$$typeof:w,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function eV(f,d,m,b,T,L,k,H,K){this.tag=1,this.containerInfo=f,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=yf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yf(0),this.hiddenUpdates=yf(null),this.identifierPrefix=b,this.onUncaughtError=T,this.onCaughtError=L,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function t5(f,d,m,b,T,L,k,H,K,ne,de,ge){return f=new eV(f,d,m,k,K,ne,de,ge,H),d=1,L===!0&&(d|=24),L=Aa(3,null,null,d),f.current=L,L.stateNode=f,d=Bx(),d.refCount++,f.pooledCache=d,d.refCount++,L.memoizedState={element:b,isDehydrated:m,cache:d},Px(L),f}function r5(f){return f?(f=bu,f):bu}function a5(f,d,m,b,T,L){T=r5(T),b.context===null?b.context=T:b.pendingContext=T,b=go(d),b.payload={element:m},L=L===void 0?null:L,L!==null&&(b.callback=L),m=mo(f,b,d),m!==null&&(ga(m,f,d),zf(m,f,d))}function n5(f,d){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var m=f.retryLane;f.retryLane=m!==0&&m<d?m:d}}function t_(f,d){n5(f,d),(f=f.alternate)&&n5(f,d)}function i5(f){if(f.tag===13||f.tag===31){var d=As(f,67108864);d!==null&&ga(d,f,67108864),t_(f,67108864)}}function o5(f){if(f.tag===13||f.tag===31){var d=La();d=su(d);var m=As(f,d);m!==null&&ga(m,f,d),t_(f,d)}}var P0=!0;function tV(f,d,m,b){var T=F.T;F.T=null;var L=Y.p;try{Y.p=2,r_(f,d,m,b)}finally{Y.p=L,F.T=T}}function rV(f,d,m,b){var T=F.T;F.T=null;var L=Y.p;try{Y.p=8,r_(f,d,m,b)}finally{Y.p=L,F.T=T}}function r_(f,d,m,b){if(P0){var T=a_(b);if(T===null)H1(f,d,b,z0,m),l5(f,b);else if(nV(T,f,d,m,b))b.stopPropagation();else if(l5(f,b),d&4&&-1<aV.indexOf(f)){for(;T!==null;){var L=cu(T);if(L!==null)switch(L.tag){case 3:if(L=L.stateNode,L.current.memoizedState.isDehydrated){var k=pi(L.pendingLanes);if(k!==0){var H=L;for(H.pendingLanes|=2,H.entangledLanes|=2;k;){var K=1<<31-Jr(k);H.entanglements[1]|=K,k&=~K}Un(L),(wt&6)===0&&(_0=or()+500,eh(0))}}break;case 31:case 13:H=As(L,2),H!==null&&ga(H,L,2),S0(),t_(L,2)}if(L=a_(b),L===null&&H1(f,d,b,z0,m),L===T)break;T=L}T!==null&&b.stopPropagation()}else H1(f,d,b,null,m)}}function a_(f){return f=nx(f),n_(f)}var z0=null;function n_(f){if(z0=null,f=uu(f),f!==null){var d=i(f);if(d===null)f=null;else{var m=d.tag;if(m===13){if(f=o(d),f!==null)return f;f=null}else if(m===31){if(f=s(d),f!==null)return f;f=null}else if(m===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;f=null}else d!==f&&(f=null)}}return z0=f,null}function s5(f){switch(f){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(au()){case ja:return 2;case ua:return 8;case oo:case nu:return 32;case me:return 268435456;default:return 32}default:return 32}}var i_=!1,Mo=null,Eo=null,Lo=null,sh=new Map,lh=new Map,No=[],aV="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 l5(f,d){switch(f){case"focusin":case"focusout":Mo=null;break;case"dragenter":case"dragleave":Eo=null;break;case"mouseover":case"mouseout":Lo=null;break;case"pointerover":case"pointerout":sh.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":lh.delete(d.pointerId)}}function uh(f,d,m,b,T,L){return f===null||f.nativeEvent!==L?(f={blockedOn:d,domEventName:m,eventSystemFlags:b,nativeEvent:L,targetContainers:[T]},d!==null&&(d=cu(d),d!==null&&i5(d)),f):(f.eventSystemFlags|=b,d=f.targetContainers,T!==null&&d.indexOf(T)===-1&&d.push(T),f)}function nV(f,d,m,b,T){switch(d){case"focusin":return Mo=uh(Mo,f,d,m,b,T),!0;case"dragenter":return Eo=uh(Eo,f,d,m,b,T),!0;case"mouseover":return Lo=uh(Lo,f,d,m,b,T),!0;case"pointerover":var L=T.pointerId;return sh.set(L,uh(sh.get(L)||null,f,d,m,b,T)),!0;case"gotpointercapture":return L=T.pointerId,lh.set(L,uh(lh.get(L)||null,f,d,m,b,T)),!0}return!1}function u5(f){var d=uu(f.target);if(d!==null){var m=i(d);if(m!==null){if(d=m.tag,d===13){if(d=o(m),d!==null){f.blockedOn=d,wD(f.priority,function(){o5(m)});return}}else if(d===31){if(d=s(m),d!==null){f.blockedOn=d,wD(f.priority,function(){o5(m)});return}}else if(d===3&&m.stateNode.current.memoizedState.isDehydrated){f.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}f.blockedOn=null}function j0(f){if(f.blockedOn!==null)return!1;for(var d=f.targetContainers;0<d.length;){var m=a_(f.nativeEvent);if(m===null){m=f.nativeEvent;var b=new m.constructor(m.type,m);ax=b,m.target.dispatchEvent(b),ax=null}else return d=cu(m),d!==null&&i5(d),f.blockedOn=m,!1;d.shift()}return!0}function c5(f,d,m){j0(f)&&m.delete(d)}function iV(){i_=!1,Mo!==null&&j0(Mo)&&(Mo=null),Eo!==null&&j0(Eo)&&(Eo=null),Lo!==null&&j0(Lo)&&(Lo=null),sh.forEach(c5),lh.forEach(c5)}function F0(f,d){f.blockedOn===d&&(f.blockedOn=null,i_||(i_=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,iV)))}var V0=null;function f5(f){V0!==f&&(V0=f,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){V0===f&&(V0=null);for(var d=0;d<f.length;d+=3){var m=f[d],b=f[d+1],T=f[d+2];if(typeof b!="function"){if(n_(b||m)===null)continue;break}var L=cu(m);L!==null&&(f.splice(d,3),d-=3,a1(L,{pending:!0,data:T,method:m.method,action:b},b,T))}}))}function Yu(f){function d(K){return F0(K,f)}Mo!==null&&F0(Mo,f),Eo!==null&&F0(Eo,f),Lo!==null&&F0(Lo,f),sh.forEach(d),lh.forEach(d);for(var m=0;m<No.length;m++){var b=No[m];b.blockedOn===f&&(b.blockedOn=null)}for(;0<No.length&&(m=No[0],m.blockedOn===null);)u5(m),m.blockedOn===null&&No.shift();if(m=(f.ownerDocument||f).$$reactFormReplay,m!=null)for(b=0;b<m.length;b+=3){var T=m[b],L=m[b+1],k=T[ca]||null;if(typeof L=="function")k||f5(m);else if(k){var H=null;if(L&&L.hasAttribute("formAction")){if(T=L,k=L[ca]||null)H=k.formAction;else if(n_(T)!==null)continue}else H=k.action;typeof H=="function"?m[b+1]=H:(m.splice(b,3),b-=3),f5(m)}}}function h5(){function f(L){L.canIntercept&&L.info==="react-transition"&&L.intercept({handler:function(){return new Promise(function(k){return T=k})},focusReset:"manual",scroll:"manual"})}function d(){T!==null&&(T(),T=null),b||setTimeout(m,20)}function m(){if(!b&&!navigation.transition){var L=navigation.currentEntry;L&&L.url!=null&&navigation.navigate(L.url,{state:L.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var b=!1,T=null;return navigation.addEventListener("navigate",f),navigation.addEventListener("navigatesuccess",d),navigation.addEventListener("navigateerror",d),setTimeout(m,100),function(){b=!0,navigation.removeEventListener("navigate",f),navigation.removeEventListener("navigatesuccess",d),navigation.removeEventListener("navigateerror",d),T!==null&&(T(),T=null)}}}function o_(f){this._internalRoot=f}H0.prototype.render=o_.prototype.render=function(f){var d=this._internalRoot;if(d===null)throw Error(a(409));var m=d.current,b=La();a5(m,b,f,d,null,null)},H0.prototype.unmount=o_.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var d=f.containerInfo;a5(f.current,2,null,f,null,null),S0(),d[lu]=null}};function H0(f){this._internalRoot=f}H0.prototype.unstable_scheduleHydration=function(f){if(f){var d=SD();f={blockedOn:null,target:f,priority:d};for(var m=0;m<No.length&&d!==0&&d<No[m].priority;m++);No.splice(m,0,f),m===0&&u5(f)}};var v5=t.version;if(v5!=="19.2.3")throw Error(a(527,v5,"19.2.3"));Y.findDOMNode=function(f){var d=f._reactInternals;if(d===void 0)throw typeof f.render=="function"?Error(a(188)):(f=Object.keys(f).join(","),Error(a(268,f)));return f=u(d),f=f!==null?c(f):null,f=f===null?null:f.stateNode,f};var oV={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var G0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!G0.isDisabled&&G0.supportsFiber)try{er=G0.inject(oV),Zt=G0}catch{}}return fh.createRoot=function(f,d){if(!n(f))throw Error(a(299));var m=!1,b="",T=_4,L=b4,k=S4;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onUncaughtError!==void 0&&(T=d.onUncaughtError),d.onCaughtError!==void 0&&(L=d.onCaughtError),d.onRecoverableError!==void 0&&(k=d.onRecoverableError)),d=t5(f,1,!1,null,null,m,b,null,T,L,k,h5),f[lu]=d.current,V1(f),new o_(d)},fh.hydrateRoot=function(f,d,m){if(!n(f))throw Error(a(299));var b=!1,T="",L=_4,k=b4,H=S4,K=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(T=m.identifierPrefix),m.onUncaughtError!==void 0&&(L=m.onUncaughtError),m.onCaughtError!==void 0&&(k=m.onCaughtError),m.onRecoverableError!==void 0&&(H=m.onRecoverableError),m.formState!==void 0&&(K=m.formState)),d=t5(f,1,!0,d,m??null,b,T,K,L,k,H,h5),d.context=r5(null),m=d.current,b=La(),b=su(b),T=go(b),T.callback=null,mo(m,T,b),m=b,d.current.lanes=m,so(d,m),Un(d),f[lu]=d.current,V1(f),new H0(d)},fh.version="19.2.3",fh}var C5;function xV(){if(C5)return c_.exports;C5=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),c_.exports=yV(),c_.exports}var _V=xV();const bV=Km(_V);/**
  50. * react-router v7.12.0
  51. *
  52. * Copyright (c) Remix Software Inc.
  53. *
  54. * This source code is licensed under the MIT license found in the
  55. * LICENSE.md file in the root directory of this source tree.
  56. *
  57. * @license MIT
  58. */var A5="popstate";function SV(r={}){function t(n,i){let{pathname:o="/",search:s="",hash:l=""}=Ul(n.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),US("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function e(n,i){let o=n.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let l=n.location.href,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof i=="string"?i:bv(i))}function a(n,i){wa(n.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(i)})`)}return CV(t,e,a,r)}function Yt(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function wa(r,t){if(!r){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wV(){return Math.random().toString(36).substring(2,10)}function D5(r,t){return{usr:r.state,key:r.key,idx:t}}function US(r,t,e=null,a){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof t=="string"?Ul(t):t,state:e,key:t&&t.key||a||wV()}}function bv({pathname:r="/",search:t="",hash:e=""}){return t&&t!=="?"&&(r+=t.charAt(0)==="?"?t:"?"+t),e&&e!=="#"&&(r+=e.charAt(0)==="#"?e:"#"+e),r}function Ul(r){let t={};if(r){let e=r.indexOf("#");e>=0&&(t.hash=r.substring(e),r=r.substring(0,e));let a=r.indexOf("?");a>=0&&(t.search=r.substring(a),r=r.substring(0,a)),r&&(t.pathname=r)}return t}function CV(r,t,e,a={}){let{window:n=document.defaultView,v5Compat:i=!1}=a,o=n.history,s="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function h(){s="POP";let x=c(),_=x==null?null:x-u;u=x,l&&l({action:s,location:y.location,delta:_})}function v(x,_){s="PUSH";let S=US(y.location,x,_);e&&e(S,x),u=c()+1;let w=D5(S,u),C=y.createHref(S);try{o.pushState(w,"",C)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;n.location.assign(C)}i&&l&&l({action:s,location:y.location,delta:1})}function p(x,_){s="REPLACE";let S=US(y.location,x,_);e&&e(S,x),u=c();let w=D5(S,u),C=y.createHref(S);o.replaceState(w,"",C),i&&l&&l({action:s,location:y.location,delta:0})}function g(x){return AV(x)}let y={get action(){return s},get location(){return r(n,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(A5,h),l=x,()=>{n.removeEventListener(A5,h),l=null}},createHref(x){return t(n,x)},createURL:g,encodeLocation(x){let _=g(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:p,go(x){return o.go(x)}};return y}function AV(r,t=!1){let e="http://localhost";typeof window<"u"&&(e=window.location.origin!=="null"?window.location.origin:window.location.href),Yt(e,"No window.location.(origin|href) available to create URL");let a=typeof r=="string"?r:bv(r);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=e+a),new URL(a,e)}function NB(r,t,e="/"){return DV(r,t,e,!1)}function DV(r,t,e,a){let n=typeof t=="string"?Ul(t):t,i=$i(n.pathname||"/",e);if(i==null)return null;let o=RB(r);TV(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=zV(i);s=OV(o[l],u,a)}return s}function RB(r,t=[],e=[],a="",n=!1){let i=(o,s,l=n,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(a)&&l)return;Yt(c.relativePath.startsWith(a),`Absolute route path "${c.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(a.length)}let h=qi([a,c.relativePath]),v=e.concat(c);o.children&&o.children.length>0&&(Yt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),RB(o.children,t,v,h,l)),!(o.path==null&&!o.index)&&t.push({path:h,score:IV(h,o.index),routesMeta:v})};return r.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of BB(o.path))i(o,s,!0,u)}),t}function BB(r){let t=r.split("/");if(t.length===0)return[];let[e,...a]=t,n=e.endsWith("?"),i=e.replace(/\?$/,"");if(a.length===0)return n?[i,""]:[i];let o=BB(a.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),n&&s.push(...o),s.map(l=>r.startsWith("/")&&l===""?"/":l)}function TV(r){r.sort((t,e)=>t.score!==e.score?e.score-t.score:kV(t.routesMeta.map(a=>a.childrenIndex),e.routesMeta.map(a=>a.childrenIndex)))}var MV=/^:[\w-]+$/,EV=3,LV=2,NV=1,RV=10,BV=-2,T5=r=>r==="*";function IV(r,t){let e=r.split("/"),a=e.length;return e.some(T5)&&(a+=BV),t&&(a+=LV),e.filter(n=>!T5(n)).reduce((n,i)=>n+(MV.test(i)?EV:i===""?NV:RV),a)}function kV(r,t){return r.length===t.length&&r.slice(0,-1).every((a,n)=>a===t[n])?r[r.length-1]-t[t.length-1]:0}function OV(r,t,e=!1){let{routesMeta:a}=r,n={},i="/",o=[];for(let s=0;s<a.length;++s){let l=a[s],u=s===a.length-1,c=i==="/"?t:t.slice(i.length)||"/",h=Kg({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),v=l.route;if(!h&&u&&e&&!a[a.length-1].route.index&&(h=Kg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!h)return null;Object.assign(n,h.params),o.push({params:n,pathname:qi([i,h.pathname]),pathnameBase:HV(qi([i,h.pathnameBase])),route:v}),h.pathnameBase!=="/"&&(i=qi([i,h.pathnameBase]))}return o}function Kg(r,t){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[e,a]=PV(r.path,r.caseSensitive,r.end),n=t.match(e);if(!n)return null;let i=n[0],o=i.replace(/(.)\/+$/,"$1"),s=n.slice(1);return{params:a.reduce((u,{paramName:c,isOptional:h},v)=>{if(c==="*"){let g=s[v]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[v];return h&&!p?u[c]=void 0:u[c]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:r}}function PV(r,t=!1,e=!0){wa(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let a=[],n="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(a.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(a.push({paramName:"*"}),n+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):e?n+="\\/*$":r!==""&&r!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function zV(r){try{return r.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wa(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),r}}function $i(r,t){if(t==="/")return r;if(!r.toLowerCase().startsWith(t.toLowerCase()))return null;let e=t.endsWith("/")?t.length-1:t.length,a=r.charAt(e);return a&&a!=="/"?null:r.slice(e)||"/"}var IB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jV=r=>IB.test(r);function FV(r,t="/"){let{pathname:e,search:a="",hash:n=""}=typeof r=="string"?Ul(r):r,i;if(e)if(jV(e))i=e;else{if(e.includes("//")){let o=e;e=e.replace(/\/\/+/g,"/"),wa(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${e}`)}e.startsWith("/")?i=M5(e.substring(1),"/"):i=M5(e,t)}else i=t;return{pathname:i,search:GV(a),hash:UV(n)}}function M5(r,t){let e=t.replace(/\/+$/,"").split("/");return r.split("/").forEach(n=>{n===".."?e.length>1&&e.pop():n!=="."&&e.push(n)}),e.length>1?e.join("/"):"/"}function d_(r,t,e,a){return`Cannot include a '${r}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${e}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function VV(r){return r.filter((t,e)=>e===0||t.route.path&&t.route.path.length>0)}function Fw(r){let t=VV(r);return t.map((e,a)=>a===t.length-1?e.pathname:e.pathnameBase)}function Vw(r,t,e,a=!1){let n;typeof r=="string"?n=Ul(r):(n={...r},Yt(!n.pathname||!n.pathname.includes("?"),d_("?","pathname","search",n)),Yt(!n.pathname||!n.pathname.includes("#"),d_("#","pathname","hash",n)),Yt(!n.search||!n.search.includes("#"),d_("#","search","hash",n)));let i=r===""||n.pathname==="",o=i?"/":n.pathname,s;if(o==null)s=e;else{let h=t.length-1;if(!a&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),h-=1;n.pathname=v.join("/")}s=h>=0?t[h]:"/"}let l=FV(n,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&e.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var qi=r=>r.join("/").replace(/\/\/+/g,"/"),HV=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),GV=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,UV=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,YV=class{constructor(r,t,e,a=!1){this.status=r,this.statusText=t||"",this.internal=a,e instanceof Error?(this.data=e.toString(),this.error=e):this.data=e}};function WV(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function qV(r){return r.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var kB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function OB(r,t){let e=r;if(typeof e!="string"||!IB.test(e))return{absoluteURL:void 0,isExternal:!1,to:e};let a=e,n=!1;if(kB)try{let i=new URL(window.location.href),o=e.startsWith("//")?new URL(i.protocol+e):new URL(e),s=$i(o.pathname,t);o.origin===i.origin&&s!=null?e=s+o.search+o.hash:n=!0}catch{wa(!1,`<Link to="${e}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:e}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var PB=["POST","PUT","PATCH","DELETE"];new Set(PB);var XV=["GET",...PB];new Set(XV);var Zc=q.createContext(null);Zc.displayName="DataRouter";var Qm=q.createContext(null);Qm.displayName="DataRouterState";var ZV=q.createContext(!1),zB=q.createContext({isTransitioning:!1});zB.displayName="ViewTransition";var $V=q.createContext(new Map);$V.displayName="Fetchers";var KV=q.createContext(null);KV.displayName="Await";var za=q.createContext(null);za.displayName="Navigation";var ed=q.createContext(null);ed.displayName="Location";var jn=q.createContext({outlet:null,matches:[],isDataRoute:!1});jn.displayName="Route";var Hw=q.createContext(null);Hw.displayName="RouteError";var jB="REACT_ROUTER_ERROR",QV="REDIRECT",JV="ROUTE_ERROR_RESPONSE";function eH(r){if(r.startsWith(`${jB}:${QV}:{`))try{let t=JSON.parse(r.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function tH(r){if(r.startsWith(`${jB}:${JV}:{`))try{let t=JSON.parse(r.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new YV(t.status,t.statusText,t.data)}catch{}}function rH(r,{relative:t}={}){Yt($c(),"useHref() may be used only in the context of a <Router> component.");let{basename:e,navigator:a}=q.useContext(za),{hash:n,pathname:i,search:o}=td(r,{relative:t}),s=i;return e!=="/"&&(s=i==="/"?e:qi([e,i])),a.createHref({pathname:s,search:o,hash:n})}function $c(){return q.useContext(ed)!=null}function ci(){return Yt($c(),"useLocation() may be used only in the context of a <Router> component."),q.useContext(ed).location}var FB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function VB(r){q.useContext(za).static||q.useLayoutEffect(r)}function Yl(){let{isDataRoute:r}=q.useContext(jn);return r?gH():aH()}function aH(){Yt($c(),"useNavigate() may be used only in the context of a <Router> component.");let r=q.useContext(Zc),{basename:t,navigator:e}=q.useContext(za),{matches:a}=q.useContext(jn),{pathname:n}=ci(),i=JSON.stringify(Fw(a)),o=q.useRef(!1);return VB(()=>{o.current=!0}),q.useCallback((l,u={})=>{if(wa(o.current,FB),!o.current)return;if(typeof l=="number"){e.go(l);return}let c=Vw(l,JSON.parse(i),n,u.relative==="path");r==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:qi([t,c.pathname])),(u.replace?e.replace:e.push)(c,u.state,u)},[t,e,i,n,r])}q.createContext(null);function nH(){let{matches:r}=q.useContext(jn),t=r[r.length-1];return t?t.params:{}}function td(r,{relative:t}={}){let{matches:e}=q.useContext(jn),{pathname:a}=ci(),n=JSON.stringify(Fw(e));return q.useMemo(()=>Vw(r,JSON.parse(n),a,t==="path"),[r,n,a,t])}function iH(r,t){return HB(r,t)}function HB(r,t,e,a,n){var S;Yt($c(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=q.useContext(za),{matches:o}=q.useContext(jn),s=o[o.length-1],l=s?s.params:{},u=s?s.pathname:"/",c=s?s.pathnameBase:"/",h=s&&s.route;{let w=h&&h.path||"";UB(u,!h||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
  59. Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let v=ci(),p;if(t){let w=typeof t=="string"?Ul(t):t;Yt(c==="/"||((S=w.pathname)==null?void 0:S.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${w.pathname}" was given in the \`location\` prop.`),p=w}else p=v;let g=p.pathname||"/",y=g;if(c!=="/"){let w=c.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=NB(r,{pathname:y});wa(h||x!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),wa(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=cH(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:qi([c,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:qi([c,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),o,e,a,n);return t&&_?q.createElement(ed.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},_):_}function oH(){let r=pH(),t=WV(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),e=r instanceof Error?r.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",r),o=q.createElement(q.Fragment,null,q.createElement("p",null,"💿 Hey developer 👋"),q.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",q.createElement("code",{style:i},"ErrorBoundary")," or"," ",q.createElement("code",{style:i},"errorElement")," prop on your route.")),q.createElement(q.Fragment,null,q.createElement("h2",null,"Unexpected Application Error!"),q.createElement("h3",{style:{fontStyle:"italic"}},t),e?q.createElement("pre",{style:n},e):null,o)}var sH=q.createElement(oH,null),GB=class extends q.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){this.props.onError?this.props.onError(r,t):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const e=tH(r.digest);e&&(r=e)}let t=r!==void 0?q.createElement(jn.Provider,{value:this.props.routeContext},q.createElement(Hw.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?q.createElement(lH,{error:r},t):t}};GB.contextType=ZV;var p_=new WeakMap;function lH({children:r,error:t}){let{basename:e}=q.useContext(za);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=eH(t.digest);if(a){let n=p_.get(t);if(n)throw n;let i=OB(a.location,e);if(kB&&!p_.get(t))if(i.isExternal||a.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:a.replace}));throw p_.set(t,o),o}return q.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return r}function uH({routeContext:r,match:t,children:e}){let a=q.useContext(Zc);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),q.createElement(jn.Provider,{value:r},e)}function cH(r,t=[],e=null,a=null,n=null){if(r==null){if(!e)return null;if(e.errors)r=e.matches;else if(t.length===0&&!e.initialized&&e.matches.length>0)r=e.matches;else return null}let i=r,o=e==null?void 0:e.errors;if(o!=null){let c=i.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);Yt(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,l=-1;if(e)for(let c=0;c<i.length;c++){let h=i[c];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=c),h.route.id){let{loaderData:v,errors:p}=e,g=h.route.loader&&!v.hasOwnProperty(h.route.id)&&(!p||p[h.route.id]===void 0);if(h.route.lazy||g){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let u=e&&a?(c,h)=>{var v,p;a(c,{location:e.location,params:((p=(v=e.matches)==null?void 0:v[0])==null?void 0:p.params)??{},unstable_pattern:qV(e.matches),errorInfo:h})}:void 0;return i.reduceRight((c,h,v)=>{let p,g=!1,y=null,x=null;e&&(p=o&&h.route.id?o[h.route.id]:void 0,y=h.route.errorElement||sH,s&&(l<0&&v===0?(UB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,x=null):l===v&&(g=!0,x=h.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,v+1)),S=()=>{let w;return p?w=y:g?w=x:h.route.Component?w=q.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=c,q.createElement(uH,{match:h,routeContext:{outlet:c,matches:_,isDataRoute:e!=null},children:w})};return e&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?q.createElement(GB,{location:e.location,revalidation:e.revalidation,component:y,error:p,children:S(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:u}):S()},null)}function Gw(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fH(r){let t=q.useContext(Zc);return Yt(t,Gw(r)),t}function hH(r){let t=q.useContext(Qm);return Yt(t,Gw(r)),t}function vH(r){let t=q.useContext(jn);return Yt(t,Gw(r)),t}function Uw(r){let t=vH(r),e=t.matches[t.matches.length-1];return Yt(e.route.id,`${r} can only be used on routes that contain a unique "id"`),e.route.id}function dH(){return Uw("useRouteId")}function pH(){var a;let r=q.useContext(Hw),t=hH("useRouteError"),e=Uw("useRouteError");return r!==void 0?r:(a=t.errors)==null?void 0:a[e]}function gH(){let{router:r}=fH("useNavigate"),t=Uw("useNavigate"),e=q.useRef(!1);return VB(()=>{e.current=!0}),q.useCallback(async(n,i={})=>{wa(e.current,FB),e.current&&(typeof n=="number"?await r.navigate(n):await r.navigate(n,{fromRouteId:t,...i}))},[r,t])}var E5={};function UB(r,t,e){!t&&!E5[r]&&(E5[r]=!0,wa(!1,e))}q.memo(mH);function mH({routes:r,future:t,state:e,onError:a}){return HB(r,void 0,e,a,t)}function YS({to:r,replace:t,state:e,relative:a}){Yt($c(),"<Navigate> may be used only in the context of a <Router> component.");let{static:n}=q.useContext(za);wa(!n,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=q.useContext(jn),{pathname:o}=ci(),s=Yl(),l=Vw(r,Fw(i),o,a==="path"),u=JSON.stringify(l);return q.useEffect(()=>{s(JSON.parse(u),{replace:t,state:e,relative:a})},[s,u,a,t,e]),null}function Hr(r){Yt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function yH({basename:r="/",children:t=null,location:e,navigationType:a="POP",navigator:n,static:i=!1,unstable_useTransitions:o}){Yt(!$c(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=r.replace(/^\/*/,"/"),l=q.useMemo(()=>({basename:s,navigator:n,static:i,unstable_useTransitions:o,future:{}}),[s,n,i,o]);typeof e=="string"&&(e=Ul(e));let{pathname:u="/",search:c="",hash:h="",state:v=null,key:p="default"}=e,g=q.useMemo(()=>{let y=$i(u,s);return y==null?null:{location:{pathname:y,search:c,hash:h,state:v,key:p},navigationType:a}},[s,u,c,h,v,p,a]);return wa(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${c}${h}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:q.createElement(za.Provider,{value:l},q.createElement(ed.Provider,{children:t,value:g}))}function L5({children:r,location:t}){return iH(WS(r),t)}function WS(r,t=[]){let e=[];return q.Children.forEach(r,(a,n)=>{if(!q.isValidElement(a))return;let i=[...t,n];if(a.type===q.Fragment){e.push.apply(e,WS(a.props.children,i));return}Yt(a.type===Hr,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Yt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let o={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(o.children=WS(a.props.children,i)),e.push(o)}),e}var Xp="get",Zp="application/x-www-form-urlencoded";function Jm(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function xH(r){return Jm(r)&&r.tagName.toLowerCase()==="button"}function _H(r){return Jm(r)&&r.tagName.toLowerCase()==="form"}function bH(r){return Jm(r)&&r.tagName.toLowerCase()==="input"}function SH(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function wH(r,t){return r.button===0&&(!t||t==="_self")&&!SH(r)}function qS(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((t,e)=>{let a=r[e];return t.concat(Array.isArray(a)?a.map(n=>[e,n]):[[e,a]])},[]))}function CH(r,t){let e=qS(r);return t&&t.forEach((a,n)=>{e.has(n)||t.getAll(n).forEach(i=>{e.append(n,i)})}),e}var U0=null;function AH(){if(U0===null)try{new FormData(document.createElement("form"),0),U0=!1}catch{U0=!0}return U0}var DH=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g_(r){return r!=null&&!DH.has(r)?(wa(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zp}"`),null):r}function TH(r,t){let e,a,n,i,o;if(_H(r)){let s=r.getAttribute("action");a=s?$i(s,t):null,e=r.getAttribute("method")||Xp,n=g_(r.getAttribute("enctype"))||Zp,i=new FormData(r)}else if(xH(r)||bH(r)&&(r.type==="submit"||r.type==="image")){let s=r.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=r.getAttribute("formaction")||s.getAttribute("action");if(a=l?$i(l,t):null,e=r.getAttribute("formmethod")||s.getAttribute("method")||Xp,n=g_(r.getAttribute("formenctype"))||g_(s.getAttribute("enctype"))||Zp,i=new FormData(s,r),!AH()){let{name:u,type:c,value:h}=r;if(c==="image"){let v=u?`${u}.`:"";i.append(`${v}x`,"0"),i.append(`${v}y`,"0")}else u&&i.append(u,h)}}else{if(Jm(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');e=Xp,a=null,n=Zp,o=r}return i&&n==="text/plain"&&(o=i,i=void 0),{action:a,method:e.toLowerCase(),encType:n,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yw(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function MH(r,t,e,a){let n=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return e?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&$i(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${a}`,n}async function EH(r,t){if(r.id in t)return t[r.id];try{let e=await import(r.module);return t[r.id]=e,e}catch(e){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(e),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function LH(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function NH(r,t,e){let a=await Promise.all(r.map(async n=>{let i=t.routes[n.route.id];if(i){let o=await EH(i,e);return o.links?o.links():[]}return[]}));return kH(a.flat(1).filter(LH).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function N5(r,t,e,a,n,i){let o=(l,u)=>e[u]?l.route.id!==e[u].route.id:!0,s=(l,u)=>{var c;return e[u].pathname!==l.pathname||((c=e[u].route.path)==null?void 0:c.endsWith("*"))&&e[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>o(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var h;let c=a.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(o(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let v=l.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((h=e[0])==null?void 0:h.params)||{},nextUrl:new URL(r,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function RH(r,t,{includeHydrateFallback:e}={}){return BH(r.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),e&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function BH(r){return[...new Set(r)]}function IH(r){let t={},e=Object.keys(r).sort();for(let a of e)t[a]=r[a];return t}function kH(r,t){let e=new Set;return new Set(t),r.reduce((a,n)=>{let i=JSON.stringify(IH(n));return e.has(i)||(e.add(i),a.push({key:i,link:n})),a},[])}function YB(){let r=q.useContext(Zc);return Yw(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function OH(){let r=q.useContext(Qm);return Yw(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Ww=q.createContext(void 0);Ww.displayName="FrameworkContext";function WB(){let r=q.useContext(Ww);return Yw(r,"You must render this element inside a <HydratedRouter> element"),r}function PH(r,t){let e=q.useContext(Ww),[a,n]=q.useState(!1),[i,o]=q.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:h}=t,v=q.useRef(null);q.useEffect(()=>{if(r==="render"&&o(!0),r==="viewport"){let y=_=>{_.forEach(S=>{o(S.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[r]),q.useEffect(()=>{if(a){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[a]);let p=()=>{n(!0)},g=()=>{n(!1),o(!1)};return e?r!=="intent"?[i,v,{}]:[i,v,{onFocus:hh(s,p),onBlur:hh(l,g),onMouseEnter:hh(u,p),onMouseLeave:hh(c,g),onTouchStart:hh(h,p)}]:[!1,v,{}]}function hh(r,t){return e=>{r&&r(e),e.defaultPrevented||t(e)}}function zH({page:r,...t}){let{router:e}=YB(),a=q.useMemo(()=>NB(e.routes,r,e.basename),[e.routes,r,e.basename]);return a?q.createElement(FH,{page:r,matches:a,...t}):null}function jH(r){let{manifest:t,routeModules:e}=WB(),[a,n]=q.useState([]);return q.useEffect(()=>{let i=!1;return NH(r,t,e).then(o=>{i||n(o)}),()=>{i=!0}},[r,t,e]),a}function FH({page:r,matches:t,...e}){let a=ci(),{future:n,manifest:i,routeModules:o}=WB(),{basename:s}=YB(),{loaderData:l,matches:u}=OH(),c=q.useMemo(()=>N5(r,t,u,i,a,"data"),[r,t,u,i,a]),h=q.useMemo(()=>N5(r,t,u,i,a,"assets"),[r,t,u,i,a]),v=q.useMemo(()=>{if(r===a.pathname+a.search+a.hash)return[];let y=new Set,x=!1;if(t.forEach(S=>{var C;let w=i.routes[S.route.id];!w||!w.hasLoader||(!c.some(D=>D.route.id===S.route.id)&&S.route.id in l&&((C=o[S.route.id])!=null&&C.shouldRevalidate)||w.hasClientLoader?x=!0:y.add(S.route.id))}),y.size===0)return[];let _=MH(r,s,n.unstable_trailingSlashAwareDataRequests,"data");return x&&y.size>0&&_.searchParams.set("_routes",t.filter(S=>y.has(S.route.id)).map(S=>S.route.id).join(",")),[_.pathname+_.search]},[s,n.unstable_trailingSlashAwareDataRequests,l,a,i,c,t,r,o]),p=q.useMemo(()=>RH(h,i),[h,i]),g=jH(h);return q.createElement(q.Fragment,null,v.map(y=>q.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...e})),p.map(y=>q.createElement("link",{key:y,rel:"modulepreload",href:y,...e})),g.map(({key:y,link:x})=>q.createElement("link",{key:y,nonce:e.nonce,...x})))}function VH(...r){return t=>{r.forEach(e=>{typeof e=="function"?e(t):e!=null&&(e.current=t)})}}var HH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{HH&&(window.__reactRouterVersion="7.12.0")}catch{}function GH({basename:r,children:t,unstable_useTransitions:e,window:a}){let n=q.useRef();n.current==null&&(n.current=SV({window:a,v5Compat:!0}));let i=n.current,[o,s]=q.useState({action:i.action,location:i.location}),l=q.useCallback(u=>{e===!1?s(u):q.startTransition(()=>s(u))},[e]);return q.useLayoutEffect(()=>i.listen(l),[i,l]),q.createElement(yH,{basename:r,children:t,location:o.location,navigationType:o.action,navigator:i,unstable_useTransitions:e})}var qB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XB=q.forwardRef(function({onClick:t,discover:e="render",prefetch:a="none",relative:n,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,viewTransition:h,unstable_defaultShouldRevalidate:v,...p},g){let{basename:y,unstable_useTransitions:x}=q.useContext(za),_=typeof u=="string"&&qB.test(u),S=OB(u,y);u=S.to;let w=rH(u,{relative:n}),[C,D,M]=PH(a,p),E=WH(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:n,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:x});function N(R){t&&t(R),R.defaultPrevented||E(R)}let B=q.createElement("a",{...p,...M,href:S.absoluteURL||w,onClick:S.isExternal||i?t:N,ref:VH(g,D),target:l,"data-discover":!_&&e==="render"?"true":void 0});return C&&!_?q.createElement(q.Fragment,null,B,q.createElement(zH,{page:w})):B});XB.displayName="Link";var XS=q.forwardRef(function({"aria-current":t="page",caseSensitive:e=!1,className:a="",end:n=!1,style:i,to:o,viewTransition:s,children:l,...u},c){let h=td(o,{relative:u.relative}),v=ci(),p=q.useContext(Qm),{navigator:g,basename:y}=q.useContext(za),x=p!=null&&QH(h)&&s===!0,_=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,S=v.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;e||(S=S.toLowerCase(),w=w?w.toLowerCase():null,_=_.toLowerCase()),w&&y&&(w=$i(w,y)||w);const C=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let D=S===_||!n&&S.startsWith(_)&&S.charAt(C)==="/",M=w!=null&&(w===_||!n&&w.startsWith(_)&&w.charAt(_.length)==="/"),E={isActive:D,isPending:M,isTransitioning:x},N=D?t:void 0,B;typeof a=="function"?B=a(E):B=[a,D?"active":null,M?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let R=typeof i=="function"?i(E):i;return q.createElement(XB,{...u,"aria-current":N,className:B,ref:c,style:R,to:o,viewTransition:s},typeof l=="function"?l(E):l)});XS.displayName="NavLink";var UH=q.forwardRef(({discover:r="render",fetcherKey:t,navigate:e,reloadDocument:a,replace:n,state:i,method:o=Xp,action:s,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:h,unstable_defaultShouldRevalidate:v,...p},g)=>{let{unstable_useTransitions:y}=q.useContext(za),x=$H(),_=KH(s,{relative:u}),S=o.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&qB.test(s),C=D=>{if(l&&l(D),D.defaultPrevented)return;D.preventDefault();let M=D.nativeEvent.submitter,E=(M==null?void 0:M.getAttribute("formmethod"))||o,N=()=>x(M||D.currentTarget,{fetcherKey:t,method:E,navigate:e,replace:n,state:i,relative:u,preventScrollReset:c,viewTransition:h,unstable_defaultShouldRevalidate:v});y&&e!==!1?q.startTransition(()=>N()):N()};return q.createElement("form",{ref:g,method:S,action:_,onSubmit:a?l:C,...p,"data-discover":!w&&r==="render"?"true":void 0})});UH.displayName="Form";function YH(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZB(r){let t=q.useContext(Zc);return Yt(t,YH(r)),t}function WH(r,{target:t,replace:e,state:a,preventScrollReset:n,relative:i,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Yl(),c=ci(),h=td(r,{relative:i});return q.useCallback(v=>{if(wH(v,t)){v.preventDefault();let p=e!==void 0?e:bv(c)===bv(h),g=()=>u(r,{replace:p,state:a,preventScrollReset:n,relative:i,viewTransition:o,unstable_defaultShouldRevalidate:s});l?q.startTransition(()=>g()):g()}},[c,u,h,e,a,t,r,n,i,o,s,l])}function qH(r){wa(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=q.useRef(qS(r)),e=q.useRef(!1),a=ci(),n=q.useMemo(()=>CH(a.search,e.current?null:t.current),[a.search]),i=Yl(),o=q.useCallback((s,l)=>{const u=qS(typeof s=="function"?s(new URLSearchParams(n)):s);e.current=!0,i("?"+u,l)},[i,n]);return[n,o]}var XH=0,ZH=()=>`__${String(++XH)}__`;function $H(){let{router:r}=ZB("useSubmit"),{basename:t}=q.useContext(za),e=dH(),a=r.fetch,n=r.navigate;return q.useCallback(async(i,o={})=>{let{action:s,method:l,encType:u,formData:c,body:h}=TH(i,t);if(o.navigate===!1){let v=o.fetcherKey||ZH();await a(v,e,o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:h,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await n(o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:h,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:e,flushSync:o.flushSync,viewTransition:o.viewTransition})},[a,n,t,e])}function KH(r,{relative:t}={}){let{basename:e}=q.useContext(za),a=q.useContext(jn);Yt(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),i={...td(r||".",{relative:t})},o=ci();if(r==null){i.search=o.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(c=>c==="")){s.delete("index"),l.filter(h=>h).forEach(h=>s.append("index",h));let c=s.toString();i.search=c?`?${c}`:""}}return(!r||r===".")&&n.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),e!=="/"&&(i.pathname=i.pathname==="/"?e:qi([e,i.pathname])),bv(i)}function QH(r,{relative:t}={}){let e=q.useContext(zB);Yt(e!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=ZB("useViewTransitionState"),n=td(r,{relative:t});if(!e.isTransitioning)return!1;let i=$i(e.currentLocation.pathname,a)||e.currentLocation.pathname,o=$i(e.nextLocation.pathname,a)||e.nextLocation.pathname;return Kg(n.pathname,o)!=null||Kg(n.pathname,i)!=null}const R5=r=>{let t;const e=new Set,a=(u,c)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const v=t;t=c??(typeof h!="object"||h===null)?h:Object.assign({},t,h),e.forEach(p=>p(t,v))}},n=()=>t,s={setState:a,getState:n,getInitialState:()=>l,subscribe:u=>(e.add(u),()=>e.delete(u))},l=t=r(a,n,s);return s},JH=(r=>r?R5(r):R5),eG=r=>r;function tG(r,t=eG){const e=bc.useSyncExternalStore(r.subscribe,bc.useCallback(()=>t(r.getState()),[r,t]),bc.useCallback(()=>t(r.getInitialState()),[r,t]));return bc.useDebugValue(e),e}const rG=r=>{const t=JH(r),e=a=>tG(t,a);return Object.assign(e,t),e},aG=(r=>rG);function nG(r,t){let e;try{e=r()}catch{return}return{getItem:n=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),s=(i=e.getItem(n))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(n,i)=>e.setItem(n,JSON.stringify(i,void 0)),removeItem:n=>e.removeItem(n)}}const ZS=r=>t=>{try{const e=r(t);return e instanceof Promise?e:{then(a){return ZS(a)(e)},catch(a){return this}}}catch(e){return{then(a){return this},catch(a){return ZS(a)(e)}}}},iG=(r,t)=>(e,a,n)=>{let i={storage:nG(()=>localStorage),partialize:x=>x,version:0,merge:(x,_)=>({..._,...x}),...t},o=!1,s=0;const l=new Set,u=new Set;let c=i.storage;if(!c)return r((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),e(...x)},a,n);const h=()=>{const x=i.partialize({...a()});return c.setItem(i.name,{state:x,version:i.version})},v=n.setState;n.setState=(x,_)=>(v(x,_),h());const p=r((...x)=>(e(...x),h()),a,n);n.getInitialState=()=>p;let g;const y=()=>{var x,_;if(!c)return;const S=++s;o=!1,l.forEach(C=>{var D;return C((D=a())!=null?D:p)});const w=((_=i.onRehydrateStorage)==null?void 0:_.call(i,(x=a())!=null?x:p))||void 0;return ZS(c.getItem.bind(c))(i.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==i.version){if(i.migrate){const D=i.migrate(C.state,C.version);return D instanceof Promise?D.then(M=>[!0,M]):[!0,D]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var D;if(S!==s)return;const[M,E]=C;if(g=i.merge(E,(D=a())!=null?D:p),e(g,!0),M)return h()}).then(()=>{S===s&&(w==null||w(g,void 0),g=a(),o=!0,u.forEach(C=>C(g)))}).catch(C=>{S===s&&(w==null||w(void 0,C))})};return n.persist={setOptions:x=>{i={...i,...x},x.storage&&(c=x.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>y(),hasHydrated:()=>o,onHydrate:x=>(l.add(x),()=>{l.delete(x)}),onFinishHydration:x=>(u.add(x),()=>{u.delete(x)})},i.skipHydration||y(),g||p},oG=iG;var $p={exports:{}};function sG(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kp={exports:{}};const lG={},uG=Object.freeze(Object.defineProperty({__proto__:null,default:lG},Symbol.toStringTag,{value:"Module"})),cG=cV(uG);var fG=Kp.exports,B5;function mt(){return B5||(B5=1,(function(r,t){(function(e,a){r.exports=a()})(fG,function(){var e=e||(function(a,n){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof s_<"u"&&s_.crypto&&(i=s_.crypto),!i&&typeof sG=="function")try{i=cG}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||(function(){function S(){}return function(w){var C;return S.prototype=w,C=new S,S.prototype=null,C}})(),l={},u=l.lib={},c=u.Base=(function(){return{extend:function(S){var w=s(this);return S&&w.mixIn(S),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var w in S)S.hasOwnProperty(w)&&(this[w]=S[w]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),h=u.WordArray=c.extend({init:function(S,w){S=this.words=S||[],w!=n?this.sigBytes=w:this.sigBytes=S.length*4},toString:function(S){return(S||p).stringify(this)},concat:function(S){var w=this.words,C=S.words,D=this.sigBytes,M=S.sigBytes;if(this.clamp(),D%4)for(var E=0;E<M;E++){var N=C[E>>>2]>>>24-E%4*8&255;w[D+E>>>2]|=N<<24-(D+E)%4*8}else for(var B=0;B<M;B+=4)w[D+B>>>2]=C[B>>>2];return this.sigBytes+=M,this},clamp:function(){var S=this.words,w=this.sigBytes;S[w>>>2]&=4294967295<<32-w%4*8,S.length=a.ceil(w/4)},clone:function(){var S=c.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var w=[],C=0;C<S;C+=4)w.push(o());return new h.init(w,S)}}),v=l.enc={},p=v.Hex={stringify:function(S){for(var w=S.words,C=S.sigBytes,D=[],M=0;M<C;M++){var E=w[M>>>2]>>>24-M%4*8&255;D.push((E>>>4).toString(16)),D.push((E&15).toString(16))}return D.join("")},parse:function(S){for(var w=S.length,C=[],D=0;D<w;D+=2)C[D>>>3]|=parseInt(S.substr(D,2),16)<<24-D%8*4;return new h.init(C,w/2)}},g=v.Latin1={stringify:function(S){for(var w=S.words,C=S.sigBytes,D=[],M=0;M<C;M++){var E=w[M>>>2]>>>24-M%4*8&255;D.push(String.fromCharCode(E))}return D.join("")},parse:function(S){for(var w=S.length,C=[],D=0;D<w;D++)C[D>>>2]|=(S.charCodeAt(D)&255)<<24-D%4*8;return new h.init(C,w)}},y=v.Utf8={stringify:function(S){try{return decodeURIComponent(escape(g.stringify(S)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(S){return g.parse(unescape(encodeURIComponent(S)))}},x=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=y.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var w,C=this._data,D=C.words,M=C.sigBytes,E=this.blockSize,N=E*4,B=M/N;S?B=a.ceil(B):B=a.max((B|0)-this._minBufferSize,0);var R=B*E,I=a.min(R*4,M);if(R){for(var P=0;P<R;P+=E)this._doProcessBlock(D,P);w=D.splice(0,R),C.sigBytes-=I}return new h.init(w,I)},clone:function(){var S=c.clone.call(this);return S._data=this._data.clone(),S},_minBufferSize:0});u.Hasher=x.extend({cfg:c.extend(),init:function(S){this.cfg=this.cfg.extend(S),this.reset()},reset:function(){x.reset.call(this),this._doReset()},update:function(S){return this._append(S),this._process(),this},finalize:function(S){S&&this._append(S);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(S){return function(w,C){return new S.init(C).finalize(w)}},_createHmacHelper:function(S){return function(w,C){return new _.HMAC.init(S,C).finalize(w)}}});var _=l.algo={};return l})(Math);return e})})(Kp)),Kp.exports}var Qp={exports:{}},hG=Qp.exports,I5;function ey(){return I5||(I5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(hG,function(e){return(function(a){var n=e,i=n.lib,o=i.Base,s=i.WordArray,l=n.x64={};l.Word=o.extend({init:function(u,c){this.high=u,this.low=c}}),l.WordArray=o.extend({init:function(u,c){u=this.words=u||[],c!=a?this.sigBytes=c:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,c=u.length,h=[],v=0;v<c;v++){var p=u[v];h.push(p.high),h.push(p.low)}return s.create(h,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),c=u.words=this.words.slice(0),h=c.length,v=0;v<h;v++)c[v]=c[v].clone();return u}})})(),e})})(Qp)),Qp.exports}var Jp={exports:{}},vG=Jp.exports,k5;function dG(){return k5||(k5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(vG,function(e){return(function(){if(typeof ArrayBuffer=="function"){var a=e,n=a.lib,i=n.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,c=[],h=0;h<u;h++)c[h>>>2]|=l[h]<<24-h%4*8;o.call(this,c,u)}else o.apply(this,arguments)};s.prototype=i}})(),e.lib.WordArray})})(Jp)),Jp.exports}var eg={exports:{}},pG=eg.exports,O5;function gG(){return O5||(O5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(pG,function(e){return(function(){var a=e,n=a.lib,i=n.WordArray,o=a.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var u=l.words,c=l.sigBytes,h=[],v=0;v<c;v+=2){var p=u[v>>>2]>>>16-v%4*8&65535;h.push(String.fromCharCode(p))}return h.join("")},parse:function(l){for(var u=l.length,c=[],h=0;h<u;h++)c[h>>>1]|=l.charCodeAt(h)<<16-h%2*16;return i.create(c,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,c=l.sigBytes,h=[],v=0;v<c;v+=2){var p=s(u[v>>>2]>>>16-v%4*8&65535);h.push(String.fromCharCode(p))}return h.join("")},parse:function(l){for(var u=l.length,c=[],h=0;h<u;h++)c[h>>>1]|=s(l.charCodeAt(h)<<16-h%2*16);return i.create(c,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}})(),e.enc.Utf16})})(eg)),eg.exports}var tg={exports:{}},mG=tg.exports,P5;function Wl(){return P5||(P5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(mG,function(e){return(function(){var a=e,n=a.lib,i=n.WordArray,o=a.enc;o.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,h=this._map;l.clamp();for(var v=[],p=0;p<c;p+=3)for(var g=u[p>>>2]>>>24-p%4*8&255,y=u[p+1>>>2]>>>24-(p+1)%4*8&255,x=u[p+2>>>2]>>>24-(p+2)%4*8&255,_=g<<16|y<<8|x,S=0;S<4&&p+S*.75<c;S++)v.push(h.charAt(_>>>6*(3-S)&63));var w=h.charAt(64);if(w)for(;v.length%4;)v.push(w);return v.join("")},parse:function(l){var u=l.length,c=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var v=0;v<c.length;v++)h[c.charCodeAt(v)]=v}var p=c.charAt(64);if(p){var g=l.indexOf(p);g!==-1&&(u=g)}return s(l,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,c){for(var h=[],v=0,p=0;p<u;p++)if(p%4){var g=c[l.charCodeAt(p-1)]<<p%4*2,y=c[l.charCodeAt(p)]>>>6-p%4*2,x=g|y;h[v>>>2]|=x<<24-v%4*8,v++}return i.create(h,v)}})(),e.enc.Base64})})(tg)),tg.exports}var rg={exports:{}},yG=rg.exports,z5;function xG(){return z5||(z5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(yG,function(e){return(function(){var a=e,n=a.lib,i=n.WordArray,o=a.enc;o.Base64url={stringify:function(l,u){u===void 0&&(u=!0);var c=l.words,h=l.sigBytes,v=u?this._safe_map:this._map;l.clamp();for(var p=[],g=0;g<h;g+=3)for(var y=c[g>>>2]>>>24-g%4*8&255,x=c[g+1>>>2]>>>24-(g+1)%4*8&255,_=c[g+2>>>2]>>>24-(g+2)%4*8&255,S=y<<16|x<<8|_,w=0;w<4&&g+w*.75<h;w++)p.push(v.charAt(S>>>6*(3-w)&63));var C=v.charAt(64);if(C)for(;p.length%4;)p.push(C);return p.join("")},parse:function(l,u){u===void 0&&(u=!0);var c=l.length,h=u?this._safe_map:this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var p=0;p<h.length;p++)v[h.charCodeAt(p)]=p}var g=h.charAt(64);if(g){var y=l.indexOf(g);y!==-1&&(c=y)}return s(l,c,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,u,c){for(var h=[],v=0,p=0;p<u;p++)if(p%4){var g=c[l.charCodeAt(p-1)]<<p%4*2,y=c[l.charCodeAt(p)]>>>6-p%4*2,x=g|y;h[v>>>2]|=x<<24-v%4*8,v++}return i.create(h,v)}})(),e.enc.Base64url})})(rg)),rg.exports}var ag={exports:{}},_G=ag.exports,j5;function ql(){return j5||(j5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(_G,function(e){return(function(a){var n=e,i=n.lib,o=i.WordArray,s=i.Hasher,l=n.algo,u=[];(function(){for(var y=0;y<64;y++)u[y]=a.abs(a.sin(y+1))*4294967296|0})();var c=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(y,x){for(var _=0;_<16;_++){var S=x+_,w=y[S];y[S]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var C=this._hash.words,D=y[x+0],M=y[x+1],E=y[x+2],N=y[x+3],B=y[x+4],R=y[x+5],I=y[x+6],P=y[x+7],z=y[x+8],V=y[x+9],G=y[x+10],F=y[x+11],Y=y[x+12],W=y[x+13],X=y[x+14],te=y[x+15],j=C[0],U=C[1],Z=C[2],$=C[3];j=h(j,U,Z,$,D,7,u[0]),$=h($,j,U,Z,M,12,u[1]),Z=h(Z,$,j,U,E,17,u[2]),U=h(U,Z,$,j,N,22,u[3]),j=h(j,U,Z,$,B,7,u[4]),$=h($,j,U,Z,R,12,u[5]),Z=h(Z,$,j,U,I,17,u[6]),U=h(U,Z,$,j,P,22,u[7]),j=h(j,U,Z,$,z,7,u[8]),$=h($,j,U,Z,V,12,u[9]),Z=h(Z,$,j,U,G,17,u[10]),U=h(U,Z,$,j,F,22,u[11]),j=h(j,U,Z,$,Y,7,u[12]),$=h($,j,U,Z,W,12,u[13]),Z=h(Z,$,j,U,X,17,u[14]),U=h(U,Z,$,j,te,22,u[15]),j=v(j,U,Z,$,M,5,u[16]),$=v($,j,U,Z,I,9,u[17]),Z=v(Z,$,j,U,F,14,u[18]),U=v(U,Z,$,j,D,20,u[19]),j=v(j,U,Z,$,R,5,u[20]),$=v($,j,U,Z,G,9,u[21]),Z=v(Z,$,j,U,te,14,u[22]),U=v(U,Z,$,j,B,20,u[23]),j=v(j,U,Z,$,V,5,u[24]),$=v($,j,U,Z,X,9,u[25]),Z=v(Z,$,j,U,N,14,u[26]),U=v(U,Z,$,j,z,20,u[27]),j=v(j,U,Z,$,W,5,u[28]),$=v($,j,U,Z,E,9,u[29]),Z=v(Z,$,j,U,P,14,u[30]),U=v(U,Z,$,j,Y,20,u[31]),j=p(j,U,Z,$,R,4,u[32]),$=p($,j,U,Z,z,11,u[33]),Z=p(Z,$,j,U,F,16,u[34]),U=p(U,Z,$,j,X,23,u[35]),j=p(j,U,Z,$,M,4,u[36]),$=p($,j,U,Z,B,11,u[37]),Z=p(Z,$,j,U,P,16,u[38]),U=p(U,Z,$,j,G,23,u[39]),j=p(j,U,Z,$,W,4,u[40]),$=p($,j,U,Z,D,11,u[41]),Z=p(Z,$,j,U,N,16,u[42]),U=p(U,Z,$,j,I,23,u[43]),j=p(j,U,Z,$,V,4,u[44]),$=p($,j,U,Z,Y,11,u[45]),Z=p(Z,$,j,U,te,16,u[46]),U=p(U,Z,$,j,E,23,u[47]),j=g(j,U,Z,$,D,6,u[48]),$=g($,j,U,Z,P,10,u[49]),Z=g(Z,$,j,U,X,15,u[50]),U=g(U,Z,$,j,R,21,u[51]),j=g(j,U,Z,$,Y,6,u[52]),$=g($,j,U,Z,N,10,u[53]),Z=g(Z,$,j,U,G,15,u[54]),U=g(U,Z,$,j,M,21,u[55]),j=g(j,U,Z,$,z,6,u[56]),$=g($,j,U,Z,te,10,u[57]),Z=g(Z,$,j,U,I,15,u[58]),U=g(U,Z,$,j,W,21,u[59]),j=g(j,U,Z,$,B,6,u[60]),$=g($,j,U,Z,F,10,u[61]),Z=g(Z,$,j,U,E,15,u[62]),U=g(U,Z,$,j,V,21,u[63]),C[0]=C[0]+j|0,C[1]=C[1]+U|0,C[2]=C[2]+Z|0,C[3]=C[3]+$|0},_doFinalize:function(){var y=this._data,x=y.words,_=this._nDataBytes*8,S=y.sigBytes*8;x[S>>>5]|=128<<24-S%32;var w=a.floor(_/4294967296),C=_;x[(S+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,x[(S+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,y.sigBytes=(x.length+1)*4,this._process();for(var D=this._hash,M=D.words,E=0;E<4;E++){var N=M[E];M[E]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return D},clone:function(){var y=s.clone.call(this);return y._hash=this._hash.clone(),y}});function h(y,x,_,S,w,C,D){var M=y+(x&_|~x&S)+w+D;return(M<<C|M>>>32-C)+x}function v(y,x,_,S,w,C,D){var M=y+(x&S|_&~S)+w+D;return(M<<C|M>>>32-C)+x}function p(y,x,_,S,w,C,D){var M=y+(x^_^S)+w+D;return(M<<C|M>>>32-C)+x}function g(y,x,_,S,w,C,D){var M=y+(_^(x|~S))+w+D;return(M<<C|M>>>32-C)+x}n.MD5=s._createHelper(c),n.HmacMD5=s._createHmacHelper(c)})(Math),e.MD5})})(ag)),ag.exports}var ng={exports:{}},bG=ng.exports,F5;function $B(){return F5||(F5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(bG,function(e){return(function(){var a=e,n=a.lib,i=n.WordArray,o=n.Hasher,s=a.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,h){for(var v=this._hash.words,p=v[0],g=v[1],y=v[2],x=v[3],_=v[4],S=0;S<80;S++){if(S<16)l[S]=c[h+S]|0;else{var w=l[S-3]^l[S-8]^l[S-14]^l[S-16];l[S]=w<<1|w>>>31}var C=(p<<5|p>>>27)+_+l[S];S<20?C+=(g&y|~g&x)+1518500249:S<40?C+=(g^y^x)+1859775393:S<60?C+=(g&y|g&x|y&x)-1894007588:C+=(g^y^x)-899497514,_=x,x=y,y=g<<30|g>>>2,g=p,p=C}v[0]=v[0]+p|0,v[1]=v[1]+g|0,v[2]=v[2]+y|0,v[3]=v[3]+x|0,v[4]=v[4]+_|0},_doFinalize:function(){var c=this._data,h=c.words,v=this._nDataBytes*8,p=c.sigBytes*8;return h[p>>>5]|=128<<24-p%32,h[(p+64>>>9<<4)+14]=Math.floor(v/4294967296),h[(p+64>>>9<<4)+15]=v,c.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});a.SHA1=o._createHelper(u),a.HmacSHA1=o._createHmacHelper(u)})(),e.SHA1})})(ng)),ng.exports}var ig={exports:{}},SG=ig.exports,V5;function qw(){return V5||(V5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(SG,function(e){return(function(a){var n=e,i=n.lib,o=i.WordArray,s=i.Hasher,l=n.algo,u=[],c=[];(function(){function p(_){for(var S=a.sqrt(_),w=2;w<=S;w++)if(!(_%w))return!1;return!0}function g(_){return(_-(_|0))*4294967296|0}for(var y=2,x=0;x<64;)p(y)&&(x<8&&(u[x]=g(a.pow(y,1/2))),c[x]=g(a.pow(y,1/3)),x++),y++})();var h=[],v=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(p,g){for(var y=this._hash.words,x=y[0],_=y[1],S=y[2],w=y[3],C=y[4],D=y[5],M=y[6],E=y[7],N=0;N<64;N++){if(N<16)h[N]=p[g+N]|0;else{var B=h[N-15],R=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,I=h[N-2],P=(I<<15|I>>>17)^(I<<13|I>>>19)^I>>>10;h[N]=R+h[N-7]+P+h[N-16]}var z=C&D^~C&M,V=x&_^x&S^_&S,G=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),F=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),Y=E+F+z+c[N]+h[N],W=G+V;E=M,M=D,D=C,C=w+Y|0,w=S,S=_,_=x,x=Y+W|0}y[0]=y[0]+x|0,y[1]=y[1]+_|0,y[2]=y[2]+S|0,y[3]=y[3]+w|0,y[4]=y[4]+C|0,y[5]=y[5]+D|0,y[6]=y[6]+M|0,y[7]=y[7]+E|0},_doFinalize:function(){var p=this._data,g=p.words,y=this._nDataBytes*8,x=p.sigBytes*8;return g[x>>>5]|=128<<24-x%32,g[(x+64>>>9<<4)+14]=a.floor(y/4294967296),g[(x+64>>>9<<4)+15]=y,p.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});n.SHA256=s._createHelper(v),n.HmacSHA256=s._createHmacHelper(v)})(Math),e.SHA256})})(ig)),ig.exports}var og={exports:{}},wG=og.exports,H5;function CG(){return H5||(H5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),qw())})(wG,function(e){return(function(){var a=e,n=a.lib,i=n.WordArray,o=a.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});a.SHA224=s._createHelper(l),a.HmacSHA224=s._createHmacHelper(l)})(),e.SHA224})})(og)),og.exports}var sg={exports:{}},AG=sg.exports,G5;function KB(){return G5||(G5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),ey())})(AG,function(e){return(function(){var a=e,n=a.lib,i=n.Hasher,o=a.x64,s=o.Word,l=o.WordArray,u=a.algo;function c(){return s.create.apply(s,arguments)}var h=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],v=[];(function(){for(var g=0;g<80;g++)v[g]=c()})();var p=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(g,y){for(var x=this._hash.words,_=x[0],S=x[1],w=x[2],C=x[3],D=x[4],M=x[5],E=x[6],N=x[7],B=_.high,R=_.low,I=S.high,P=S.low,z=w.high,V=w.low,G=C.high,F=C.low,Y=D.high,W=D.low,X=M.high,te=M.low,j=E.high,U=E.low,Z=N.high,$=N.low,fe=B,ye=R,ee=I,se=P,ue=z,we=V,ve=G,Ae=F,Ue=Y,De=W,Ke=X,ot=te,Lt=j,Pt=U,Ht=Z,vr=$,kt=0;kt<80;kt++){var Wt,Pr,or=v[kt];if(kt<16)Pr=or.high=g[y+kt*2]|0,Wt=or.low=g[y+kt*2+1]|0;else{var au=v[kt-15],ja=au.high,ua=au.low,oo=(ja>>>1|ua<<31)^(ja>>>8|ua<<24)^ja>>>7,nu=(ua>>>1|ja<<31)^(ua>>>8|ja<<24)^(ua>>>7|ja<<25),me=v[kt-2],at=me.high,zt=me.low,er=(at>>>19|zt<<13)^(at<<3|zt>>>29)^at>>>6,Zt=(zt>>>19|at<<13)^(zt<<3|at>>>29)^(zt>>>6|at<<26),yn=v[kt-7],Jr=yn.high,Xy=yn.low,Ed=v[kt-16],Zy=Ed.high,ys=Ed.low;Wt=nu+Xy,Pr=oo+Jr+(Wt>>>0<nu>>>0?1:0),Wt=Wt+Zt,Pr=Pr+er+(Wt>>>0<Zt>>>0?1:0),Wt=Wt+ys,Pr=Pr+Zy+(Wt>>>0<ys>>>0?1:0),or.high=Pr,or.low=Wt}var iu=Ue&Ke^~Ue&Lt,xs=De&ot^~De&Pt,pi=fe&ee^fe&ue^ee&ue,ou=ye&se^ye&we^se&we,_s=(fe>>>28|ye<<4)^(fe<<30|ye>>>2)^(fe<<25|ye>>>7),Ld=(ye>>>28|fe<<4)^(ye<<30|fe>>>2)^(ye<<25|fe>>>7),Nd=(Ue>>>14|De<<18)^(Ue>>>18|De<<14)^(Ue<<23|De>>>9),yf=(De>>>14|Ue<<18)^(De>>>18|Ue<<14)^(De<<23|Ue>>>9),so=h[kt],$y=so.high,xf=so.low,zr=vr+yf,xn=Ht+Nd+(zr>>>0<vr>>>0?1:0),zr=zr+xs,xn=xn+iu+(zr>>>0<xs>>>0?1:0),zr=zr+xf,xn=xn+$y+(zr>>>0<xf>>>0?1:0),zr=zr+Wt,xn=xn+Pr+(zr>>>0<Wt>>>0?1:0),su=Ld+ou,_f=_s+pi+(su>>>0<Ld>>>0?1:0);Ht=Lt,vr=Pt,Lt=Ke,Pt=ot,Ke=Ue,ot=De,De=Ae+zr|0,Ue=ve+xn+(De>>>0<Ae>>>0?1:0)|0,ve=ue,Ae=we,ue=ee,we=se,ee=fe,se=ye,ye=zr+su|0,fe=xn+_f+(ye>>>0<zr>>>0?1:0)|0}R=_.low=R+ye,_.high=B+fe+(R>>>0<ye>>>0?1:0),P=S.low=P+se,S.high=I+ee+(P>>>0<se>>>0?1:0),V=w.low=V+we,w.high=z+ue+(V>>>0<we>>>0?1:0),F=C.low=F+Ae,C.high=G+ve+(F>>>0<Ae>>>0?1:0),W=D.low=W+De,D.high=Y+Ue+(W>>>0<De>>>0?1:0),te=M.low=te+ot,M.high=X+Ke+(te>>>0<ot>>>0?1:0),U=E.low=U+Pt,E.high=j+Lt+(U>>>0<Pt>>>0?1:0),$=N.low=$+vr,N.high=Z+Ht+($>>>0<vr>>>0?1:0)},_doFinalize:function(){var g=this._data,y=g.words,x=this._nDataBytes*8,_=g.sigBytes*8;y[_>>>5]|=128<<24-_%32,y[(_+128>>>10<<5)+30]=Math.floor(x/4294967296),y[(_+128>>>10<<5)+31]=x,g.sigBytes=y.length*4,this._process();var S=this._hash.toX32();return S},clone:function(){var g=i.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});a.SHA512=i._createHelper(p),a.HmacSHA512=i._createHmacHelper(p)})(),e.SHA512})})(sg)),sg.exports}var lg={exports:{}},DG=lg.exports,U5;function TG(){return U5||(U5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),ey(),KB())})(DG,function(e){return(function(){var a=e,n=a.x64,i=n.Word,o=n.WordArray,s=a.algo,l=s.SHA512,u=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=16,c}});a.SHA384=l._createHelper(u),a.HmacSHA384=l._createHmacHelper(u)})(),e.SHA384})})(lg)),lg.exports}var ug={exports:{}},MG=ug.exports,Y5;function EG(){return Y5||(Y5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),ey())})(MG,function(e){return(function(a){var n=e,i=n.lib,o=i.WordArray,s=i.Hasher,l=n.x64,u=l.Word,c=n.algo,h=[],v=[],p=[];(function(){for(var x=1,_=0,S=0;S<24;S++){h[x+5*_]=(S+1)*(S+2)/2%64;var w=_%5,C=(2*x+3*_)%5;x=w,_=C}for(var x=0;x<5;x++)for(var _=0;_<5;_++)v[x+5*_]=_+(2*x+3*_)%5*5;for(var D=1,M=0;M<24;M++){for(var E=0,N=0,B=0;B<7;B++){if(D&1){var R=(1<<B)-1;R<32?N^=1<<R:E^=1<<R-32}D&128?D=D<<1^113:D<<=1}p[M]=u.create(E,N)}})();var g=[];(function(){for(var x=0;x<25;x++)g[x]=u.create()})();var y=c.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var x=this._state=[],_=0;_<25;_++)x[_]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(x,_){for(var S=this._state,w=this.blockSize/2,C=0;C<w;C++){var D=x[_+2*C],M=x[_+2*C+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var E=S[C];E.high^=M,E.low^=D}for(var N=0;N<24;N++){for(var B=0;B<5;B++){for(var R=0,I=0,P=0;P<5;P++){var E=S[B+5*P];R^=E.high,I^=E.low}var z=g[B];z.high=R,z.low=I}for(var B=0;B<5;B++)for(var V=g[(B+4)%5],G=g[(B+1)%5],F=G.high,Y=G.low,R=V.high^(F<<1|Y>>>31),I=V.low^(Y<<1|F>>>31),P=0;P<5;P++){var E=S[B+5*P];E.high^=R,E.low^=I}for(var W=1;W<25;W++){var R,I,E=S[W],X=E.high,te=E.low,j=h[W];j<32?(R=X<<j|te>>>32-j,I=te<<j|X>>>32-j):(R=te<<j-32|X>>>64-j,I=X<<j-32|te>>>64-j);var U=g[v[W]];U.high=R,U.low=I}var Z=g[0],$=S[0];Z.high=$.high,Z.low=$.low;for(var B=0;B<5;B++)for(var P=0;P<5;P++){var W=B+5*P,E=S[W],fe=g[W],ye=g[(B+1)%5+5*P],ee=g[(B+2)%5+5*P];E.high=fe.high^~ye.high&ee.high,E.low=fe.low^~ye.low&ee.low}var E=S[0],se=p[N];E.high^=se.high,E.low^=se.low}},_doFinalize:function(){var x=this._data,_=x.words;this._nDataBytes*8;var S=x.sigBytes*8,w=this.blockSize*32;_[S>>>5]|=1<<24-S%32,_[(a.ceil((S+1)/w)*w>>>5)-1]|=128,x.sigBytes=_.length*4,this._process();for(var C=this._state,D=this.cfg.outputLength/8,M=D/8,E=[],N=0;N<M;N++){var B=C[N],R=B.high,I=B.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,E.push(I),E.push(R)}return new o.init(E,D)},clone:function(){for(var x=s.clone.call(this),_=x._state=this._state.slice(0),S=0;S<25;S++)_[S]=_[S].clone();return x}});n.SHA3=s._createHelper(y),n.HmacSHA3=s._createHmacHelper(y)})(Math),e.SHA3})})(ug)),ug.exports}var cg={exports:{}},LG=cg.exports,W5;function NG(){return W5||(W5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(LG,function(e){/** @preserve
  60. (c) 2012 by Cédric Mesnil. All rights reserved.
  61. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  62. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  63. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  64. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  65. */return(function(a){var n=e,i=n.lib,o=i.WordArray,s=i.Hasher,l=n.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=o.create([0,1518500249,1859775393,2400959708,2840853838]),g=o.create([1352829926,1548603684,1836072691,2053994217,0]),y=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,E){for(var N=0;N<16;N++){var B=E+N,R=M[B];M[B]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var I=this._hash.words,P=p.words,z=g.words,V=u.words,G=c.words,F=h.words,Y=v.words,W,X,te,j,U,Z,$,fe,ye,ee;Z=W=I[0],$=X=I[1],fe=te=I[2],ye=j=I[3],ee=U=I[4];for(var se,N=0;N<80;N+=1)se=W+M[E+V[N]]|0,N<16?se+=x(X,te,j)+P[0]:N<32?se+=_(X,te,j)+P[1]:N<48?se+=S(X,te,j)+P[2]:N<64?se+=w(X,te,j)+P[3]:se+=C(X,te,j)+P[4],se=se|0,se=D(se,F[N]),se=se+U|0,W=U,U=j,j=D(te,10),te=X,X=se,se=Z+M[E+G[N]]|0,N<16?se+=C($,fe,ye)+z[0]:N<32?se+=w($,fe,ye)+z[1]:N<48?se+=S($,fe,ye)+z[2]:N<64?se+=_($,fe,ye)+z[3]:se+=x($,fe,ye)+z[4],se=se|0,se=D(se,Y[N]),se=se+ee|0,Z=ee,ee=ye,ye=D(fe,10),fe=$,$=se;se=I[1]+te+ye|0,I[1]=I[2]+j+ee|0,I[2]=I[3]+U+Z|0,I[3]=I[4]+W+$|0,I[4]=I[0]+X+fe|0,I[0]=se},_doFinalize:function(){var M=this._data,E=M.words,N=this._nDataBytes*8,B=M.sigBytes*8;E[B>>>5]|=128<<24-B%32,E[(B+64>>>9<<4)+14]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,M.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,I=R.words,P=0;P<5;P++){var z=I[P];I[P]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return R},clone:function(){var M=s.clone.call(this);return M._hash=this._hash.clone(),M}});function x(M,E,N){return M^E^N}function _(M,E,N){return M&E|~M&N}function S(M,E,N){return(M|~E)^N}function w(M,E,N){return M&N|E&~N}function C(M,E,N){return M^(E|~N)}function D(M,E){return M<<E|M>>>32-E}n.RIPEMD160=s._createHelper(y),n.HmacRIPEMD160=s._createHmacHelper(y)})(),e.RIPEMD160})})(cg)),cg.exports}var fg={exports:{}},RG=fg.exports,q5;function Xw(){return q5||(q5=1,(function(r,t){(function(e,a){r.exports=a(mt())})(RG,function(e){(function(){var a=e,n=a.lib,i=n.Base,o=a.enc,s=o.Utf8,l=a.algo;l.HMAC=i.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=s.parse(c));var h=u.blockSize,v=h*4;c.sigBytes>v&&(c=u.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),g=this._iKey=c.clone(),y=p.words,x=g.words,_=0;_<h;_++)y[_]^=1549556828,x[_]^=909522486;p.sigBytes=g.sigBytes=v,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,h=c.finalize(u);c.reset();var v=c.finalize(this._oKey.clone().concat(h));return v}})})()})})(fg)),fg.exports}var hg={exports:{}},BG=hg.exports,X5;function IG(){return X5||(X5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),qw(),Xw())})(BG,function(e){return(function(){var a=e,n=a.lib,i=n.Base,o=n.WordArray,s=a.algo,l=s.SHA256,u=s.HMAC,c=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,v){for(var p=this.cfg,g=u.create(p.hasher,h),y=o.create(),x=o.create([1]),_=y.words,S=x.words,w=p.keySize,C=p.iterations;_.length<w;){var D=g.update(v).finalize(x);g.reset();for(var M=D.words,E=M.length,N=D,B=1;B<C;B++){N=g.finalize(N),g.reset();for(var R=N.words,I=0;I<E;I++)M[I]^=R[I]}y.concat(D),S[0]++}return y.sigBytes=w*4,y}});a.PBKDF2=function(h,v,p){return c.create(p).compute(h,v)}})(),e.PBKDF2})})(hg)),hg.exports}var vg={exports:{}},kG=vg.exports,Z5;function hs(){return Z5||(Z5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),$B(),Xw())})(kG,function(e){return(function(){var a=e,n=a.lib,i=n.Base,o=n.WordArray,s=a.algo,l=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,h){for(var v,p=this.cfg,g=p.hasher.create(),y=o.create(),x=y.words,_=p.keySize,S=p.iterations;x.length<_;){v&&g.update(v),v=g.update(c).finalize(h),g.reset();for(var w=1;w<S;w++)v=g.finalize(v),g.reset();y.concat(v)}return y.sigBytes=_*4,y}});a.EvpKDF=function(c,h,v){return u.create(v).compute(c,h)}})(),e.EvpKDF})})(vg)),vg.exports}var dg={exports:{}},OG=dg.exports,$5;function Dr(){return $5||($5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),hs())})(OG,function(e){e.lib.Cipher||(function(a){var n=e,i=n.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,u=n.enc;u.Utf8;var c=u.Base64,h=n.algo,v=h.EvpKDF,p=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(R,I){return this.create(this._ENC_XFORM_MODE,R,I)},createDecryptor:function(R,I){return this.create(this._DEC_XFORM_MODE,R,I)},init:function(R,I,P){this.cfg=this.cfg.extend(P),this._xformMode=R,this._key=I,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var I=this._doFinalize();return I},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function R(I){return typeof I=="string"?B:M}return function(I){return{encrypt:function(P,z,V){return R(z).encrypt(I,P,z,V)},decrypt:function(P,z,V){return R(z).decrypt(I,P,z,V)}}}})()});i.StreamCipher=p.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var g=n.mode={},y=i.BlockCipherMode=o.extend({createEncryptor:function(R,I){return this.Encryptor.create(R,I)},createDecryptor:function(R,I){return this.Decryptor.create(R,I)},init:function(R,I){this._cipher=R,this._iv=I}}),x=g.CBC=(function(){var R=y.extend();R.Encryptor=R.extend({processBlock:function(P,z){var V=this._cipher,G=V.blockSize;I.call(this,P,z,G),V.encryptBlock(P,z),this._prevBlock=P.slice(z,z+G)}}),R.Decryptor=R.extend({processBlock:function(P,z){var V=this._cipher,G=V.blockSize,F=P.slice(z,z+G);V.decryptBlock(P,z),I.call(this,P,z,G),this._prevBlock=F}});function I(P,z,V){var G,F=this._iv;F?(G=F,this._iv=a):G=this._prevBlock;for(var Y=0;Y<V;Y++)P[z+Y]^=G[Y]}return R})(),_=n.pad={},S=_.Pkcs7={pad:function(R,I){for(var P=I*4,z=P-R.sigBytes%P,V=z<<24|z<<16|z<<8|z,G=[],F=0;F<z;F+=4)G.push(V);var Y=s.create(G,z);R.concat(Y)},unpad:function(R){var I=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=I}};i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:x,padding:S}),reset:function(){var R;p.reset.call(this);var I=this.cfg,P=I.iv,z=I.mode;this._xformMode==this._ENC_XFORM_MODE?R=z.createEncryptor:(R=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,P&&P.words):(this._mode=R.call(z,this,P&&P.words),this._mode.__creator=R)},_doProcessBlock:function(R,I){this._mode.processBlock(R,I)},_doFinalize:function(){var R,I=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(I.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),I.unpad(R)),R},blockSize:128/32});var w=i.CipherParams=o.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),C=n.format={},D=C.OpenSSL={stringify:function(R){var I,P=R.ciphertext,z=R.salt;return z?I=s.create([1398893684,1701076831]).concat(z).concat(P):I=P,I.toString(c)},parse:function(R){var I,P=c.parse(R),z=P.words;return z[0]==1398893684&&z[1]==1701076831&&(I=s.create(z.slice(2,4)),z.splice(0,4),P.sigBytes-=16),w.create({ciphertext:P,salt:I})}},M=i.SerializableCipher=o.extend({cfg:o.extend({format:D}),encrypt:function(R,I,P,z){z=this.cfg.extend(z);var V=R.createEncryptor(P,z),G=V.finalize(I),F=V.cfg;return w.create({ciphertext:G,key:P,iv:F.iv,algorithm:R,mode:F.mode,padding:F.padding,blockSize:R.blockSize,formatter:z.format})},decrypt:function(R,I,P,z){z=this.cfg.extend(z),I=this._parse(I,z.format);var V=R.createDecryptor(P,z).finalize(I.ciphertext);return V},_parse:function(R,I){return typeof R=="string"?I.parse(R,this):R}}),E=n.kdf={},N=E.OpenSSL={execute:function(R,I,P,z,V){if(z||(z=s.random(64/8)),V)var G=v.create({keySize:I+P,hasher:V}).compute(R,z);else var G=v.create({keySize:I+P}).compute(R,z);var F=s.create(G.words.slice(I),P*4);return G.sigBytes=I*4,w.create({key:G,iv:F,salt:z})}},B=i.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:N}),encrypt:function(R,I,P,z){z=this.cfg.extend(z);var V=z.kdf.execute(P,R.keySize,R.ivSize,z.salt,z.hasher);z.iv=V.iv;var G=M.encrypt.call(this,R,I,V.key,z);return G.mixIn(V),G},decrypt:function(R,I,P,z){z=this.cfg.extend(z),I=this._parse(I,z.format);var V=z.kdf.execute(P,R.keySize,R.ivSize,I.salt,z.hasher);z.iv=V.iv;var G=M.decrypt.call(this,R,I,V.key,z);return G}})})()})})(dg)),dg.exports}var pg={exports:{}},PG=pg.exports,K5;function zG(){return K5||(K5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(PG,function(e){return e.mode.CFB=(function(){var a=e.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;n.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),a.Decryptor=a.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=i.slice(o,o+l);n.call(this,i,o,l,s),this._prevBlock=u}});function n(i,o,s,l){var u,c=this._iv;c?(u=c.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var h=0;h<s;h++)i[o+h]^=u[h]}return a})(),e.mode.CFB})})(pg)),pg.exports}var gg={exports:{}},jG=gg.exports,Q5;function FG(){return Q5||(Q5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(jG,function(e){return e.mode.CTR=(function(){var a=e.lib.BlockCipherMode.extend(),n=a.Encryptor=a.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,c=this._counter;u&&(c=this._counter=u.slice(0),this._iv=void 0);var h=c.slice(0);s.encryptBlock(h,0),c[l-1]=c[l-1]+1|0;for(var v=0;v<l;v++)i[o+v]^=h[v]}});return a.Decryptor=n,a})(),e.mode.CTR})})(gg)),gg.exports}var mg={exports:{}},VG=mg.exports,J5;function HG(){return J5||(J5=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(VG,function(e){/** @preserve
  66. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  67. * derived from CryptoJS.mode.CTR
  68. * Jan Hruby jhruby.web@gmail.com
  69. */return e.mode.CTRGladman=(function(){var a=e.lib.BlockCipherMode.extend();function n(s){if((s>>24&255)===255){var l=s>>16&255,u=s>>8&255,c=s&255;l===255?(l=0,u===255?(u=0,c===255?c=0:++c):++u):++l,s=0,s+=l<<16,s+=u<<8,s+=c}else s+=1<<24;return s}function i(s){return(s[0]=n(s[0]))===0&&(s[1]=n(s[1])),s}var o=a.Encryptor=a.extend({processBlock:function(s,l){var u=this._cipher,c=u.blockSize,h=this._iv,v=this._counter;h&&(v=this._counter=h.slice(0),this._iv=void 0),i(v);var p=v.slice(0);u.encryptBlock(p,0);for(var g=0;g<c;g++)s[l+g]^=p[g]}});return a.Decryptor=o,a})(),e.mode.CTRGladman})})(mg)),mg.exports}var yg={exports:{}},GG=yg.exports,eE;function UG(){return eE||(eE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(GG,function(e){return e.mode.OFB=(function(){var a=e.lib.BlockCipherMode.extend(),n=a.Encryptor=a.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),s.encryptBlock(c,0);for(var h=0;h<l;h++)i[o+h]^=c[h]}});return a.Decryptor=n,a})(),e.mode.OFB})})(yg)),yg.exports}var xg={exports:{}},YG=xg.exports,tE;function WG(){return tE||(tE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(YG,function(e){return e.mode.ECB=(function(){var a=e.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(n,i){this._cipher.encryptBlock(n,i)}}),a.Decryptor=a.extend({processBlock:function(n,i){this._cipher.decryptBlock(n,i)}}),a})(),e.mode.ECB})})(xg)),xg.exports}var _g={exports:{}},qG=_g.exports,rE;function XG(){return rE||(rE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(qG,function(e){return e.pad.AnsiX923={pad:function(a,n){var i=a.sigBytes,o=n*4,s=o-i%o,l=i+s-1;a.clamp(),a.words[l>>>2]|=s<<24-l%4*8,a.sigBytes+=s},unpad:function(a){var n=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=n}},e.pad.Ansix923})})(_g)),_g.exports}var bg={exports:{}},ZG=bg.exports,aE;function $G(){return aE||(aE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(ZG,function(e){return e.pad.Iso10126={pad:function(a,n){var i=n*4,o=i-a.sigBytes%i;a.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(a){var n=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=n}},e.pad.Iso10126})})(bg)),bg.exports}var Sg={exports:{}},KG=Sg.exports,nE;function QG(){return nE||(nE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(KG,function(e){return e.pad.Iso97971={pad:function(a,n){a.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(a,n)},unpad:function(a){e.pad.ZeroPadding.unpad(a),a.sigBytes--}},e.pad.Iso97971})})(Sg)),Sg.exports}var wg={exports:{}},JG=wg.exports,iE;function eU(){return iE||(iE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(JG,function(e){return e.pad.ZeroPadding={pad:function(a,n){var i=n*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var n=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(n[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},e.pad.ZeroPadding})})(wg)),wg.exports}var Cg={exports:{}},tU=Cg.exports,oE;function rU(){return oE||(oE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(tU,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})})(Cg)),Cg.exports}var Ag={exports:{}},aU=Ag.exports,sE;function nU(){return sE||(sE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Dr())})(aU,function(e){return(function(a){var n=e,i=n.lib,o=i.CipherParams,s=n.enc,l=s.Hex,u=n.format;u.Hex={stringify:function(c){return c.ciphertext.toString(l)},parse:function(c){var h=l.parse(c);return o.create({ciphertext:h})}}})(),e.format.Hex})})(Ag)),Ag.exports}var Dg={exports:{}},iU=Dg.exports,lE;function oU(){return lE||(lE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Wl(),ql(),hs(),Dr())})(iU,function(e){return(function(){var a=e,n=a.lib,i=n.BlockCipher,o=a.algo,s=[],l=[],u=[],c=[],h=[],v=[],p=[],g=[],y=[],x=[];(function(){for(var w=[],C=0;C<256;C++)C<128?w[C]=C<<1:w[C]=C<<1^283;for(var D=0,M=0,C=0;C<256;C++){var E=M^M<<1^M<<2^M<<3^M<<4;E=E>>>8^E&255^99,s[D]=E,l[E]=D;var N=w[D],B=w[N],R=w[B],I=w[E]*257^E*16843008;u[D]=I<<24|I>>>8,c[D]=I<<16|I>>>16,h[D]=I<<8|I>>>24,v[D]=I;var I=R*16843009^B*65537^N*257^D*16843008;p[E]=I<<24|I>>>8,g[E]=I<<16|I>>>16,y[E]=I<<8|I>>>24,x[E]=I,D?(D=N^w[w[w[R^N]]],M^=w[w[M]]):D=M=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],S=o.AES=i.extend({_doReset:function(){var w;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var C=this._keyPriorReset=this._key,D=C.words,M=C.sigBytes/4,E=this._nRounds=M+6,N=(E+1)*4,B=this._keySchedule=[],R=0;R<N;R++)R<M?B[R]=D[R]:(w=B[R-1],R%M?M>6&&R%M==4&&(w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255]):(w=w<<8|w>>>24,w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255],w^=_[R/M|0]<<24),B[R]=B[R-M]^w);for(var I=this._invKeySchedule=[],P=0;P<N;P++){var R=N-P;if(P%4)var w=B[R];else var w=B[R-4];P<4||R<=4?I[P]=w:I[P]=p[s[w>>>24]]^g[s[w>>>16&255]]^y[s[w>>>8&255]]^x[s[w&255]]}}},encryptBlock:function(w,C){this._doCryptBlock(w,C,this._keySchedule,u,c,h,v,s)},decryptBlock:function(w,C){var D=w[C+1];w[C+1]=w[C+3],w[C+3]=D,this._doCryptBlock(w,C,this._invKeySchedule,p,g,y,x,l);var D=w[C+1];w[C+1]=w[C+3],w[C+3]=D},_doCryptBlock:function(w,C,D,M,E,N,B,R){for(var I=this._nRounds,P=w[C]^D[0],z=w[C+1]^D[1],V=w[C+2]^D[2],G=w[C+3]^D[3],F=4,Y=1;Y<I;Y++){var W=M[P>>>24]^E[z>>>16&255]^N[V>>>8&255]^B[G&255]^D[F++],X=M[z>>>24]^E[V>>>16&255]^N[G>>>8&255]^B[P&255]^D[F++],te=M[V>>>24]^E[G>>>16&255]^N[P>>>8&255]^B[z&255]^D[F++],j=M[G>>>24]^E[P>>>16&255]^N[z>>>8&255]^B[V&255]^D[F++];P=W,z=X,V=te,G=j}var W=(R[P>>>24]<<24|R[z>>>16&255]<<16|R[V>>>8&255]<<8|R[G&255])^D[F++],X=(R[z>>>24]<<24|R[V>>>16&255]<<16|R[G>>>8&255]<<8|R[P&255])^D[F++],te=(R[V>>>24]<<24|R[G>>>16&255]<<16|R[P>>>8&255]<<8|R[z&255])^D[F++],j=(R[G>>>24]<<24|R[P>>>16&255]<<16|R[z>>>8&255]<<8|R[V&255])^D[F++];w[C]=W,w[C+1]=X,w[C+2]=te,w[C+3]=j},keySize:256/32});a.AES=i._createHelper(S)})(),e.AES})})(Dg)),Dg.exports}var Tg={exports:{}},sU=Tg.exports,uE;function lU(){return uE||(uE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Wl(),ql(),hs(),Dr())})(sU,function(e){return(function(){var a=e,n=a.lib,i=n.WordArray,o=n.BlockCipher,s=a.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=s.DES=o.extend({_doReset:function(){for(var _=this._key,S=_.words,w=[],C=0;C<56;C++){var D=l[C]-1;w[C]=S[D>>>5]>>>31-D%32&1}for(var M=this._subKeys=[],E=0;E<16;E++){for(var N=M[E]=[],B=c[E],C=0;C<24;C++)N[C/6|0]|=w[(u[C]-1+B)%28]<<31-C%6,N[4+(C/6|0)]|=w[28+(u[C+24]-1+B)%28]<<31-C%6;N[0]=N[0]<<1|N[0]>>>31;for(var C=1;C<7;C++)N[C]=N[C]>>>(C-1)*4+3;N[7]=N[7]<<5|N[7]>>>27}for(var R=this._invSubKeys=[],C=0;C<16;C++)R[C]=M[15-C]},encryptBlock:function(_,S){this._doCryptBlock(_,S,this._subKeys)},decryptBlock:function(_,S){this._doCryptBlock(_,S,this._invSubKeys)},_doCryptBlock:function(_,S,w){this._lBlock=_[S],this._rBlock=_[S+1],g.call(this,4,252645135),g.call(this,16,65535),y.call(this,2,858993459),y.call(this,8,16711935),g.call(this,1,1431655765);for(var C=0;C<16;C++){for(var D=w[C],M=this._lBlock,E=this._rBlock,N=0,B=0;B<8;B++)N|=h[B][((E^D[B])&v[B])>>>0];this._lBlock=E,this._rBlock=M^N}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,g.call(this,1,1431655765),y.call(this,8,16711935),y.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),_[S]=this._lBlock,_[S+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(_,S){var w=(this._lBlock>>>_^this._rBlock)&S;this._rBlock^=w,this._lBlock^=w<<_}function y(_,S){var w=(this._rBlock>>>_^this._lBlock)&S;this._lBlock^=w,this._rBlock^=w<<_}a.DES=o._createHelper(p);var x=s.TripleDES=o.extend({_doReset:function(){var _=this._key,S=_.words;if(S.length!==2&&S.length!==4&&S.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var w=S.slice(0,2),C=S.length<4?S.slice(0,2):S.slice(2,4),D=S.length<6?S.slice(0,2):S.slice(4,6);this._des1=p.createEncryptor(i.create(w)),this._des2=p.createEncryptor(i.create(C)),this._des3=p.createEncryptor(i.create(D))},encryptBlock:function(_,S){this._des1.encryptBlock(_,S),this._des2.decryptBlock(_,S),this._des3.encryptBlock(_,S)},decryptBlock:function(_,S){this._des3.decryptBlock(_,S),this._des2.encryptBlock(_,S),this._des1.decryptBlock(_,S)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=o._createHelper(x)})(),e.TripleDES})})(Tg)),Tg.exports}var Mg={exports:{}},uU=Mg.exports,cE;function cU(){return cE||(cE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Wl(),ql(),hs(),Dr())})(uU,function(e){return(function(){var a=e,n=a.lib,i=n.StreamCipher,o=a.algo,s=o.RC4=i.extend({_doReset:function(){for(var c=this._key,h=c.words,v=c.sigBytes,p=this._S=[],g=0;g<256;g++)p[g]=g;for(var g=0,y=0;g<256;g++){var x=g%v,_=h[x>>>2]>>>24-x%4*8&255;y=(y+p[g]+_)%256;var S=p[g];p[g]=p[y],p[y]=S}this._i=this._j=0},_doProcessBlock:function(c,h){c[h]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var c=this._S,h=this._i,v=this._j,p=0,g=0;g<4;g++){h=(h+1)%256,v=(v+c[h])%256;var y=c[h];c[h]=c[v],c[v]=y,p|=c[(c[h]+c[v])%256]<<24-g*8}return this._i=h,this._j=v,p}a.RC4=i._createHelper(s);var u=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)l.call(this)}});a.RC4Drop=i._createHelper(u)})(),e.RC4})})(Mg)),Mg.exports}var Eg={exports:{}},fU=Eg.exports,fE;function hU(){return fE||(fE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Wl(),ql(),hs(),Dr())})(fU,function(e){return(function(){var a=e,n=a.lib,i=n.StreamCipher,o=a.algo,s=[],l=[],u=[],c=o.Rabbit=i.extend({_doReset:function(){for(var v=this._key.words,p=this.cfg.iv,g=0;g<4;g++)v[g]=(v[g]<<8|v[g]>>>24)&16711935|(v[g]<<24|v[g]>>>8)&4278255360;var y=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],x=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var g=0;g<4;g++)h.call(this);for(var g=0;g<8;g++)x[g]^=y[g+4&7];if(p){var _=p.words,S=_[0],w=_[1],C=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M=C>>>16|D&4294901760,E=D<<16|C&65535;x[0]^=C,x[1]^=M,x[2]^=D,x[3]^=E,x[4]^=C,x[5]^=M,x[6]^=D,x[7]^=E;for(var g=0;g<4;g++)h.call(this)}},_doProcessBlock:function(v,p){var g=this._X;h.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var y=0;y<4;y++)s[y]=(s[y]<<8|s[y]>>>24)&16711935|(s[y]<<24|s[y]>>>8)&4278255360,v[p+y]^=s[y]},blockSize:128/32,ivSize:64/32});function h(){for(var v=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var y=v[g]+p[g],x=y&65535,_=y>>>16,S=((x*x>>>17)+x*_>>>15)+_*_,w=((y&4294901760)*y|0)+((y&65535)*y|0);u[g]=S^w}v[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,v[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,v[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,v[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,v[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,v[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,v[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,v[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}a.Rabbit=i._createHelper(c)})(),e.Rabbit})})(Eg)),Eg.exports}var Lg={exports:{}},vU=Lg.exports,hE;function dU(){return hE||(hE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Wl(),ql(),hs(),Dr())})(vU,function(e){return(function(){var a=e,n=a.lib,i=n.StreamCipher,o=a.algo,s=[],l=[],u=[],c=o.RabbitLegacy=i.extend({_doReset:function(){var v=this._key.words,p=this.cfg.iv,g=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],y=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var x=0;x<4;x++)h.call(this);for(var x=0;x<8;x++)y[x]^=g[x+4&7];if(p){var _=p.words,S=_[0],w=_[1],C=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M=C>>>16|D&4294901760,E=D<<16|C&65535;y[0]^=C,y[1]^=M,y[2]^=D,y[3]^=E,y[4]^=C,y[5]^=M,y[6]^=D,y[7]^=E;for(var x=0;x<4;x++)h.call(this)}},_doProcessBlock:function(v,p){var g=this._X;h.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var y=0;y<4;y++)s[y]=(s[y]<<8|s[y]>>>24)&16711935|(s[y]<<24|s[y]>>>8)&4278255360,v[p+y]^=s[y]},blockSize:128/32,ivSize:64/32});function h(){for(var v=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var y=v[g]+p[g],x=y&65535,_=y>>>16,S=((x*x>>>17)+x*_>>>15)+_*_,w=((y&4294901760)*y|0)+((y&65535)*y|0);u[g]=S^w}v[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,v[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,v[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,v[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,v[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,v[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,v[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,v[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}a.RabbitLegacy=i._createHelper(c)})(),e.RabbitLegacy})})(Lg)),Lg.exports}var Ng={exports:{}},pU=Ng.exports,vE;function gU(){return vE||(vE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),Wl(),ql(),hs(),Dr())})(pU,function(e){return(function(){var a=e,n=a.lib,i=n.BlockCipher,o=a.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function h(x,_){let S=_>>24&255,w=_>>16&255,C=_>>8&255,D=_&255,M=x.sbox[0][S]+x.sbox[1][w];return M=M^x.sbox[2][C],M=M+x.sbox[3][D],M}function v(x,_,S){let w=_,C=S,D;for(let M=0;M<s;++M)w=w^x.pbox[M],C=h(x,w)^C,D=w,w=C,C=D;return D=w,w=C,C=D,C=C^x.pbox[s],w=w^x.pbox[s+1],{left:w,right:C}}function p(x,_,S){let w=_,C=S,D;for(let M=s+1;M>1;--M)w=w^x.pbox[M],C=h(x,w)^C,D=w,w=C,C=D;return D=w,w=C,C=D,C=C^x.pbox[1],w=w^x.pbox[0],{left:w,right:C}}function g(x,_,S){for(let E=0;E<4;E++){x.sbox[E]=[];for(let N=0;N<256;N++)x.sbox[E][N]=u[E][N]}let w=0;for(let E=0;E<s+2;E++)x.pbox[E]=l[E]^_[w],w++,w>=S&&(w=0);let C=0,D=0,M=0;for(let E=0;E<s+2;E+=2)M=v(x,C,D),C=M.left,D=M.right,x.pbox[E]=C,x.pbox[E+1]=D;for(let E=0;E<4;E++)for(let N=0;N<256;N+=2)M=v(x,C,D),C=M.left,D=M.right,x.sbox[E][N]=C,x.sbox[E][N+1]=D;return!0}var y=o.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var x=this._keyPriorReset=this._key,_=x.words,S=x.sigBytes/4;g(c,_,S)}},encryptBlock:function(x,_){var S=v(c,x[_],x[_+1]);x[_]=S.left,x[_+1]=S.right},decryptBlock:function(x,_){var S=p(c,x[_],x[_+1]);x[_]=S.left,x[_+1]=S.right},blockSize:64/32,keySize:128/32,ivSize:64/32});a.Blowfish=i._createHelper(y)})(),e.Blowfish})})(Ng)),Ng.exports}var mU=$p.exports,dE;function yU(){return dE||(dE=1,(function(r,t){(function(e,a,n){r.exports=a(mt(),ey(),dG(),gG(),Wl(),xG(),ql(),$B(),qw(),CG(),KB(),TG(),EG(),NG(),Xw(),IG(),hs(),Dr(),zG(),FG(),HG(),UG(),WG(),XG(),$G(),QG(),eU(),rU(),nU(),oU(),lU(),cU(),hU(),dU(),gU())})(mU,function(e){return e})})($p)),$p.exports}var xU=yU();const pE=Km(xU),_U="http://localhost:8010";async function bU(r){return pE.SHA256(r).toString(pE.enc.Hex)}class SU{constructor(){d5(this,"token",null)}setToken(t){this.token=t}async request(t,e={}){const a=e.body instanceof FormData,n={...e.headers};!a&&!("Content-Type"in n)&&(n["Content-Type"]="application/json"),this.token&&(n.Authorization=`Bearer ${this.token}`);const i=await fetch(`${_U}${t}`,{...e,headers:n});if(i.status===401)throw localStorage.removeItem("admin-auth-storage"),window.location.href="/login",new Error("认证已过期");if(!i.ok){const s=await i.json().catch(()=>({detail:"请求失败"}));throw new Error(s.detail||s.message||"请求失败")}const o=await i.json();return(o.code===0||o.code===200)&&o.data!==void 0?o.data:o}get(t){return this.request(t,{method:"GET"})}post(t,e){return this.request(t,{method:"POST",body:e?JSON.stringify(e):void 0})}postForm(t,e){return this.request(t,{method:"POST",body:e})}put(t,e){return this.request(t,{method:"PUT",body:e?JSON.stringify(e):void 0})}delete(t){return this.request(t,{method:"DELETE"})}}const tt=new SU,m_={login:async(r,t)=>{const e=await bU(t);return tt.post("/api/admin/auth/login",{username:r,password:e})},getMe:()=>tt.get("/api/admin/auth/me")},Yo={list:r=>{const t=new URLSearchParams;return r.page&&t.set("page",String(r.page)),r.page_size&&t.set("size",String(r.page_size)),r.keyword&&t.set("keyword",r.keyword),r.status&&t.set("status",r.status),tt.get(`/api/admin/users?${t}`)},getDetail:r=>tt.get(`/api/admin/users/${r}`),getUsageStats:r=>tt.get(`/api/admin/users/${r}/usage-stats`),updateStatus:(r,t,e)=>tt.post(`/api/admin/users/${r}/status`,{status:t,reason:e}),resetPassword:r=>tt.post(`/api/admin/users/${r}/reset-password`),getLocalModelPermissions:r=>tt.get(`/api/admin/users/${r}/local-model-permissions`),updateLocalModelPermission:(r,t,e)=>tt.put(`/api/admin/users/${r}/local-model-permissions/${t}`,{has_access:e}),updateAllLocalModelPermissions:(r,t)=>tt.put(`/api/admin/users/${r}/local-model-permissions`,{has_access:t})},Wu={list:r=>{const t=new URLSearchParams;return r.page&&t.set("page",String(r.page)),r.page_size&&t.set("size",String(r.page_size)),r.keyword&&t.set("keyword",r.keyword),r.model_type&&t.set("category",r.model_type),r.is_active!==void 0&&t.set("is_show_enabled",String(r.is_active)),tt.get(`/api/admin/models?${t}`)},getDetail:r=>tt.get(`/api/admin/models/${r}`),create:r=>tt.post("/api/admin/models",r),update:(r,t)=>tt.put(`/api/admin/models/${r}`,t),updatePrice:(r,t,e,a,n,i)=>tt.put(`/api/admin/models/${r}/price`,{pricing_mode:n||"simple",input_price:t,output_price:e,unit:a||"tokens",tiers:i}),updateStatus:(r,t,e)=>tt.put(`/api/admin/models/${r}/status`,{field:t,value:e})},zs={list:r=>{const t=new URLSearchParams;return r.page&&t.set("page",String(r.page)),r.page_size&&t.set("size",String(r.page_size)),r.keyword&&t.set("keyword",r.keyword),r.user_id&&t.set("user_id",r.user_id),r.visibility&&t.set("visibility",r.visibility),tt.get(`/api/admin/local-models?${t}`)},create:r=>tt.post("/api/models/local",r),update:(r,t)=>tt.put(`/api/models/local/${r}`,t),updateVisibility:(r,t)=>tt.put(`/api/admin/local-models/${r}/visibility`,{visibility:t}),delete:r=>tt.delete(`/api/admin/local-models/${r}`),testConnection:r=>tt.post("/api/models/local/test",r)},Zw={list:r=>{const t=new URLSearchParams;return r.page&&t.set("page",String(r.page)),r.page_size&&t.set("size",String(r.page_size)),r.admin_id&&t.set("admin_id",String(r.admin_id)),r.action&&t.set("operation_type",r.action),tt.get(`/api/admin/logs?${t}`)},listLoginLogs:r=>{const t=new URLSearchParams;return r.page&&t.set("page",String(r.page)),r.size&&t.set("size",String(r.size)),r.user_type&&t.set("user_type",r.user_type),r.login_result&&t.set("login_result",r.login_result),tt.get(`/api/admin/logs/logins?${t}`)},listApiLogs:r=>{const t=new URLSearchParams;return r.page&&t.set("page",String(r.page)),r.size&&t.set("size",String(r.size)),r.user_id&&t.set("user_id",r.user_id),r.username&&t.set("username",r.username),r.phone&&t.set("phone",r.phone),r.module&&t.set("module",r.module),r.api_path&&t.set("api_path",r.api_path),tt.get(`/api/admin/logs/api?${t}`)}},Oc={getAll:()=>tt.get("/api/admin/config"),update:r=>{const t=Object.entries(r).map(([e,a])=>({key:e,value:a}));return tt.put("/api/admin/config",{configs:t})},getHistory:r=>tt.get(`/api/admin/config/${r}/history`),reset:r=>tt.post(`/api/admin/config/${r}/reset`)},QB={getPresignedUrl:(r,t,e)=>tt.get(`/api/admin/oss/presigned-url?prefix=${encodeURIComponent(r)}&filename=${encodeURIComponent(t||"")}${e?"&content_type="+encodeURIComponent(e):""}`),uploadDirect:async(r,t,e)=>{const{upload_url:a,object_key:n,public_url:i,headers:o}=await QB.getPresignedUrl(t,r.name,r.type||void 0);return new Promise((s,l)=>{const u=new XMLHttpRequest;if(u.open("PUT",a,!0),r.type&&u.setRequestHeader("Content-Type",r.type),o)for(const[c,h]of Object.entries(o))u.setRequestHeader(c,h);e&&(u.upload.onprogress=c=>{c.lengthComputable&&e(Math.round(c.loaded/c.total*100))}),u.onload=()=>{u.status>=200&&u.status<300?s({url:i,objectKey:n}):l(new Error(`上传失败: HTTP ${u.status}`))},u.onerror=()=>l(new Error("网络错误,上传失败")),u.send(r)})},upload:(r,t)=>{const e=new FormData;e.append("file",r);const a=new URLSearchParams;return t&&a.set("prefix",t),tt.postForm(`/api/admin/oss/upload?${a}`,e)}},Dc={getUserOverview:(r,t)=>{const e=new URLSearchParams;return r&&e.set("start_date",r),t&&e.set("end_date",t),tt.get(`/api/admin/stats/users/overview?${e}`)},getUserGrowthTrend:(r,t)=>tt.get(`/api/admin/stats/users/growth-trend?start_date=${r}&end_date=${t}`),exportUserStats:(r,t)=>tt.get(`/api/admin/stats/users/export?start_date=${r}&end_date=${t}`),getDashboard:()=>tt.get("/api/admin/stats/dashboard"),getModelUsageRanking:(r,t,e=10)=>{const a=new URLSearchParams;return r&&a.set("start_date",r),t&&a.set("end_date",t),a.set("top_n",String(e)),tt.get(`/api/admin/stats/models/usage-ranking?${a}`)}},gE={get:()=>tt.get("/api/admin/local-config"),update:r=>tt.put("/api/admin/local-config",r)},rd=aG()(oG((r,t)=>({isAuthenticated:!1,token:null,user:null,login:async(e,a)=>{try{const i=(await m_.login(e,a)).token;tt.setToken(i);const o=await m_.getMe();return r({isAuthenticated:!0,token:i,user:o}),!0}catch(n){return console.error("登录失败:",n),!1}},logout:()=>{tt.setToken(null),r({isAuthenticated:!1,token:null,user:null})},checkAuth:async()=>{const{token:e}=t();if(!e)return!1;try{tt.setToken(e);const a=await m_.getMe();return r({user:a,isAuthenticated:!0}),!0}catch{return r({isAuthenticated:!1,token:null,user:null}),!1}}}),{name:"admin-auth-storage",onRehydrateStorage:()=>r=>{r!=null&&r.token&&tt.setToken(r.token)}}));/**
  70. * @license lucide-react v0.562.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 wU=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CU=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,a)=>a?a.toUpperCase():e.toLowerCase()),mE=r=>{const t=CU(r);return t.charAt(0).toUpperCase()+t.slice(1)},JB=(...r)=>r.filter((t,e,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===e).join(" ").trim(),AU=r=>{for(const t in r)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
  75. * @license lucide-react v0.562.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. */var DU={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"};/**
  80. * @license lucide-react v0.562.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. */const TU=q.forwardRef(({color:r="currentColor",size:t=24,strokeWidth:e=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:o,...s},l)=>q.createElement("svg",{ref:l,...DU,width:t,height:t,stroke:r,strokeWidth:a?Number(e)*24/Number(t):e,className:JB("lucide",n),...!i&&!AU(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,c])=>q.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
  85. * @license lucide-react v0.562.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 Pe=(r,t)=>{const e=q.forwardRef(({className:a,...n},i)=>q.createElement(TU,{ref:i,iconNode:t,className:JB(`lucide-${wU(mE(r))}`,`lucide-${r}`,a),...n}));return e.displayName=mE(r),e};/**
  90. * @license lucide-react v0.562.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 MU=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],eI=Pe("activity",MU);/**
  95. * @license lucide-react v0.562.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 EU=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],LU=Pe("arrow-left",EU);/**
  100. * @license lucide-react v0.562.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 NU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],y_=Pe("arrow-right",NU);/**
  105. * @license lucide-react v0.562.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 RU=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],BU=Pe("arrow-up-right",RU);/**
  110. * @license lucide-react v0.562.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 IU=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],kU=Pe("ban",IU);/**
  115. * @license lucide-react v0.562.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 OU=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],PU=Pe("bell",OU);/**
  120. * @license lucide-react v0.562.0 - ISC
  121. *
  122. * This source code is licensed under the ISC license.
  123. * See the LICENSE file in the root directory of this source tree.
  124. */const zU=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],jU=Pe("box",zU);/**
  125. * @license lucide-react v0.562.0 - ISC
  126. *
  127. * This source code is licensed under the ISC license.
  128. * See the LICENSE file in the root directory of this source tree.
  129. */const FU=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],VU=Pe("brain",FU);/**
  130. * @license lucide-react v0.562.0 - ISC
  131. *
  132. * This source code is licensed under the ISC license.
  133. * See the LICENSE file in the root directory of this source tree.
  134. */const HU=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],GU=Pe("calendar",HU);/**
  135. * @license lucide-react v0.562.0 - ISC
  136. *
  137. * This source code is licensed under the ISC license.
  138. * See the LICENSE file in the root directory of this source tree.
  139. */const UU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],YU=Pe("chart-column",UU);/**
  140. * @license lucide-react v0.562.0 - ISC
  141. *
  142. * This source code is licensed under the ISC license.
  143. * See the LICENSE file in the root directory of this source tree.
  144. */const WU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],tI=Pe("chevron-down",WU);/**
  145. * @license lucide-react v0.562.0 - ISC
  146. *
  147. * This source code is licensed under the ISC license.
  148. * See the LICENSE file in the root directory of this source tree.
  149. */const qU=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ad=Pe("chevron-left",qU);/**
  150. * @license lucide-react v0.562.0 - ISC
  151. *
  152. * This source code is licensed under the ISC license.
  153. * See the LICENSE file in the root directory of this source tree.
  154. */const XU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],nd=Pe("chevron-right",XU);/**
  155. * @license lucide-react v0.562.0 - ISC
  156. *
  157. * This source code is licensed under the ISC license.
  158. * See the LICENSE file in the root directory of this source tree.
  159. */const ZU=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],$w=Pe("circle-check-big",ZU);/**
  160. * @license lucide-react v0.562.0 - ISC
  161. *
  162. * This source code is licensed under the ISC license.
  163. * See the LICENSE file in the root directory of this source tree.
  164. */const $U=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],KU=Pe("circle-check",$U);/**
  165. * @license lucide-react v0.562.0 - ISC
  166. *
  167. * This source code is licensed under the ISC license.
  168. * See the LICENSE file in the root directory of this source tree.
  169. */const QU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Kw=Pe("circle-x",QU);/**
  170. * @license lucide-react v0.562.0 - ISC
  171. *
  172. * This source code is licensed under the ISC license.
  173. * See the LICENSE file in the root directory of this source tree.
  174. */const JU=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],eY=Pe("clock",JU);/**
  175. * @license lucide-react v0.562.0 - ISC
  176. *
  177. * This source code is licensed under the ISC license.
  178. * See the LICENSE file in the root directory of this source tree.
  179. */const tY=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],rY=Pe("cpu",tY);/**
  180. * @license lucide-react v0.562.0 - ISC
  181. *
  182. * This source code is licensed under the ISC license.
  183. * See the LICENSE file in the root directory of this source tree.
  184. */const aY=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ty=Pe("eye-off",aY);/**
  185. * @license lucide-react v0.562.0 - ISC
  186. *
  187. * This source code is licensed under the ISC license.
  188. * See the LICENSE file in the root directory of this source tree.
  189. */const nY=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ry=Pe("eye",nY);/**
  190. * @license lucide-react v0.562.0 - ISC
  191. *
  192. * This source code is licensed under the ISC license.
  193. * See the LICENSE file in the root directory of this source tree.
  194. */const iY=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],oY=Pe("file-text",iY);/**
  195. * @license lucide-react v0.562.0 - ISC
  196. *
  197. * This source code is licensed under the ISC license.
  198. * See the LICENSE file in the root directory of this source tree.
  199. */const sY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Qw=Pe("globe",sY);/**
  200. * @license lucide-react v0.562.0 - ISC
  201. *
  202. * This source code is licensed under the ISC license.
  203. * See the LICENSE file in the root directory of this source tree.
  204. */const lY=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],uY=Pe("image",lY);/**
  205. * @license lucide-react v0.562.0 - ISC
  206. *
  207. * This source code is licensed under the ISC license.
  208. * See the LICENSE file in the root directory of this source tree.
  209. */const cY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fY=Pe("info",cY);/**
  210. * @license lucide-react v0.562.0 - ISC
  211. *
  212. * This source code is licensed under the ISC license.
  213. * See the LICENSE file in the root directory of this source tree.
  214. */const hY=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],vY=Pe("key",hY);/**
  215. * @license lucide-react v0.562.0 - ISC
  216. *
  217. * This source code is licensed under the ISC license.
  218. * See the LICENSE file in the root directory of this source tree.
  219. */const dY=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],pY=Pe("layout-dashboard",dY);/**
  220. * @license lucide-react v0.562.0 - ISC
  221. *
  222. * This source code is licensed under the ISC license.
  223. * See the LICENSE file in the root directory of this source tree.
  224. */const gY=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],mY=Pe("lightbulb",gY);/**
  225. * @license lucide-react v0.562.0 - ISC
  226. *
  227. * This source code is licensed under the ISC license.
  228. * See the LICENSE file in the root directory of this source tree.
  229. */const yY=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Br=Pe("loader-circle",yY);/**
  230. * @license lucide-react v0.562.0 - ISC
  231. *
  232. * This source code is licensed under the ISC license.
  233. * See the LICENSE file in the root directory of this source tree.
  234. */const xY=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],_Y=Pe("lock",xY);/**
  235. * @license lucide-react v0.562.0 - ISC
  236. *
  237. * This source code is licensed under the ISC license.
  238. * See the LICENSE file in the root directory of this source tree.
  239. */const bY=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],SY=Pe("log-out",bY);/**
  240. * @license lucide-react v0.562.0 - ISC
  241. *
  242. * This source code is licensed under the ISC license.
  243. * See the LICENSE file in the root directory of this source tree.
  244. */const wY=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],CY=Pe("mail",wY);/**
  245. * @license lucide-react v0.562.0 - ISC
  246. *
  247. * This source code is licensed under the ISC license.
  248. * See the LICENSE file in the root directory of this source tree.
  249. */const AY=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],DY=Pe("pen",AY);/**
  250. * @license lucide-react v0.562.0 - ISC
  251. *
  252. * This source code is licensed under the ISC license.
  253. * See the LICENSE file in the root directory of this source tree.
  254. */const TY=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],MY=Pe("pencil",TY);/**
  255. * @license lucide-react v0.562.0 - ISC
  256. *
  257. * This source code is licensed under the ISC license.
  258. * See the LICENSE file in the root directory of this source tree.
  259. */const EY=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],LY=Pe("phone",EY);/**
  260. * @license lucide-react v0.562.0 - ISC
  261. *
  262. * This source code is licensed under the ISC license.
  263. * See the LICENSE file in the root directory of this source tree.
  264. */const NY=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],RY=Pe("plus",NY);/**
  265. * @license lucide-react v0.562.0 - ISC
  266. *
  267. * This source code is licensed under the ISC license.
  268. * See the LICENSE file in the root directory of this source tree.
  269. */const BY=[["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"}]],id=Pe("refresh-cw",BY);/**
  270. * @license lucide-react v0.562.0 - ISC
  271. *
  272. * This source code is licensed under the ISC license.
  273. * See the LICENSE file in the root directory of this source tree.
  274. */const IY=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],kY=Pe("rotate-ccw",IY);/**
  275. * @license lucide-react v0.562.0 - ISC
  276. *
  277. * This source code is licensed under the ISC license.
  278. * See the LICENSE file in the root directory of this source tree.
  279. */const OY=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Jw=Pe("save",OY);/**
  280. * @license lucide-react v0.562.0 - ISC
  281. *
  282. * This source code is licensed under the ISC license.
  283. * See the LICENSE file in the root directory of this source tree.
  284. */const PY=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ay=Pe("search",PY);/**
  285. * @license lucide-react v0.562.0 - ISC
  286. *
  287. * This source code is licensed under the ISC license.
  288. * See the LICENSE file in the root directory of this source tree.
  289. */const zY=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],rI=Pe("server",zY);/**
  290. * @license lucide-react v0.562.0 - ISC
  291. *
  292. * This source code is licensed under the ISC license.
  293. * See the LICENSE file in the root directory of this source tree.
  294. */const jY=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],FY=Pe("settings",jY);/**
  295. * @license lucide-react v0.562.0 - ISC
  296. *
  297. * This source code is licensed under the ISC license.
  298. * See the LICENSE file in the root directory of this source tree.
  299. */const VY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],aI=Pe("shield-check",VY);/**
  300. * @license lucide-react v0.562.0 - ISC
  301. *
  302. * This source code is licensed under the ISC license.
  303. * See the LICENSE file in the root directory of this source tree.
  304. */const HY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],GY=Pe("shield-x",HY);/**
  305. * @license lucide-react v0.562.0 - ISC
  306. *
  307. * This source code is licensed under the ISC license.
  308. * See the LICENSE file in the root directory of this source tree.
  309. */const UY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],YY=Pe("shield",UY);/**
  310. * @license lucide-react v0.562.0 - ISC
  311. *
  312. * This source code is licensed under the ISC license.
  313. * See the LICENSE file in the root directory of this source tree.
  314. */const WY=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],qY=Pe("sliders-vertical",WY);/**
  315. * @license lucide-react v0.562.0 - ISC
  316. *
  317. * This source code is licensed under the ISC license.
  318. * See the LICENSE file in the root directory of this source tree.
  319. */const XY=[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",key:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],ZY=Pe("star-off",XY);/**
  320. * @license lucide-react v0.562.0 - ISC
  321. *
  322. * This source code is licensed under the ISC license.
  323. * See the LICENSE file in the root directory of this source tree.
  324. */const $Y=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],KY=Pe("star",$Y);/**
  325. * @license lucide-react v0.562.0 - ISC
  326. *
  327. * This source code is licensed under the ISC license.
  328. * See the LICENSE file in the root directory of this source tree.
  329. */const QY=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],nI=Pe("toggle-left",QY);/**
  330. * @license lucide-react v0.562.0 - ISC
  331. *
  332. * This source code is licensed under the ISC license.
  333. * See the LICENSE file in the root directory of this source tree.
  334. */const JY=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Sv=Pe("toggle-right",JY);/**
  335. * @license lucide-react v0.562.0 - ISC
  336. *
  337. * This source code is licensed under the ISC license.
  338. * See the LICENSE file in the root directory of this source tree.
  339. */const eW=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],tW=Pe("trash-2",eW);/**
  340. * @license lucide-react v0.562.0 - ISC
  341. *
  342. * This source code is licensed under the ISC license.
  343. * See the LICENSE file in the root directory of this source tree.
  344. */const rW=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],aW=Pe("trending-down",rW);/**
  345. * @license lucide-react v0.562.0 - ISC
  346. *
  347. * This source code is licensed under the ISC license.
  348. * See the LICENSE file in the root directory of this source tree.
  349. */const nW=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],iI=Pe("trending-up",nW);/**
  350. * @license lucide-react v0.562.0 - ISC
  351. *
  352. * This source code is licensed under the ISC license.
  353. * See the LICENSE file in the root directory of this source tree.
  354. */const iW=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],oW=Pe("upload",iW);/**
  355. * @license lucide-react v0.562.0 - ISC
  356. *
  357. * This source code is licensed under the ISC license.
  358. * See the LICENSE file in the root directory of this source tree.
  359. */const sW=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],lW=Pe("user",sW);/**
  360. * @license lucide-react v0.562.0 - ISC
  361. *
  362. * This source code is licensed under the ISC license.
  363. * See the LICENSE file in the root directory of this source tree.
  364. */const uW=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Tc=Pe("users",uW);/**
  365. * @license lucide-react v0.562.0 - ISC
  366. *
  367. * This source code is licensed under the ISC license.
  368. * See the LICENSE file in the root directory of this source tree.
  369. */const cW=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tl=Pe("x",cW);/**
  370. * @license lucide-react v0.562.0 - ISC
  371. *
  372. * This source code is licensed under the ISC license.
  373. * See the LICENSE file in the root directory of this source tree.
  374. */const fW=[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],hW=Pe("zap-off",fW);/**
  375. * @license lucide-react v0.562.0 - ISC
  376. *
  377. * This source code is licensed under the ISC license.
  378. * See the LICENSE file in the root directory of this source tree.
  379. */const vW=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Qg=Pe("zap",vW),dW="http://localhost:8010";function pW(){const[r,t]=q.useState({system_name:"",system_logo:""});return q.useEffect(()=>{fetch(`${dW}/api/public/branding`).then(e=>e.json()).then(e=>{e.system_name&&t(e)}).catch(()=>{})},[]),r}const gW=[{path:"/",icon:pY,label:"工作台"},{path:"/models",icon:jU,label:"模型管理",children:[{path:"/models",label:"云端模型"},{path:"/models/local",label:"私域模型"}]},{path:"/users",icon:Tc,label:"用户管理"},{path:"/stats",icon:YU,label:"数据分析",children:[{path:"/stats",label:"用户统计"},{path:"/stats/usage",label:"用量统计"}]},{path:"/logs",icon:oY,label:"日志审计",children:[{path:"/logs",label:"API 调用日志"},{path:"/logs/login",label:"登录日志"},{path:"/logs/operation",label:"操作日志"}]},{path:"/system",icon:FY,label:"系统设置",children:[{path:"/system/config",label:"基础配置"},{path:"/system/security",label:"安全设置"}]}],mW=()=>{const r=ci(),[t,e]=q.useState(["/models","/stats","/logs","/system"]),a=pW(),n=o=>{e(s=>s.includes(o)?s.filter(l=>l!==o):[...s,o])},i=o=>o.children?o.children.some(s=>r.pathname===s.path):o.path==="/"?r.pathname===o.path:r.pathname===o.path||r.pathname.startsWith(`${o.path}/`);return A.jsxs("aside",{className:"fixed left-0 top-0 h-screen w-60 bg-slate-900 z-40 flex flex-col",children:[A.jsxs("div",{className:"h-16 flex items-center px-5 border-b border-slate-700/50",children:[A.jsx("div",{className:"w-9 h-9 bg-gradient-to-br from-blue-500 to-cyan-400 rounded-lg flex items-center justify-center overflow-hidden flex-shrink-0 shadow-lg shadow-blue-500/20",children:a.system_logo?A.jsx("img",{src:a.system_logo,alt:"logo",className:"w-full h-full object-contain"}):A.jsx(rY,{className:"w-5 h-5 text-white"})}),A.jsxs("div",{className:"ml-3 min-w-0",children:[A.jsx("span",{className:"text-sm font-bold text-white truncate block leading-tight",children:a.system_name||"四川路桥"}),A.jsx("span",{className:"text-[11px] text-slate-400 truncate block leading-tight",children:"Maas 算力平台"})]})]}),A.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-0.5",children:gW.map(o=>A.jsx("div",{children:o.children?A.jsxs("div",{children:[A.jsxs("button",{onClick:()=>n(o.path),className:`w-full flex items-center justify-between px-3 py-2.5 rounded-lg transition-all cursor-pointer ${i(o)?"bg-blue-600/20 text-blue-400":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:[A.jsxs("div",{className:"flex items-center",children:[A.jsx(o.icon,{className:"w-[18px] h-[18px] mr-3"}),A.jsx("span",{className:"text-sm font-medium",children:o.label})]}),A.jsx(tI,{className:`w-4 h-4 transition-transform ${t.includes(o.path)?"rotate-180":""}`})]}),t.includes(o.path)&&A.jsx("ul",{className:"mt-0.5 ml-[30px] space-y-0.5 border-l border-slate-700/50 pl-3",children:o.children.map(s=>A.jsx("li",{children:A.jsx(XS,{to:s.path,end:!0,className:({isActive:l})=>`block px-3 py-2 rounded-md text-[13px] transition-all cursor-pointer ${l?"bg-blue-600/20 text-blue-400 font-medium":"text-slate-500 hover:bg-slate-800 hover:text-slate-300"}`,children:s.label})},s.path))})]}):A.jsxs(XS,{to:o.path,end:o.path==="/",className:({isActive:s})=>`flex items-center px-3 py-2.5 rounded-lg transition-all cursor-pointer ${s?"bg-blue-600/20 text-blue-400":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:[A.jsx(o.icon,{className:"w-[18px] h-[18px] mr-3"}),A.jsx("span",{className:"text-sm font-medium",children:o.label})]})},o.path))}),A.jsx("div",{className:"p-4 border-t border-slate-700/50",children:A.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[A.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),A.jsx("span",{className:"text-xs text-slate-500",children:"系统运行正常"})]})})]})},yW=()=>{var o;const{user:r,logout:t}=rd(),[e,a]=q.useState(!1),n=q.useRef(null),i=()=>{t(),window.location.href="/"};return q.useEffect(()=>{const s=l=>{n.current&&!n.current.contains(l.target)&&a(!1)};return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]),A.jsxs("header",{className:"fixed top-0 left-60 right-0 h-16 bg-white/80 backdrop-blur-md border-b border-slate-200/60 flex items-center justify-between px-6 z-30",children:[A.jsxs("div",{children:[A.jsx("h2",{className:"text-sm font-semibold text-slate-800",children:"四川路桥 Maas 算力平台"}),A.jsx("p",{className:"text-xs text-slate-400",children:"管理控制台"})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsxs("button",{className:"relative p-2 text-slate-400 hover:text-slate-600 hover:bg-slate-100 rounded-lg transition-colors cursor-pointer",children:[A.jsx(PU,{className:"w-5 h-5"}),A.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 bg-red-500 rounded-full"})]}),A.jsx("div",{className:"w-px h-8 bg-slate-200"}),A.jsxs("div",{className:"relative",ref:n,children:[A.jsxs("button",{onClick:()=>a(!e),className:"flex items-center gap-2.5 px-3 py-1.5 hover:bg-slate-100 rounded-lg transition-colors cursor-pointer",children:[A.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-lg flex items-center justify-center text-white text-sm font-bold shadow-sm",children:((o=r==null?void 0:r.nickname)==null?void 0:o.charAt(0))||"A"}),A.jsxs("div",{className:"text-left",children:[A.jsx("span",{className:"text-sm font-medium text-slate-700 block leading-tight",children:(r==null?void 0:r.nickname)||"管理员"}),A.jsx("span",{className:"text-[11px] text-slate-400 block leading-tight",children:"超级管理员"})]}),A.jsx(tI,{className:`w-4 h-4 text-slate-400 transition-transform ${e?"rotate-180":""}`})]}),e&&A.jsx("div",{className:"absolute right-0 top-full mt-2 w-44 bg-white rounded-xl shadow-lg border border-slate-200 py-1.5 z-50",children:A.jsxs("button",{onClick:i,className:"w-full flex items-center gap-2 px-4 py-2.5 text-sm text-slate-600 hover:bg-red-50 hover:text-red-600 transition-colors cursor-pointer rounded-lg mx-1",style:{width:"calc(100% - 8px)"},children:[A.jsx(SY,{className:"w-4 h-4"}),A.jsx("span",{children:"退出登录"})]})})]})]})]})},xW=({children:r})=>A.jsxs("div",{className:"min-h-screen bg-slate-50/50",children:[A.jsx(mW,{}),A.jsxs("div",{className:"ml-60",children:[A.jsx(yW,{}),A.jsx("main",{className:"p-6 pt-[88px]",children:r})]})]}),_W=()=>{const r=Yl(),t=rd(p=>p.login),[e,a]=q.useState(""),[n,i]=q.useState(""),[o,s]=q.useState(!1),[l,u]=q.useState(!1),[c,h]=q.useState(""),v=async p=>{p.preventDefault(),h(""),u(!0);try{await t(e,n)?r("/"):h("用户名或密码错误")}catch{h("登录失败,请稍后重试")}finally{u(!1)}};return A.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex items-center justify-center p-4",children:A.jsxs("div",{className:"w-full max-w-md",children:[A.jsxs("div",{className:"text-center mb-8",children:[A.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-gradient-to-br from-blue-500 to-cyan-400 rounded-2xl mb-4 shadow-lg shadow-blue-500/20",children:A.jsx(mY,{className:"w-8 h-8 text-white"})}),A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"四川路桥 Maas 算力平台"}),A.jsx("p",{className:"text-slate-500 mt-1",children:"管理控制台"})]}),A.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-slate-200 p-8",children:[A.jsx("h2",{className:"text-xl font-semibold text-slate-800 mb-6",children:"管理员登录"}),A.jsxs("form",{onSubmit:v,className:"space-y-5",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"用户名"}),A.jsx("input",{type:"text",value:e,onChange:p=>a(p.target.value),placeholder:"请输入用户名",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all",required:!0})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"密码"}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{type:o?"text":"password",value:n,onChange:p=>i(p.target.value),placeholder:"请输入密码",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all pr-10",required:!0}),A.jsx("button",{type:"button",onClick:()=>s(!o),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 cursor-pointer",children:o?A.jsx(ty,{className:"w-5 h-5"}):A.jsx(ry,{className:"w-5 h-5"})})]})]}),c&&A.jsx("div",{className:"text-sm text-red-500 bg-red-50 px-4 py-2 rounded-lg",children:c}),A.jsxs("button",{type:"submit",disabled:l,className:"w-full py-2.5 bg-primary-500 text-white rounded-lg font-medium hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 transition-colors disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer flex items-center justify-center gap-2",children:[l&&A.jsx(Br,{className:"w-4 h-4 animate-spin"}),l?"登录中...":"登录"]})]})]})]})})};/*! *****************************************************************************
  380. Copyright (c) Microsoft Corporation.
  381. Permission to use, copy, modify, and/or distribute this software for any
  382. purpose with or without fee is hereby granted.
  383. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  384. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  385. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  386. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  387. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  388. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  389. PERFORMANCE OF THIS SOFTWARE.
  390. ***************************************************************************** */var $S=function(r,t){return $S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},$S(r,t)};function Q(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$S(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var av=function(){return av=Object.assign||function(t){for(var e,a=1,n=arguments.length;a<n;a++){e=arguments[a];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},av.apply(this,arguments)};function bW(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(r);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(e[a[n]]=r[a[n]]);return e}function yE(r,t,e,a){function n(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function s(c){try{u(a.next(c))}catch(h){o(h)}}function l(c){try{u(a.throw(c))}catch(h){o(h)}}function u(c){c.done?i(c.value):n(c.value).then(s,l)}u((a=a.apply(r,[])).next())})}function xE(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,n=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(r,e)}catch(c){u=[6,c],n=0}finally{a=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var SW=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),wW=(function(){function r(){this.browser=new SW,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 r})(),qe=new wW;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(qe.wxa=!0,qe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?qe.worker=!0:!qe.hasGlobalWindow||"Deno"in window?(qe.node=!0,qe.svgSupported=!0):CW(navigator.userAgent,qe);function CW(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var eC=12,oI="sans-serif",os=eC+"px "+oI,AW=20,DW=100,TW="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function MW(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),n=(r.charCodeAt(e)-AW)/DW;t[a]=n}return t}var EW=MW(TW),kn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,a){if(!r){var n=kn.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==a&&(t=r.font=a||os),r.measureText(e);e=e||"",a=a||os;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||eC,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=EW[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a}};function sI(r){for(var t in kn)r[t]&&(kn[t]=r[t])}var lI=fn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),uI=fn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Kc=Object.prototype.toString,ny=Array.prototype,LW=ny.forEach,NW=ny.filter,tC=ny.slice,RW=ny.map,_E=(function(){}).constructor,Y0=_E?_E.prototype:null,rC="__proto__",BW=2311;function aC(){return BW++}function iy(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Le(r){if(r==null||typeof r!="object")return r;var t=r,e=Kc.call(r);if(e==="[object Array]"){if(!Mc(r)){t=[];for(var a=0,n=r.length;a<n;a++)t[a]=Le(r[a])}}else if(uI[e]){if(!Mc(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var a=0,n=r.length;a<n;a++)t[a]=r[a]}}}else if(!lI[e]&&!Mc(r)&&!kl(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==rC&&(t[o]=Le(r[o]))}return t}function ze(r,t,e){if(!Ee(t)||!Ee(r))return e?Le(t):r;for(var a in t)if(t.hasOwnProperty(a)&&a!==rC){var n=r[a],i=t[a];Ee(i)&&Ee(n)&&!ce(i)&&!ce(n)&&!kl(i)&&!kl(n)&&!KS(i)&&!KS(n)&&!Mc(i)&&!Mc(n)?ze(n,i,e):(e||!(a in r))&&(r[a]=Le(t[a]))}return r}function oy(r,t){for(var e=r[0],a=1,n=r.length;a<n;a++)e=ze(e,r[a],t);return e}function oe(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==rC&&(r[e]=t[e]);return r}function Me(r,t,e){for(var a=Ze(t),n=0,i=a.length;n<i;n++){var o=a[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var IW=kn.createCanvas;function He(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,a=r.length;e<a;e++)if(r[e]===t)return e}return-1}function nC(r,t){var e=r.prototype;function a(){}a.prototype=t.prototype,r.prototype=new a;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Xt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else Me(r,t,e)}function Ir(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function O(r,t,e){if(r&&t)if(r.forEach&&r.forEach===LW)r.forEach(t,e);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function he(r,t,e){if(!r)return[];if(!t)return sy(r);if(r.map&&r.map===RW)return r.map(t,e);for(var a=[],n=0,i=r.length;n<i;n++)a.push(t.call(e,r[n],n,r));return a}function fn(r,t,e,a){if(r&&t){for(var n=0,i=r.length;n<i;n++)e=t.call(a,e,r[n],n,r);return e}}function lt(r,t,e){if(!r)return[];if(!t)return sy(r);if(r.filter&&r.filter===NW)return r.filter(t,e);for(var a=[],n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r)&&a.push(r[n]);return a}function cI(r,t,e){if(r&&t){for(var a=0,n=r.length;a<n;a++)if(t.call(e,r[a],a,r))return r[a]}}function Ze(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function kW(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(tC.call(arguments)))}}var be=Y0&&Te(Y0.bind)?Y0.call.bind(Y0.bind):kW;function Oe(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(tC.call(arguments)))}}function ce(r){return Array.isArray?Array.isArray(r):Kc.call(r)==="[object Array]"}function Te(r){return typeof r=="function"}function _e(r){return typeof r=="string"}function Jg(r){return Kc.call(r)==="[object String]"}function it(r){return typeof r=="number"}function Ee(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function KS(r){return!!lI[Kc.call(r)]}function sa(r){return!!uI[Kc.call(r)]}function kl(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function od(r){return r.colorStops!=null}function fI(r){return r.image!=null}function hI(r){return Kc.call(r)==="[object RegExp]"}function Pc(r){return r!==r}function gr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,a=r.length;e<a;e++)if(r[e]!=null)return r[e]}function ke(r,t){return r??t}function Nn(r,t,e){return r??t??e}function sy(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return tC.apply(r,t)}function ly(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Xr(r,t){if(!r)throw new Error(t)}function un(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vI="__ec_primitive__";function wv(r){r[vI]=!0}function Mc(r){return r[vI]}var OW=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Ze(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var a in e)e.hasOwnProperty(a)&&t(e[a],a)},r})(),dI=typeof Map=="function";function PW(){return dI?new Map:new OW}var pI=(function(){function r(t){var e=ce(t);this.data=PW();var a=this;t instanceof r?t.each(n):t&&O(t,n);function n(i,o){e?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(a,n){t.call(e,a,n)})},r.prototype.keys=function(){var t=this.data.keys();return dI?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Ce(r){return new pI(r)}function zc(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var n=r.length,a=0;a<t.length;a++)e[a+n]=t[a];return e}function sd(r,t){var e;if(Object.create)e=Object.create(r);else{var a=function(){};a.prototype=r,e=new a}return t&&oe(e,t),e}function iC(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Se(r,t){return r.hasOwnProperty(t)}function qt(){}var nv=180/Math.PI;const zW=Object.freeze(Object.defineProperty({__proto__:null,HashMap:pI,RADIAN_TO_DEGREE:nv,assert:Xr,bind:be,clone:Le,concatArray:zc,createCanvas:IW,createHashMap:Ce,createObject:sd,curry:Oe,defaults:Me,disableUserSelect:iC,each:O,eqNaN:Pc,extend:oe,filter:lt,find:cI,guid:aC,hasOwn:Se,indexOf:He,inherits:nC,isArray:ce,isArrayLike:Ir,isBuiltInObject:KS,isDom:kl,isFunction:Te,isGradientObject:od,isImagePatternObject:fI,isNumber:it,isObject:Ee,isPrimitive:Mc,isRegExp:hI,isString:_e,isStringSafe:Jg,isTypedArray:sa,keys:Ze,logError:iy,map:he,merge:ze,mergeAll:oy,mixin:Xt,noop:qt,normalizeCssArray:ly,reduce:fn,retrieve:gr,retrieve2:ke,retrieve3:Nn,setAsPrimitive:wv,slice:sy,trim:un},Symbol.toStringTag,{value:"Module"}));function vs(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Ur(r,t){return r[0]=t[0],r[1]=t[1],r}function ni(r){return[r[0],r[1]]}function gI(r,t,e){return r[0]=t,r[1]=e,r}function QS(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function em(r,t,e,a){return r[0]=t[0]+e[0]*a,r[1]=t[1]+e[1]*a,r}function Wo(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Cv(r){return Math.sqrt(oC(r))}var jW=Cv;function oC(r){return r[0]*r[0]+r[1]*r[1]}var FW=oC;function VW(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function HW(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function GW(r,t){return r[0]*t[0]+r[1]*t[1]}function iv(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Xl(r,t){var e=Cv(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function tm(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Hi=tm;function mI(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Jo=mI;function UW(r,t){return r[0]=-t[0],r[1]=-t[1],r}function ov(r,t,e,a){return r[0]=t[0]+a*(e[0]-t[0]),r[1]=t[1]+a*(e[1]-t[1]),r}function Ar(r,t,e){var a=t[0],n=t[1];return r[0]=e[0]*a+e[2]*n+e[4],r[1]=e[1]*a+e[3]*n+e[5],r}function Gi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ui(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const YW=Object.freeze(Object.defineProperty({__proto__:null,add:QS,applyTransform:Ar,clone:ni,copy:Ur,create:vs,dist:Hi,distSquare:Jo,distance:tm,distanceSquare:mI,div:HW,dot:GW,len:Cv,lenSquare:oC,length:jW,lengthSquare:FW,lerp:ov,max:Ui,min:Gi,mul:VW,negate:UW,normalize:Xl,scale:iv,scaleAndAdd:em,set:gI,sub:Wo},Symbol.toStringTag,{value:"Module"}));var qu=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),WW=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new qu(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var a=t.offsetX,n=t.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,e.drift(i,o,t),this.handler.dispatchToElement(new qu(e,t),"drag",t.event);var s=this.handler.findHover(a,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new qu(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new qu(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new qu(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new qu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),vn=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(n=a,a=e,e=null),!a||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===a)return this;var l={h:a,query:e,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(e){if(a[t]){for(var n=[],i=0,o=a[t].length;i<o;i++)a[t][i].h!==e&&n.push(a[t][i]);a[t]=n}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},r.prototype.trigger=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[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,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,e[0]);break;case 2:c.h.call(s,e[0],e[1]);break;default:c.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r})(),qW=Math.log(2);function JS(r,t,e,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/qW);return r[e][l]}for(var u=a|1<<e,c=e+1;a&1<<c;)c++;for(var h=0,v=0,p=0;v<s;v++){var g=1<<v;g&n||(h+=(p%2?-1:1)*r[e][v]*JS(r,t-1,c,u,n|g,i),p++)}return i[o]=h,h}function bE(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],a={},n=JS(e,8,0,0,0,a);if(n!==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)*JS(e,7,o===0?1:0,1<<o,1<<s,a)/n*t[o];return function(l,u,c){var h=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/h,l[1]=(u*i[3]+c*i[4]+i[5])/h}}}var SE="___zrEVENTSAVED",x_=[];function XW(r,t,e,a,n){return e2(x_,t,a,n,!0)&&e2(r,e,x_[0],x_[1])}function e2(r,t,e,a,n){if(t.getBoundingClientRect&&qe.domSupported&&!yI(t)){var i=t[SE]||(t[SE]={}),o=ZW(t,i),s=$W(o,i,n);if(s)return s(r,e,a),!0}return!1}function ZW(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var a=["left","right"],n=["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",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function $W(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),h=2*u,v=c.left,p=c.top;o.push(v,p),l=l&&i&&v===i[h]&&p===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?bE(s,o):bE(o,s))}function yI(r){return r.nodeName.toUpperCase()==="CANVAS"}var KW=/([&<>"'])/g,QW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Wr(r){return r==null?"":(r+"").replace(KW,function(t,e){return QW[e]})}var JW=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,__=[],eq=qe.browser.firefox&&+qe.browser.version.split(".")[0]<39;function t2(r,t,e,a){return e=e||{},a?wE(r,t,e):eq&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):wE(r,t,e),e}function wE(r,t,e){if(qe.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(yI(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(e2(__,r,a,n)){e.zrX=__[0],e.zrY=__[1];return}}e.zrX=e.zrY=0}function sC(r){return r||window.event}function tn(r,t,e){if(t=sC(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&t2(r,o,t,e)}else{t2(r,t,t,e);var i=tq(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&JW.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function tq(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function r2(r,t,e,a){r.addEventListener(t,e,a)}function rq(r,t,e,a){r.removeEventListener(t,e,a)}var Ki=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function CE(r){return r.which===2||r.which===3}var aq=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=t2(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in b_)if(b_.hasOwnProperty(e)){var a=b_[e](this._track,t);if(a)return a}},r})();function AE(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function nq(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var b_={pinch:function(r,t){var e=r.length;if(e){var a=(r[e-1]||{}).points,n=(r[e-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=AE(a)/AE(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=nq(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Sa(){return[1,0,0,1,0,0]}function ld(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function uy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ii(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function On(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function ds(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*c,r[1]=-n*c+s*h,r[2]=i*h+l*c,r[3]=-i*c+h*l,r[4]=h*(o-a[0])+c*(u-a[1])+a[0],r[5]=h*(u-a[1])-c*(o-a[0])+a[1],r}function cy(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Zl(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function xI(r){var t=Sa();return uy(t,r),t}const iq=Object.freeze(Object.defineProperty({__proto__:null,clone:xI,copy:uy,create:Sa,identity:ld,invert:Zl,mul:ii,rotate:ds,scale:cy,translate:On},Symbol.toStringTag,{value:"Module"}));var Fe=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r})(),W0=Math.min,q0=Math.max,js=new Fe,Fs=new Fe,Vs=new Fe,Hs=new Fe,vh=new Fe,dh=new Fe,Ve=(function(){function r(t,e,a,n){a<0&&(t=t+a,a=-a),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=a,this.height=n}return r.prototype.union=function(t){var e=W0(t.x,this.x),a=W0(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=q0(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=q0(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Sa();return On(i,i,[-e.x,-e.y]),cy(i,i,[a,n]),On(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,u=t.x+t.width,c=t.y,h=t.y+t.height,v=!(i<l||u<n||s<c||h<o);if(e){var p=1/0,g=0,y=Math.abs(i-l),x=Math.abs(u-n),_=Math.abs(s-c),S=Math.abs(h-o),w=Math.min(y,x),C=Math.min(_,S);i<l||u<n?w>g&&(g=w,y<x?Fe.set(dh,-y,0):Fe.set(dh,x,0)):w<p&&(p=w,y<x?Fe.set(vh,y,0):Fe.set(vh,-x,0)),s<c||h<o?C>g&&(g=C,_<S?Fe.set(dh,0,-_):Fe.set(dh,0,S)):w<p&&(p=w,_<S?Fe.set(vh,0,_):Fe.set(vh,0,-S))}return e&&Fe.copy(e,v?vh:dh),v},r.prototype.contain=function(t,e){var a=this;return t>=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.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}js.x=Vs.x=e.x,js.y=Hs.y=e.y,Fs.x=Hs.x=e.x+e.width,Fs.y=Vs.y=e.y+e.height,js.transform(a),Hs.transform(a),Fs.transform(a),Vs.transform(a),t.x=W0(js.x,Fs.x,Vs.x,Hs.x),t.y=W0(js.y,Fs.y,Vs.y,Hs.y);var l=q0(js.x,Fs.x,Vs.x,Hs.x),u=q0(js.y,Fs.y,Vs.y,Hs.y);t.width=l-t.x,t.height=u-t.y},r})(),_I="silent";function oq(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:sq}}function sq(){Ki(this.event)}var lq=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(vn),ph=(function(){function r(t,e){this.x=t,this.y=e}return r})(),uq=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S_=new Ve(0,0,0,0),bI=(function(r){Q(t,r);function t(e,a,n,i,o){var s=r.call(this)||this;return s._hovered=new ph(0,0),s.storage=e,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new lq,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new WW(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(O(uq,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,n=e.zrY,i=SI(this,a,n),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 ph(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ph(0,0)},t.prototype.dispatch=function(e,a){var n=this[e];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,n){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+a,s=oq(a,e,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,n){var i=this.storage.getDisplayList(),o=new ph(e,a);if(DE(i,o,e,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ve(e-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(S_.copy(v.getBoundingRect()),v.transform&&S_.applyTransform(v.transform),S_.intersect(c)&&s.push(v))}if(s.length)for(var p=4,g=Math.PI/12,y=Math.PI*2,x=0;x<u;x+=p)for(var _=0;_<y;_+=g){var S=e+x*Math.cos(_),w=a+x*Math.sin(_);if(DE(s,o,S,w,n),o.target)return o}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new aq);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;e.gestureEvent=o;var s=new ph;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t})(vn);O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){bI.prototype[r]=function(t){var e=t.zrX,a=t.zrY,n=SI(this,e,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(e,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Hi(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function cq(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?_I:!0}return!1}function DE(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=cq(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==_I)){t.target=o;break}}}function SI(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var wI=32,gh=7;function fq(r){for(var t=0;r>=wI;)t|=r&1,r>>=1;return r+t}function TE(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n<e&&a(r[n],r[n-1])<0;)n++;hq(r,t,n)}else for(;n<e&&a(r[n],r[n-1])>=0;)n++;return n-t}function hq(r,t,e){for(e--;t<e;){var a=r[t];r[t++]=r[e],r[e--]=a}}function ME(r,t,e,a,n){for(a===t&&a++;a<e;a++){for(var i=r[a],o=t,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function w_(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l<s&&i(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,t[e+c])>0?o=c+1:l=c}return l}function C_(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;l<s&&i(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var c=o+(l-o>>>1);i(r,t[e+c])<0?l=c:o=c+1}return l}function vq(r,t){var e=gh,a,n,i=0,o=[];a=[],n=[];function s(p,g){a[i]=p,n[i]=g,i+=1}function l(){for(;i>1;){var p=i-2;if(p>=1&&n[p-1]<=n[p]+n[p+1]||p>=2&&n[p-2]<=n[p]+n[p-1])n[p-1]<n[p+1]&&p--;else if(n[p]>n[p+1])break;c(p)}}function u(){for(;i>1;){var p=i-2;p>0&&n[p-1]<n[p+1]&&p--,c(p)}}function c(p){var g=a[p],y=n[p],x=a[p+1],_=n[p+1];n[p]=y+_,p===i-3&&(a[p+1]=a[p+2],n[p+1]=n[p+2]),i--;var S=C_(r[x],r,g,y,0,t);g+=S,y-=S,y!==0&&(_=w_(r[g+y-1],r,x,_,_-1,t),_!==0&&(y<=_?h(g,y,x,_):v(g,y,x,_)))}function h(p,g,y,x){var _=0;for(_=0;_<g;_++)o[_]=r[p+_];var S=0,w=y,C=p;if(r[C++]=r[w++],--x===0){for(_=0;_<g;_++)r[C+_]=o[S+_];return}if(g===1){for(_=0;_<x;_++)r[C+_]=r[w+_];r[C+x]=o[S];return}for(var D=e,M,E,N;;){M=0,E=0,N=!1;do if(t(r[w],o[S])<0){if(r[C++]=r[w++],E++,M=0,--x===0){N=!0;break}}else if(r[C++]=o[S++],M++,E=0,--g===1){N=!0;break}while((M|E)<D);if(N)break;do{if(M=C_(r[w],o,S,g,0,t),M!==0){for(_=0;_<M;_++)r[C+_]=o[S+_];if(C+=M,S+=M,g-=M,g<=1){N=!0;break}}if(r[C++]=r[w++],--x===0){N=!0;break}if(E=w_(o[S],r,w,x,0,t),E!==0){for(_=0;_<E;_++)r[C+_]=r[w+_];if(C+=E,w+=E,x-=E,x===0){N=!0;break}}if(r[C++]=o[S++],--g===1){N=!0;break}D--}while(M>=gh||E>=gh);if(N)break;D<0&&(D=0),D+=2}if(e=D,e<1&&(e=1),g===1){for(_=0;_<x;_++)r[C+_]=r[w+_];r[C+x]=o[S]}else{if(g===0)throw new Error;for(_=0;_<g;_++)r[C+_]=o[S+_]}}function v(p,g,y,x){var _=0;for(_=0;_<x;_++)o[_]=r[y+_];var S=p+g-1,w=x-1,C=y+x-1,D=0,M=0;if(r[C--]=r[S--],--g===0){for(D=C-(x-1),_=0;_<x;_++)r[D+_]=o[_];return}if(x===1){for(C-=g,S-=g,M=C+1,D=S+1,_=g-1;_>=0;_--)r[M+_]=r[D+_];r[C]=o[w];return}for(var E=e;;){var N=0,B=0,R=!1;do if(t(o[w],r[S])<0){if(r[C--]=r[S--],N++,B=0,--g===0){R=!0;break}}else if(r[C--]=o[w--],B++,N=0,--x===1){R=!0;break}while((N|B)<E);if(R)break;do{if(N=g-C_(o[w],r,p,g,g-1,t),N!==0){for(C-=N,S-=N,g-=N,M=C+1,D=S+1,_=N-1;_>=0;_--)r[M+_]=r[D+_];if(g===0){R=!0;break}}if(r[C--]=o[w--],--x===1){R=!0;break}if(B=x-w_(r[S],o,0,x,x-1,t),B!==0){for(C-=B,w-=B,x-=B,M=C+1,D=w+1,_=0;_<B;_++)r[M+_]=o[D+_];if(x<=1){R=!0;break}}if(r[C--]=r[S--],--g===0){R=!0;break}E--}while(N>=gh||B>=gh);if(R)break;E<0&&(E=0),E+=2}if(e=E,e<1&&(e=1),x===1){for(C-=g,S-=g,M=C+1,D=S+1,_=g-1;_>=0;_--)r[M+_]=r[D+_];r[C]=o[w]}else{if(x===0)throw new Error;for(D=C-(x-1),_=0;_<x;_++)r[D+_]=o[_]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Rg(r,t,e,a){e||(e=0),a||(a=r.length);var n=a-e;if(!(n<2)){var i=0;if(n<wI){i=TE(r,e,a,t),ME(r,e,a,e+i,t);return}var o=vq(r,t),s=fq(n);do{if(i=TE(r,e,a,t),i<s){var l=n;l>s&&(l=s),ME(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var Ra=1,Yh=2,gc=4,EE=!1;function A_(){EE||(EE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function LE(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var dq=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=LE}return r.prototype.traverse=function(t,e){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(e),a},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,a=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);a.length=this._displayListLen,Rg(a,LE)},r.prototype._updateAndAddDisplayable=function(t,e,a){if(!(t.ignore&&!a)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var i=n,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ra),this._updateAndAddDisplayable(u,e,a)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(A_(),c.z=0),isNaN(c.z2)&&(A_(),c.z2=0),isNaN(c.zlevel)&&(A_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,a);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,a);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,a)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,a=t.length;e<a;e++)this.delRoot(t[e]);return}var n=He(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),rm;rm=qe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var sv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-sv.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?sv.bounceIn(r*2)*.5:sv.bounceOut(r*2-1)*.5+.5}},X0=Math.pow,es=Math.sqrt,am=1e-8,CI=1e-4,NE=es(3),Z0=1/3,Jn=vs(),on=vs(),Ec=vs();function qo(r){return r>-am&&r<am}function AI(r){return r>am||r<-am}function pr(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function RE(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function nm(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,c=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,p=0;if(qo(c)&&qo(h))if(qo(s))i[0]=0;else{var g=-l/s;g>=0&&g<=1&&(i[p++]=g)}else{var y=h*h-4*c*v;if(qo(y)){var x=h/c,g=-s/o+x,_=-x/2;g>=0&&g<=1&&(i[p++]=g),_>=0&&_<=1&&(i[p++]=_)}else if(y>0){var S=es(y),w=c*s+1.5*o*(-h+S),C=c*s+1.5*o*(-h-S);w<0?w=-X0(-w,Z0):w=X0(w,Z0),C<0?C=-X0(-C,Z0):C=X0(C,Z0);var g=(-s-(w+C))/(3*o);g>=0&&g<=1&&(i[p++]=g)}else{var D=(2*c*s-3*o*h)/(2*es(c*c*c)),M=Math.acos(D)/3,E=es(c),N=Math.cos(M),g=(-s-2*E*N)/(3*o),_=(-s+E*(N+NE*Math.sin(M)))/(3*o),B=(-s+E*(N-NE*Math.sin(M)))/(3*o);g>=0&&g<=1&&(i[p++]=g),_>=0&&_<=1&&(i[p++]=_),B>=0&&B<=1&&(i[p++]=B)}}return p}function DI(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(qo(o)){if(AI(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(qo(c))n[0]=-i/(2*o);else if(c>0){var h=es(c),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function ss(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,c=(l-s)*n+s,h=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=c,i[6]=l,i[7]=a}function TI(r,t,e,a,n,i,o,s,l,u,c){var h,v=.005,p=1/0,g,y,x,_;Jn[0]=l,Jn[1]=u;for(var S=0;S<1;S+=.05)on[0]=pr(r,e,n,o,S),on[1]=pr(t,a,i,s,S),x=Jo(Jn,on),x<p&&(h=S,p=x);p=1/0;for(var w=0;w<32&&!(v<CI);w++)g=h-v,y=h+v,on[0]=pr(r,e,n,o,g),on[1]=pr(t,a,i,s,g),x=Jo(on,Jn),g>=0&&x<p?(h=g,p=x):(Ec[0]=pr(r,e,n,o,y),Ec[1]=pr(t,a,i,s,y),_=Jo(Ec,Jn),y<=1&&_<p?(h=y,p=_):v*=.5);return c&&(c[0]=pr(r,e,n,o,h),c[1]=pr(t,a,i,s,h)),es(p)}function pq(r,t,e,a,n,i,o,s,l){for(var u=r,c=t,h=0,v=1/l,p=1;p<=l;p++){var g=p*v,y=pr(r,e,n,o,g),x=pr(t,a,i,s,g),_=y-u,S=x-c;h+=Math.sqrt(_*_+S*S),u=y,c=x}return h}function Cr(r,t,e,a){var n=1-a;return n*(n*r+2*a*t)+a*a*e}function a2(r,t,e,a){return 2*((1-a)*(t-r)+a*(e-t))}function gq(r,t,e,a,n){var i=r-2*t+e,o=2*(t-r),s=r-a,l=0;if(qo(i)){if(AI(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(qo(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var h=es(c),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function MI(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function Av(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function EI(r,t,e,a,n,i,o,s,l){var u,c=.005,h=1/0;Jn[0]=o,Jn[1]=s;for(var v=0;v<1;v+=.05){on[0]=Cr(r,e,n,v),on[1]=Cr(t,a,i,v);var p=Jo(Jn,on);p<h&&(u=v,h=p)}h=1/0;for(var g=0;g<32&&!(c<CI);g++){var y=u-c,x=u+c;on[0]=Cr(r,e,n,y),on[1]=Cr(t,a,i,y);var p=Jo(on,Jn);if(y>=0&&p<h)u=y,h=p;else{Ec[0]=Cr(r,e,n,x),Ec[1]=Cr(t,a,i,x);var _=Jo(Ec,Jn);x<=1&&_<h?(u=x,h=_):c*=.5}}return l&&(l[0]=Cr(r,e,n,u),l[1]=Cr(t,a,i,u)),es(h)}function mq(r,t,e,a,n,i,o){for(var s=r,l=t,u=0,c=1/o,h=1;h<=o;h++){var v=h*c,p=Cr(r,e,n,v),g=Cr(t,a,i,v),y=p-s,x=g-l;u+=Math.sqrt(y*y+x*x),s=p,l=g}return u}var yq=/cubic-bezier\(([0-9,\.e ]+)\)/;function lC(r){var t=r&&yq.exec(r);if(t){var e=t[1].split(","),a=+un(e[0]),n=+un(e[1]),i=+un(e[2]),o=+un(e[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:nm(0,a,i,1,l,s)&&pr(0,n,o,1,s[0])}}}var xq=(function(){function r(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||qt,this.ondestroy=t.ondestroy||qt,this.onrestart=t.onrestart||qt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;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=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Te(t)?t:sv[t]||lC(t)},r})(),LI=(function(){function r(t){this.value=t}return r})(),_q=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new LI(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),ud=(function(){function r(t){this._list=new _q,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new LI(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),BE={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 Rn(r){return r=Math.round(r),r<0?0:r>255?255:r}function bq(r){return r=Math.round(r),r<0?0:r>360?360:r}function Dv(r){return r<0?0:r>1?1:r}function D_(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Rn(parseFloat(t)/100*255):Rn(parseInt(t,10))}function Ml(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Dv(parseFloat(t)/100):Dv(parseFloat(t))}function T_(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Xo(r,t,e){return r+(t-r)*e}function en(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function n2(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var NI=new ud(20),$0=null;function Xu(r,t){$0&&n2($0,t),$0=NI.put(r,$0||t.slice())}function ia(r,t){if(r){t=t||[];var e=NI.get(r);if(e)return n2(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in BE)return n2(t,BE[a]),Xu(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){en(t,0,0,0,1);return}return en(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Xu(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){en(t,0,0,0,1);return}return en(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Xu(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?en(t,+u[0],+u[1],+u[2],1):en(t,0,0,0,1);c=Ml(u.pop());case"rgb":if(u.length>=3)return en(t,D_(u[0]),D_(u[1]),D_(u[2]),u.length===3?c:Ml(u[3])),Xu(r,t),t;en(t,0,0,0,1);return;case"hsla":if(u.length!==4){en(t,0,0,0,1);return}return u[3]=Ml(u[3]),i2(u,t),Xu(r,t),t;case"hsl":if(u.length!==3){en(t,0,0,0,1);return}return i2(u,t),Xu(r,t),t;default:return}}en(t,0,0,0,1)}}function i2(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Ml(r[1]),n=Ml(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],en(t,Rn(T_(o,i,e+1/3)*255),Rn(T_(o,i,e)*255),Rn(T_(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Sq(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-t)/6+o/2)/o,h=((i-e)/6+o/2)/o,v=((i-a)/6+o/2)/o;t===i?l=v-h:e===i?l=1/3+c-v:a===i&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return r[3]!=null&&p.push(r[3]),p}}function im(r,t){var e=ia(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return Bn(e,e.length===4?"rgba":"rgb")}}function wq(r){var t=ia(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function lv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=Rn(Xo(o[0],s[0],l)),e[1]=Rn(Xo(o[1],s[1],l)),e[2]=Rn(Xo(o[2],s[2],l)),e[3]=Dv(Xo(o[3],s[3],l)),e}}var Cq=lv;function uC(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=ia(t[n]),s=ia(t[i]),l=a-n,u=Bn([Rn(Xo(o[0],s[0],l)),Rn(Xo(o[1],s[1],l)),Rn(Xo(o[2],s[2],l)),Dv(Xo(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var Aq=uC;function Lc(r,t,e,a){var n=ia(r);if(r)return n=Sq(n),t!=null&&(n[0]=bq(t)),e!=null&&(n[1]=Ml(e)),a!=null&&(n[2]=Ml(a)),Bn(i2(n),"rgba")}function Tv(r,t){var e=ia(r);if(e&&t!=null)return e[3]=Dv(t),Bn(e,"rgba")}function Bn(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Mv(r,t){var e=ia(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Dq(){return Bn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var IE=new ud(100);function om(r){if(_e(r)){var t=IE.get(r);return t||(t=im(r,-.1),IE.put(r,t)),t}else if(od(r)){var e=oe({},r);return e.colorStops=he(r.colorStops,function(a){return{offset:a.offset,color:im(a.color,-.1)}}),e}return r}const Tq=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:lv,fastMapToColor:Cq,lerp:uC,lift:im,liftColor:om,lum:Mv,mapToColor:Aq,modifyAlpha:Tv,modifyHSL:Lc,parse:ia,random:Dq,stringify:Bn,toHex:wq},Symbol.toStringTag,{value:"Module"}));var sm=Math.round;function Ev(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ia(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var kE=1e-4;function Zo(r){return r<kE&&r>-kE}function K0(r){return sm(r*1e3)/1e3}function o2(r){return sm(r*1e4)/1e4}function Mq(r){return"matrix("+K0(r[0])+","+K0(r[1])+","+K0(r[2])+","+K0(r[3])+","+o2(r[4])+","+o2(r[5])+")"}var Eq={left:"start",right:"end",center:"middle",middle:"middle"};function Lq(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function Nq(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Rq(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function RI(r){return r&&!!r.image}function Bq(r){return r&&!!r.svgElement}function cC(r){return RI(r)||Bq(r)}function BI(r){return r.type==="linear"}function II(r){return r.type==="radial"}function kI(r){return r&&(r.type==="linear"||r.type==="radial")}function fy(r){return"url(#"+r+")"}function OI(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function PI(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*nv,n=ke(r.scaleX,1),i=ke(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+sm(o*nv)+"deg, "+sm(s*nv)+"deg)"),l.join(" ")}var Iq=(function(){return qe.hasGlobalWindow&&Te(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),s2=Array.prototype.slice;function Fi(r,t,e){return(t-r)*e+r}function M_(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=Fi(t[i],e[i],a);return r}function kq(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Fi(t[o][s],e[o][s],a)}return r}function Q0(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=t[i]+e[i]*a;return r}function OE(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function Oq(r,t){for(var e=r.length,a=t.length,n=e>a?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function Pq(r,t,e){var a=r,n=t;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(e===1?n[l]:s2.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function uv(r){if(Ir(r)){var t=r.length;if(Ir(r[0])){for(var e=[],a=0;a<t;a++)e.push(s2.call(r[a]));return e}return s2.call(r)}return r}function Bg(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function zq(r){return Ir(r&&r[0])?2:1}var J0=0,Ig=1,zI=2,Wh=3,l2=4,u2=5,PE=6;function zE(r){return r===l2||r===u2}function ep(r){return r===Ig||r===zI}var mh=[0,0,0,0],jq=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=PE,l=e;if(Ir(e)){var u=zq(e);s=u,(u===1&&!it(e[0])||u===2&&!it(e[0][0]))&&(o=!0)}else if(it(e)&&!Pc(e))s=J0;else if(_e(e))if(!isNaN(+e))s=J0;else{var c=ia(e);c&&(l=c,s=Wh)}else if(od(e)){var h=oe({},l);h.colorStops=he(e.colorStops,function(p){return{offset:p.offset,color:ia(p.color)}}),BI(e)?s=l2:II(e)&&(s=u2),l=h}i===0?this.valType=s:(s!==this.valType||s===PE)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=Te(a)?a:sv[a]||lC(a)),n.push(v),v},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(y,x){return y.time-x.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=ep(n),u=zE(n),c=0;c<i;c++){var h=a[c],v=h.value,p=o.value;h.percent=h.time/t,s||(l&&c!==i-1?Pq(v,p,n):u&&Oq(v.colorStops,p.colorStops))}if(!s&&n!==u2&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var g=a[0].value,c=0;c<i;c++)n===J0?a[c].additiveValue=a[c].value-g:n===Wh?a[c].additiveValue=Q0([],a[c].value,g,-1):ep(n)&&(a[c].additiveValue=n===Ig?Q0([],a[c].value,g,-1):OE([],a[c].value,g,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Wh,c,h=this._lastFr,v=Math.min,p,g;if(s===1)p=g=o[0];else{if(e<0)c=0;else if(e<this._lastFrP){var y=v(h+1,s-1);for(c=y;c>=0&&!(o[c].percent<=e);c--);c=v(c,s-2)}else{for(c=h;c<s&&!(o[c].percent>e);c++);c=v(c-1,s-2)}g=o[c+1],p=o[c]}if(p&&g){this._lastFr=c,this._lastFrP=e;var x=g.percent-p.percent,_=x===0?1:v((e-p.percent)/x,1);g.easingFunc&&(_=g.easingFunc(_));var S=a?this._additiveValue:u?mh:t[l];if((ep(i)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=_<1?p.rawValue:g.rawValue;else if(ep(i))i===Ig?M_(S,p[n],g[n],_):kq(S,p[n],g[n],_);else if(zE(i)){var w=p[n],C=g[n],D=i===l2;t[l]={type:D?"linear":"radial",x:Fi(w.x,C.x,_),y:Fi(w.y,C.y,_),colorStops:he(w.colorStops,function(E,N){var B=C.colorStops[N];return{offset:Fi(E.offset,B.offset,_),color:Bg(M_([],E.color,B.color,_))}}),global:C.global},D?(t[l].x2=Fi(w.x2,C.x2,_),t[l].y2=Fi(w.y2,C.y2,_)):t[l].r=Fi(w.r,C.r,_)}else if(u)M_(S,p[n],g[n],_),a||(t[l]=Bg(S));else{var M=Fi(p[n],g[n],_);a?this._additiveValue=M:t[l]=M}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===J0?t[a]=t[a]+n:e===Wh?(ia(t[a],mh),Q0(mh,mh,n,1),t[a]=Bg(mh)):e===Ig?Q0(t[a],t[a],n,1):e===zI&&OE(t[a],t[a],n,1)},r})(),fC=(function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){iy("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,Ze(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new jq(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,v=h[h.length-1];u=v&&v.value,c.valType===Wh&&u&&(u=Bg(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,uv(u),n),this._trackKeys.push(s)}l.addKeyframe(t,uv(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a<e;a++)t[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,a=[],n=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,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new xq({life:n,loop:this._loop,delay:this._delay||0,onframe:function(p){e._started=2;var g=e._additiveAnimators;if(g){for(var y=!1,x=0;x<g.length;x++)if(g[x]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var x=0;x<a.length;x++)a[x].step(e._target,p);var _=e._onframeCbs;if(_)for(var x=0;x<_.length;x++)_[x](e._target,p)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return he(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var o=a[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[i]=uv(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Ze(t);for(var a=0;a<e.length;a++){var n=e[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Sc(){return new Date().getTime()}var Fq=(function(r){Q(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=Sc()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(rm(a),!e._paused&&e.update())}rm(a)},t.prototype.start=function(){this._running||(this._time=Sc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Sc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Sc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new fC(e,a.loop);return this.addAnimator(n),n},t})(vn),Vq=300,E_=qe.domSupported,L_=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=he(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}})(),jE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},FE=!1;function c2(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Hq(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function N_(r){r&&(r.zrByTouch=!0)}function Gq(r,t){return tn(r.dom,new Uq(r,t),!0)}function jI(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var Uq=(function(){function r(t,e){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Dn={mousedown:function(r){r=tn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=tn(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=tn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=tn(this.dom,r);var t=r.toElement||r.relatedTarget;jI(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){FE=!0,r=tn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){FE||(r=tn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=tn(this.dom,r),N_(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Dn.mousemove.call(this,r),Dn.mousedown.call(this,r)},touchmove:function(r){r=tn(this.dom,r),N_(r),this.handler.processGesture(r,"change"),Dn.mousemove.call(this,r)},touchend:function(r){r=tn(this.dom,r),N_(r),this.handler.processGesture(r,"end"),Dn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Vq&&Dn.click.call(this,r)},pointerdown:function(r){Dn.mousedown.call(this,r)},pointermove:function(r){c2(r)||Dn.mousemove.call(this,r)},pointerup:function(r){Dn.mouseup.call(this,r)},pointerout:function(r){c2(r)||Dn.mouseout.call(this,r)}};O(["click","dblclick","contextmenu"],function(r){Dn[r]=function(t){t=tn(this.dom,t),this.trigger(r,t)}});var f2={pointermove:function(r){c2(r)||f2.mousemove.call(this,r)},pointerup:function(r){f2.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Yq(r,t){var e=t.domHandlers;qe.pointerEventsSupported?O(L_.pointer,function(a){kg(t,a,function(n){e[a].call(r,n)})}):(qe.touchEventsSupported&&O(L_.touch,function(a){kg(t,a,function(n){e[a].call(r,n),Hq(t)})}),O(L_.mouse,function(a){kg(t,a,function(n){n=sC(n),t.touching||e[a].call(r,n)})}))}function Wq(r,t){qe.pointerEventsSupported?O(jE.pointer,e):qe.touchEventsSupported||O(jE.mouse,e);function e(a){function n(i){i=sC(i),jI(r,i.target)||(i=Gq(r,i),t.domHandlers[a].call(r,i))}kg(t,a,n,{capture:!0})}}function kg(r,t,e,a){r.mounted[t]=e,r.listenerOpts[t]=a,r2(r.domTarget,t,e,a)}function R_(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&rq(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var VE=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),qq=(function(r){Q(t,r);function t(e,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=a,n._localHandlerScope=new VE(e,Dn),E_&&(n._globalHandlerScope=new VE(document,f2)),Yq(n,n._localHandlerScope),n}return t.prototype.dispose=function(){R_(this._localHandlerScope),E_&&R_(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,E_&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var a=this._globalHandlerScope;e?Wq(this,a):R_(a)}},t})(vn),FI=1;qe.hasGlobalWindow&&(FI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var lm=FI,h2=.4,v2="#333",d2="#ccc",Xq="#eee",HE=ld,GE=5e-5;function Gs(r){return r>GE||r<-GE}var Us=[],Zu=[],B_=Sa(),I_=Math.abs,Yi=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Gs(this.rotation)||Gs(this.x)||Gs(this.y)||Gs(this.scaleX-1)||Gs(this.scaleY-1)||Gs(this.skewX)||Gs(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(HE(a),this.invTransform=null);return}a=a||Sa(),e?this.getLocalTransform(a):HE(a),t&&(e?ii(a,t,a):uy(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Us);var a=Us[0]<0?-1:1,n=Us[1]<0?-1:1,i=((Us[0]-a)*e+a)/Us[0]||0,o=((Us[1]-n)*e+n)/Us[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Sa(),Zl(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Sa(),ii(Zu,t.invTransform,e),e=Zu);var a=this.originX,n=this.originY;(a||n)&&(B_[4]=a,B_[5]=n,ii(Zu,e,B_),Zu[4]-=a,Zu[5]-=n,e=Zu),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&Ar(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&Ar(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&I_(t[0]-1)>1e-10&&I_(t[3]-1)>1e-10?Math.sqrt(I_(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){VI(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var g=a+s,y=n+l;e[4]=-g*i-v*y*o,e[5]=-y*o-p*g*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=p*i,e[2]=v*o,u&&ds(e,e,u),e[4]+=a+c,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.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})(),r})(),si=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function VI(r,t){for(var e=0;e<si.length;e++){var a=si[e];r[a]=t[a]}}var UE={};function Oa(r,t){t=t||os;var e=UE[t];e||(e=UE[t]=new ud(500));var a=e.get(r);return a==null&&(a=kn.measureText(r,t).width,e.put(r,a)),a}function YE(r,t,e,a){var n=Oa(r,t),i=hy(t),o=qh(0,n,e),s=mc(0,i,a),l=new Ve(o,s,n,i);return l}function cd(r,t,e,a){var n=((r||"")+"").split(`
  391. `),i=n.length;if(i===1)return YE(n[0],t,e,a);for(var o=new Ve(0,0,0,0),s=0;s<n.length;s++){var l=YE(n[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function qh(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function mc(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function hy(r){return Oa("国",r)}function Pn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function um(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,c="left",h="top";if(a instanceof Array)l+=Pn(a[0],e.width),u+=Pn(a[1],e.height),c=null,h=null;else switch(a){case"left":l-=n,u+=s,c="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,c="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=h,r}var k_="__zr_normal__",O_=si.concat(["ignore"]),Zq=fn(si,function(r,t){return r[t]=!0,r},{ignore:!1}),$u={},$q=new Ve(0,0,0,0),vy=(function(){function r(t){this.id=aC(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(e),a.position!=null){var c=$q;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($u,a,c):um($u,a,c),i.x=$u.x,i.y=$u.y,o=$u.align,s=$u.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,p=void 0;h==="center"?(v=c.width*.5,p=c.height*.5):(v=Pn(h[0],c.width),p=Pn(h[1],c.height)),u=!0,i.originX=-i.x+v+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,S=void 0,w=void 0;y&&this.canBeInsideText()?(_=a.insideFill,S=a.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(_),w=!0)):(_=a.outsideFill,S=a.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(_),w=!0)),_=_||"#000",(_!==x.fill||S!==x.stroke||w!==x.autoStroke||o!==x.align||s!==x.verticalAlign)&&(l=!0,x.fill=_,x.stroke=S,x.autoStroke=w,x.align=o,x.verticalAlign=s,e.setDefaultTextStyle(x)),e.__dirty|=Ra,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?d2:v2},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&ia(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Bn(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},oe(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Ee(t))for(var a=t,n=Ze(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==k_)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,O_)},r.prototype._savePrimaryToNormal=function(t,e,a){for(var n=0;n<a.length;n++){var i=a[n];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(k_,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===k_,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(He(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){iy("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,a,c),v&&v.useState(t,e,a,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ra),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],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],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&n.push(c)}var h=n[o-1],v=!!(h&&h.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),g=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&g&&g.duration>0,g);var y=this._textContent,x=this._textGuide;y&&y.useStates(t,e,v),x&&x.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ra)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=He(this.currentStates,t);if(e>=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=He(n,t),o=He(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n<t.length;n++){var i=t[n];oe(e,i),i.textConfig&&(a=a||{},oe(a,i.textConfig))}return a&&(e.textConfig=a),e},r.prototype._applyStateObj=function(t,e,a,n,i,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=oe({},n?this.textConfig:a.textConfig),oe(this.textConfig,e.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<O_.length;c++){var h=O_[c],v=i&&Zq[h];e&&e[h]!=null?v?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&a[h]!=null&&(v?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!i)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],g=p.targetName;p.getLoop()||p.__changeFinalValue(g?(e||a)[g]:e||a)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Yi,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),oe(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Ra;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,a=this._textGuide;e&&(e.__inHover=t),a&&(a.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.addAnimator(e[a]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.removeAnimator(e[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,a){var n=t?this[t]:this,i=new fC(n,e,a);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var a=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var i=n.animators,o=He(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,a){P_(this,t,e,a)},r.prototype.animateFrom=function(t,e,a){P_(this,t,e,a,!0)},r.prototype._transitionState=function(t,e,a,n){for(var i=P_(this,e,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ra;function e(a,n,i,o){Object.defineProperty(t,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Xt(vy,vn);Xt(vy,Yi);function P_(r,t,e,a,n){e=e||{};var i=[];HI(r,"",r,t,e,a,i,n);var o=i.length,s=!1,l=e.done,u=e.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(g,y){e.during(y)});for(var v=0;v<i.length;v++){var p=i[v];c&&p.done(c),h&&p.aborted(h),e.force&&p.duration(e.duration),p.start(e.easing)}return i}function z_(r,t,e){for(var a=0;a<e;a++)r[a]=t[a]}function Kq(r){return Ir(r[0])}function Qq(r,t,e){if(Ir(t[e]))if(Ir(r[e])||(r[e]=[]),sa(t[e])){var a=t[e].length;r[e].length!==a&&(r[e]=new t[e].constructor(a),z_(r[e],t[e],a))}else{var n=t[e],i=r[e],o=n.length;if(Kq(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?z_(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else z_(i,n,o);i.length=n.length}else r[e]=t[e]}function Jq(r,t){return r===t||Ir(r)&&Ir(t)&&eX(r,t)}function eX(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++)if(r[a]!==t[a])return!1;return!0}function HI(r,t,e,a,n,i,o,s){for(var l=Ze(a),u=n.duration,c=n.delay,h=n.additive,v=n.setToFinal,p=!Ee(i),g=r.animators,y=[],x=0;x<l.length;x++){var _=l[x],S=a[_];if(S!=null&&e[_]!=null&&(p||i[_]))if(Ee(S)&&!Ir(S)&&!od(S)){if(t){s||(e[_]=S,r.updateDuringAnimation(t));continue}HI(r,_,e[_],S,n,i&&i[_],o,s)}else y.push(_);else s||(e[_]=S,r.updateDuringAnimation(t),y.push(_))}var w=y.length;if(!h&&w)for(var C=0;C<g.length;C++){var D=g[C];if(D.targetName===t){var M=D.stopTracks(y);if(M){var E=He(g,D);g.splice(E,1)}}}if(n.force||(y=lt(y,function(I){return!Jq(a[I],e[I])}),w=y.length),w>0||n.force&&!o.length){var N=void 0,B=void 0,R=void 0;if(s){B={},v&&(N={});for(var C=0;C<w;C++){var _=y[C];B[_]=e[_],v?N[_]=a[_]:e[_]=a[_]}}else if(v){R={};for(var C=0;C<w;C++){var _=y[C];R[_]=uv(e[_]),Qq(e,a,_)}}var D=new fC(e,!1,!1,h?lt(g,function(P){return P.targetName===t}):null);D.targetName=t,n.scope&&(D.scope=n.scope),v&&N&&D.whenWithKeys(0,N,y),R&&D.whenWithKeys(0,R,y),D.whenWithKeys(u??500,s?B:a,y).delay(c||0),r.addAnimator(D,t),o.push(D)}}var Re=(function(r){Q(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===e)return a[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,a){if(e&&e!==this&&e.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=He(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=He(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n<e.length;n++){var i=e[n];a&&i.removeSelfFromZr(a),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(a,o,i)}return this},t.prototype.traverse=function(e,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(a,i);i.isGroup&&!o&&i.traverse(e,a)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var a=new Ve(0,0,0,0),n=e||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Ve.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},t})(vy);Re.prototype.type="group";/*!
  392. * ZRender, a high performance 2d drawing library.
  393. *
  394. * Copyright (c) 2013, Baidu Inc.
  395. * All rights reserved.
  396. *
  397. * LICENSE
  398. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  399. */var Og={},xl={};function tX(r){delete xl[r]}function rX(r){if(!r)return!1;if(typeof r=="string")return Mv(r,1)<h2;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,n=0;n<a;n++)e+=Mv(t[n].color,1);return e/=a,e<h2}return!1}var aX=(function(){function r(t,e,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var i=new dq,o=a.renderer||"canvas";Og[o]||(o=Ze(Og)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Og[o](e,i,a,t),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!qe.node&&!qe.worker&&!l?new qq(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,h=c==null||c==="auto"?qe.touchEventsSupported:!!c,v=44,p;h&&(p=ke(a.pointerSize,v)),this.handler=new bI(i,s,u,s.root,p),this.animation=new Fq({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=rX(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,a=Sc();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Sc();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Re&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,tX(this.id))},r})();function p2(r,t){var e=new aX(aC(),r,t);return xl[e.id]=e,e}function nX(r){r.dispose()}function iX(){for(var r in xl)xl.hasOwnProperty(r)&&xl[r].dispose();xl={}}function oX(r){return xl[r]}function GI(r,t){Og[r]=t}var g2;function UI(r){if(typeof g2=="function")return g2(r)}function YI(r){g2=r}var sX="5.6.1";const lX=Object.freeze(Object.defineProperty({__proto__:null,dispose:nX,disposeAll:iX,getElementSSRData:UI,getInstance:oX,init:p2,registerPainter:GI,registerSSRDataGetter:YI,version:sX},Symbol.toStringTag,{value:"Module"}));var WE=1e-4,WI=20;function uX(r){return r.replace(/^\s+|\s+$/g,"")}function dt(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function xe(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return _e(r)?uX(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Ut(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),WI),r=(+r).toFixed(t),e?r:+r}function Ia(r){return r.sort(function(t,e){return t-e}),r}function En(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return qI(r)}function qI(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function hC(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function cX(r,t,e){if(!r[t])return 0;var a=XI(r,e);return a[t]||0}function XI(r,t){var e=fn(r,function(p,g){return p+(isNaN(g)?0:g)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=he(r,function(p){return(isNaN(p)?0:p)/e*a*100}),i=a*100,o=he(n,function(p){return Math.floor(p)}),s=fn(o,function(p,g){return p+g},0),l=he(n,function(p,g){return p-o[g]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],c=h);++o[c],l[c]=0,++s}return he(o,function(p){return p/a})}function fX(r,t){var e=Math.max(En(r),En(t)),a=r+t;return e>WI?a:Ut(a,e)}var m2=9007199254740991;function vC(r){var t=Math.PI*2;return(r%t+t)%t}function jc(r){return r>-WE&&r<WE}var hX=/^(?:(\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 Pa(r){if(r instanceof Date)return r;if(_e(r)){var t=hX.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function ZI(r){return Math.pow(10,dy(r))}function dy(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function dC(r,t){var e=dy(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Pg(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function y2(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function li(r){var t=parseFloat(r);return t==r&&(t!==0||!_e(r)||r.indexOf("x")<=0)?t:NaN}function pC(r){return!isNaN(li(r))}function $I(){return Math.round(Math.random()*9)}function KI(r,t){return t===0?r:KI(t,r%t)}function qE(r,t){return r==null?t:t==null?r:r*t/KI(r,t)}function pt(r){throw new Error(r)}function XE(r,t,e){return(t-r)*e+r}var QI="series\0",JI="\0_ec_\0";function bt(r){return r instanceof Array?r:r==null?[]:[r]}function Ol(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var ZE=["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 Qc(r){return Ee(r)&&!ce(r)&&!(r instanceof Date)?r.value:r}function vX(r){return Ee(r)&&!(r instanceof Array)}function ek(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Ce();O(t,function(l,u){if(!Ee(l)){t[u]=null;return}});var s=dX(r,o,e);return(a||n)&&pX(s,r,o,t),a&&gX(s,t),a||n?mX(s,t,n):i&&yX(s,t),xX(s),s}function dX(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||Lv(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function pX(r,t,e,a){O(a,function(n,i){if(!(!n||n.id==null)){var o=cv(n.id),s=e.get(o);if(s!=null){var l=r[s];Xr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function gX(r,t){O(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!Lv(e)&&!Lv(i)&&tk("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function mX(r,t,e){O(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Lv(n.existing)||n.existing&&a.id!=null&&!tk("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function yX(r,t){O(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function xX(r){var t=Ce();O(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),O(r,function(e){var a=e.newOption;Xr(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),O(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(Ee(i)){if(o.name=i.name!=null?cv(i.name):n?n.name:QI+a,n)o.id=cv(n.id);else if(i.id!=null)o.id=cv(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function tk(r,t,e){var a=fr(t[r],null),n=fr(e[r],null);return a!=null&&n!=null&&a===n}function cv(r){return fr(r,"")}function fr(r,t){return r==null?t:_e(r)?r:it(r)||Jg(r)?r+"":t}function gC(r){var t=r.name;return!!(t&&t.indexOf(QI))}function Lv(r){return r&&r.id!=null&&cv(r.id).indexOf(JI)===0}function _X(r){return JI+r}function bX(r,t,e){O(r,function(a){var n=a.newOption;Ee(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=SX(t,n,a.existing,e))})}function SX(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function wX(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var h=fr(o[u].seriesId,null);if(h==null)return;for(var v=bt(o[u].dataIndex),p=l&&l[h],g=0,y=v.length;g<y;g++){var x=v[g];p&&p[x]?p[x]=null:(s[h]||(s[h]={}))[x]=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 c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Pl(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ce(t.dataIndex)?he(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ce(t.name)?he(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function rt(){var r="__ec_inner_"+CX++;return function(t){return t[r]||(t[r]={})}}var CX=$I();function fv(r,t,e){var a=mC(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var h=fd(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function mC(r,t){var e;if(_e(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=Ce(),i={},o=!1;return O(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||t&&t.includeMainTypes&&He(t.includeMainTypes,c)<0)){o=o||!!c;var v=n.get(c)||n.set(c,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var nr={useDefault:!0,enableAll:!1,enableNone:!1},AX={useDefault:!1,enableAll:!0,enableNone:!0};function fd(r,t,e,a){a=a||nr;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(Xr(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Xr(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function rk(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function DX(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function TX(r){return r==="auto"?qe.domSupported?"html":"richText":r||"html"}function x2(r,t){var e=Ce(),a=[];return O(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function ak(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(it(a)){var o=XE(e||0,a,n);return Ut(o,i?Math.max(En(e||0),En(a)):t)}else{if(_e(a))return n<1?e:a;for(var s=[],l=e,u=a,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,g=u[h],o=XE(p,g,n);s[h]=Ut(o,i?Math.max(En(p),En(g)):t)}}return s}}var MX=".",Ys="___EC__COMPONENT__CONTAINER___",nk="___EC__EXTENDED_CLASS___";function ti(r){var t={main:"",sub:""};if(r){var e=r.split(MX);t.main=e[0]||"",t.sub=e[1]||""}return t}function EX(r){Xr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function LX(r){return!!(r&&r[nk])}function yC(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return NX(a)?n=(function(i){Q(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(e.$constructor||a).apply(this,arguments)},nC(n,this)),oe(n.prototype,e),n[nk]=!0,n.extend=this.extend,n.superCall=IX,n.superApply=kX,n.superClass=a,n}}function NX(r){return Te(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ik(r,t){r.extend=t.extend}var RX=Math.round(Math.random()*10);function BX(r){var t=["__\0is_clz",RX++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function IX(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function kX(r,t,e){return this.superClass.prototype[t].apply(r,e)}function py(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){EX(n),a.prototype.type=n;var i=ti(n);if(!i.sub)t[i.main]=a;else if(i.sub!==Ys){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[Ys]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ti(a),i=[],o=t[n.main];return o&&o[Ys]?O(o,function(s,l){l!==Ys&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ti(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return O(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ti(a),i=t[n.main];return i&&i[Ys]};function e(a){var n=t[a.main];return(!n||!n[Ys])&&(n=t[a.main]={},n[Ys]=!0),n}}function zl(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&He(n,l)>=0||i&&He(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var OX=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],PX=zl(OX),zX=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return PX(this,t,e)},r})(),_2=new ud(50);function jX(r){if(typeof r=="string"){var t=_2.get(r);return t&&t.image}else return r}function xC(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=_2.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!gy(t)&&i.pending.push(o)):(t=kn.loadImage(r,$E,$E),t.__zrImageSrc=r,_2.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function $E(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],a=e.cb;a&&a(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function gy(r){return r&&r.width&&r.height}var j_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function FX(r,t,e,a,n){var i={};return ok(i,r,t,e,a,n),i.text}function ok(r,t,e,a,n,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
  400. `);i=sk(e,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)lk(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
  401. `),r.isTruncated=s}function sk(r,t,e,a){a=a||{};var n=oe({},a);n.font=t,e=ke(e,"..."),n.maxIterations=ke(a.maxIterations,2);var i=n.minChar=ke(a.minChar,0);n.cnCharWidth=Oa("国",t);var o=n.ascCharWidth=Oa("a",t);n.placeholder=ke(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Oa(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function lk(r,t,e){var a=e.containerWidth,n=e.font,i=e.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Oa(t,n);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?VX(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=Oa(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function VX(r,t,e,a){for(var n=0,i=0,o=r.length;i<o&&n<t;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?e:a}return i}function HX(r,t){r!=null&&(r+="");var e=t.overflow,a=t.padding,n=t.font,i=e==="truncate",o=hy(n),s=ke(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,h=t.width,v;h!=null&&(e==="break"||e==="breakAll")?v=r?uk(r,t.font,h,e==="breakAll",0).lines:[]:v=r?r.split(`
  402. `):[];var p=v.length*s,g=ke(t.height,p);if(p>g&&u){var y=Math.floor(g/s);c=c||v.length>y,v=v.slice(0,y)}if(r&&i&&h!=null)for(var x=sk(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},S=0;S<v.length;S++)lk(_,v[S],x),v[S]=_.textLine,c=c||_.isTruncated;for(var w=g,C=0,S=0;S<v.length;S++)C=Math.max(Oa(v[S],n),C);h==null&&(h=C);var D=C;return a&&(w+=a[0]+a[2],D+=a[1]+a[3],h+=a[1]+a[3]),l&&(D=h),{lines:v,height:g,outerWidth:D,outerHeight:w,lineHeight:s,calculatedLineHeight:o,contentWidth:C,contentHeight:p,width:h,isTruncated:c}}var GX=(function(){function r(){}return r})(),KE=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),UX=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function YX(r,t){var e=new UX;if(r!=null&&(r+=""),!r)return e;for(var a=t.width,n=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=j_.lastIndex=0,l;(l=j_.exec(r))!=null;){var u=l.index;u>s&&F_(e,r.substring(s,u),t,o),F_(e,l[2],t,o,l[1]),s=j_.lastIndex}s<r.length&&F_(e,r.substring(s,r.length),t,o);var c=[],h=0,v=0,p=t.padding,g=i==="truncate",y=t.lineOverflow==="truncate",x={};function _(te,j,U){te.width=j,te.lineHeight=U,h+=U,v=Math.max(v,j)}e:for(var S=0;S<e.lines.length;S++){for(var w=e.lines[S],C=0,D=0,M=0;M<w.tokens.length;M++){var E=w.tokens[M],N=E.styleName&&t.rich[E.styleName]||{},B=E.textPadding=N.padding,R=B?B[1]+B[3]:0,I=E.font=N.font||t.font;E.contentHeight=hy(I);var P=ke(N.height,E.contentHeight);if(E.innerHeight=P,B&&(P+=B[0]+B[2]),E.height=P,E.lineHeight=Nn(N.lineHeight,t.lineHeight,P),E.align=N&&N.align||t.align,E.verticalAlign=N&&N.verticalAlign||"middle",y&&n!=null&&h+E.lineHeight>n){var z=e.lines.length;M>0?(w.tokens=w.tokens.slice(0,M),_(w,D,C),e.lines=e.lines.slice(0,S+1)):e.lines=e.lines.slice(0,S),e.isTruncated=e.isTruncated||e.lines.length<z;break e}var V=N.width,G=V==null||V==="auto";if(typeof V=="string"&&V.charAt(V.length-1)==="%")E.percentWidth=V,c.push(E),E.contentWidth=Oa(E.text,I);else{if(G){var F=N.backgroundColor,Y=F&&F.image;Y&&(Y=jX(Y),gy(Y)&&(E.width=Math.max(E.width,Y.width*P/Y.height)))}var W=g&&a!=null?a-D:null;W!=null&&W<E.width?!G||W<R?(E.text="",E.width=E.contentWidth=0):(ok(x,E.text,W-R,I,t.ellipsis,{minChar:t.truncateMinChar}),E.text=x.text,e.isTruncated=e.isTruncated||x.isTruncated,E.width=E.contentWidth=Oa(E.text,I)):E.contentWidth=Oa(E.text,I)}E.width+=R,D+=E.width,N&&(C=Math.max(C,E.lineHeight))}_(w,D,C)}e.outerWidth=e.width=ke(a,v),e.outerHeight=e.height=ke(n,h),e.contentHeight=h,e.contentWidth=v,p&&(e.outerWidth+=p[1]+p[3],e.outerHeight+=p[0]+p[2]);for(var S=0;S<c.length;S++){var E=c[S],X=E.percentWidth;E.width=parseInt(X,10)/100*e.width}return e}function F_(r,t,e,a,n){var i=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,c,h;if(a){var v=o.padding,p=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var g=Pn(o.width,a.width)+p;s.length>0&&g+a.accumWidth>a.width&&(c=t.split(`
  403. `),u=!0),a.accumWidth=g}else{var y=uk(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=y.accumWidth+p,h=y.linesWidths,c=y.lines}}else c=t.split(`
  404. `);for(var x=0;x<c.length;x++){var _=c[x],S=new GX;if(S.styleName=n,S.text=_,S.isLineHolder=!_&&!i,typeof o.width=="number"?S.width=o.width:S.width=h?h[x]:Oa(_,l),!x&&!u){var w=(s[s.length-1]||(s[0]=new KE)).tokens,C=w.length;C===1&&w[0].isLineHolder?w[0]=S:(_||!C||i)&&w.push(S)}else s.push(new KE([S]))}}function WX(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qX=fn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function XX(r){return WX(r)?!!qX[r]:!0}function uk(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
  405. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=Oa(v,t),g=a?!1:!XX(v);if(i.length?c+p>e:n+c+p>e){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=v,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=v,c=p)):g?(i.push(l),o.push(u),l=v,u=p):(i.push(v),o.push(p));continue}c+=p,g?(l+=v,u+=p):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}var b2="__zr_style_"+Math.round(Math.random()*10),El={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},my={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};El[b2]=!0;var QE=["z","z2","invisible"],ZX=["invisible"],hn=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=Ze(e),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&$X(this,e,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){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(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Ve(0,0,0,0)),a?Ve.applyTransform(e,n,a):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Ve(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:oe(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Yh,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Yh)},t.prototype.styleUpdated=function(){this.__dirty&=~Yh},t.prototype.createStyle=function(e){return sd(El,e)},t.prototype.useStyle=function(e){e[b2]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[b2]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,a,QE)},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=Ze(c),v=0;v<h.length;v++){var p=h[v];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var g=Ze(u),v=0;v<g.length;v++){var p=g[v];this.style[p]=this.style[p]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?ZX:QE,v=0;v<y.length;v++){var p=y[v];a&&a[p]!=null?this[p]=a[p]:l&&n[p]!=null&&(this[p]=n[p])}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},t.prototype._mergeStyle=function(e,a){return oe(e,a),e},t.prototype.getAnimationStyleProps=function(){return my},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Ra|Yh})(),t})(vy),V_=new Ve(0,0,0,0),H_=new Ve(0,0,0,0);function $X(r,t,e){return V_.copy(r.getBoundingRect()),r.transform&&V_.applyTransform(r.transform),H_.width=t,H_.height=e,!V_.intersect(H_)}var xa=Math.min,_a=Math.max,G_=Math.sin,U_=Math.cos,Ws=Math.PI*2,tp=vs(),rp=vs(),ap=vs();function yy(r,t,e){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=xa(n,a[0]),i=_a(i,a[0]),o=xa(o,a[1]),s=_a(s,a[1]);t[0]=n,t[1]=o,e[0]=i,e[1]=s}}function JE(r,t,e,a,n,i){n[0]=xa(r,e),n[1]=xa(t,a),i[0]=_a(r,e),i[1]=_a(t,a)}var e3=[],t3=[];function KX(r,t,e,a,n,i,o,s,l,u){var c=DI,h=pr,v=c(r,e,n,o,e3);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<v;p++){var g=h(r,e,n,o,e3[p]);l[0]=xa(g,l[0]),u[0]=_a(g,u[0])}v=c(t,a,i,s,t3);for(var p=0;p<v;p++){var y=h(t,a,i,s,t3[p]);l[1]=xa(y,l[1]),u[1]=_a(y,u[1])}l[0]=xa(r,l[0]),u[0]=_a(r,u[0]),l[0]=xa(o,l[0]),u[0]=_a(o,u[0]),l[1]=xa(t,l[1]),u[1]=_a(t,u[1]),l[1]=xa(s,l[1]),u[1]=_a(s,u[1])}function QX(r,t,e,a,n,i,o,s){var l=MI,u=Cr,c=_a(xa(l(r,e,n),1),0),h=_a(xa(l(t,a,i),1),0),v=u(r,e,n,c),p=u(t,a,i,h);o[0]=xa(r,n,v),o[1]=xa(t,i,p),s[0]=_a(r,n,v),s[1]=_a(t,i,p)}function JX(r,t,e,a,n,i,o,s,l){var u=Gi,c=Ui,h=Math.abs(n-i);if(h%Ws<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(tp[0]=U_(n)*e+r,tp[1]=G_(n)*a+t,rp[0]=U_(i)*e+r,rp[1]=G_(i)*a+t,u(s,tp,rp),c(l,tp,rp),n=n%Ws,n<0&&(n=n+Ws),i=i%Ws,i<0&&(i=i+Ws),n>i&&!o?i+=Ws:n<i&&o&&(n+=Ws),o){var v=i;i=n,n=v}for(var p=0;p<i;p+=Math.PI/2)p>n&&(ap[0]=U_(p)*e+r,ap[1]=G_(p)*a+t,u(s,ap,s),c(l,ap,l))}var Ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qs=[],Xs=[],Yn=[],Bo=[],Wn=[],qn=[],Y_=Math.min,W_=Math.max,Zs=Math.cos,$s=Math.sin,Ii=Math.abs,S2=Math.PI,Vo=S2*2,q_=typeof Float32Array<"u",yh=[];function X_(r){var t=Math.round(r/S2*1e8)/1e8;return t%2*S2}function _C(r,t){var e=X_(r[0]);e<0&&(e+=Vo);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=Vo?n=e+Vo:t&&e-n>=Vo?n=e-Vo:!t&&e>n?n=e+(Vo-X_(e-n)):t&&e<n&&(n=e-(Vo-X_(n-e))),r[0]=e,r[1]=n}var ui=(function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,a){a=a||0,a>0&&(this._ux=Ii(a/lm/t)||0,this._uy=Ii(a/lm/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ct.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Ii(t-this._xi),n=Ii(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Ct.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Ct.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Ct.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),yh[0]=n,yh[1]=i,_C(yh,o),n=yh[0],i=yh[1];var s=i-n;return this.addData(Ct.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=Zs(i)*a+t,this._yi=$s(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Ct.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ct.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&q_&&(this.data=new Float32Array(e));for(var a=0;a<e;a++)this.data[a]=t[a];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,a=0,n=this._len,i=0;i<e;i++)a+=t[i].len();q_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,a,n,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,q_&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Yn[0]=Yn[1]=Wn[0]=Wn[1]=Number.MAX_VALUE,Bo[0]=Bo[1]=qn[0]=qn[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],a=t[o+1],n=e,i=a),s){case Ct.M:e=n=t[o++],a=i=t[o++],Wn[0]=n,Wn[1]=i,qn[0]=n,qn[1]=i;break;case Ct.L:JE(e,a,t[o],t[o+1],Wn,qn),e=t[o++],a=t[o++];break;case Ct.C:KX(e,a,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Wn,qn),e=t[o++],a=t[o++];break;case Ct.Q:QX(e,a,t[o++],t[o++],t[o],t[o+1],Wn,qn),e=t[o++],a=t[o++];break;case Ct.A:var u=t[o++],c=t[o++],h=t[o++],v=t[o++],p=t[o++],g=t[o++]+p;o+=1;var y=!t[o++];l&&(n=Zs(p)*h+u,i=$s(p)*v+c),JX(u,c,h,v,p,g,y,Wn,qn),e=Zs(g)*h+u,a=$s(g)*v+c;break;case Ct.R:n=e=t[o++],i=a=t[o++];var x=t[o++],_=t[o++];JE(n,i,n+x,i+_,Wn,qn);break;case Ct.Z:e=n,a=i;break}Gi(Yn,Yn,Wn),Ui(Bo,Bo,qn)}return o===0&&(Yn[0]=Yn[1]=Bo[0]=Bo[1]=0),new Ve(Yn[0],Yn[1],Bo[0]-Yn[0],Bo[1]-Yn[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,v=0;v<e;){var p=t[v++],g=v===1;g&&(i=t[v],o=t[v+1],s=i,l=o);var y=-1;switch(p){case Ct.M:i=s=t[v++],o=l=t[v++];break;case Ct.L:{var x=t[v++],_=t[v++],S=x-i,w=_-o;(Ii(S)>a||Ii(w)>n||v===e-1)&&(y=Math.sqrt(S*S+w*w),i=x,o=_);break}case Ct.C:{var C=t[v++],D=t[v++],x=t[v++],_=t[v++],M=t[v++],E=t[v++];y=pq(i,o,C,D,x,_,M,E,10),i=M,o=E;break}case Ct.Q:{var C=t[v++],D=t[v++],x=t[v++],_=t[v++];y=mq(i,o,C,D,x,_,10),i=x,o=_;break}case Ct.A:var N=t[v++],B=t[v++],R=t[v++],I=t[v++],P=t[v++],z=t[v++],V=z+P;v+=1,g&&(s=Zs(P)*R+N,l=$s(P)*I+B),y=W_(R,I)*Y_(Vo,Math.abs(z)),i=Zs(V)*R+N,o=$s(V)*I+B;break;case Ct.R:{s=i=t[v++],l=o=t[v++];var G=t[v++],F=t[v++];y=G*2+F*2;break}case Ct.Z:{var S=s-i,w=l-o;y=Math.sqrt(S*S+w*w),i=s,o=l;break}}y>=0&&(u[h++]=y,c+=y)}return this._pathLen=c,c},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,c,h,v,p=e<1,g,y,x=0,_=0,S,w=0,C,D;if(!(p&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,y=this._pathLen,S=e*y,!S)))e:for(var M=0;M<o;){var E=a[M++],N=M===1;switch(N&&(u=a[M],c=a[M+1],s=u,l=c),E!==Ct.L&&w>0&&(t.lineTo(C,D),w=0),E){case Ct.M:s=u=a[M++],l=c=a[M++],t.moveTo(u,c);break;case Ct.L:{h=a[M++],v=a[M++];var B=Ii(h-u),R=Ii(v-c);if(B>n||R>i){if(p){var I=g[_++];if(x+I>S){var P=(S-x)/I;t.lineTo(u*(1-P)+h*P,c*(1-P)+v*P);break e}x+=I}t.lineTo(h,v),u=h,c=v,w=0}else{var z=B*B+R*R;z>w&&(C=h,D=v,w=z)}break}case Ct.C:{var V=a[M++],G=a[M++],F=a[M++],Y=a[M++],W=a[M++],X=a[M++];if(p){var I=g[_++];if(x+I>S){var P=(S-x)/I;ss(u,V,F,W,P,qs),ss(c,G,Y,X,P,Xs),t.bezierCurveTo(qs[1],Xs[1],qs[2],Xs[2],qs[3],Xs[3]);break e}x+=I}t.bezierCurveTo(V,G,F,Y,W,X),u=W,c=X;break}case Ct.Q:{var V=a[M++],G=a[M++],F=a[M++],Y=a[M++];if(p){var I=g[_++];if(x+I>S){var P=(S-x)/I;Av(u,V,F,P,qs),Av(c,G,Y,P,Xs),t.quadraticCurveTo(qs[1],Xs[1],qs[2],Xs[2]);break e}x+=I}t.quadraticCurveTo(V,G,F,Y),u=F,c=Y;break}case Ct.A:var te=a[M++],j=a[M++],U=a[M++],Z=a[M++],$=a[M++],fe=a[M++],ye=a[M++],ee=!a[M++],se=U>Z?U:Z,ue=Ii(U-Z)>.001,we=$+fe,ve=!1;if(p){var I=g[_++];x+I>S&&(we=$+fe*(S-x)/I,ve=!0),x+=I}if(ue&&t.ellipse?t.ellipse(te,j,U,Z,ye,$,we,ee):t.arc(te,j,se,$,we,ee),ve)break e;N&&(s=Zs($)*U+te,l=$s($)*Z+j),u=Zs(we)*U+te,c=$s(we)*Z+j;break;case Ct.R:s=u=a[M],l=c=a[M+1],h=a[M++],v=a[M++];var Ae=a[M++],Ue=a[M++];if(p){var I=g[_++];if(x+I>S){var De=S-x;t.moveTo(h,v),t.lineTo(h+Y_(De,Ae),v),De-=Ae,De>0&&t.lineTo(h+Ae,v+Y_(De,Ue)),De-=Ue,De>0&&t.lineTo(h+W_(Ae-De,0),v+Ue),De-=Ae,De>0&&t.lineTo(h,v+W_(Ue-De,0));break e}x+=I}t.rect(h,v,Ae,Ue);break;case Ct.Z:if(p){var I=g[_++];if(x+I>S){var P=(S-x)/I;t.lineTo(u*(1-P)+s*P,c*(1-P)+l*P);break e}x+=I}t.closePath(),u=s,c=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Ct,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Go(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}function eZ(r,t,e,a,n,i,o,s,l,u,c){if(l===0)return!1;var h=l;if(c>t+h&&c>a+h&&c>i+h&&c>s+h||c<t-h&&c<a-h&&c<i-h&&c<s-h||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return!1;var v=TI(r,t,e,a,n,i,o,s,u,c,null);return v<=h/2}function ck(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>a+u&&l>i+u||l<t-u&&l<a-u&&l<i-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var c=EI(r,t,e,a,n,i,s,l,null);return c<=u/2}var r3=Math.PI*2;function ka(r){return r%=r3,r<0&&(r+=r3),r}var xh=Math.PI*2;function tZ(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>e||c+u<e)return!1;if(Math.abs(a-n)%xh<1e-4)return!0;if(i){var h=a;a=ka(n),n=ka(h)}else a=ka(a),n=ka(n);a>n&&(n+=xh);var v=Math.atan2(l,s);return v<0&&(v+=xh),v>=a&&v<=n||v+xh>=a&&v+xh<=n}function Vi(r,t,e,a,n,i){if(i>t&&i>a||i<t&&i<a||a===t)return 0;var o=(i-t)/(a-t),s=a<t?1:-1;(o===1||o===0)&&(s=a<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var Io=ui.CMD,Ks=Math.PI*2,rZ=1e-4;function aZ(r,t){return Math.abs(r-t)<rZ}var ra=[-1,-1,-1],an=[-1,-1];function nZ(){var r=an[0];an[0]=an[1],an[1]=r}function iZ(r,t,e,a,n,i,o,s,l,u){if(u>t&&u>a&&u>i&&u>s||u<t&&u<a&&u<i&&u<s)return 0;var c=nm(t,a,i,s,u,ra);if(c===0)return 0;for(var h=0,v=-1,p=void 0,g=void 0,y=0;y<c;y++){var x=ra[y],_=x===0||x===1?.5:1,S=pr(r,e,n,o,x);S<l||(v<0&&(v=DI(t,a,i,s,an),an[1]<an[0]&&v>1&&nZ(),p=pr(t,a,i,s,an[0]),v>1&&(g=pr(t,a,i,s,an[1]))),v===2?x<an[0]?h+=p<t?_:-_:x<an[1]?h+=g<p?_:-_:h+=s<g?_:-_:x<an[0]?h+=p<t?_:-_:h+=s<p?_:-_)}return h}function oZ(r,t,e,a,n,i,o,s){if(s>t&&s>a&&s>i||s<t&&s<a&&s<i)return 0;var l=gq(t,a,i,s,ra);if(l===0)return 0;var u=MI(t,a,i);if(u>=0&&u<=1){for(var c=0,h=Cr(t,a,i,u),v=0;v<l;v++){var p=ra[v]===0||ra[v]===1?.5:1,g=Cr(r,e,n,ra[v]);g<o||(ra[v]<u?c+=h<t?p:-p:c+=i<h?p:-p)}return c}else{var p=ra[0]===0||ra[0]===1?.5:1,g=Cr(r,e,n,ra[0]);return g<o?0:i<t?p:-p}}function sZ(r,t,e,a,n,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ra[0]=-l,ra[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Ks-1e-4){a=0,n=Ks;var c=i?1:-1;return o>=ra[0]+r&&o<=ra[1]+r?c:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Ks,n+=Ks);for(var v=0,p=0;p<2;p++){var g=ra[p];if(g+r>o){var y=Math.atan2(s,g),c=i?1:-1;y<0&&(y=Ks+y),(y>=a&&y<=n||y+Ks>=a&&y+Ks<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(c=-c),v+=c)}}return v}function fk(r,t,e,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,h=0,v,p,g=0;g<o;){var y=i[g++],x=g===1;switch(y===Io.M&&g>1&&(e||(s+=Vi(l,u,c,h,a,n))),x&&(l=i[g],u=i[g+1],c=l,h=u),y){case Io.M:c=i[g++],h=i[g++],l=c,u=h;break;case Io.L:if(e){if(Go(l,u,i[g],i[g+1],t,a,n))return!0}else s+=Vi(l,u,i[g],i[g+1],a,n)||0;l=i[g++],u=i[g++];break;case Io.C:if(e){if(eZ(l,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],t,a,n))return!0}else s+=iZ(l,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],a,n)||0;l=i[g++],u=i[g++];break;case Io.Q:if(e){if(ck(l,u,i[g++],i[g++],i[g],i[g+1],t,a,n))return!0}else s+=oZ(l,u,i[g++],i[g++],i[g],i[g+1],a,n)||0;l=i[g++],u=i[g++];break;case Io.A:var _=i[g++],S=i[g++],w=i[g++],C=i[g++],D=i[g++],M=i[g++];g+=1;var E=!!(1-i[g++]);v=Math.cos(D)*w+_,p=Math.sin(D)*C+S,x?(c=v,h=p):s+=Vi(l,u,v,p,a,n);var N=(a-_)*C/w+_;if(e){if(tZ(_,S,C,D,D+M,E,t,N,n))return!0}else s+=sZ(_,S,C,D,D+M,E,N,n);l=Math.cos(D+M)*w+_,u=Math.sin(D+M)*C+S;break;case Io.R:c=l=i[g++],h=u=i[g++];var B=i[g++],R=i[g++];if(v=c+B,p=h+R,e){if(Go(c,h,v,h,t,a,n)||Go(v,h,v,p,t,a,n)||Go(v,p,c,p,t,a,n)||Go(c,p,c,h,t,a,n))return!0}else s+=Vi(v,h,v,p,a,n),s+=Vi(c,p,c,h,a,n);break;case Io.Z:if(e){if(Go(l,u,c,h,t,a,n))return!0}else s+=Vi(l,u,c,h,a,n);l=c,u=h;break}}return!e&&!aZ(u,h)&&(s+=Vi(l,u,c,h,a,n)||0),s!==0}function lZ(r,t,e){return fk(r,0,!1,t,e)}function uZ(r,t,e,a){return fk(r,t,!0,e,a)}var cm=Me({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},El),cZ={style:Me({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},my.style)},Z_=si.concat(["invisible","culling","z","z2","zlevel","parent"]),Xe=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<Z_.length;++s)n[Z_[s]]=this[Z_[s]];n.__dirty|=Ra}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=Ze(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=e[o];o==="style"?this.style?oe(this.style,s):this.useStyle(s):o==="shape"?oe(this.shape,s):r.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 e=this.style.fill;if(e!=="none"){if(_e(e)){var a=Mv(e,0);return a>.5?v2:a>.2?Xq:d2}else if(e)return d2}return v2},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(_e(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Mv(e,0)<h2;if(i===o)return a}},t.prototype.buildPath=function(e,a,n){},t.prototype.pathUpdated=function(){this.__dirty&=~gc},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ui(!1)},t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return!(a==null||a==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&gc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){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)),uZ(s,l/u,e,a)))return!0}if(this.hasFill())return lZ(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=gc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:oe(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&gc)},t.prototype.createStyle=function(e){return sd(cm,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=oe({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=oe({},n.shape),oe(u,a.shape)):(u=oe({},i?this.shape:n.shape),oe(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=oe({},this.shape);for(var c={},h=Ze(u),v=0;v<h.length;v++){var p=h[v];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(e,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},t.prototype.getAnimationStyleProps=function(){return cZ},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var a=(function(i){Q(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Le(e.style)},o.prototype.getDefaultShape=function(){return Le(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(a.prototype[n]=e[n]);return a},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Ra|Yh|gc})(),t})(hn),fZ=Me({strokeFirst:!0,font:os,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},cm),Fc=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return a!=null&&a!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return sd(fZ,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var a=e.text;a!=null?a+="":a="";var n=cd(a,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(hn);Fc.prototype.type="tspan";var hZ=Me({x:0,y:0},El),vZ={style:Me({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},my.style)};function dZ(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var br=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return sd(hZ,e)},t.prototype._getSize=function(e){var a=this.style,n=a[e];if(n!=null)return n;var i=dZ(a.image)?a.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return vZ},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Ve(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(hn);br.prototype.type="image";function pZ(r,t){var e=t.x,a=t.y,n=t.width,i=t.height,o=t.r,s,l,u,c;n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+c>n&&(h=u+c,u*=n/h,c*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+c>i&&(h=s+c,s*=i/h,c*=i/h),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+c,a+i),c!==0&&r.arc(e+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var wc=Math.round;function hk(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(wc(a*2)===wc(n*2)&&(r.x1=r.x2=_l(a,s,!0)),wc(i*2)===wc(o*2)&&(r.y1=r.y2=_l(i,s,!0))),r}}function vk(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=_l(a,s,!0),r.y=_l(n,s,!0),r.width=Math.max(_l(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(_l(n+o,s,!1)-r.y,o===0?0:1)),r}}function _l(r,t,e){if(!t)return r;var a=wc(r*2);return(a+wc(t))%2===0?a/2:(a+(e?1:-1))/2}var gZ=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),mZ={},Je=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new gZ},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=vk(mZ,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?pZ(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Xe);Je.prototype.type="rect";var a3={fill:"#000"},n3=2,yZ={style:Me({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},my.style)},Qe=(function(r){Q(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=a3,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var a=this._children[e];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var a=this.innerTransformable;return a?a.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,bZ(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Ve(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||a3},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,a){if(!a)return e;var n=a.rich,i=e.rich||n&&{};return oe(e,a),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,a){for(var n=Ze(a),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},oe(e[o],a[o])}},t.prototype.getAnimationStyleProps=function(){return yZ},t.prototype._getOrCreateChild=function(e){var a=this._children[this._childCursor];return(!a||!(a instanceof e))&&(a=new e),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var e=this.style,a=e.font||os,n=e.padding,i=f3(e),o=HX(i,e),s=$_(e),l=!!e.backgroundColor,u=o.outerHeight,c=o.outerWidth,h=o.contentWidth,v=o.lines,p=o.lineHeight,g=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=e.x||0,x=e.y||0,_=e.align||g.align||"left",S=e.verticalAlign||g.verticalAlign||"top",w=y,C=mc(x,o.contentHeight,S);if(s||n){var D=qh(y,c,_),M=mc(x,u,S);s&&this._renderBackground(e,e,D,M,c,u)}C+=p/2,n&&(w=c3(y,_,n),S==="top"?C+=n[0]:S==="bottom"&&(C-=n[2]));for(var E=0,N=!1,B=u3("fill"in e?e.fill:(N=!0,g.fill)),R=l3("stroke"in e?e.stroke:!l&&(!g.autoStroke||N)?(E=n3,g.stroke):null),I=e.textShadowBlur>0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),z=o.calculatedLineHeight,V=0;V<v.length;V++){var G=this._getOrCreateChild(Fc),F=G.createStyle();G.useStyle(F),F.text=v[V],F.x=w,F.y=C,F.textAlign=_,F.textBaseline="middle",F.opacity=e.opacity,F.strokeFirst=!0,I&&(F.shadowBlur=e.textShadowBlur||0,F.shadowColor=e.textShadowColor||"transparent",F.shadowOffsetX=e.textShadowOffsetX||0,F.shadowOffsetY=e.textShadowOffsetY||0),F.stroke=R,F.fill=B,R&&(F.lineWidth=e.lineWidth||E,F.lineDash=e.lineDash,F.lineDashOffset=e.lineDashOffset||0),F.font=a,o3(F,e),C+=p,P&&G.setBoundingRect(new Ve(qh(F.x,h,F.textAlign),mc(F.y,z,F.textBaseline),h,z))}},t.prototype._updateRichTexts=function(){var e=this.style,a=f3(e),n=YX(a,e),i=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,h=this._defaultStyle,v=e.align||h.align,p=e.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var g=qh(u,o,v),y=mc(c,s,p),x=g,_=y;l&&(x+=l[3],_+=l[0]);var S=x+i;$_(e)&&this._renderBackground(e,e,g,y,o,s);for(var w=!!e.backgroundColor,C=0;C<n.lines.length;C++){for(var D=n.lines[C],M=D.tokens,E=M.length,N=D.lineHeight,B=D.width,R=0,I=x,P=S,z=E-1,V=void 0;R<E&&(V=M[R],!V.align||V.align==="left");)this._placeToken(V,e,N,_,I,"left",w),B-=V.width,I+=V.width,R++;for(;z>=0&&(V=M[z],V.align==="right");)this._placeToken(V,e,N,_,P,"right",w),B-=V.width,P-=V.width,z--;for(I+=(i-(I-x)-(S-P)-B)/2;R<=z;)V=M[R],this._placeToken(V,e,N,_,I+V.width/2,"center",w),I+=V.width,R++;_+=N}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var c=e.verticalAlign,h=i+n/2;c==="top"?h=i+e.height/2:c==="bottom"&&(h=i+n-e.height/2);var v=!e.isLineHolder&&$_(u);v&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var p=!!u.backgroundColor,g=e.textPadding;g&&(o=c3(o,s,g),h-=e.height/2-g[0]-e.innerHeight/2);var y=this._getOrCreateChild(Fc),x=y.createStyle();y.useStyle(x);var _=this._defaultStyle,S=!1,w=0,C=u3("fill"in u?u.fill:"fill"in a?a.fill:(S=!0,_.fill)),D=l3("stroke"in u?u.stroke:"stroke"in a?a.stroke:!p&&!l&&(!_.autoStroke||S)?(w=n3,_.stroke):null),M=u.textShadowBlur>0||a.textShadowBlur>0;x.text=e.text,x.x=o,x.y=h,M&&(x.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,x.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",x.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,x.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),x.textAlign=s,x.textBaseline="middle",x.font=e.font||os,x.opacity=Nn(u.opacity,a.opacity,1),o3(x,u),D&&(x.lineWidth=Nn(u.lineWidth,a.lineWidth,w),x.lineDash=ke(u.lineDash,a.lineDash),x.lineDashOffset=a.lineDashOffset||0,x.stroke=D),C&&(x.fill=C);var E=e.contentWidth,N=e.contentHeight;y.setBoundingRect(new Ve(qh(x.x,E,x.textAlign),mc(x.y,N,x.textBaseline),E,N))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,h=l&&l.image,v=l&&!h,p=e.borderRadius,g=this,y,x;if(v||e.lineHeight||u&&c){y=this._getOrCreateChild(Je),y.useStyle(y.createStyle()),y.style.fill=null;var _=y.shape;_.x=n,_.y=i,_.width=o,_.height=s,_.r=p,y.dirtyShape()}if(v){var S=y.style;S.fill=l||null,S.fillOpacity=ke(e.fillOpacity,1)}else if(h){x=this._getOrCreateChild(br),x.onload=function(){g.dirtyStyle()};var w=x.style;w.image=l.image,w.x=n,w.y=i,w.width=o,w.height=s}if(u&&c){var S=y.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=ke(e.strokeOpacity,1),S.lineDash=e.borderDash,S.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var C=(y||x).style;C.shadowBlur=e.shadowBlur||0,C.shadowColor=e.shadowColor||"transparent",C.shadowOffsetX=e.shadowOffsetX||0,C.shadowOffsetY=e.shadowOffsetY||0,C.opacity=Nn(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return pk(e)&&(a=[e.fontStyle,e.fontWeight,dk(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&un(a)||e.textFont||e.font},t})(hn),xZ={left:!0,right:1,center:1},_Z={top:1,bottom:1,middle:1},i3=["fontStyle","fontWeight","fontSize","fontFamily"];function dk(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?eC+"px":r+"px"}function o3(r,t){for(var e=0;e<i3.length;e++){var a=i3[e],n=t[a];n!=null&&(r[a]=n)}}function pk(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function bZ(r){return s3(r),O(r.rich,s3),r}function s3(r){if(r){r.font=Qe.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||xZ[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||_Z[e]?e:"top";var a=r.padding;a&&(r.padding=ly(r.padding))}}function l3(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function u3(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function c3(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function f3(r){var t=r.text;return t!=null&&(t+=""),t}function $_(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Be=rt(),w2=function(r,t,e,a){if(a){var n=Be(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=Be(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},h3=1,v3={},gk=rt(),bC=rt(),SC=0,hd=1,xy=2,la=["emphasis","blur","select"],Nv=["normal","emphasis","blur","select"],Jc=10,SZ=9,Ll="highlight",zg="downplay",hv="select",jg="unselect",vv="toggleSelect";function Ku(r){return r!=null&&r!=="none"}function _y(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function mk(r){_y(r,"emphasis",xy)}function yk(r){r.hoverState===xy&&_y(r,"normal",SC)}function wC(r){_y(r,"blur",hd)}function xk(r){r.hoverState===hd&&_y(r,"normal",SC)}function wZ(r){r.selected=!0}function CZ(r){r.selected=!1}function d3(r,t,e){t(r,e)}function io(r,t,e){d3(r,t,e),r.isGroup&&r.traverse(function(a){d3(a,t,e)})}function fm(r,t){switch(t){case"emphasis":r.hoverState=xy;break;case"normal":r.hoverState=SC;break;case"blur":r.hoverState=hd;break;case"select":r.selected=!0}}function AZ(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function DZ(r,t,e,a){var n=e&&He(e,"select")>=0,i=!1;if(r instanceof Xe){var o=gk(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ku(s)||Ku(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=oe({},a),u=oe({},u),u.fill=s):!Ku(u.fill)&&Ku(s)?(i=!0,a=oe({},a),u=oe({},u),u.fill=om(s)):!Ku(u.stroke)&&Ku(l)&&(i||(a=oe({},a),u=oe({},u)),u.stroke=om(l)),a.style=u}}if(a&&a.z2==null){i||(a=oe({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??Jc)}return a}function TZ(r,t,e){if(e&&e.z2==null){e=oe({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??SZ)}return e}function MZ(r,t,e){var a=He(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:AZ(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=oe({},e),o=oe({opacity:a?n:i.opacity*.1},o),e.style=o),e}function K_(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return DZ(this,r,t,e);if(r==="blur")return MZ(this,r,e);if(r==="select")return TZ(this,r,e)}return e}function jl(r){r.stateProxy=K_;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=K_),e&&(e.stateProxy=K_)}function p3(r,t){!wk(r,t)&&!r.__highByOuter&&io(r,mk)}function g3(r,t){!wk(r,t)&&!r.__highByOuter&&io(r,yk)}function Qi(r,t){r.__highByOuter|=1<<(t||0),io(r,mk)}function Ji(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&io(r,yk)}function _k(r){io(r,wC)}function CC(r){io(r,xk)}function bk(r){io(r,wZ)}function Sk(r){io(r,CZ)}function wk(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Ck(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=bC(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){xk(u)}),s&&e.push(i)),o.isBlured=!1}),O(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function C2(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var h=0;h<c.length;h++){var v=u.getItemGraphicEl(c[h]);v&&CC(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!v||t==="series"&&c)){var p=a.getViewOfSeriesModel(u);if(p.group.traverse(function(x){x.__highByOuter&&c&&t==="self"||wC(x)}),Ir(t))i(u.getData(),t);else if(Ee(t))for(var g=Ze(t),y=0;y<g.length;y++)i(u.getData(g[y]),t[g[y]]);l.push(u),bC(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var h=a.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function A2(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){bC(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){wC(i)})}}}function EZ(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=Pl(n,t);i=(ce(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=Be(o);C2(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);c!=null&&C2(a,c,h,e)}}}function AC(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Be(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function LZ(r,t,e){var a=Be(r),n=AC(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&A2(a.componentMainType,a.componentIndex,e),O(i,function(s){return p3(s,t)})):(C2(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&A2(a.componentMainType,a.componentIndex,e),p3(r,t))}function NZ(r,t,e){Ck(e);var a=Be(r),n=AC(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?O(n,function(i){return g3(i,t)}):g3(r,t)}function RZ(r,t,e){if(T2(t)){var a=t.dataType,n=r.getData(a),i=Pl(n,t);ce(i)||(i=[i]),r[t.type===vv?"toggleSelect":t.type===hv?"select":"unselect"](i,a)}}function m3(r){var t=r.getAllData();O(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?bk(i):Sk(i)})})}function BZ(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();O(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function ts(r,t,e){bl(r,!0),io(r,jl),D2(r,t,e)}function IZ(r){bl(r,!1)}function Vt(r,t,e,a){a?IZ(r):ts(r,t,e)}function D2(r,t,e){var a=Be(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var y3=["emphasis","blur","select"],kZ={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function kr(r,t,e,a){e=e||"itemStyle";for(var n=0;n<y3.length;n++){var i=y3[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[kZ[e]]()}}function bl(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Rv(r){return!!(r&&r.__highDownDispatcher)}function OZ(r,t,e){var a=Be(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function PZ(r){var t=v3[r];return t==null&&h3<=32&&(t=v3[r]=h3++),t}function T2(r){var t=r.type;return t===hv||t===jg||t===vv}function x3(r){var t=r.type;return t===Ll||t===zg}function zZ(r){var t=gk(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Qu=ui.CMD,jZ=[[],[],[]],_3=Math.sqrt,FZ=Math.atan2;function Ak(r,t){if(t){var e=r.data,a=r.len(),n,i,o,s,l,u,c=Qu.M,h=Qu.C,v=Qu.L,p=Qu.R,g=Qu.A,y=Qu.Q;for(o=0,s=0;o<a;){switch(n=e[o++],s=o,i=0,n){case c:i=1;break;case v:i=1;break;case h:i=3;break;case y:i=2;break;case g:var x=t[4],_=t[5],S=_3(t[0]*t[0]+t[1]*t[1]),w=_3(t[2]*t[2]+t[3]*t[3]),C=FZ(-t[1]/w,t[0]/S);e[o]*=S,e[o++]+=x,e[o]*=w,e[o++]+=_,e[o++]*=S,e[o++]*=w,e[o++]+=C,e[o++]+=C,o+=2,s=o;break;case p:u[0]=e[o++],u[1]=e[o++],Ar(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Ar(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var D=jZ[l];D[0]=e[o++],D[1]=e[o++],Ar(D,D,t),e[s++]=D[0],e[s++]=D[1]}}r.increaseVersion()}}var Q_=Math.sqrt,np=Math.sin,ip=Math.cos,_h=Math.PI;function b3(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function M2(r,t){return(r[0]*t[0]+r[1]*t[1])/(b3(r)*b3(t))}function S3(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(M2(r,t))}function w3(r,t,e,a,n,i,o,s,l,u,c){var h=l*(_h/180),v=ip(h)*(r-e)/2+np(h)*(t-a)/2,p=-1*np(h)*(r-e)/2+ip(h)*(t-a)/2,g=v*v/(o*o)+p*p/(s*s);g>1&&(o*=Q_(g),s*=Q_(g));var y=(n===i?-1:1)*Q_((o*o*(s*s)-o*o*(p*p)-s*s*(v*v))/(o*o*(p*p)+s*s*(v*v)))||0,x=y*o*p/s,_=y*-s*v/o,S=(r+e)/2+ip(h)*x-np(h)*_,w=(t+a)/2+np(h)*x+ip(h)*_,C=S3([1,0],[(v-x)/o,(p-_)/s]),D=[(v-x)/o,(p-_)/s],M=[(-1*v-x)/o,(-1*p-_)/s],E=S3(D,M);if(M2(D,M)<=-1&&(E=_h),M2(D,M)>=1&&(E=0),E<0){var N=Math.round(E/_h*1e6)/1e6;E=_h*2+N%2*_h}c.addData(u,S,w,o,s,C,E,h,i)}var VZ=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HZ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function GZ(r){var t=new ui;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=ui.CMD,l=r.match(VZ);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),v=void 0,p=c.match(HZ)||[],g=p.length,y=0;y<g;y++)p[y]=parseFloat(p[y]);for(var x=0;x<g;){var _=void 0,S=void 0,w=void 0,C=void 0,D=void 0,M=void 0,E=void 0,N=e,B=a,R=void 0,I=void 0;switch(h){case"l":e+=p[x++],a+=p[x++],v=s.L,t.addData(v,e,a);break;case"L":e=p[x++],a=p[x++],v=s.L,t.addData(v,e,a);break;case"m":e+=p[x++],a+=p[x++],v=s.M,t.addData(v,e,a),n=e,i=a,h="l";break;case"M":e=p[x++],a=p[x++],v=s.M,t.addData(v,e,a),n=e,i=a,h="L";break;case"h":e+=p[x++],v=s.L,t.addData(v,e,a);break;case"H":e=p[x++],v=s.L,t.addData(v,e,a);break;case"v":a+=p[x++],v=s.L,t.addData(v,e,a);break;case"V":a=p[x++],v=s.L,t.addData(v,e,a);break;case"C":v=s.C,t.addData(v,p[x++],p[x++],p[x++],p[x++],p[x++],p[x++]),e=p[x-2],a=p[x-1];break;case"c":v=s.C,t.addData(v,p[x++]+e,p[x++]+a,p[x++]+e,p[x++]+a,p[x++]+e,p[x++]+a),e+=p[x-2],a+=p[x-1];break;case"S":_=e,S=a,R=t.len(),I=t.data,o===s.C&&(_+=e-I[R-4],S+=a-I[R-3]),v=s.C,N=p[x++],B=p[x++],e=p[x++],a=p[x++],t.addData(v,_,S,N,B,e,a);break;case"s":_=e,S=a,R=t.len(),I=t.data,o===s.C&&(_+=e-I[R-4],S+=a-I[R-3]),v=s.C,N=e+p[x++],B=a+p[x++],e+=p[x++],a+=p[x++],t.addData(v,_,S,N,B,e,a);break;case"Q":N=p[x++],B=p[x++],e=p[x++],a=p[x++],v=s.Q,t.addData(v,N,B,e,a);break;case"q":N=p[x++]+e,B=p[x++]+a,e+=p[x++],a+=p[x++],v=s.Q,t.addData(v,N,B,e,a);break;case"T":_=e,S=a,R=t.len(),I=t.data,o===s.Q&&(_+=e-I[R-4],S+=a-I[R-3]),e=p[x++],a=p[x++],v=s.Q,t.addData(v,_,S,e,a);break;case"t":_=e,S=a,R=t.len(),I=t.data,o===s.Q&&(_+=e-I[R-4],S+=a-I[R-3]),e+=p[x++],a+=p[x++],v=s.Q,t.addData(v,_,S,e,a);break;case"A":w=p[x++],C=p[x++],D=p[x++],M=p[x++],E=p[x++],N=e,B=a,e=p[x++],a=p[x++],v=s.A,w3(N,B,e,a,M,E,w,C,D,v,t);break;case"a":w=p[x++],C=p[x++],D=p[x++],M=p[x++],E=p[x++],N=e,B=a,e+=p[x++],a+=p[x++],v=s.A,w3(N,B,e,a,M,E,w,C,D,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=n,a=i),o=v}return t.toStatic(),t}var Dk=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(Xe);function Tk(r){return r.setData!=null}function Mk(r,t){var e=GZ(r),a=oe({},t);return a.buildPath=function(n){if(Tk(n)){n.setData(e.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;e.rebuildPath(i,1)}},a.applyTransform=function(n){Ak(e,n),this.dirtyShape()},a}function Ek(r,t){return new Dk(Mk(r,t))}function UZ(r,t){var e=Mk(r,t),a=(function(n){Q(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i})(Dk);return a}function YZ(r,t){for(var e=[],a=r.length,n=0;n<a;n++){var i=r[n];e.push(i.getUpdatedPathProxy(!0))}var o=new Xe(t);return o.createPathProxy(),o.buildPath=function(s){if(Tk(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function DC(r,t){t=t||{};var e=new Xe;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?Ak(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var WZ=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),fi=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new WZ},t.prototype.buildPath=function(e,a){e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t})(Xe);fi.prototype.type="circle";var qZ=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),vd=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qZ},t.prototype.buildPath=function(e,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,c=l*n;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),e.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),e.closePath()},t})(Xe);vd.prototype.type="ellipse";var Lk=Math.PI,J_=Lk*2,Qs=Math.sin,Ju=Math.cos,XZ=Math.acos,Fr=Math.atan2,C3=Math.abs,dv=Math.sqrt,Xh=Math.max,Xn=Math.min,An=1e-4;function ZZ(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,h=s-i,v=h*l-c*u;if(!(v*v<An))return v=(c*(t-i)-h*(r-n))/v,[r+v*l,t+v*u]}function op(r,t,e,a,n,i,o){var s=r-e,l=t-a,u=(o?i:-i)/dv(s*s+l*l),c=u*l,h=-u*s,v=r+c,p=t+h,g=e+c,y=a+h,x=(v+g)/2,_=(p+y)/2,S=g-v,w=y-p,C=S*S+w*w,D=n-i,M=v*y-g*p,E=(w<0?-1:1)*dv(Xh(0,D*D*C-M*M)),N=(M*w-S*E)/C,B=(-M*S-w*E)/C,R=(M*w+S*E)/C,I=(-M*S+w*E)/C,P=N-x,z=B-_,V=R-x,G=I-_;return P*P+z*z>V*V+G*G&&(N=R,B=I),{cx:N,cy:B,x0:-c,y0:-h,x1:N*(n/D-1),y1:B*(n/D-1)}}function $Z(r){var t;if(ce(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function KZ(r,t){var e,a=Xh(t.r,0),n=Xh(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,h=t.cy,v=!!t.clockwise,p=C3(u-l),g=p>J_&&p%J_;if(g>An&&(p=g),!(a>An))r.moveTo(c,h);else if(p>J_-An)r.moveTo(c+a*Ju(l),h+a*Qs(l)),r.arc(c,h,a,l,u,!v),n>An&&(r.moveTo(c+n*Ju(u),h+n*Qs(u)),r.arc(c,h,n,u,l,v));else{var y=void 0,x=void 0,_=void 0,S=void 0,w=void 0,C=void 0,D=void 0,M=void 0,E=void 0,N=void 0,B=void 0,R=void 0,I=void 0,P=void 0,z=void 0,V=void 0,G=a*Ju(l),F=a*Qs(l),Y=n*Ju(u),W=n*Qs(u),X=p>An;if(X){var te=t.cornerRadius;te&&(e=$Z(te),y=e[0],x=e[1],_=e[2],S=e[3]);var j=C3(a-n)/2;if(w=Xn(j,_),C=Xn(j,S),D=Xn(j,y),M=Xn(j,x),B=E=Xh(w,C),R=N=Xh(D,M),(E>An||N>An)&&(I=a*Ju(u),P=a*Qs(u),z=n*Ju(l),V=n*Qs(l),p<Lk)){var U=ZZ(G,F,z,V,I,P,Y,W);if(U){var Z=G-U[0],$=F-U[1],fe=I-U[0],ye=P-U[1],ee=1/Qs(XZ((Z*fe+$*ye)/(dv(Z*Z+$*$)*dv(fe*fe+ye*ye)))/2),se=dv(U[0]*U[0]+U[1]*U[1]);B=Xn(E,(a-se)/(ee+1)),R=Xn(N,(n-se)/(ee-1))}}}if(!X)r.moveTo(c+G,h+F);else if(B>An){var ue=Xn(_,B),we=Xn(S,B),ve=op(z,V,G,F,a,ue,v),Ae=op(I,P,Y,W,a,we,v);r.moveTo(c+ve.cx+ve.x0,h+ve.cy+ve.y0),B<E&&ue===we?r.arc(c+ve.cx,h+ve.cy,B,Fr(ve.y0,ve.x0),Fr(Ae.y0,Ae.x0),!v):(ue>0&&r.arc(c+ve.cx,h+ve.cy,ue,Fr(ve.y0,ve.x0),Fr(ve.y1,ve.x1),!v),r.arc(c,h,a,Fr(ve.cy+ve.y1,ve.cx+ve.x1),Fr(Ae.cy+Ae.y1,Ae.cx+Ae.x1),!v),we>0&&r.arc(c+Ae.cx,h+Ae.cy,we,Fr(Ae.y1,Ae.x1),Fr(Ae.y0,Ae.x0),!v))}else r.moveTo(c+G,h+F),r.arc(c,h,a,l,u,!v);if(!(n>An)||!X)r.lineTo(c+Y,h+W);else if(R>An){var ue=Xn(y,R),we=Xn(x,R),ve=op(Y,W,I,P,n,-we,v),Ae=op(G,F,z,V,n,-ue,v);r.lineTo(c+ve.cx+ve.x0,h+ve.cy+ve.y0),R<N&&ue===we?r.arc(c+ve.cx,h+ve.cy,R,Fr(ve.y0,ve.x0),Fr(Ae.y0,Ae.x0),!v):(we>0&&r.arc(c+ve.cx,h+ve.cy,we,Fr(ve.y0,ve.x0),Fr(ve.y1,ve.x1),!v),r.arc(c,h,n,Fr(ve.cy+ve.y1,ve.cx+ve.x1),Fr(Ae.cy+Ae.y1,Ae.cx+Ae.x1),v),ue>0&&r.arc(c+Ae.cx,h+Ae.cy,ue,Fr(Ae.y1,Ae.x1),Fr(Ae.y0,Ae.x0),!v))}else r.lineTo(c+Y,h+W),r.arc(c,h,n,u,l,v)}r.closePath()}}}var QZ=(function(){function r(){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 r})(),Zr=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new QZ},t.prototype.buildPath=function(e,a){KZ(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Xe);Zr.prototype.type="sector";var JZ=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),ef=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new JZ},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t})(Xe);ef.prototype.type="ring";function e$(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,c,h;if(a){c=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,p=r.length;v<p;v++)Gi(c,c,r[v]),Ui(h,h,r[v]);Gi(c,c,a[0]),Ui(h,h,a[1])}for(var v=0,p=r.length;v<p;v++){var g=r[v];if(e)l=r[v?v-1:p-1],u=r[(v+1)%p];else if(v===0||v===p-1){n.push(ni(r[v]));continue}else l=r[v-1],u=r[v+1];Wo(i,u,l),iv(i,i,t);var y=tm(g,l),x=tm(g,u),_=y+x;_!==0&&(y/=_,x/=_),iv(o,i,-y),iv(s,i,x);var S=QS([],g,o),w=QS([],g,s);a&&(Ui(S,S,c),Gi(S,S,h),Ui(w,w,c),Gi(w,w,h)),n.push(S),n.push(w)}return e&&n.push(n.shift()),n}function Nk(r,t,e){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var i=e$(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var t$=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),$r=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new t$},t.prototype.buildPath=function(e,a){Nk(e,a,!0)},t})(Xe);$r.prototype.type="polygon";var r$=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Qr=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new r$},t.prototype.buildPath=function(e,a){Nk(e,a,!1)},t})(Xe);Qr.prototype.type="polyline";var a$={},n$=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),hr=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new n$},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=hk(a$,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(e.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var a=this.shape;return[a.x1*(1-e)+a.x2*e,a.y1*(1-e)+a.y2*e]},t})(Xe);hr.prototype.type="line";var ma=[],i$=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function A3(r,t,e){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(e?RE:pr)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?RE:pr)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?a2:Cr)(r.x1,r.cpx1,r.x2,t),(e?a2:Cr)(r.y1,r.cpy1,r.y2,t)]}var tf=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new i$},t.prototype.buildPath=function(e,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,c=a.cpx2,h=a.cpy2,v=a.percent;v!==0&&(e.moveTo(n,i),c==null||h==null?(v<1&&(Av(n,l,o,v,ma),l=ma[1],o=ma[2],Av(i,u,s,v,ma),u=ma[1],s=ma[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(ss(n,l,c,o,v,ma),l=ma[1],c=ma[2],o=ma[3],ss(i,u,h,s,v,ma),u=ma[1],h=ma[2],s=ma[3]),e.bezierCurveTo(l,u,c,h,o,s)))},t.prototype.pointAt=function(e){return A3(this.shape,e,!1)},t.prototype.tangentAt=function(e){var a=A3(this.shape,e,!0);return Xl(a,a)},t})(Xe);tf.prototype.type="bezier-curve";var o$=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),dd=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o$},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,c=Math.cos(s),h=Math.sin(s);e.moveTo(c*o+n,h*o+i),e.arc(n,i,o,s,l,!u)},t})(Xe);dd.prototype.type="arc";var by=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,a=this.shapeChanged(),n=0;n<e.length;n++)a=a||e[n].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(a[0],a[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Xe.prototype.getBoundingRect.call(this)},t})(Xe),Rk=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),rf=(function(r){Q(t,r);function t(e,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t})(Rk),TC=(function(r){Q(t,r);function t(e,a,n,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Rk),Js=[0,0],el=[0,0],sp=new Fe,lp=new Fe,hm=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new Fe;for(var a=0;a<2;a++)this._axes[a]=new Fe;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var a=this._corners,n=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),e)for(var u=0;u<4;u++)a[u].transform(e);Fe.sub(n[0],a[1],a[0]),Fe.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(t,e){var a=!0,n=!e;return sp.set(1/0,1/0),lp.set(0,0),!this._intersectCheckOneSide(this,t,sp,lp,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(t,this,sp,lp,n,-1)&&(a=!1,n)||n||Fe.copy(e,a?sp:lp),a},r.prototype._intersectCheckOneSide=function(t,e,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Js),this._getProjMinMaxOnAxis(l,e._corners,el),Js[1]<el[0]||Js[0]>el[1]){if(s=!1,i)return s;var c=Math.abs(el[0]-Js[1]),h=Math.abs(Js[0]-el[1]);Math.min(c,h)>n.len()&&(c<h?Fe.scale(n,u,-c*o):Fe.scale(n,u,h*o))}else if(a){var c=Math.abs(el[0]-Js[1]),h=Math.abs(Js[0]-el[1]);Math.min(c,h)<a.len()&&(c<h?Fe.scale(a,u,c*o):Fe.scale(a,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u<e.length;u++){var c=e[u].dot(n)+i[t];s=Math.min(c,s),l=Math.max(c,l)}a[0]=s,a[1]=l},r})(),s$=[],Bk=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var a=this._cursor;a<this._displayables.length;a++)e&&e(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)e&&e(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var a=this._displayables[e];a.parent=this,a.update(),a.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var a=this._temporaryDisplayables[e];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Ve(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(s$)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,a))return!0}return!1},t})(hn),Ik=rt();function af(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,h=void 0;a?(u=ke(a.duration,200),c=ke(a.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(h=i.delay)),Te(h)&&(h=h(e,n)),Te(u)&&(u=u(e));var v={duration:u||0,delay:h,easing:c};return v}else return null}function MC(r,t,e,a,n,i,o){var s=!1,l;Te(n)?(o=i,i=n,n=null):Ee(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=af(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var h=c.duration,v=c.delay,p=c.easing,g={duration:h,delay:v||0,easing:p,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,g):t.animateTo(e,g)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function st(r,t,e,a,n,i){MC("update",r,t,e,a,n,i)}function It(r,t,e,a,n,i){MC("enter",r,t,e,a,n,i)}function Nc(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function ls(r,t,e,a,n,i){Nc(r)||MC("leave",r,t,e,a,n,i)}function D3(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),ls(r,{style:{opacity:0}},t,e,a)}function Bv(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||D3(n,t,e,a)}):D3(r,t,e,a)}function zn(r){Ik(r).oldStyle=r.style}function l$(r){return Ik(r).oldStyle}var vm=Math.max,dm=Math.min,E2={};function kk(r){return Xe.extend(r)}var u$=UZ;function Ok(r,t){return u$(r,t)}function dn(r,t){E2[r]=t}function Sy(r){if(E2.hasOwnProperty(r))return E2[r]}function pd(r,t,e,a){var n=Ek(r,t);return e&&(a==="center"&&(e=Pk(e,n.getBoundingRect())),LC(n,e)),n}function EC(r,t,e){var a=new br({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(Pk(t,i))}}});return a}function Pk(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Ba=YZ;function LC(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function Vc(r,t){return hk(r,r,{lineWidth:t}),r}function c$(r){return vk(r.shape,r.shape,r.style),r}var Fg=_l;function rs(r,t){for(var e=ld([]);r&&r!==t;)ii(e,r.getLocalTransform(),e),r=r.parent;return e}function In(r,t,e){return t&&!Ir(t)&&(t=Yi.getLocalTransform(t)),e&&(t=Zl([],t)),Ar([],r,t)}function wy(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=In(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function T3(r){return!r.isGroup}function f$(r){return r.shape!=null}function gd(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){T3(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return f$(o)&&(s.shape=oe({},o.shape)),s}var i=a(r);t.traverse(function(o){if(T3(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),st(o,l,e,Be(o).dataIndex)}}})}function NC(r,t){return he(r,function(e){var a=e[0];a=vm(a,t.x),a=dm(a,t.x+t.width);var n=e[1];return n=vm(n,t.y),n=dm(n,t.y+t.height),[a,n]})}function zk(r,t){var e=vm(r.x,t.x),a=dm(r.x+r.width,t.x+t.width),n=vm(r.y,t.y),i=dm(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function nf(r,t,e){var a=oe({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Me(n,e),new br(a)):pd(r.replace("path://",""),a,e,"center")}function Zh(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(jk(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function jk(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,h=s-i,v=eb(c,h,l,u);if(h$(v))return!1;var p=r-n,g=t-i,y=eb(p,g,l,u)/v;if(y<0||y>1)return!1;var x=eb(p,g,c,h)/v;return!(x<0||x>1)}function eb(r,t,e,a){return r*a-e*t}function h$(r){return r<=1e-6&&r>=-1e-6}function $l(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=_e(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&O(Ze(l),function(c){Se(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Be(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Me({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function M3(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ps(r,t){if(r)if(ce(r))for(var e=0;e<r.length;e++)M3(r[e],t);else M3(r,t)}dn("circle",fi);dn("ellipse",vd);dn("sector",Zr);dn("ring",ef);dn("polygon",$r);dn("polyline",Qr);dn("rect",Je);dn("line",hr);dn("bezierCurve",tf);dn("arc",dd);const Kl=Object.freeze(Object.defineProperty({__proto__:null,Arc:dd,BezierCurve:tf,BoundingRect:Ve,Circle:fi,CompoundPath:by,Ellipse:vd,Group:Re,Image:br,IncrementalDisplayable:Bk,Line:hr,LinearGradient:rf,OrientedBoundingRect:hm,Path:Xe,Point:Fe,Polygon:$r,Polyline:Qr,RadialGradient:TC,Rect:Je,Ring:ef,Sector:Zr,Text:Qe,applyTransform:In,clipPointsByRect:NC,clipRectByRect:zk,createIcon:nf,extendPath:Ok,extendShape:kk,getShapeClass:Sy,getTransform:rs,groupTransition:gd,initProps:It,isElementRemoved:Nc,lineLineIntersect:jk,linePolygonIntersect:Zh,makeImage:EC,makePath:pd,mergePath:Ba,registerShape:dn,removeElement:ls,removeElementWithFadeOut:Bv,resizePath:LC,setTooltipConfig:$l,subPixelOptimize:Fg,subPixelOptimizeLine:Vc,subPixelOptimizeRect:c$,transformDirection:wy,traverseElements:ps,updateProps:st},Symbol.toStringTag,{value:"Module"}));var Cy={};function Fk(r,t){for(var e=0;e<la.length;e++){var a=la[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function L2(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=Te(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<la.length;u++){var c=la[u],h=t[c];l[c]=ke(a?a.getFormattedLabel(n,c,null,i,h&&h.get("formatter")):null,s)}return l}function Or(r,t,e,a){e=e||Cy;for(var n=r instanceof Qe,i=!1,o=0;o<Nv.length;o++){var s=t[Nv[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Qe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=L2(e,t),c=t.normal,h=!!c.getShallow("show"),v=At(c,a&&a.normal,e,!1,!n);v.text=u.normal,n||r.setTextConfig(pm(c,e,!1));for(var o=0;o<la.length;o++){var p=la[o],s=t[p];if(s){var g=l.ensureState(p),y=!!ke(s.getShallow("show"),h);if(y!==h&&(g.ignore=!y),g.style=At(s,a&&a[p],e,!0,!n),g.style.text=u[p],!n){var x=r.ensureState(p);x.textConfig=pm(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),e.enableTextSetter&&(of(l).setLabelText=function(_){var S=L2(e,t,_);Fk(l,S)})}else l&&(l.ignore=!0);r.dirty()}function xr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<la.length;a++){var n=la[a];e[n]=r.getModel([n,t])}return e}function At(r,t,e,a,n){var i={};return v$(i,r,e,a,n),t&&oe(i,t),i}function pm(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=ke(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function v$(r,t,e,a,n){e=e||Cy;var i=t.ecModel,o=i&&i.option.textStyle,s=d$(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);R3(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var v=t.get("minMargin");v!=null&&(r.margin=v),R3(r,t,o,e,a,n,!0,!1)}function d$(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Cy).rich;if(e){t=t||{};for(var a=Ze(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var E3=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],L3=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],N3=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function R3(r,t,e,a,n,i,o,s){e=!n&&e||Cy;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),h=ke(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var v=ke(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var p=ke(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var g=ke(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!n&&h==null&&!s&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var y=0;y<E3.length;y++){var x=E3[y],_=ke(t.getShallow(x),e[x]);_!=null&&(r[x]=_)}for(var y=0;y<L3.length;y++){var x=L3[y],_=t.getShallow(x);_!=null&&(r[x]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!o||!a.disableBox){for(var y=0;y<N3.length;y++){var x=N3[y],_=t.getShallow(x);_!=null&&(r[x]=_)}var w=t.getShallow("borderType");w!=null&&(r.borderDash=w),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function RC(r,t){var e=t&&t.getModel("textStyle");return un([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var of=rt();function Vk(r,t,e,a){if(r){var n=of(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function Hk(r,t,e,a,n){var i=of(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ke(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var h=ak(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:h;var v=L2({labelDataIndex:t,labelFetcher:n,defaultText:o?o(h):h+""},i.statesModels,h);Fk(r,v)}r.percent=0,(i.prevValue==null?It:st)(r,{percent:1},a,t,null,u)}var p$=["textStyle","color"],tb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],rb=new Qe,g$=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(p$):null)},r.prototype.getFont=function(){return RC({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<tb.length;a++)e[tb[a]]=this.getShallow(tb[a]);return rb.useStyle(e),rb.update(),rb.getBoundingRect()},r})(),Gk=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],m$=zl(Gk),y$=(function(){function r(){}return r.prototype.getLineStyle=function(t){return m$(this,t)},r})(),Uk=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],x$=zl(Uk),_$=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return x$(this,t,e)},r})(),ut=(function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){ze(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Le(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!qe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r})();yC(ut);BX(ut);Xt(ut,y$);Xt(ut,_$);Xt(ut,zX);Xt(ut,g$);var b$=Math.round(Math.random()*10);function sf(r){return[r||"",b$++].join("_")}function S$(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=ti(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=ti(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function w$(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,h=u.noEntryList,v={};for(O(i,function(S){v[S]=!0});h.length;){var p=h.pop(),g=c[p],y=!!v[p];y&&(s.call(l,p,g.originalDeps.slice()),delete v[p]),O(g.successor,y?_:x)}O(v,function(){var S="";throw new Error(S)});function x(S){c[S].entryCount--,c[S].entryCount===0&&h.push(S)}function _(S){v[S]=!0,x(S)}};function e(i){var o={},s=[];return O(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),h=n(c,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),O(h,function(v){He(u.predecessor,v)<0&&u.predecessor.push(v);var p=a(o,v);He(p.successor,v)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return O(i,function(l){He(o,l)>=0&&s.push(l)}),s}}function gs(r,t){return ze(ze({},r,!0),t,!0)}const C$={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:". "}}}},A$={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 gm="ZH",BC="EN",Rc=BC,Vg={},IC={},Yk=qe.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Rc).toUpperCase();return r.indexOf(gm)>-1?gm:Rc})():Rc;function kC(r,t){r=r.toUpperCase(),IC[r]=new ut(t),Vg[r]=t}function D$(r){if(_e(r)){var t=Vg[r.toUpperCase()]||{};return r===gm||r===BC?Le(t):ze(Le(t),Le(Vg[Rc]),!1)}else return ze(Le(r),Le(Vg[Rc]),!1)}function N2(r){return IC[r]}function T$(){return IC[Rc]}kC(BC,C$);kC(gm,A$);var OC=1e3,PC=OC*60,pv=PC*60,ln=pv*24,B3=ln*365,$h={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},up="{yyyy}-{MM}-{dd}",I3={year:"{yyyy}",month:"{yyyy}-{MM}",day:up,hour:up+" "+$h.hour,minute:up+" "+$h.minute,second:up+" "+$h.second,millisecond:$h.none},ab=["year","month","day","hour","minute","second","millisecond"],Wk=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function aa(r,t){return r+="","0000".substr(0,t-r.length)+r}function Bc(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function M$(r){return r===Bc(r)}function E$(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function md(r,t,e,a){var n=Pa(r),i=n[zC(e)](),o=n[Ic(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Ay(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[Iv(e)](),h=(c-1)%12+1,v=n[Dy(e)](),p=n[Ty(e)](),g=n[My(e)](),y=c>=12?"pm":"am",x=y.toUpperCase(),_=a instanceof ut?a:N2(a||Yk)||T$(),S=_.getModel("time"),w=S.get("month"),C=S.get("monthAbbr"),D=S.get("dayOfWeek"),M=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,x+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,aa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,C[o-1]).replace(/{MM}/g,aa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,aa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,D[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,aa(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,aa(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,aa(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,aa(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,aa(g,3)).replace(/{S}/g,g+"")}function L$(r,t,e,a,n){var i=null;if(_e(e))i=e;else if(Te(e))i=e(r.value,t,{level:r.level});else{var o=oe({},$h);if(r.level>0)for(var s=0;s<ab.length;++s)o[ab[s]]="{primary|"+o[ab[s]]+"}";var l=e?e.inherit===!1?e:Me(e,o):o,u=qk(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=Wk.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(ce(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return md(new Date(r.value),i,n,a)}function qk(r,t){var e=Pa(r),a=e[Ic(t)]()+1,n=e[Ay(t)](),i=e[Iv(t)](),o=e[Dy(t)](),s=e[Ty(t)](),l=e[My(t)](),u=l===0,c=u&&s===0,h=c&&o===0,v=h&&i===0,p=v&&n===1,g=p&&a===1;return g?"year":p?"month":v?"day":h?"hour":c?"minute":u?"second":"millisecond"}function k3(r,t,e){var a=it(r)?Pa(r):r;switch(t=t||qk(r,e),t){case"year":return a[zC(e)]();case"half-year":return a[Ic(e)]()>=6?1:0;case"quarter":return Math.floor((a[Ic(e)]()+1)/4);case"month":return a[Ic(e)]();case"day":return a[Ay(e)]();case"half-day":return a[Iv(e)]()/24;case"hour":return a[Iv(e)]();case"minute":return a[Dy(e)]();case"second":return a[Ty(e)]();case"millisecond":return a[My(e)]()}}function zC(r){return r?"getUTCFullYear":"getFullYear"}function Ic(r){return r?"getUTCMonth":"getMonth"}function Ay(r){return r?"getUTCDate":"getDate"}function Iv(r){return r?"getUTCHours":"getHours"}function Dy(r){return r?"getUTCMinutes":"getMinutes"}function Ty(r){return r?"getUTCSeconds":"getSeconds"}function My(r){return r?"getUTCMilliseconds":"getMilliseconds"}function N$(r){return r?"setUTCFullYear":"setFullYear"}function Xk(r){return r?"setUTCMonth":"setMonth"}function Zk(r){return r?"setUTCDate":"setDate"}function $k(r){return r?"setUTCHours":"setHours"}function Kk(r){return r?"setUTCMinutes":"setMinutes"}function Qk(r){return r?"setUTCSeconds":"setSeconds"}function Jk(r){return r?"setUTCMilliseconds":"setMilliseconds"}function R$(r,t,e,a,n,i,o,s){var l=new Qe({style:{text:r,font:t,align:e,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function jC(r){if(!pC(r))return _e(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function FC(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ql=ly;function R2(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&un(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Pa(r):r;if(isNaN(+l)){if(s)return"-"}else return md(l,a,e)}if(t==="ordinal")return Jg(r)?n(r):it(r)&&i(r)?r+"":"-";var u=li(r);return i(u)?jC(u):Jg(r)?n(r):typeof r=="boolean"?r+"":"-"}var O3=["a","b","c","d","e","f","g"],nb=function(r,t){return"{"+r+(t??"")+"}"};function VC(r,t,e){ce(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=O3[i];r=r.replace(nb(o),nb(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(nb(O3[l],s),e?Wr(u):u)}return r}function B$(r,t,e){return O(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function eO(r,t){var e=_e(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Wr(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Wr(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function I$(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
  406. yyyy`);var a=Pa(t),n=e?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),c=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r=r.replace("MM",aa(o,2)).replace("M",o).replace("yyyy",i).replace("yy",aa(i%100+"",2)).replace("dd",aa(s,2)).replace("d",s).replace("hh",aa(l,2)).replace("h",l).replace("mm",aa(u,2)).replace("m",u).replace("ss",aa(c,2)).replace("s",c).replace("SSS",aa(h,3)),r}function k$(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Fl(r,t){return t=t||"transparent",_e(r)?r:Ee(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function mm(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Hg=O,tO=["left","right","top","bottom","width","height"],Sl=[["width","left","right"],["height","top","bottom"]];function HC(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),p,g;if(r==="horizontal"){var y=c.width+(v?-v.x+c.x:0);p=i+y,p>a||l.newline?(i=0,p=y,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var x=c.height+(v?-v.y+c.y:0);g=o+x,g>n||l.newline?(i+=s+e,o=0,g=x,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=p+e:o=g+e)})}var Nl=HC;Oe(HC,"vertical");Oe(HC,"horizontal");function O$(r,t,e){var a=t.width,n=t.height,i=xe(r.left,a),o=xe(r.top,n),s=xe(r.right,a),l=xe(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=Ql(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ir(r,t,e){e=Ql(e||0);var a=t.width,n=t.height,i=xe(r.left,a),o=xe(r.top,n),s=xe(r.right,a),l=xe(r.bottom,n),u=xe(r.width,a),c=xe(r.height,n),h=e[2]+e[0],v=e[1]+e[3],p=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(c)&&(c=n-l-h-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-c-h),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(c)&&(c=n-h-o-(l||0));var g=new Ve(i+e[3],o+e[0],u,c);return g.margin=e,g}function Ey(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ve(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=ir(Me({width:u.width,height:u.height},t),e,a),v=o?h.x-u.x:0,p=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=p):(i.x+=v,i.y+=p),i===r&&r.markRedraw(),!0}function P$(r,t){return r[Sl[t][0]]!=null||r[Sl[t][1]]!=null&&r[Sl[t][2]]!=null}function kv(r){var t=r.layoutMode||r.constructor.layoutMode;return Ee(t)?t:t?{type:t}:null}function us(r,t,e){var a=e&&e.ignoreSize;!ce(a)&&(a=[a,a]);var n=o(Sl[0],0),i=o(Sl[1],1);u(Sl[0],r,n),u(Sl[1],r,i);function o(c,h){var v={},p=0,g={},y=0,x=2;if(Hg(c,function(w){g[w]=r[w]}),Hg(c,function(w){s(t,w)&&(v[w]=g[w]=t[w]),l(v,w)&&p++,l(g,w)&&y++}),a[h])return l(t,c[1])?g[c[2]]=null:l(t,c[2])&&(g[c[1]]=null),g;if(y===x||!p)return g;if(p>=x)return v;for(var _=0;_<c.length;_++){var S=c[_];if(!s(v,S)&&s(r,S)){v[S]=r[S];break}}return v}function s(c,h){return c.hasOwnProperty(h)}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,v){Hg(c,function(p){h[p]=v[p]})}}function lf(r){return rO({},r)}function rO(r,t){return t&&r&&Hg(tO,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var z$=rt(),We=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=sf("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=kv(this),i=n?lf(e):{},o=a.getTheme();ze(e,o.get(this.mainType)),ze(e,this.getDefaultOption()),n&&us(e,i,n)},t.prototype.mergeOption=function(e,a){ze(this.option,e,!0);var n=kv(this);n&&us(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!LX(e))return e.defaultOption;var a=z$(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ze(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return fd(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(ut);ik(We,ut);py(We);S$(We);w$(We,j$);function j$(r){var t=[];return O(We.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=he(t,function(e){return ti(e).main}),r!=="dataset"&&He(t,"dataset")<=0&&t.unshift("dataset"),t}var aO="";typeof navigator<"u"&&(aO=navigator.platform||"");var ec="rgba(0, 0, 0, 0.2)";const F$={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ec,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ec,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ec,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ec,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ec,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ec,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aO.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 nO=Ce(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pn="original",Kr="arrayRows",gn="objectRows",hi="keyedColumns",as="typedArray",iO="unknown",oi="column",uf="row",Rr={Must:1,Might:2,Not:3},oO=rt();function V$(r){oO(r).datasetMap=Ce()}function sO(r,t,e){var a={},n=UC(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=oO(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,h;r=r.slice(),O(r,function(y,x){var _=Ee(y)?y:r[x]={name:y};_.type==="ordinal"&&c==null&&(c=x,h=g(_)),a[_.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});O(r,function(y,x){var _=y.name,S=g(y);if(c==null){var w=v.valueWayDim;p(a[_],w,S),p(o,w,S),v.valueWayDim+=S}else if(c===x)p(a[_],0,S),p(i,0,S);else{var w=v.categoryWayDim;p(a[_],w,S),p(o,w,S),v.categoryWayDim+=S}});function p(y,x,_){for(var S=0;S<_;S++)y.push(x+S)}function g(y){var x=y.dimsDef;return x?x.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function GC(r,t,e){var a={},n=UC(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===gn||i===hi)&&O(o,function(c,h){(Ee(c)?c.name:c)==="name"&&(s=h)});var l=(function(){for(var c={},h={},v=[],p=0,g=Math.min(5,e);p<g;p++){var y=uO(t.data,i,t.seriesLayoutBy,o,t.startIndex,p);v.push(y);var x=y===Rr.Not;if(x&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!x&&v[c.n]===Rr.Not)&&(c.n=p),_(c)&&v[c.n]!==Rr.Not)return c;x||(y===Rr.Might&&h.v==null&&p!==s&&(h.v=p),(h.n==null||h.n===h.v)&&(h.n=p))}function _(S){return S.v!=null&&S.n!=null}return _(c)?c:_(h)?h:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function UC(r){var t=r.get("data",!0);if(!t)return fd(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},nr).models[0]}function H$(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:fd(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},nr).models}function lO(r,t){return uO(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function uO(r,t,e,a,n,i){var o,s=5;if(sa(r))return Rr.Not;var l,u;if(a){var c=a[i];Ee(c)?(l=c.name,u=c.type):_e(c)&&(l=c)}if(u!=null)return u==="ordinal"?Rr.Must:Rr.Not;if(t===Kr){var h=r;if(e===uf){for(var v=h[i],p=0;p<(v||[]).length&&p<s;p++)if((o=C(v[n+p]))!=null)return o}else for(var p=0;p<h.length&&p<s;p++){var g=h[n+p];if(g&&(o=C(g[i]))!=null)return o}}else if(t===gn){var y=r;if(!l)return Rr.Not;for(var p=0;p<y.length&&p<s;p++){var x=y[p];if(x&&(o=C(x[l]))!=null)return o}}else if(t===hi){var _=r;if(!l)return Rr.Not;var v=_[l];if(!v||sa(v))return Rr.Not;for(var p=0;p<v.length&&p<s;p++)if((o=C(v[p]))!=null)return o}else if(t===pn)for(var S=r,p=0;p<S.length&&p<s;p++){var x=S[p],w=Qc(x);if(!ce(w))return Rr.Not;if((o=C(w[i]))!=null)return o}function C(D){var M=_e(D);if(D!=null&&Number.isFinite(Number(D))&&D!=="")return M?Rr.Might:Rr.Not;if(M&&D!=="-")return Rr.Must}return Rr.Not}var B2=Ce();function G$(r,t){Xr(B2.get(r)==null&&t),B2.set(r,t)}function U$(r,t,e){var a=B2.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var P3=rt(),Y$=rt(),YC=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=bt(this.get("color",!0)),i=this.get("colorLayer",!0);return cO(this,P3,n,i,t,e,a)},r.prototype.clearColorPalette=function(){q$(this,P3)},r})();function I2(r,t,e,a){var n=bt(r.get(["aria","decal","decals"]));return cO(r,Y$,n,null,t,e,a)}function W$(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function cO(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:W$(a,o);if(c=c||e,!(!c||!c.length)){var h=c[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%c.length,h}}function q$(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var cp,bh,z3,j3="\0_ec_inner",X$=1,WC=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new ut(i),this._locale=new ut(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=H3(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,H3(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?z3(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&O(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Ce(),u=a&&a.replaceMergeMainTypeMap;V$(this),O(e,function(h,v){h!=null&&(We.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?Le(h):ze(n[v],h,!0))}),u&&u.each(function(h,v){We.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),We.topologicalTravel(s,We.getAllClassMainTypes(),c,this);function c(h){var v=U$(this,h,bt(e[h])),p=i.get(h),g=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=ek(p,v,g);bX(y,h,We),n[h]=null,i.set(h,null),o.set(h,0);var x=[],_=[],S=0,w;O(y,function(C,D){var M=C.existing,E=C.newOption;if(!E)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var N=h==="series",B=We.getClass(h,C.keyInfo.subType,!N);if(!B)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===B)M.name=C.keyInfo.name,M.mergeOption(E,this),M.optionUpdated(E,!1);else{var R=oe({componentIndex:D},C.keyInfo);M=new B(E,this,this,R),oe(M,R),C.brandNew&&(M.__requireNewView=!0),M.init(E,this,this),M.optionUpdated(null,!0)}}M?(x.push(M.option),_.push(M),S++):(x.push(void 0),_.push(void 0))},this),n[h]=x,i.set(h,_),o.set(h,S),h==="series"&&cp(this)}this._seriesIndices||cp(this)},t.prototype.getOption=function(){var e=Le(this.option);return O(e,function(a,n){if(We.hasClass(n)){for(var i=bt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Lv(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[j3],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],O(bt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=F3("id",i,s):o!=null?l=F3("name",o,s):l=lt(s,function(u){return!!u}),V3(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):lt(this._componentsMap.get(n),function(u){return!!u});return l(V3(o,e));function s(u){var c=n+"Index",h=n+"Id",v=n+"Name";return u&&(u[c]!=null||u[h]!=null||u[v]!=null)?{mainType:n,index:u[c],id:u[h],name:u[v]}:null}function l(u){return e.filter?lt(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(Te(e)){var o=a,s=e;i.each(function(h,v){for(var p=0;h&&p<h.length;p++){var g=h[p];g&&s.call(o,v,g,g.componentIndex)}})}else for(var l=_e(e)?i.get(e):Ee(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=fr(e,null);return lt(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return lt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return lt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){bh(this),O(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){O(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){bh(this),O(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return O(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return bh(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){bh(this);var n=[];O(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Ce(n)},t.prototype.restoreData=function(e){cp(this);var a=this._componentsMap,n=[];a.each(function(i,o){We.hasClass(o)&&n.push(o)}),We.topologicalTravel(n,We.getAllClassMainTypes(),function(i){O(a.get(i),function(o){o&&(i!=="series"||!Z$(o,e))&&o.restoreData()})})},t.internalField=(function(){cp=function(e){var a=e._seriesIndices=[];O(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=Ce(a)},bh=function(e){},z3=function(e,a){e.option={},e.option[j3]=X$,e._componentsMap=Ce({series:[]}),e._componentsCount=Ce();var n=a.aria;Ee(n)&&n.enabled==null&&(n.enabled=!0),$$(a,e._theme.option),ze(a,F$,!1),e._mergeOption(a,null)}})(),t})(ut);function Z$(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function $$(r,t){var e=r.color&&!r.colorLayer;O(t,function(a,n){n==="colorLayer"&&e||We.hasClass(n)||(typeof a=="object"?r[n]=r[n]?ze(r[n],a,!1):Le(a):r[n]==null&&(r[n]=a))})}function F3(r,t,e){if(ce(t)){var a=Ce();return O(t,function(i){if(i!=null){var o=fr(i,null);o!=null&&a.set(i,!0)}}),lt(e,function(i){return i&&a.get(i[r])})}else{var n=fr(t,null);return lt(e,function(i){return i&&n!=null&&i[r]===n})}}function V3(r,t){return t.hasOwnProperty("subType")?lt(r,function(e){return e&&e.subType===t.subType}):r}function H3(r){var t=Ce();return r&&O(bt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Xt(WC,YC);var K$=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],fO=(function(){function r(t){O(K$,function(e){this[e]=be(t[e],t)},this)}return r})(),ib={},cf=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];O(ib,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){O(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){ib[t]=e},r.get=function(t){return ib[t]},r})(),Q$=/^(min|max)?(.+)$/,J$=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(O(bt(t.series),function(o){o&&o.data&&sa(o.data)&&wv(o.data)}),O(bt(t.dataset),function(o){o&&o.source&&sa(o.source)&&wv(o.source)})),t=Le(t);var n=this._optionBackup,i=eK(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Le(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=Le(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)tK(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!aK(o,this._currentMediaIndices)&&(s=he(o,function(c){return Le(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r})();function eK(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||c)&&(r.options=r.media=null),i=r),c&&ce(u)&&O(u,function(p){p&&p.option&&(p.query?a.push(p):n||(n=p))}),v(i),O(l,function(p){return v(p)}),O(a,function(p){return v(p.option)});function v(p){O(t,function(g){g(p,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function tK(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return O(r,function(i,o){var s=o.match(Q$);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();rK(a[u],i,l)||(n=!1)}}),n}function rK(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function aK(r,t){return r.join(",")===t.join(",")}var wn=O,Ov=Ee,G3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ob(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=G3.length;e<a;e++){var n=G3[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?ze(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ze(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Yr(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,Me(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Kh(r){Yr(r,"itemStyle"),Yr(r,"lineStyle"),Yr(r,"areaStyle"),Yr(r,"label"),Yr(r,"labelLine"),Yr(r,"upperLabel"),Yr(r,"edgeLabel")}function ar(r,t){var e=Ov(r)&&r[t],a=Ov(e)&&e.textStyle;if(a)for(var n=0,i=ZE.length;n<i;n++){var o=ZE[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function rn(r){r&&(Kh(r),ar(r,"label"),r.emphasis&&ar(r.emphasis,"label"))}function nK(r){if(Ov(r)){ob(r),Kh(r),ar(r,"label"),ar(r,"upperLabel"),ar(r,"edgeLabel"),r.emphasis&&(ar(r.emphasis,"label"),ar(r.emphasis,"upperLabel"),ar(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(ob(t),rn(t));var e=r.markLine;e&&(ob(e),rn(e));var a=r.markArea;a&&rn(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!sa(i))for(var o=0;o<i.length;o++)rn(i[o]);O(r.categories,function(u){Kh(u)})}if(n&&!sa(n))for(var o=0;o<n.length;o++)rn(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)rn(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)ce(l[o])?(rn(l[o][0]),rn(l[o][1])):rn(l[o]);r.type==="gauge"?(ar(r,"axisLabel"),ar(r,"title"),ar(r,"detail")):r.type==="treemap"?(Yr(r.breadcrumb,"itemStyle"),O(r.levels,function(u){Kh(u)})):r.type==="tree"&&Kh(r.leaves)}}function ki(r){return ce(r)?r:r?[r]:[]}function U3(r){return(ce(r)?r[0]:r)||{}}function iK(r,t){wn(ki(r.series),function(a){Ov(a)&&nK(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),wn(e,function(a){wn(ki(r[a]),function(n){n&&(ar(n,"axisLabel"),ar(n.axisPointer,"label"))})}),wn(ki(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ar(n,"axisLabel"),ar(n&&n.axisPointer,"label")}),wn(ki(r.calendar),function(a){Yr(a,"itemStyle"),ar(a,"dayLabel"),ar(a,"monthLabel"),ar(a,"yearLabel")}),wn(ki(r.radar),function(a){ar(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),wn(ki(r.geo),function(a){Ov(a)&&(rn(a),wn(ki(a.regions),function(n){rn(n)}))}),wn(ki(r.timeline),function(a){rn(a),Yr(a,"label"),Yr(a,"itemStyle"),Yr(a,"controlStyle",!0);var n=a.data;ce(n)&&O(n,function(i){Ee(i)&&(Yr(i,"label"),Yr(i,"itemStyle"))})}),wn(ki(r.toolbox),function(a){Yr(a,"iconStyle"),wn(a.feature,function(n){Yr(n,"iconStyle")})}),ar(U3(r.axisPointer),"label"),ar(U3(r.tooltip).axisPointer,"label")}function oK(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function sK(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function Y3(r){r&&O(lK,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var lK=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],uK=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],sb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sh(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<sb.length;e++){var a=sb[e][1],n=sb[e][0];t[a]!=null&&(t[n]=t[a])}}function W3(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function q3(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function cK(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function hO(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&hO(r[e].children,t)}function vO(r,t){iK(r,t),r.series=bt(r.series),O(r.series,function(e){if(Ee(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),W3(e.label);var n=e.data;if(n&&!sa(n))for(var i=0;i<n.length;i++)W3(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=oK(e,"pointer.color");o!=null&&sK(e,"itemStyle.color",o)}else if(a==="bar"){Sh(e),Sh(e.backgroundStyle),Sh(e.emphasis);var n=e.data;if(n&&!sa(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Sh(n[i]),Sh(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),q3(e),hO(e.data,q3)}else a==="graph"||a==="sankey"?cK(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Me(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Y3(e)}}),r.dataRange&&(r.visualMap=r.dataRange),O(uK,function(e){var a=r[e];a&&(ce(a)||(a=[a]),O(a,function(n){Y3(n)}))})}function fK(r){var t=Ce();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(hK)}function hK(r){O(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return n;var p,g;s?g=o.getRawIndex(h):p=o.get(t.stackedByDimension,h);for(var y=NaN,x=e-1;x>=0;x--){var _=r[x];if(s||(g=_.data.rawIndexOf(_.stackedByDimension,p)),g>=0){var S=_.data.getByRawIndex(_.stackResultDimension,g);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&v>=0&&S>0||l==="samesign"&&v<=0&&S<0){v=fX(v,S),y=S;break}}}return a[0]=v,a[1]=y,a})})}var Ly=(function(){function r(t){this.data=t.data||(t.sourceFormat===hi?{}:[]),this.sourceFormat=t.sourceFormat||iO,this.seriesLayoutBy=t.seriesLayoutBy||oi,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&lO(this,a)===Rr.Must&&(n.type="ordinal")}}return r})();function qC(r){return r instanceof Ly}function k2(r,t,e){e=e||dO(r);var a=t.seriesLayoutBy,n=dK(r,e,a,t.sourceHeader,t.dimensions),i=new Ly({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Le(t)});return i}function XC(r){return new Ly({data:r,sourceFormat:sa(r)?as:pn})}function vK(r){return new Ly({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Le(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function dO(r){var t=iO;if(sa(r))t=as;else if(ce(r)){r.length===0&&(t=Kr);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(ce(n)||sa(n)){t=Kr;break}else if(Ee(n)){t=gn;break}}}}else if(Ee(r)){for(var i in r)if(Se(r,i)&&Ir(r[i])){t=hi;break}}return t}function dK(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:X3(n),startIndex:o,dimensionsDetectedCount:i};if(t===Kr){var s=r;a==="auto"||a==null?Z3(function(u){u!=null&&u!=="-"&&(_e(u)?o==null&&(o=1):o=0)},e,s,10):o=it(a)?a:a?1:0,!n&&o===1&&(n=[],Z3(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===uf?s.length:s[0]?s[0].length:null}else if(t===gn)n||(n=pK(r));else if(t===hi)n||(n=[],O(r,function(u,c){n.push(c)}));else if(t===pn){var l=Qc(r[0]);i=ce(l)&&l.length||1}return{startIndex:o,dimensionsDefine:X3(n),dimensionsDetectedCount:i}}function pK(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ze(e)}function X3(r){if(r){var t=Ce();return he(r,function(e,a){e=Ee(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Z3(r,t,e,a){if(t===uf)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function pO(r){var t=r.sourceFormat;return t===gn||t===hi}var tl,rl,al,$3,K3,gO=(function(){function r(t,e){var a=qC(t)?t:XC(t);this._source=a;var n=this._data=a.data;a.sourceFormat===as&&(this._offset=0,this._dimSize=e,this._data=n),K3(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;K3=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,p=$3[ZC(u,c)];if(oe(o,p),u===as)o.getItem=e,o.count=n,o.fillStorage=a;else{var g=mO(u,c);o.getItem=be(g,null,s,h,v);var y=yO(u,c);o.count=be(y,null,s,h,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,h=0;h<u;h++)s[h]=l[c+h];return s},a=function(o,s,l,u){for(var c=this._data,h=this._dimSize,v=0;v<h;v++){for(var p=u[v],g=p[0]==null?1/0:p[0],y=p[1]==null?-1/0:p[1],x=s-o,_=l[v],S=0;S<x;S++){var w=c[S*h+v];_[o+S]=w,w<g&&(g=w),w>y&&(y=w)}p[0]=g,p[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};$3=(t={},t[Kr+"_"+oi]={pure:!0,appendData:i},t[Kr+"_"+uf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[gn]={pure:!0,appendData:i},t[hi]={pure:!0,appendData:function(o){var s=this._data;O(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[pn]={appendData:i},t[as]={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])}})(),r})(),Q3=function(r,t,e,a){return r[a]},gK=(tl={},tl[Kr+"_"+oi]=function(r,t,e,a){return r[a+t]},tl[Kr+"_"+uf]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},tl[gn]=Q3,tl[hi]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[a]:null}return i},tl[pn]=Q3,tl);function mO(r,t){var e=gK[ZC(r,t)];return e}var J3=function(r,t,e){return r.length},mK=(rl={},rl[Kr+"_"+oi]=function(r,t,e){return Math.max(0,r.length-t)},rl[Kr+"_"+uf]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},rl[gn]=J3,rl[hi]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},rl[pn]=J3,rl);function yO(r,t){var e=mK[ZC(r,t)];return e}var lb=function(r,t,e){return r[t]},yK=(al={},al[Kr]=lb,al[gn]=function(r,t,e){return r[e]},al[hi]=lb,al[pn]=function(r,t,e){var a=Qc(r);return a instanceof Array?a[t]:a},al[as]=lb,al);function xO(r){var t=yK[r];return t}function ZC(r,t){return r===Kr?r+"_"+t:r}function Hc(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return xO(i)(a,o,s)}else{var l=a;return i===pn&&(l=Qc(a)),l}}}}var xK=/\{@(.+?)\}/g,Ny=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,v=h==="series",p=a.userOutput&&a.userOutput.get();return{componentType:h,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:e,value:n,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&ce(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Te(i))return l.status=e,l.dimensionIndex=n,i(l);if(_e(i)){var c=VC(i,l);return c.replace(xK,function(h,v){var p=v.length,g=v;g.charAt(0)==="["&&g.charAt(p-1)==="]"&&(g=+g.slice(1,p-1));var y=Hc(s,t,g);if(o&&ce(o.interpolatedValue)){var x=s.getDimensionIndex(g);x>=0&&(y=o.interpolatedValue[x])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(t,e){return Hc(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function eL(r){var t,e;return Ee(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function gv(r){return new _K(r)}var _K=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(S){return!(S>=1)&&(S=1),S}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,g=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||p<g)){var y=this._progress;if(ce(y))for(var x=0;x<y.length;x++)this._doProgress(y[x],p,g,l,u);else this._doProgress(y,p,g,l,u)}this._dueIndex=g;var _=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){tL.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:tL.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),ce(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),tL=(function(){var r,t,e,a,n,i={reset:function(l,u,c,h){t=l,r=u,e=c,a=h,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}})();function ns(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!it(r)&&r!=null&&r!=="-"&&(r=+Pa(r)),r==null||r===""?NaN:Number(r))}var bK=Ce({number:function(r){return parseFloat(r)},time:function(r){return+Pa(r)},trim:function(r){return _e(r)?un(r):r}});function _O(r){return bK.get(r)}var bO={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},SK=(function(){function r(t,e){if(!it(e)){var a="";pt(a)}this._opFn=bO[t],this._rvalFloat=li(e)}return r.prototype.evaluate=function(t){return it(t)?this._opFn(t,this._rvalFloat):this._opFn(li(t),this._rvalFloat)},r})(),SO=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=it(t)?t:li(t),n=it(e)?e:li(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=_e(t),l=_e(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),wK=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=li(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=li(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function CK(r,t){return r==="eq"||r==="ne"?new wK(r==="eq",t):Se(bO,r)?new SK(r,t):null}var AK=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ns(t,e)},r})();function DK(r,t){var e=new AK,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==oi&&pt(o);var s=[],l={},u=r.dimensionsDefine;if(u)O(u,function(y,x){var _=y.name,S={index:x,name:_,displayName:y.displayName};if(s.push(S),_!=null){var w="";Se(l,_)&&pt(w),l[_]=S}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var h=mO(n,oi);t.__isBuiltIn&&(e.getRawDataItem=function(y){return h(a,i,s,y)},e.getRawData=be(TK,null,r)),e.cloneRawData=be(MK,null,r);var v=yO(n,oi);e.count=be(v,null,a,i,s);var p=xO(n);e.retrieveValue=function(y,x){var _=h(a,i,s,y);return g(_,x)};var g=e.retrieveValueFromItem=function(y,x){if(y!=null){var _=s[x];if(_)return p(y,x,_.name)}};return e.getDimensionInfo=be(EK,null,s,l),e.cloneAllDimensionInfo=be(LK,null,s),e}function TK(r){var t=r.sourceFormat;if(!$C(t)){var e="";pt(e)}return r.data}function MK(r){var t=r.sourceFormat,e=r.data;if(!$C(t)){var a="";pt(a)}if(t===Kr){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===gn){for(var n=[],i=0,o=e.length;i<o;i++)n.push(oe({},e[i]));return n}}function EK(r,t,e){if(e!=null){if(it(e)||!isNaN(e)&&!Se(t,e))return r[e];if(Se(t,e))return t[e]}}function LK(r){return Le(r)}var wO=Ce();function NK(r){r=Le(r);var t=r.type,e="";t||pt(e);var a=t.split(":");a.length!==2&&pt(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,wO.set(t,r)}function RK(r,t,e){var a=bt(r),n=a.length,i="";n||pt(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=BK(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function BK(r,t,e,a){var n="";t.length||pt(n),Ee(r)||pt(n);var i=r.type,o=wO.get(i);o||pt(n);var s=he(t,function(u){return DK(u,o)}),l=bt(o.transform({upstream:s[0],upstreamList:s,config:Le(r.config)}));return he(l,function(u,c){var h="";Ee(u)||pt(h),u.data||pt(h);var v=dO(u.data);$C(v)||pt(h);var p,g=t[0];if(g&&c===0&&!u.dimensions){var y=g.startIndex;y&&(u.data=g.data.slice(0,y).concat(u.data)),p={seriesLayoutBy:oi,sourceHeader:y,dimensions:g.metaRawOption.dimensions}}else p={seriesLayoutBy:oi,sourceHeader:0,dimensions:u.dimensions};return k2(u.data,p,null)})}function $C(r){return r===Kr||r===gn}var Ry="undefined",IK=typeof Uint32Array===Ry?Array:Uint32Array,kK=typeof Uint16Array===Ry?Array:Uint16Array,CO=typeof Int32Array===Ry?Array:Int32Array,rL=typeof Float64Array===Ry?Array:Float64Array,AO={float:rL,int:CO,ordinal:Array,number:Array,time:rL},ub;function tc(r){return r>65535?IK:kK}function rc(){return[1/0,-1/0]}function OK(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function aL(r,t,e,a,n){var i=AO[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var O2=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ce()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=ub[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],pO(n),this._dimensions=he(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new AO[e||"float"](this._rawCount),this._rawExtent[i]=rc(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=rc());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];aL(a,u,c.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var p=v-s,g=0;g<i;g++){var c=n[g],y=ub.arrayRows.call(this,t[p]||h,c.property,p,g);a[g][v]=y;var x=o[g];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=he(o,function(S){return S.property}),c=0;c<s;c++){var h=o[c];l[c]||(l[c]=rc()),aL(i,c,h.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var v=[],p=t;p<e;p++){v=n.getItem(p,v);for(var g=0;g<s;g++){var y=i[g],x=this._dimValueGetter(v,u[g],p,g);y[p]=x;var _=l[g];x<_[0]&&(_[0]=x),x>_[1]&&(_[1]=x)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c<h;c++){var v=this.getRawIndex(c),p=e-i[v],g=Math.abs(p);g<=a&&((g<s||g===s&&p>=0&&l<0)&&(s=g,l=p,u=0),p===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=tc(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=tc(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],h=a._chunks,v=0;v<n;v++){var p=void 0,g=a.getRawIndex(v);if(l===0)p=e(v);else if(l===1){var y=h[c][g];p=e(y,v)}else{for(var x=0;x<l;x++)s[x]=h[t[x]][g];s[x]=v,p=e.apply(null,s)}p&&(o[u++]=g)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ze(t),i=n.length;if(!i)return this;var o=e.count(),s=tc(e._rawCount),l=new s(o),u=0,c=n[0],h=t[c][0],v=t[c][1],p=e._chunks,g=!1;if(!e._indices){var y=0;if(i===1){for(var x=p[n[0]],_=0;_<a;_++){var S=x[_];(S>=h&&S<=v||isNaN(S))&&(l[u++]=y),y++}g=!0}else if(i===2){for(var x=p[n[0]],w=p[n[1]],C=t[n[1]][0],D=t[n[1]][1],_=0;_<a;_++){var S=x[_],M=w[_];(S>=h&&S<=v||isNaN(S))&&(M>=C&&M<=D||isNaN(M))&&(l[u++]=y),y++}g=!0}}if(!g)if(i===1)for(var _=0;_<o;_++){var E=e.getRawIndex(_),S=p[n[0]][E];(S>=h&&S<=v||isNaN(S))&&(l[u++]=E)}else for(var _=0;_<o;_++){for(var N=!0,E=e.getRawIndex(_),B=0;B<i;B++){var R=n[B],S=p[R][E];(S<t[R][0]||S>t[R][1])&&(N=!1)}N&&(l[u++]=e.getRawIndex(_))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=rc();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),p=0;p<o;p++)l[p]=n[e[p]][v];l[o]=h;var g=a&&a.apply(null,l);if(g!=null){typeof g!="object"&&(i[0]=g,g=i);for(var c=0;c<g.length;c++){var y=e[c],x=g[c],_=u[y],S=n[y];S&&(S[v]=x),x<_[0]&&(_[0]=x),x>_[1]&&(_[1]=x)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,h,v,p=new(tc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var g=1;g<o-1;g+=l){for(var y=Math.min(g+l,o-1),x=Math.min(g+l*2,o),_=(x+y)/2,S=0,w=y;w<x;w++){var C=this.getRawIndex(w),D=i[C];isNaN(D)||(S+=D)}S/=x-y;var M=g,E=Math.min(g+l,o),N=g-1,B=i[u];c=-1,v=M;for(var R=-1,I=0,w=M;w<E;w++){var C=this.getRawIndex(w),D=i[C];if(isNaN(D)){I++,R<0&&(R=C);continue}h=Math.abs((N-_)*(D-B)-(N-w)*(S-B)),h>c&&(c=h,v=C)}I>0&&I<E-M&&(p[s++]=Math.min(R,v),v=Math.max(R,v)),p[s++]=v,u=v}return p[s++]=this.getRawIndex(o-1),a._count=s,a._indices=p,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(tc(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var h=c,v=o[this.getRawIndex(h)],p=c,g=o[this.getRawIndex(p)],y=i;c+i>s&&(y=s-c);for(var x=0;x<y;x++){var _=this.getRawIndex(c+x),S=o[_];S<v&&(v=S,h=c+x),S>g&&(g=S,p=c+x)}var w=this.getRawIndex(h),C=this.getRawIndex(p);h<p?(l[u++]=w,l[u++]=C):(l[u++]=C,l[u++]=w)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),h=i._rawExtent[t]=rc(),v=new(tc(this._rawCount))(Math.ceil(c/l)),p=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var y=0;y<l;y++){var x=this.getRawIndex(g+y);s[y]=u[x]}var _=a(s),S=this.getRawIndex(Math.min(g+n(s,_)||0,c-1));u[S]=_,_<h[0]&&(h[0]=_),_>h[1]&&(h[1]=_),v[p++]=S}return i._count=p,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=rc();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),h=e[c];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&fn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?OK(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Le(this._extent),t._rawExtent=Le(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,n,i){return ns(e[i],this._dimensions[i])}ub={arrayRows:t,objectRows:function(e,a,n,i){return ns(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return ns(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}})(),r})(),DO=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(fp(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=sa(s)?as:pn,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},p=ke(h.seriesLayoutBy,v.seriesLayoutBy)||null,g=ke(h.sourceHeader,v.sourceHeader),y=ke(h.dimensions,v.dimensions),x=p!==v.seriesLayoutBy||!!g!=!!v.sourceHeader||y;n=x?[k2(s,{seriesLayoutBy:p,sourceHeader:g,dimensions:y},l)]:[]}else{var _=t;if(a){var S=this._applyTransform(e);n=S.sourceList,i=S.upstreamSignList}else{var w=_.get("source",!0);n=[k2(w,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&iL(i)}var o,s=[],l=[];return O(t,function(u){u.prepareSource();var c=u.getSource(n||0),h="";n!=null&&!c&&iL(h),s.push(c),l.push(u._getVersionSign())}),a?o=RK(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[vK(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];fp(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new O2,s.initData(new gO(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(fp(t)){var e=UC(t);return e?[e.getSourceManager()]:[]}else return he(H$(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(fp(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r})();function nL(r){var t=r.option.transform;t&&wv(r.option.transform)}function fp(r){return r.mainType==="series"}function iL(r){throw new Error(r)}var PK="line-height:1";function TO(r){var t=r.lineHeight;return t==null?PK:"line-height:"+Wr(t+"")+"px"}function MO(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Wr(a+"")+"px;color:"+Wr(e)+";font-weight:"+Wr(n+""),valueStyle:"font-size:"+Wr(o+"")+"px;color:"+Wr(i)+";font-weight:"+Wr(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var zK=[0,10,20,30],jK=["",`
  407. `,`
  408. `,`
  409. `];function _r(r,t){return t.type=r,t}function P2(r){return r.type==="section"}function EO(r){return P2(r)?FK:VK}function LO(r){if(P2(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return O(r.blocks,function(n){var i=LO(n);i>=t&&(t=i+ +(a&&(!i||P2(n)&&!n.noHeader)))}),t}return 0}function FK(r,t,e,a){var n=t.noHeader,i=HK(LO(t)),o=[],s=t.blocks||[];Xr(!s||ce(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Se(u,l)){var c=new SO(u[l],null);s.sort(function(y,x){return c.evaluate(y.sortParam,x.sortParam)})}else l==="seriesDesc"&&s.reverse()}O(s,function(y,x){var _=t.valueFormatter,S=EO(y)(_?oe(oe({},r),{valueFormatter:_}):r,y,x>0?i.html:0,a);S!=null&&o.push(S)});var h=r.renderMode==="richText"?o.join(i.richText):z2(a,o.join(""),n?e:i.html);if(n)return h;var v=R2(t.header,"ordinal",r.useUTC),p=MO(a,r.renderMode).nameStyle,g=TO(a);return r.renderMode==="richText"?NO(r,v,p)+i.richText+h:z2(a,'<div style="'+p+";"+g+';">'+Wr(v)+"</div>"+h,e)}function VK(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(C){return C=ce(C)?C:[C],he(C,function(D,M){return R2(D,ce(p)?p[M]:p,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":R2(l,"ordinal",u),p=t.valueType,g=o?[]:c(t.value,t.dataIndex),y=!s||!i,x=!s&&i,_=MO(a,n),S=_.nameStyle,w=_.valueStyle;return n==="richText"?(s?"":h)+(i?"":NO(r,v,S))+(o?"":YK(r,g,y,x,w)):z2(a,(s?"":h)+(i?"":GK(v,!s,S))+(o?"":UK(g,y,x,w)),e)}}function oL(r,t,e,a,n,i){if(r){var o=EO(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function HK(r){return{html:zK[r],richText:jK[r]}}function z2(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=TO(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function GK(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Wr(r)+"</span>"}function UK(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=ce(r)?r:[r],'<span style="'+i+";"+a+'">'+he(r,function(o){return Wr(o)}).join("&nbsp;&nbsp;")+"</span>"}function NO(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function YK(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ce(t)?t.join(" "):t,i)}function RO(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Fl(a)}function BO(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var cb=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=$I()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=eO({color:e,type:t,renderMode:a,markerId:n});return _e(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};ce(e)?O(e,function(i){return oe(a,i)}):oe(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r})();function IO(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=ce(s),u=RO(t,e),c,h,v,p;if(o>1||l&&!o){var g=WK(s,t,e,i,u);c=g.inlineValues,h=g.inlineValueTypes,v=g.blocks,p=g.inlineValues[0]}else if(o){var y=n.getDimensionInfo(i[0]);p=c=Hc(n,e,i[0]),h=y.type}else p=c=l?s[0]:s;var x=gC(t),_=x&&t.name||"",S=n.getName(e),w=a?_:S;return _r("section",{header:_,noHeader:a||!x,sortParam:p,blocks:[_r("nameValue",{markerType:"item",markerColor:u,name:w,noName:!un(w),value:c,valueType:h,dataIndex:e})].concat(v||[])})}function WK(r,t,e,a,n){var i=t.getData(),o=fn(r,function(h,v,p){var g=i.getDimensionInfo(p);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];a.length?O(a,function(h){c(Hc(i,e,h),h)}):O(r,c);function c(h,v){var p=i.getDimensionInfo(v);!p||p.otherDims.tooltip===!1||(o?u.push(_r("nameValue",{markerType:"subItem",markerColor:n,name:p.displayName,value:h,valueType:p.type})):(s.push(h),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ko=rt();function hp(r,t){return r.getName(t)||r.getId(t)}var Gg="__universalTransitionEnabled",St=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=gv({count:XK,reset:ZK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=ko(this).sourceManager=new DO(this);i.prepareSource();var o=this.getInitialData(e,n);lL(o,this),this.dataTask.context.data=o,ko(this).dataBeforeProcessed=o,sL(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=kv(this),i=n?lf(e):{},o=this.subType;We.hasClass(o)&&(o+="Series"),ze(e,a.getTheme().get(this.subType)),ze(e,this.getDefaultOption()),Ol(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&us(e,i,n)},t.prototype.mergeOption=function(e,a){e=ze(this.option,e,!0),this.fillDataTextStyle(e.data);var n=kv(this);n&&us(this.option,e,n);var i=ko(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);lL(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ko(this).dataBeforeProcessed=o,sL(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!sa(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ol(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=j2(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ko(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=j2(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}ko(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Ce(e)},t.prototype.getSourceManager=function(){return ko(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ko(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,n){return IO({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(qe.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=YC.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=hp(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ze(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[hp(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Gg])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ee(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var h=a[c],v=hp(e,h);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var p=a[l-1],v=hp(e,p);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(i={},i[v]=e.getRawIndex(p),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return We.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(We);Xt(St,Ny);Xt(St,YC);ik(St,We);function sL(r){var t=r.name;gC(r)||(r.name=qK(r)||t)}function qK(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return O(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function XK(r){return r.model.getRawData().count()}function ZK(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),$K}function $K(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function lL(r,t){O(zc(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Oe(KK,t))})}function KK(r,t){var e=j2(r);return e&&e.setOutputEnd((t||this).count()),t}function j2(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Et=(function(){function r(){this.group=new Re,this.uid=sf("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();yC(Et);py(Et);function ff(){var r=rt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var kO=rt(),QK=ff(),yt=(function(){function r(){this.group=new Re,this.uid=sf("viewChart"),this.renderTask=gv({plan:JK,reset:eQ}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&cL(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&cL(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){ps(this.group,t)},r.markUpdateMethod=function(t,e){kO(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function uL(r,t,e){r&&Rv(r)&&(t==="emphasis"?Qi:Ji)(r,e)}function cL(r,t,e){var a=Pl(r,t),n=t&&t.highlightKey!=null?PZ(t.highlightKey):null;a!=null?O(bt(a),function(i){uL(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){uL(i,e,n)})}yC(yt);py(yt);function JK(r){return QK(r.model)}function eQ(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&kO(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),tQ[l]}var tQ={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ym="\0__throttleOriginMethod",fL="\0__throttleRate",hL="\0__throttleType";function By(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];a=new Date().getTime(),l=this,u=p;var y=c||t,x=c||e;c=null,s=a-(x?n:i)-y,clearTimeout(o),x?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(p){c=p},v}function hf(r,t,e,a){var n=r[t];if(n){var i=n[ym]||n,o=n[hL],s=n[fL];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=By(i,e,a==="debounce"),n[ym]=i,n[hL]=a,n[fL]=e}return n}}function Pv(r,t){var e=r[t];e&&e[ym]&&(e.clear&&e.clear(),r[t]=e[ym])}var vL=rt(),dL={itemStyle:zl(Uk,!0),lineStyle:zl(Gk,!0)},rQ={lineStyle:"stroke",itemStyle:"fill"};function OO(r,t){var e=r.visualStyleMapper||dL[t];return e||(console.warn("Unknown style type '"+t+"'."),dL.itemStyle)}function PO(r,t){var e=r.visualDrawType||rQ[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var aQ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=OO(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=PO(r,a),u=o[l],c=Te(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Te(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Te(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(p,g){var y=r.getDataParams(g),x=oe({},o);x[l]=c(y),p.setItemVisual(g,"style",x)}}}},wh=new ut,nQ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=OO(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){wh.option=l[a];var u=n(wh),c=o.ensureUniqueItemVisual(s,"style");oe(c,u),wh.option.decal&&(o.setItemVisual(s,"decal",wh.option.decal),wh.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},iQ={performRawSeries:!0,overallReset:function(r){var t=Ce();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),vL(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=vL(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=PO(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],h=i.getItemVisual(c,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(c,"style"),p=a.getName(u)||u+"",g=a.count();v[l]=e.getColorFromPalette(p,o,g)}})}})}},vp=Math.PI;function oQ(r,t){t=t||{},Me(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Re,a=new Je({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Qe({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 Je({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new dd({shape:{startAngle:-vp/2,endAngle:-vp/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:vp*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:vp*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var zO=(function(){function r(t,e,a,n){this._stageTaskMap=Ce(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=Ce();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;O(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";Xr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;O(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,v=c.overallTask;if(v){var p,g=v.agentStubMap;g.each(function(x){s(n,x)&&(x.dirty(),p=!0)}),p&&v.dirty(),o.updatePayload(v,a);var y=o.getPerformArgs(v,n.block);g.each(function(x){x.perform(y)}),v.perform(y)&&(i=!0)}else h&&h.each(function(x,_){s(n,x)&&x.dirty();var S=o.getPerformArgs(x,n.block);S.skip=!l.performRawSeries&&e.isSeriesFiltered(x.context.model),o.updatePayload(x,a),x.perform(S)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Ce(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(h){var v=h.uid,p=s.set(v,o&&o.get(v)||gv({plan:fQ,reset:hQ,count:dQ}));p.context={model:h,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(h,p)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||gv({reset:sQ});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Ce(),u=t.seriesType,c=t.getTargetSeries,h=!0,v=!1,p="";Xr(!t.createOnAllSeries,p),u?a.eachRawSeriesByType(u,g):c?c(a,n).each(g):(h=!1,O(a.getSeries(),g));function g(y){var x=y.uid,_=l.set(x,s&&s.get(x)||(v=!0,gv({reset:lQ,onDirty:cQ})));_.context={model:y,overallProgress:h},_.agent=o,_.__block=h,i._pipe(y,_)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Te(t)&&(t={overallReset:t,seriesType:pQ(t)}),t.uid=sf("stageHandler"),e&&(t.visualType=e),t},r})();function sQ(r){r.overallReset(r.ecModel,r.api,r.payload)}function lQ(r){return r.overallProgress&&uQ}function uQ(){this.agent.dirty(),this.getDownstream().dirty()}function cQ(){this.agent&&this.agent.dirty()}function fQ(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function hQ(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=bt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?he(t,function(e,a){return jO(a)}):vQ}var vQ=jO(0);function jO(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function dQ(r){return r.data.count()}function pQ(r){xm=null;try{r(zv,FO)}catch{}return xm}var zv={},FO={},xm;VO(zv,WC);VO(FO,fO);zv.eachSeriesByType=zv.eachRawSeriesByType=function(r){xm=r};zv.eachComponent=function(r){r.mainType==="series"&&r.subType&&(xm=r.subType)};function VO(r,t){for(var e in t.prototype)r[e]=qt}var pL=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const gQ={color:pL,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],pL]};var Gr="#B9B8CE",gL="#100C2A",dp=function(){return{axisLine:{lineStyle:{color:Gr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},mL=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],HO={darkMode:!0,color:mL,backgroundColor:gL,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Gr},pageTextStyle:{color:Gr}},textStyle:{color:Gr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Gr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Gr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Gr}},timeline:{lineStyle:{color:Gr},label:{color:Gr},controlStyle:{color:Gr,borderColor:Gr}},calendar:{itemStyle:{color:gL},dayLabel:{color:Gr},monthLabel:{color:Gr},yearLabel:{color:Gr}},timeAxis:dp(),logAxis:dp(),valueAxis:dp(),categoryAxis:dp(),line:{symbol:"circle"},graph:{color:mL},gauge:{title:{color:Gr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Gr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};HO.categoryAxis.splitLine.show=!1;var mQ=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(_e(t)){var i=ti(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};O(t,function(l,u){for(var c=!1,h=0;h<o.length;h++){var v=o[h],p=u.lastIndexOf(v);if(p>0&&p===u.length-v.length){var g=u.slice(0,p);g!=="data"&&(e.mainType=g,e[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(h,v,p,g){return h[p]==null||v[g||p]===h[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),F2=["symbol","symbolSize","symbolRotate","symbolOffset"],yL=F2.concat(["symbolKeepAspect"]),yQ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<F2.length;o++){var s=F2[o],l=r.get(s);Te(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(oe({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ze(n);function c(h,v){for(var p=r.getRawValue(v),g=r.getDataParams(v),y=0;y<u.length;y++){var x=u[y];h.setItemVisual(v,x,n[x](p,g))}}return{dataEach:i?c:null}}},xQ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<yL.length;s++){var l=yL[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function KC(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function yd(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function GO(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function UO(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}O([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=oe({},n),o.dispatchAction(oe(n,{type:a[1],seriesIndex:e(i,n)}))})})}function ac(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=o.getData(),v=Pl(h,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:ce(v)?h.getName(v[0]):h.getName(v),selected:_e(l)?l:oe({},l)})}})}function _Q(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(ac("map","selectchanged",t,n,a),ac("pie","selectchanged",t,n,a)):a.fromAction==="select"?(ac("map","selected",t,n,a),ac("pie","selected",t,n,a)):a.fromAction==="unselect"&&(ac("map","unselected",t,n,a),ac("pie","unselected",t,n,a))})}function wl(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var bQ=Math.round(Math.random()*9),SQ=typeof Object.defineProperty=="function",wQ=(function(){function r(){this._id="__ec_inner_"+bQ++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var a=this._guard(t);return SQ?Object.defineProperty(a,this._id,{value:e,enumerable:!1,configurable:!0}):a[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),CQ=Xe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),AQ=Xe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),DQ=Xe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),p=o*.6,g=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-h*p,l+s+v*p,e,a-g,e,a),r.bezierCurveTo(e,a-g,e-c+h*p,l+s+v*p,e-c,l+s),r.closePath()}}),TQ=Xe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),MQ={line:hr,rect:Je,roundRect:Je,square:Je,circle:fi,diamond:AQ,pin:DQ,arrow:TQ,triangle:CQ},EQ={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},_m={};O(MQ,function(r,t){_m[t]=new r});var LQ=Xe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=um(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=_m[a];n||(a="rect",n=_m[a]),EQ[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function NQ(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Jt(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=EC(r.slice(8),new Ve(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=pd(r.slice(7),{},new Ve(t,e,a,n),o?"center":"cover"):l=new LQ({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=NQ,i&&l.setColor(i),l}function vf(r){return ce(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Jl(r,t){if(r!=null)return ce(r)||(r=[r,r]),[xe(r[0],t[0])||0,xe(ke(r[1],r[0]),t[1])||0]}function Cl(r){return isFinite(r)}function RQ(r,t,e){var a=t.x==null?0:t.x,n=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(a=a*e.width+e.x,n=n*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),a=Cl(a)?a:0,n=Cl(n)?n:1,i=Cl(i)?i:0,o=Cl(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function BQ(r,t,e){var a=e.width,n=e.height,i=Math.min(a,n),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*a+e.x,s=s*n+e.y,l=l*i),o=Cl(o)?o:.5,s=Cl(s)?s:.5,l=l>=0&&Cl(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function V2(r,t,e){for(var a=t.type==="radial"?BQ(r,t,e):RQ(r,t,e),n=t.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function IQ(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function pp(r){return parseInt(r,10)}function Cc(r,t,e){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[a]!=null&&e[a]!=="auto")return parseFloat(e[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||pp(s[a])||pp(r.style[a]))-(pp(s[i])||0)-(pp(s[o])||0)|0}function kQ(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:it(r)?[r]:ce(r)?r:null}function QC(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&kQ(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=he(e,function(i){return i/n}),a/=n)}return[e,a]}var OQ=new ui(!0);function bm(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function xL(r){return typeof r=="string"&&r!=="none"}function Sm(r){var t=r.fill;return t!=null&&t!=="none"}function _L(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function bL(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function H2(r,t,e){var a=xC(t.image,t.__image,e);if(gy(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*nv),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function PQ(r,t,e,a){var n,i=bm(e),o=Sm(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||OQ,h=t.__dirty;if(!a){var v=e.fill,p=e.stroke,g=o&&!!v.colorStops,y=i&&!!p.colorStops,x=o&&!!v.image,_=i&&!!p.image,S=void 0,w=void 0,C=void 0,D=void 0,M=void 0;(g||y)&&(M=t.getBoundingRect()),g&&(S=h?V2(r,v,M):t.__canvasFillGradient,t.__canvasFillGradient=S),y&&(w=h?V2(r,p,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),x&&(C=h||!t.__canvasFillPattern?H2(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=C),_&&(D=h||!t.__canvasStrokePattern?H2(r,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=C),g?r.fillStyle=S:x&&(C?r.fillStyle=C:o=!1),y?r.strokeStyle=w:_&&(D?r.strokeStyle=D:i=!1)}var E=t.getGlobalScale();c.setScale(E[0],E[1],t.segmentIgnoreThreshold);var N,B;r.setLineDash&&e.lineDash&&(n=QC(t),N=n[0],B=n[1]);var R=!0;(u||h&gc)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),R=!1),c.reset(),t.buildPath(c,t.shape,a),c.toStatic(),t.pathUpdated()),R&&c.rebuildPath(r,l?s:1),N&&(r.setLineDash(N),r.lineDashOffset=B),a||(e.strokeFirst?(i&&bL(r,e),o&&_L(r,e)):(o&&_L(r,e),i&&bL(r,e))),N&&r.setLineDash([])}function zQ(r,t,e){var a=t.__image=xC(e.image,t.__image,t,t.onload);if(!(!a||!gy(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,c=e.sy||0;r.drawImage(a,u,c,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,c=e.sy,h=o-u,v=s-c;r.drawImage(a,u,c,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function jQ(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||os,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=QC(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(bm(e)&&r.strokeText(n,e.x,e.y),Sm(e)&&r.fillText(n,e.x,e.y)):(Sm(e)&&r.fillText(n,e.x,e.y),bm(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var SL=["shadowBlur","shadowOffsetX","shadowOffsetY"],wL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YO(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){ba(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?El.opacity:o}(a||t.blend!==e.blend)&&(i||(ba(r,n),i=!0),r.globalCompositeOperation=t.blend||El.blend);for(var s=0;s<SL.length;s++){var l=SL[s];(a||t[l]!==e[l])&&(i||(ba(r,n),i=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(i||(ba(r,n),i=!0),r.shadowColor=t.shadowColor||El.shadowColor),i}function CL(r,t,e,a,n){var i=jv(t,n.inHover),o=a?null:e&&jv(e,n.inHover)||{};if(i===o)return!1;var s=YO(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(ba(r,n),s=!0),xL(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(ba(r,n),s=!0),xL(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(ba(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(ba(r,n),s=!0),r.lineWidth=u)}for(var c=0;c<wL.length;c++){var h=wL[c],v=h[0];(a||i[v]!==o[v])&&(s||(ba(r,n),s=!0),r[v]=i[v]||h[1])}return s}function FQ(r,t,e,a,n){return YO(r,jv(t,n.inHover),e&&jv(e,n.inHover),a,n)}function WO(r,t){var e=t.transform,a=r.dpr||1;e?r.setTransform(a*e[0],a*e[1],a*e[2],a*e[3],a*e[4],a*e[5]):r.setTransform(a,0,0,a,0,0)}function VQ(r,t,e){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),WO(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=a}function HQ(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var AL=1,DL=2,TL=3,ML=4;function GQ(r){var t=Sm(r),e=bm(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function ba(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function jv(r,t){return t&&r.__hoverStyle||r.style}function JC(r,t){Al(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Al(r,t,e,a){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Ra,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||IQ(i,o))&&(o&&o.length&&(ba(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(ba(r,e),r.save(),VQ(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var c=t instanceof Xe&&t.autoBatch&&GQ(t.style);s||HQ(n,u.transform)?(ba(r,e),WO(r,t)):c||ba(r,e);var h=jv(t,e.inHover);t instanceof Xe?(e.lastDrawType!==AL&&(l=!0,e.lastDrawType=AL),CL(r,t,u,l,e),(!c||!e.batchFill&&!e.batchStroke)&&r.beginPath(),PQ(r,t,h,c),c&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Fc?(e.lastDrawType!==TL&&(l=!0,e.lastDrawType=TL),CL(r,t,u,l,e),jQ(r,t,h)):t instanceof br?(e.lastDrawType!==DL&&(l=!0,e.lastDrawType=DL),FQ(r,t,u,l,e),zQ(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==ML&&(l=!0,e.lastDrawType=ML),UQ(r,t,e)),c&&a&&ba(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function UQ(r,t,e){var a=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Al(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=n.length;u<c;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Al(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var fb=new wQ,EL=new ud(100),LL=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Gc(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&fb.delete(r);var i=fb.get(r);if(i)return i;var o=Me(r,{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=n?1:1/e,fb.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],h=!0,v=0;v<LL.length;++v){var p=o[LL[v]];if(p!=null&&!ce(p)&&!_e(p)&&!it(p)&&typeof p!="boolean"){h=!1;break}c.push(p)}var g;if(h){g=c.join(",")+(n?"-svg":"");var y=EL.get(g);y&&(n?u.svgElement=y:u.image=y)}var x=XO(o.dashArrayX),_=YQ(o.dashArrayY),S=qO(o.symbol),w=WQ(x),C=ZO(_),D=!n&&kn.createCanvas(),M=n&&{tag:"g",attrs:{},key:"dcl",children:[]},E=B(),N;D&&(D.width=E.width*e,D.height=E.height*e,N=D.getContext("2d")),R(),h&&EL.put(g,D||M),u.image=D,u.svgElement=M,u.svgWidth=E.width,u.svgHeight=E.height;function B(){for(var I=1,P=0,z=w.length;P<z;++P)I=qE(I,w[P]);for(var V=1,P=0,z=S.length;P<z;++P)V=qE(V,S[P].length);I*=V;var G=C*w.length*S.length;return{width:Math.max(1,Math.min(I,o.maxTileWidth)),height:Math.max(1,Math.min(G,o.maxTileHeight))}}function R(){N&&(N.clearRect(0,0,D.width,D.height),o.backgroundColor&&(N.fillStyle=o.backgroundColor,N.fillRect(0,0,D.width,D.height)));for(var I=0,P=0;P<_.length;++P)I+=_[P];if(I<=0)return;for(var z=-C,V=0,G=0,F=0;z<E.height;){if(V%2===0){for(var Y=G/2%S.length,W=0,X=0,te=0;W<E.width*2;){for(var j=0,P=0;P<x[F].length;++P)j+=x[F][P];if(j<=0)break;if(X%2===0){var U=(1-o.symbolSize)*.5,Z=W+x[F][X]*U,$=z+_[V]*U,fe=x[F][X]*o.symbolSize,ye=_[V]*o.symbolSize,ee=te/2%S[Y].length;se(Z,$,fe,ye,S[Y][ee])}W+=x[F][X],++te,++X,X===x[F].length&&(X=0)}++F,F===x.length&&(F=0)}z+=_[V],++G,++V,V===_.length&&(V=0)}function se(ue,we,ve,Ae,Ue){var De=n?1:e,Ke=Jt(Ue,ue*De,we*De,ve*De,Ae*De,o.color,o.symbolKeepAspect);if(n){var ot=a.painter.renderOneToVNode(Ke);ot&&M.children.push(ot)}else JC(N,Ke)}}}}function qO(r){if(!r||r.length===0)return[["rect"]];if(_e(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!_e(r[e])){t=!1;break}if(t)return qO([r]);for(var a=[],e=0;e<r.length;++e)_e(r[e])?a.push([r[e]]):a.push(r[e]);return a}function XO(r){if(!r||r.length===0)return[[0,0]];if(it(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!it(r[a])){e=!1;break}if(e)return XO([r]);for(var n=[],a=0;a<r.length;++a)if(it(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=he(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function YQ(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(it(r)){var t=Math.ceil(r);return[t,t]}var e=he(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function WQ(r){return he(r,function(t){return ZO(t)})}function ZO(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function qQ(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Gc(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Gc(n,t)}}})}var Tn=new vn,$O={};function XQ(r,t){$O[r]=t}function KO(r){return $O[r]}var ZQ="5.6.0",$Q={zrender:"5.6.1"},KQ=1,QQ=800,JQ=900,eJ=1e3,tJ=2e3,rJ=5e3,QO=1e3,aJ=1100,eA=2e3,JO=3e3,nJ=4e3,Iy=4500,iJ=4600,oJ=5e3,sJ=6e3,eP=7e3,tP={PROCESSOR:{FILTER:eJ,SERIES_FILTER:QQ,STATISTIC:rJ},VISUAL:{LAYOUT:QO,PROGRESSIVE_LAYOUT:aJ,GLOBAL:eA,CHART:JO,POST_CHART_LAYOUT:iJ,COMPONENT:nJ,BRUSH:oJ,CHART_ITEM:Iy,ARIA:sJ,DECAL:eP}},Vr="__flagInMainProcess",ya="__pendingUpdate",hb="__needsUpdateStatus",NL=/^[a-zA-Z0-9_]+$/,vb="__connectUpdateStatus",RL=0,lJ=1,uJ=2;function rP(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return nP(this,r,t)}}function aP(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nP(this,r,t)}}function nP(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),vn.prototype[t].apply(r,e)}var iP=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(vn),oP=iP.prototype;oP.on=aP("on");oP.off=aP("off");var nc,db,gp,Oo,pb,gb,mb,Ch,Ah,BL,IL,yb,kL,mp,OL,sP,$a,PL,wm=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this,new mQ)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},_e(a)&&(a=lP[a]),i._dom=e;var o="canvas",s="auto",l=!1;n.ssr&&YI(function(v){var p=Be(v),g=p.dataIndex;if(g!=null){var y=Ce();return y.set("series_index",p.seriesIndex),y.set("data_index",g),p.ssrType&&y.set("ssr_type",p.ssrType),y}});var u=i._zr=p2(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ke(n.useDirtyRect,l),useCoarsePointer:ke(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=By(be(u.flush,u),17),a=Le(a),a&&vO(a,!0),i._theme=a,i._locale=D$(n.locale||Yk),i._coordSysMgr=new cf;var c=i._api=OL(i);function h(v,p){return v.__prio-p.__prio}return Rg(Am,h),Rg(G2,h),i._scheduler=new zO(i,c,G2,Am),i._messageCenter=new iP,i._initEvents(),i.resize=be(i.resize,i),u.animation.on("frame",i._onframe,i),BL(u,i),IL(u,i),wv(i),i}return t.prototype._onframe=function(){if(!this._disposed){PL(this);var e=this._scheduler;if(this[ya]){var a=this[ya].silent;this[Vr]=!0;try{nc(this),Oo.update.call(this,null,this[ya].updateParams)}catch(l){throw this[Vr]=!1,this[ya]=null,l}this._zr.flush(),this[Vr]=!1,this[ya]=null,Ch.call(this,a),Ah.call(this,a)}else if(e.unfinished){var n=KQ,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),gb(this,i),e.performVisualTasks(i),mp(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.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(e,a,n){if(!this[Vr]){if(this._disposed){this.id;return}var i,o,s;if(Ee(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Vr]=!0,!this._model||a){var l=new J$(this._api),u=this._theme,c=this._model=new WC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},U2);var h={seriesTransition:s,optionChanged:!0};if(n)this[ya]={silent:i,updateParams:h},this[Vr]=!1,this.getZr().wakeUp();else{try{nc(this),Oo.update.call(this,null,h)}catch(v){throw this[ya]=null,this[Vr]=!1,v}this._ssr||this._zr.flush(),this[ya]=null,this[Vr]=!1,Ch.call(this,i),Ah.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||qe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(qe.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return O(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;O(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return O(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Dm[n]){var l=s,u=s,c=-s,h=-s,v=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();O(Rl,function(w,C){if(w.group===n){var D=a?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Le(e)),M=w.getDom().getBoundingClientRect();l=i(M.left,l),u=i(M.top,u),c=o(M.right,c),h=o(M.bottom,h),v.push({dom:D,left:M.left,top:M.top})}}),l*=p,u*=p,c*=p,h*=p;var g=c-l,y=h-u,x=kn.createCanvas(),_=p2(x,{renderer:a?"svg":"canvas"});if(_.resize({width:g,height:y}),a){var S="";return O(v,function(w){var C=w.left-l,D=w.top-u;S+='<g transform="translate('+C+","+D+')">'+w.dom+"</g>"}),_.painter.getSvgRoot().innerHTML=S,e.connectedBackgroundColor&&_.painter.setBackgroundColor(e.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return e.connectedBackgroundColor&&_.add(new Je({shape:{x:0,y:0,width:g,height:y},style:{fill:e.connectedBackgroundColor}})),O(v,function(w){var C=new br({style:{x:w.left*p-l,y:w.top*p-u,image:w.dom}});_.add(C)}),_.refreshImmediately(),x.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return pb(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return pb(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=fv(n,e);return O(o,function(s,l){l.indexOf("Models")>=0&&O(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=fv(n,e,{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?KC(s,l,a):yd(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;O(cJ,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&wl(s,function(g){var y=Be(g);if(y&&y.dataIndex!=null){var x=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=x&&x.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=oe({},y.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var v=c&&h!=null&&o.getComponent(c,h),p=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:p},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),O(mv,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),O(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),_Q(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&rk(this.getDom(),rA,"");var a=this,n=a._api,i=a._model;O(a._componentsViews,function(o){o.dispose(i,n)}),O(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Rl[a.id]},t.prototype.resize=function(e){if(!this[Vr]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[ya]&&(i==null&&(i=this[ya].silent),n=!0,this[ya]=null),this[Vr]=!0;try{n&&nc(this),Oo.update.call(this,{type:"resize",animation:oe({duration:0},e&&e.animation)})}catch(o){throw this[Vr]=!1,o}this[Vr]=!1,Ch.call(this,i),Ah.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(Ee(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!Y2[e]){var n=Y2[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=oe({},e);return a.type=mv[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(Ee(a)||(a={silent:!!a}),!!Cm[e.type]&&this._model){if(this[Vr]){this._pendingActions.push(e);return}var n=a.silent;mb.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&qe.browser.weChat&&this._throttledZrFlush(),Ch.call(this,n),Ah.call(this,n)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){nc=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),db(h,!0),db(h,!1),v.plan()},db=function(h,v){for(var p=h._model,g=h._scheduler,y=v?h._componentsViews:h._chartsViews,x=v?h._componentsMap:h._chartsMap,_=h._zr,S=h._api,w=0;w<y.length;w++)y[w].__alive=!1;v?p.eachComponent(function(M,E){M!=="series"&&C(E)}):p.eachSeries(C);function C(M){var E=M.__requireNewView;M.__requireNewView=!1;var N="_ec_"+M.id+"_"+M.type,B=!E&&x[N];if(!B){var R=ti(M.type),I=v?Et.getClass(R.main,R.sub):yt.getClass(R.sub);B=new I,B.init(p,S),x[N]=B,y.push(B),_.add(B.group)}M.__viewId=B.__id=N,B.__alive=!0,B.__model=M,B.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!v&&g.prepareView(B,M,p,S)}for(var w=0;w<y.length;){var D=y[w];D.__alive?w++:(!v&&D.renderTask.dispose(),_.remove(D.group),D.dispose(p,S),y.splice(w,1),x[D.__id]===D&&delete x[D.__id],D.__id=D.group.__ecComponentInfo=null)}},gp=function(h,v,p,g,y){var x=h._model;if(x.setUpdatePayload(p),!g){O([].concat(h._componentsViews).concat(h._chartsViews),D);return}var _={};_[g+"Id"]=p[g+"Id"],_[g+"Index"]=p[g+"Index"],_[g+"Name"]=p[g+"Name"];var S={mainType:g,query:_};y&&(S.subType=y);var w=p.excludeSeriesId,C;w!=null&&(C=Ce(),O(bt(w),function(M){var E=fr(M,null);E!=null&&C.set(E,!0)})),x&&x.eachComponent(S,function(M){var E=C&&C.get(M.id)!=null;if(!E)if(x3(p))if(M instanceof St)p.type===Ll&&!p.notBlur&&!M.get(["emphasis","disabled"])&&EZ(M,p,h._api);else{var N=AC(M.mainType,M.componentIndex,p.name,h._api),B=N.focusSelf,R=N.dispatchers;p.type===Ll&&B&&!p.notBlur&&A2(M.mainType,M.componentIndex,h._api),R&&O(R,function(I){p.type===Ll?Qi(I):Ji(I)})}else T2(p)&&M instanceof St&&(RZ(M,p,h._api),m3(M),$a(h))},h),x&&x.eachComponent(S,function(M){var E=C&&C.get(M.id)!=null;E||D(h[g==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},h);function D(M){M&&M.__alive&&M[v]&&M[v](M.__model,x,h._api,p)}},Oo={prepareAndUpdate:function(h){nc(this),Oo.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var p=this._model,g=this._api,y=this._zr,x=this._coordSysMgr,_=this._scheduler;if(p){p.setUpdatePayload(h),_.restoreData(p,h),_.performSeriesTasks(p),x.create(p,g),_.performDataProcessorTasks(p,h),gb(this,p),x.update(p,g),e(p),_.performVisualTasks(p,h),yb(this,p,g,h,v);var S=p.get("backgroundColor")||"transparent",w=p.get("darkMode");y.setBackgroundColor(S),w!=null&&w!=="auto"&&y.setDarkMode(w),Tn.trigger("afterupdate",p,g)}},updateTransform:function(h){var v=this,p=this._model,g=this._api;if(p){p.setUpdatePayload(h);var y=[];p.eachComponent(function(_,S){if(_!=="series"){var w=v.getViewOfComponentModel(S);if(w&&w.__alive)if(w.updateTransform){var C=w.updateTransform(S,p,g,h);C&&C.update&&y.push(w)}else y.push(w)}});var x=Ce();p.eachSeries(function(_){var S=v._chartsMap[_.__viewId];if(S.updateTransform){var w=S.updateTransform(_,p,g,h);w&&w.update&&x.set(_.uid,1)}else x.set(_.uid,1)}),e(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0,dirtyMap:x}),mp(this,p,g,h,{},x),Tn.trigger("afterupdate",p,g)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),yt.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),yb(this,v,this._api,h,{}),Tn.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,p=this._model;p&&(p.setUpdatePayload(h),p.eachSeries(function(g){g.getData().clearAllVisual()}),yt.markUpdateMethod(h,"updateVisual"),e(p),this._scheduler.performVisualTasks(p,h,{visualType:"visual",setDirty:!0}),p.eachComponent(function(g,y){if(g!=="series"){var x=v.getViewOfComponentModel(y);x&&x.__alive&&x.updateVisual(y,p,v._api,h)}}),p.eachSeries(function(g){var y=v._chartsMap[g.__viewId];y.updateVisual(g,p,v._api,h)}),Tn.trigger("afterupdate",p,this._api))},updateLayout:function(h){Oo.update.call(this,h)}},pb=function(h,v,p,g){if(h._disposed){h.id;return}for(var y=h._model,x=h._coordSysMgr.getCoordinateSystems(),_,S=fv(y,p),w=0;w<x.length;w++){var C=x[w];if(C[v]&&(_=C[v](y,S,g))!=null)return _}},gb=function(h,v){var p=h._chartsMap,g=h._scheduler;v.eachSeries(function(y){g.updateStreamModes(y,p[y.__viewId])})},mb=function(h,v){var p=this,g=this.getModel(),y=h.type,x=h.escapeConnect,_=Cm[y],S=_.actionInfo,w=(S.update||"update").split(":"),C=w.pop(),D=w[0]!=null&&ti(w[0]);this[Vr]=!0;var M=[h],E=!1;h.batch&&(E=!0,M=he(h.batch,function(V){return V=Me(oe({},V),h),V.batch=null,V}));var N=[],B,R=T2(h),I=x3(h);if(I&&Ck(this._api),O(M,function(V){if(B=_.action(V,p._model,p._api),B=B||oe({},V),B.type=S.event||B.type,N.push(B),I){var G=mC(h),F=G.queryOptionMap,Y=G.mainTypeSpecified,W=Y?F.keys()[0]:"series";gp(p,C,V,W),$a(p)}else R?(gp(p,C,V,"series"),$a(p)):D&&gp(p,C,V,D.main,D.sub)}),C!=="none"&&!I&&!R&&!D)try{this[ya]?(nc(this),Oo.update.call(this,h),this[ya]=null):Oo[C].call(this,h)}catch(V){throw this[Vr]=!1,V}if(E?B={type:S.event||y,escapeConnect:x,batch:N}:B=N[0],this[Vr]=!1,!v){var P=this._messageCenter;if(P.trigger(B.type,B),R){var z={type:"selectchanged",escapeConnect:x,selected:BZ(g),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(z.type,z)}}},Ch=function(h){for(var v=this._pendingActions;v.length;){var p=v.shift();mb.call(this,p,h)}},Ah=function(h){!h&&this.trigger("updated")},BL=function(h,v){h.on("rendered",function(p){v.trigger("rendered",p),h.animation.isFinished()&&!v[ya]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},IL=function(h,v){h.on("mouseover",function(p){var g=p.target,y=wl(g,Rv);y&&(LZ(y,p,v._api),$a(v))}).on("mouseout",function(p){var g=p.target,y=wl(g,Rv);y&&(NZ(y,p,v._api),$a(v))}).on("click",function(p){var g=p.target,y=wl(g,function(S){return Be(S).dataIndex!=null},!0);if(y){var x=y.selected?"unselect":"select",_=Be(y);v._api.dispatchAction({type:x,dataType:_.dataType,dataIndexInside:_.dataIndex,seriesIndex:_.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function a(h){var v=[],p=[],g=!1;if(h.eachComponent(function(S,w){var C=w.get("zlevel")||0,D=w.get("z")||0,M=w.getZLevelKey();g=g||!!M,(S==="series"?p:v).push({zlevel:C,z:D,idx:w.componentIndex,type:S,key:M})}),g){var y=v.concat(p),x,_;Rg(y,function(S,w){return S.zlevel===w.zlevel?S.z-w.z:S.zlevel-w.zlevel}),O(y,function(S){var w=h.getComponent(S.type,S.idx),C=S.zlevel,D=S.key;x!=null&&(C=Math.max(x,C)),D?(C===x&&D!==_&&C++,_=D):_&&(C===x&&C++,_=""),x=C,w.setZLevel(C)})}}yb=function(h,v,p,g,y){a(v),kL(h,v,p,g,y),O(h._chartsViews,function(x){x.__alive=!1}),mp(h,v,p,g,y),O(h._chartsViews,function(x){x.__alive||x.remove(v,p)})},kL=function(h,v,p,g,y,x){O(x||h._componentsViews,function(_){var S=_.__model;u(S,_),_.render(S,v,p,g),s(S,_),c(S,_)})},mp=function(h,v,p,g,y,x){var _=h._scheduler;y=oe(y||{},{updatedSeries:v.getSeries()}),Tn.trigger("series:beforeupdate",v,p,y);var S=!1;v.eachSeries(function(w){var C=h._chartsMap[w.__viewId];C.__alive=!0;var D=C.renderTask;_.updatePayload(D,g),u(w,C),x&&x.get(w.uid)&&D.dirty(),D.perform(_.getPerformArgs(D))&&(S=!0),C.group.silent=!!w.get("silent"),o(w,C),m3(w)}),_.unfinished=S||_.unfinished,Tn.trigger("series:layoutlabels",v,p,y),Tn.trigger("series:transition",v,p,y),v.eachSeries(function(w){var C=h._chartsMap[w.__viewId];s(w,C),c(w,C)}),i(h,v),Tn.trigger("series:afterupdate",v,p,y)},$a=function(h){h[hb]=!0,h.getZr().wakeUp()},PL=function(h){h[hb]&&(h.getZr().storage.traverse(function(v){Nc(v)||n(v)}),h[hb]=!1)};function n(h){for(var v=[],p=h.currentStates,g=0;g<p.length;g++){var y=p[g];y==="emphasis"||y==="blur"||y==="select"||v.push(y)}h.selected&&h.states.select&&v.push("select"),h.hoverState===xy&&h.states.emphasis?v.push("emphasis"):h.hoverState===hd&&h.states.blur&&v.push("blur"),h.useStates(v)}function i(h,v){var p=h._zr,g=p.storage,y=0;g.traverse(function(x){x.isGroup||y++}),y>v.get("hoverLayerThreshold")&&!qe.node&&!qe.worker&&v.eachSeries(function(x){if(!x.preventUsingHoverLayer){var _=h._chartsMap[x.__viewId];_.__alive&&_.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var p=h.get("blendMode")||null;v.eachRendered(function(g){g.isGroup||(g.style.blend=p)})}function s(h,v){if(!h.preventAutoZ){var p=h.get("z")||0,g=h.get("zlevel")||0;v.eachRendered(function(y){return l(y,p,g,-1/0),!0})}}function l(h,v,p,g){var y=h.getTextContent(),x=h.getTextGuideLine(),_=h.isGroup;if(_)for(var S=h.childrenRef(),w=0;w<S.length;w++)g=Math.max(l(S[w],v,p,g),g);else h.z=v,h.zlevel=p,g=Math.max(h.z2,g);if(y&&(y.z=v,y.zlevel=p,isFinite(g)&&(y.z2=g+2)),x){var C=h.textGuideLineConfig;x.z=v,x.zlevel=p,isFinite(g)&&(x.z2=g+(C&&C.showAbove?1:-1))}return g}function u(h,v){v.eachRendered(function(p){if(!Nc(p)){var g=p.getTextContent(),y=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(h,v){var p=h.getModel("stateAnimation"),g=h.isAnimationEnabled(),y=p.get("duration"),x=y>0?{duration:y,delay:p.get("delay"),easing:p.get("easing")}:null;v.eachRendered(function(_){if(_.states&&_.states.emphasis){if(Nc(_))return;if(_ instanceof Xe&&zZ(_),_.__dirty){var S=_.prevStates;S&&_.useStates(S)}if(g){_.stateTransition=x;var w=_.getTextContent(),C=_.getTextGuideLine();w&&(w.stateTransition=x),C&&(C.stateTransition=x)}_.__dirty&&n(_)}})}OL=function(h){return new((function(v){Q(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);g=g.parent}},p.prototype.enterEmphasis=function(g,y){Qi(g,y),$a(h)},p.prototype.leaveEmphasis=function(g,y){Ji(g,y),$a(h)},p.prototype.enterBlur=function(g){_k(g),$a(h)},p.prototype.leaveBlur=function(g){CC(g),$a(h)},p.prototype.enterSelect=function(g){bk(g),$a(h)},p.prototype.leaveSelect=function(g){Sk(g),$a(h)},p.prototype.getModel=function(){return h.getModel()},p.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},p.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},p})(fO))(h)},sP=function(h){function v(p,g){for(var y=0;y<p.length;y++){var x=p[y];x[vb]=g}}O(mv,function(p,g){h._messageCenter.on(g,function(y){if(Dm[h.group]&&h[vb]!==RL){if(y&&y.escapeConnect)return;var x=h.makeActionFromEvent(y),_=[];O(Rl,function(S){S!==h&&S.group===h.group&&_.push(S)}),v(_,RL),O(_,function(S){S[vb]!==lJ&&S.dispatchAction(x)}),v(_,uJ)}})})}})(),t})(vn),tA=wm.prototype;tA.on=rP("on");tA.off=rP("off");tA.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var cJ=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Cm={},mv={},G2=[],U2=[],Am=[],lP={},Y2={},Rl={},Dm={},fJ=+new Date-0,hJ=+new Date-0,rA="_echarts_instance_";function vJ(r,t,e){var a=!(e&&e.ssr);if(a){var n=aA(r);if(n)return n}var i=new wm(r,t,e);return i.id="ec_"+fJ++,Rl[i.id]=i,a&&rk(r,rA,i.id),sP(i),Tn.trigger("afterinit",i),i}function dJ(r){if(ce(r)){var t=r;r=null,O(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+hJ++,O(t,function(e){e.group=r})}return Dm[r]=!0,r}function uP(r){Dm[r]=!1}var pJ=uP;function gJ(r){_e(r)?r=Rl[r]:r instanceof wm||(r=aA(r)),r instanceof wm&&!r.isDisposed()&&r.dispose()}function aA(r){return Rl[DX(r,rA)]}function mJ(r){return Rl[r]}function nA(r,t){lP[r]=t}function iA(r){He(U2,r)<0&&U2.push(r)}function oA(r,t){sA(G2,r,t,tJ)}function cP(r){ky("afterinit",r)}function fP(r){ky("afterupdate",r)}function ky(r,t){Tn.on(r,t)}function Fn(r,t,e){Te(t)&&(e=t,t="");var a=Ee(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!mv[t]&&(Xr(NL.test(a)&&NL.test(t)),Cm[a]||(Cm[a]={action:e,actionInfo:r}),mv[t]=a)}function hP(r,t){cf.register(r,t)}function yJ(r){var t=cf.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function vP(r,t){sA(Am,r,t,QO,"layout")}function ms(r,t){sA(Am,r,t,JO,"visual")}var zL=[];function sA(r,t,e,a,n){if((Te(t)||Ee(t))&&(e=t,t=a),!(He(zL,e)>=0)){zL.push(e);var i=zO.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function lA(r,t){Y2[r]=t}function xJ(r){sI({createCanvas:r})}function dP(r,t,e){var a=KO("registerMap");a&&a(r,t,e)}function _J(r){var t=KO("getMap");return t&&t(r)}var pP=NK;ms(eA,aQ);ms(Iy,nQ);ms(Iy,iQ);ms(eA,yQ);ms(Iy,xQ);ms(eP,qQ);iA(vO);oA(JQ,fK);lA("default",oQ);Fn({type:Ll,event:Ll,update:Ll},qt);Fn({type:zg,event:zg,update:zg},qt);Fn({type:hv,event:hv,update:hv},qt);Fn({type:jg,event:jg,update:jg},qt);Fn({type:vv,event:vv,update:vv},qt);nA("light",gQ);nA("dark",HO);var bJ={},jL=[],SJ={registerPreprocessor:iA,registerProcessor:oA,registerPostInit:cP,registerPostUpdate:fP,registerUpdateLifecycle:ky,registerAction:Fn,registerCoordinateSystem:hP,registerLayout:vP,registerVisual:ms,registerTransform:pP,registerLoading:lA,registerMap:dP,registerImpl:XQ,PRIORITY:tP,ComponentModel:We,ComponentView:Et,SeriesModel:St,ChartView:yt,registerComponentModel:function(r){We.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){St.registerClass(r)},registerChartView:function(r){yt.registerClass(r)},registerSubTypeDefaulter:function(r,t){We.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){GI(r,t)}};function Ye(r){if(ce(r)){O(r,function(t){Ye(t)});return}He(jL,r)>=0||(jL.push(r),Te(r)&&(r={install:r}),r.install(SJ))}function Dh(r){return r==null?0:r.length||1}function FL(r){return r}var eo=(function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||FL,this._newKeyGetter=n||FL,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Dh(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],h=Dh(u),v=Dh(c);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(c,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Dh(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);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Dh(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),wJ=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function CJ(r,t){var e={},a=e.encode={},n=Ce(),i=[],o=[],s={};O(r.dimensions,function(v){var p=r.getDimensionInfo(v),g=p.coordDim;if(g){var y=p.coordDimIndex;xb(a,g)[y]=v,p.isExtraCoord||(n.set(g,1),AJ(p.type)&&(i[0]=v),xb(s,g)[y]=r.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(v)}nO.each(function(x,_){var S=xb(a,_),w=p.otherDims[_];w!=null&&w!==!1&&(S[w]=p.name)})});var l=[],u={};n.each(function(v,p){var g=a[p];u[p]=g[0],l=l.concat(g)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=he(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new wJ(s,t),e}function xb(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Tm(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function AJ(r){return!(r==="ordinal"||r==="time")}var Ug=(function(){function r(t){this.otherDims={},t!=null&&oe(this,t)}return r})(),DJ=rt(),TJ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gP=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=xP(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ke(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=pO(this.source),a=!_P(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=TJ[u]||"f",c&&(n+=c.uid),n+="$"}var p=this.source,g=[p.seriesLayoutBy,p.startIndex,n].join("$$");return{dimensions:i,hash:g}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function mP(r){return r instanceof gP}function yP(r){for(var t=Ce(),e=0;e<(r||[]).length;e++){var a=r[e],n=Ee(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function xP(r){var t=DJ(r);return t.dimNameMap||(t.dimNameMap=yP(r.dimensionsDefine))}function _P(r){return r>30}var Th=Ee,Po=he,MJ=typeof Int32Array>"u"?Array:Int32Array,EJ="e\0\0",VL=-1,LJ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NJ=["_approximateExtent"],HL,yp,Mh,Eh,_b,Lh,bb,qr=(function(){function r(t,e){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 a,n=!1;mP(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var h=a[c],v=_e(h)?new Ug({name:h}):h instanceof Ug?h:new Ug(h),p=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=p,v.coordDimIndex=0);var g=v.otherDims=v.otherDims||{};o.push(p),i[p]=v,u[p]!=null&&(l=!0),v.createInvertedIndices&&(s[p]=[]),g.itemName===0&&(this._nameDimIdx=c),g.itemId===0&&(this._idDimIdx=c),n&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=Ce();O(o,function(x){y.set(i[x].storeDimIndex,x)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(it(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof O2&&(i=t),!i){var o=this.dimensions,s=qC(t)||Ir(t)?new gO(t,o.length):t;i=new O2;var l=Po(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=CJ(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&bb(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==as&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===pn;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var h=n.getItem(c,u);if(!this.hasItemOption&&vX(h)&&(this.hasItemOption=!0),h){var v=h.name;i[c]==null&&v!=null&&(i[c]=fr(v,null));var p=h.id;o[c]==null&&p!=null&&(o[c]=fr(p,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)bb(this,c);HL(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Th(t)?oe(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Mh(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return yp(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return ce(t)?n.getValues(Po(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?VL:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){Te(t)&&(a=e,e=t,t=[]);var n=a||this,i=Po(Eh(t),this._getStoreDimIndex,this);this._store.each(i,n?be(e,n):e)},r.prototype.filterSelf=function(t,e,a){Te(t)&&(a=e,e=t,t=[]);var n=a||this,i=Po(Eh(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?be(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ze(t);return O(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){Te(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Po(Eh(t),this._getStoreDimIndex,this),s=Lh(this);return s._store=this._store.map(o,i?be(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=Po(Eh(t),this._getStoreDimIndex,this);this._store.modify(o,i?be(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Lh(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=Lh(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=Lh(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new ut(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new eo(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return yp(t,a)},function(a){return yp(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Th(t)?oe(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),ce(i)?i=i.slice():Th(i)&&(i=oe({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Th(e)?oe(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Th(t)?oe(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?oe(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;w2(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){O(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Po(this.dimensions,this._getDimInfo,this),this.hostModel)),_b(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];Te(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(sy(arguments)))})},r.internalField=(function(){HL=function(t){var e=t._invertedIndicesMap;O(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new MJ(o.categories.length);for(var l=0;l<a.length;l++)a[l]=VL;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Mh=function(t,e,a){return fr(t._getCategory(e,a),null)},yp=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Mh(t,t._idDimIdx,e)),a==null&&(a=EJ+e),a},Eh=function(t){return ce(t)||(t=t!=null?[t]:[]),t},Lh=function(t){var e=new r(t._schema?t._schema:Po(t.dimensions,t._getDimInfo,t),t.hostModel);return _b(e,t),e},_b=function(t,e){O(LJ.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,O(NJ,function(a){t[a]=Le(e[a])}),t._calculationInfo=oe({},e._calculationInfo)},bb=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=Mh(t,i,e)),l==null&&o!=null&&(n[e]=l=Mh(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}})(),r})();function RJ(r,t){return df(r,t).dimensions}function df(r,t){qC(r)||(r=XC(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=Ce(),i=[],o=IJ(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_P(o),l=a===r.dimensionsDefine,u=l?xP(r):yP(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var h=Ce(c),v=new CO(o),p=0;p<v.length;p++)v[p]=-1;function g(B){var R=v[B];if(R<0){var I=a[B],P=Ee(I)?I:{name:I},z=new Ug,V=P.name;V!=null&&u.get(V)!=null&&(z.name=z.displayName=V),P.type!=null&&(z.type=P.type),P.displayName!=null&&(z.displayName=P.displayName);var G=i.length;return v[B]=G,z.storeDimIndex=B,i.push(z),z}return i[R]}if(!s)for(var p=0;p<o;p++)g(p);h.each(function(B,R){var I=bt(B).slice();if(I.length===1&&!_e(I[0])&&I[0]<0){h.set(R,!1);return}var P=h.set(R,[]);O(I,function(z,V){var G=_e(z)?u.get(z):z;G!=null&&G<o&&(P[V]=G,x(g(G),R,V))})});var y=0;O(e,function(B){var R,I,P,z;if(_e(B))R=B,z={};else{z=B,R=z.name;var V=z.ordinalMeta;z.ordinalMeta=null,z=oe({},z),z.ordinalMeta=V,I=z.dimsDef,P=z.otherDims,z.name=z.coordDim=z.coordDimIndex=z.dimsDef=z.otherDims=null}var G=h.get(R);if(G!==!1){if(G=bt(G),!G.length)for(var F=0;F<(I&&I.length||1);F++){for(;y<o&&g(y).coordDim!=null;)y++;y<o&&G.push(y++)}O(G,function(Y,W){var X=g(Y);if(l&&z.type!=null&&(X.type=z.type),x(Me(X,z),R,W),X.name==null&&I){var te=I[W];!Ee(te)&&(te={name:te}),X.name=X.displayName=te.name,X.defaultTooltip=te.defaultTooltip}P&&Me(X.otherDims,P)})}});function x(B,R,I){nO.get(R)!=null?B.otherDims[R]=I:(B.coordDim=R,B.coordDimIndex=I,n.set(R,!0))}var _=t.generateCoord,S=t.generateCoordCount,w=S!=null;S=_?S||1:0;var C=_||"value";function D(B){B.name==null&&(B.name=B.coordDim)}if(s)O(i,function(B){D(B)}),i.sort(function(B,R){return B.storeDimIndex-R.storeDimIndex});else for(var M=0;M<o;M++){var E=g(M),N=E.coordDim;N==null&&(E.coordDim=kJ(C,n,w),E.coordDimIndex=0,(!_||S<=0)&&(E.isExtraCoord=!0),S--),D(E),E.type==null&&(lO(r,M)===Rr.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return BJ(i),new gP({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function BJ(r){for(var t=Ce(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function IJ(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return O(t,function(i){var o;Ee(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function kJ(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var OJ=(function(){function r(t){this.coordSysDims=[],this.axisMap=Ce(),this.categoryAxisMap=Ce(),this.coordSysName=t}return r})();function PJ(r){var t=r.get("coordinateSystem"),e=new OJ(t),a=zJ[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var zJ={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",nr).models[0],i=r.getReferringComponents("yAxis",nr).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),ic(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),ic(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",nr).models[0];t.coordSysDims=["single"],e.set("single",n),ic(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",nr).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),ic(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),ic(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();O(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),ic(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ic(r){return r.get("type")==="category"}function bP(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;jJ(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,h,v;if(O(i,function(S,w){_e(S)&&(i[w]=S={name:S}),l&&!S.isExtraCoord&&(!a&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!n||n===S.coordDim)&&(c=S))}),c&&!a&&!u&&(a=!0),c){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,g=c.type,y=0;O(i,function(S){S.coordDim===p&&y++});var x={name:h,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&&(x.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(h,g)),o.appendCalculationDimension(x),o.appendCalculationDimension(_)):(i.push(x),i.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function jJ(r){return!mP(r.schema)}function to(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function uA(r,t){return to(r,t)?r.getCalculationInfo("stackResultDimension"):t}function FJ(r,t){var e=r.get("coordinateSystem"),a=cf.get(e),n;return t&&t.coordSysDims&&(n=he(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Tm(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function VJ(r,t,e){var a,n;return e&&O(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function vi(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=XC(r)):(n=a.getSource(),i=n.sourceFormat===pn);var o=PJ(t),s=FJ(t,o),l=e.useEncodeDefaulter,u=Te(l)?l:l?Oe(sO,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=df(n,c),v=VJ(h.dimensions,e.createInvertedIndices,o),p=i?null:a.getSharedDataStore(h),g=bP(t,{schema:h,store:p}),y=new qr(h,t);y.setCalculationInfo(g);var x=v!=null&&HJ(n)?function(_,S,w,C){return C===v?w:this.defaultDimValueGetter(_,S,w,C)}:null;return y.hasItemOption=!1,y.initData(i?n:p,null,x),y}function HJ(r){if(r.sourceFormat===pn){var t=GJ(r.data||[]);return!ce(Qc(t))}}function GJ(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var di=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();py(di);var UJ=0,W2=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++UJ}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&he(a,YJ);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!_e(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Ce(this.categories))},r})();function YJ(r){return Ee(r)&&r.value!=null?r.value:r+""}function q2(r){return r.type==="interval"||r.type==="log"}function WJ(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=dC(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=SP(o),l=n.niceTickExtent=[Ut(Math.ceil(r[0]/o)*o,s),Ut(Math.floor(r[1]/o)*o,s)];return qJ(l,r),n}function Sb(r){var t=Math.pow(10,dy(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Ut(e*t)}function SP(r){return En(r)+2}function GL(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function qJ(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),GL(r,0,t),GL(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Oy(r,t){return r>=t[0]&&r<=t[1]}function Py(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function zy(r,t){return r*(t[1]-t[0])+t[0]}var jy=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new W2({})),ce(n)&&(n=new W2({categories:he(n,function(i){return Ee(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:_e(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Oy(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Py(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(zy(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(di);di.registerClass(jy);var nl=Ut,ro=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Oy(e,this._extent)},t.prototype.normalize=function(e){return Py(e,this._extent)},t.prototype.scale=function(e){return zy(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=SP(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:nl(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=nl(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:nl(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],h=s.value-l.value,v=h/e;u<e-1;){var p=nl(l.value+(u+1)*v);p>i[0]&&p<i[1]&&c.push(p),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=En(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=nl(e.value,n,!0);return jC(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=WJ(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=nl(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=nl(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t})(di);di.registerClass(ro);var wP=typeof Float32Array<"u",XJ=wP?Float32Array:Array;function ri(r){return ce(r)?wP?new Float32Array(r):r:new XJ(r)}var X2="__ec_stack_";function CP(r){return r.get("stack")||X2+r.seriesIndex}function cA(r){return r.dim+r.index}function ZJ(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(Me({bandWidth:n,axisKey:a,stackId:X2+i},r));for(var o=TP(t),s=[],i=0;i<r.count;i++){var l=o[a][X2+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function AP(r,t){var e=[];return t.eachSeriesByType(r,function(a){LP(a)&&e.push(a)}),e}function $J(r){var t={};O(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),v=c.dim+"_"+c.index,p=h.getDimensionIndex(h.mapDimension(c.dim)),g=h.getStore(),y=0,x=g.count();y<x;++y){var _=g.get(p,y);t[v]?t[v].push(_):t[v]=[_]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function DP(r){var t=$J(r),e=[];return O(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?c/v*u:c}else{var p=a.getData();s=Math.abs(o[1]-o[0])/p.count()}var g=xe(a.get("barWidth"),s),y=xe(a.get("barMaxWidth"),s),x=xe(a.get("barMinWidth")||(NP(a)?.5:1),s),_=a.get("barGap"),S=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:g,barMaxWidth:y,barMinWidth:x,barGap:_,barCategoryGap:S,axisKey:cA(i),stackId:CP(a)})}),TP(e)}function TP(r){var t={};O(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var p=a.barGap;p!=null&&(s.gap=p);var g=a.barCategoryGap;g!=null&&(s.categoryGap=g)});var e={};return O(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Ze(i).length;s=Math.max(35-l*4,15)+"%"}var u=xe(s,o),c=xe(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,p=(h-u)/(v+(v-1)*c);p=Math.max(p,0),O(i,function(_){var S=_.maxWidth,w=_.minWidth;if(_.width){var C=_.width;S&&(C=Math.min(C,S)),w&&(C=Math.max(C,w)),_.width=C,h-=C+c*C,v--}else{var C=p;S&&S<C&&(C=Math.min(S,h)),w&&w>C&&(C=w),C!==p&&(_.width=C,h-=C+c*C,v--)}}),p=(h-u)/(v+(v-1)*c),p=Math.max(p,0);var g=0,y;O(i,function(_,S){_.width||(_.width=p),y=_,g+=_.width*(1+c)}),y&&(g-=y.width*c);var x=-g/2;O(i,function(_,S){e[n][S]=e[n][S]||{bandWidth:o,offset:x,width:_.width},x+=_.width*(1+c)})}),e}function KJ(r,t,e){if(r&&t){var a=r[cA(t)];return a}}function MP(r,t){var e=AP(r,t),a=DP(e);O(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=CP(n),u=a[cA(s)][l],c=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function EP(r){return{seriesType:r,plan:ff(),reset:function(t){if(LP(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),h=to(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),p=QJ(n,i),g=NP(t),y=t.get("barMinHeight")||0,x=c&&e.getDimensionIndex(c),_=e.getLayout("size"),S=e.getLayout("offset");return{progress:function(w,C){for(var D=w.count,M=g&&ri(D*3),E=g&&l&&ri(D*3),N=g&&ri(D),B=a.master.getRect(),R=v?B.width:B.height,I,P=C.getStore(),z=0;(I=w.next())!=null;){var V=P.get(h?x:o,I),G=P.get(s,I),F=p,Y=void 0;h&&(Y=+V-P.get(o,I));var W=void 0,X=void 0,te=void 0,j=void 0;if(v){var U=a.dataToPoint([V,G]);if(h){var Z=a.dataToPoint([Y,G]);F=Z[0]}W=F,X=U[1]+S,te=U[0]-F,j=_,Math.abs(te)<y&&(te=(te<0?-1:1)*y)}else{var U=a.dataToPoint([G,V]);if(h){var Z=a.dataToPoint([G,Y]);F=Z[1]}W=U[0]+S,X=F,te=_,j=U[1]-F,Math.abs(j)<y&&(j=(j<=0?-1:1)*y)}g?(M[z]=W,M[z+1]=X,M[z+2]=v?te:j,E&&(E[z]=v?B.x:W,E[z+1]=v?X:B.y,E[z+2]=R),N[I]=I):C.setItemLayout(I,{x:W,y:X,width:te,height:j}),z+=3}g&&C.setLayout({largePoints:M,largeDataIndices:N,largeBackgroundPoints:E,valueAxisHorizontal:v})}}}}}}function LP(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function NP(r){return r.pipelineContext&&r.pipelineContext.large}function QJ(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var JJ=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},fA=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return md(e.value,I3[E$(Bc(this._minLevelUnit))]||I3.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return L$(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=oee(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=ln,a[1]+=ln),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-ln}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=xp.length,l=Math.min(JJ(xp,this._approxInterval,0,s),s-1);this._interval=xp[l][1],this._minLevelUnit=xp[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return it(e)?e:+Pa(e)},t.prototype.contain=function(e){return Oy(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Py(this.parse(e),this._extent)},t.prototype.scale=function(e){return zy(e,this._extent)},t.type="time",t})(ro),xp=[["second",OC],["minute",PC],["hour",pv],["quarter-day",pv*6],["half-day",pv*12],["day",ln*1.2],["half-week",ln*3.5],["week",ln*7],["month",ln*31],["quarter",ln*95],["half-year",B3/2],["year",B3]];function eee(r,t,e,a){var n=Pa(t),i=Pa(e),o=function(g){return k3(n,g,a)===k3(i,g,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},h=function(){return c()&&o("minute")},v=function(){return h()&&o("second")},p=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return v();case"millisecond":return p()}}function tee(r,t){return r/=ln,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function ree(r){var t=30*ln;return r/=t,r>6?6:r>3?3:r>2?2:1}function aee(r){return r/=pv,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function UL(r,t){return r/=t?PC:OC,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function nee(r){return dC(r,!0)}function iee(r,t,e){var a=new Date(r);switch(Bc(t)){case"year":case"month":a[Xk(e)](0);case"day":a[Zk(e)](1);case"hour":a[$k(e)](0);case"minute":a[Kk(e)](0);case"second":a[Qk(e)](0),a[Jk(e)](0)}return a.getTime()}function oee(r,t,e,a){var n=1e4,i=Wk,o=0;function s(R,I,P,z,V,G,F){for(var Y=new Date(I),W=I,X=Y[z]();W<P&&W<=a[1];)F.push({value:W}),X+=R,Y[V](X),W=Y.getTime();F.push({value:W,notAdd:!0})}function l(R,I,P){var z=[],V=!I.length;if(!eee(Bc(R),a[0],a[1],e)){V&&(I=[{value:iee(new Date(a[0]),R,e)},{value:a[1]}]);for(var G=0;G<I.length-1;G++){var F=I[G].value,Y=I[G+1].value;if(F!==Y){var W=void 0,X=void 0,te=void 0,j=!1;switch(R){case"year":W=Math.max(1,Math.round(t/ln/365)),X=zC(e),te=N$(e);break;case"half-year":case"quarter":case"month":W=ree(t),X=Ic(e),te=Xk(e);break;case"week":case"half-week":case"day":W=tee(t),X=Ay(e),te=Zk(e),j=!0;break;case"half-day":case"quarter-day":case"hour":W=aee(t),X=Iv(e),te=$k(e);break;case"minute":W=UL(t,!0),X=Dy(e),te=Kk(e);break;case"second":W=UL(t,!1),X=Ty(e),te=Qk(e);break;case"millisecond":W=nee(t),X=My(e),te=Jk(e);break}s(W,F,Y,X,te,j,z),R==="year"&&P.length>1&&G===0&&P.unshift({value:P[0].value-W})}}for(var G=0;G<z.length;G++)P.push(z[G]);return z}}for(var u=[],c=[],h=0,v=0,p=0;p<i.length&&o++<n;++p){var g=Bc(i[p]);if(M$(i[p])){l(i[p],u[u.length-1]||[],c);var y=i[p+1]?Bc(i[p+1]):null;if(g!==y){if(c.length){v=h,c.sort(function(R,I){return R.value-I.value});for(var x=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(x.push(c[_]),S>=a[0]&&S<=a[1]&&h++)}var w=(a[1]-a[0])/t;if(h>w*1.5&&v>w/1.5||(u.push(x),h>w||r===i[p]))break}c=[]}}}for(var C=lt(he(u,function(R){return lt(R,function(I){return I.value>=a[0]&&I.value<=a[1]&&!I.notAdd})}),function(R){return R.length>0}),D=[],M=C.length-1,p=0;p<C.length;++p)for(var E=C[p],N=0;N<E.length;++N)D.push({value:E[N].value,level:M-p});D.sort(function(R,I){return R.value-I.value});for(var B=[],p=0;p<D.length;++p)(p===0||D[p].value!==D[p-1].value)&&B.push(D[p]);return B}di.registerClass(fA);var YL=di.prototype,yv=ro.prototype,see=Ut,lee=Math.floor,uee=Math.ceil,_p=Math.pow,Cn=Math.log,hA=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ro,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=yv.getTicks.call(this,e);return he(o,function(s){var l=s.value,u=Ut(_p(this.base,l));return u=l===n[0]&&this._fixMin?bp(u,i[0]):u,u=l===n[1]&&this._fixMax?bp(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=Cn(this.base);e=Cn(Math.max(0,e))/n,a=Cn(Math.max(0,a))/n,yv.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=YL.getExtent.call(this);a[0]=_p(e,a[0]),a[1]=_p(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=bp(a[0],i[0])),this._fixMax&&(a[1]=bp(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=Cn(e[0])/Cn(a),e[1]=Cn(e[1])/Cn(a),YL.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=ZI(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Ut(uee(a[0]/i)*i),Ut(lee(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){yv.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Cn(e)/Cn(this.base),Oy(e,this._extent)},t.prototype.normalize=function(e){return e=Cn(e)/Cn(this.base),Py(e,this._extent)},t.prototype.scale=function(e){return e=zy(e,this._extent),_p(this.base,e)},t.type="log",t})(di),RP=hA.prototype;RP.getMinorTicks=yv.getMinorTicks;RP.getLabel=yv.getLabel;function bp(r,t){return see(r,En(t))}di.registerClass(hA);var cee=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;Te(o)?this._modelMinNum=Sp(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Sp(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(Te(s)?this._modelMaxNum=Sp(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Sp(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=ce(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Pn(u[0],1),Pn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Pc(s)||Pc(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,p=this._determinedMax;return v!=null&&(s=v,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[hee[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=fee[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),fee={min:"_determinedMin",max:"_determinedMax"},hee={min:"_dataMin",max:"_dataMax"};function BP(r,t,e){var a=r.rawExtentInfo;return a||(a=new cee(r,t,e),r.rawExtentInfo=a,a)}function Sp(r,t){return t==null?null:Pc(t)?NaN:r.parse(t)}function IP(r,t){var e=r.type,a=BP(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=AP("bar",o),l=!1;if(O(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=DP(s),c=vee(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function vee(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=KJ(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;O(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;O(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,h=1-(s+l)/i,v=c/h-c;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function Vl(r,t){var e=t,a=IP(r,e),n=a.extent,i=e.get("splitNumber");r instanceof hA&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function xd(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new jy({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new fA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(di.getClass(t)||ro)}}function dee(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function pf(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}})(t):_e(t)?(function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}})(t):Te(t)?(function(a){return function(n,i){return e!=null&&(i=n.value-e),a(vA(r,n),i,n.level!=null?{level:n.level}:null)}})(t):function(a){return r.scale.getLabel(a)}}function vA(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function pee(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof jy?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=pf(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var h=a?a[c]:{value:i[0]+c},v=s(h,c),p=o.getTextRect(v),g=gee(p,o.get("rotate")||0);l?l.union(g):l=g}return l}}function gee(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new Ve(r.x,r.y,i,o);return s}function dA(r){var t=r.get("interval");return t??"auto"}function kP(r){return r.type==="category"&&dA(r.getLabelModel())===0}function Mm(r,t){var e={};return O(r.mapDimensionsAll(t),function(a){e[uA(r,a)]=!0}),Ze(e)}function mee(r,t,e){t&&O(Mm(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var gf=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function yee(r){return vi(null,r)}var xee={isDimensionStacked:to,enableDataStack:bP,getStackedDimension:uA};function _ee(r,t){var e=t;t instanceof ut||(e=new ut(t));var a=xd(e);return a.setExtent(r[0],r[1]),Vl(a,e),a}function bee(r){Xt(r,gf)}function See(r,t){return t=t||{},At(r,null,null,t.state!=="normal")}const wee=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:RJ,createList:yee,createScale:_ee,createSymbol:Jt,createTextStyle:See,dataStack:xee,enableHoverEmphasis:ts,getECData:Be,getLayoutRect:ir,mixinAxisModelCommonMethods:bee},Symbol.toStringTag,{value:"Module"}));var Cee=1e-8;function WL(r,t){return Math.abs(r-t)<Cee}function pl(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=Vi(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!WL(n[0],s[0])||!WL(n[1],s[1]))&&(a+=Vi(n[0],n[1],s[0],s[1],t,e)),a!==0}var Aee=[];function wb(r,t){for(var e=0;e<r.length;e++)Ar(r[e],r[e],t)}function qL(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Gi(t,t,i),Ui(e,e,i))}}function Dee(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var OP=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})(),XL=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})(),ZL=(function(){function r(t){this.type="linestring",this.points=t}return r})(),PP=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return Dee(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return O(o,function(s){s.type==="polygon"?qL(s.exterior,n,i,e):O(s.points,function(l){qL(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new Ve(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(pl(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(pl(u[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new Ve(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var v=c[h];v.type==="polygon"?(wb(v.exterior,u),O(v.interiors,function(p){wb(p,u)})):O(v.points,function(p){wb(p,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t})(OP),Tee=(function(r){Q(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=ld(Aee),o=e;o&&!o.isGeoSVGGraphicRoot;)ii(i,o.getLocalTransform(),i),o=o.parent;return Zl(i,i),Ar(n,n,i),n},t})(OP);function Mee(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return O(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=zP(s,o,e);break;case"Polygon":Cb(s,o,e);break;case"MultiLineString":Cb(s,o,e);break;case"MultiPolygon":O(s,function(l,u){return Cb(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Cb(r,t,e){for(var a=0;a<r.length;a++)r[a]=zP(r[a],t[a],e)}function zP(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function Z2(r,t){return r=Mee(r),he(lt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new XL(o[0],o.slice(1)));break;case"MultiPolygon":O(n.coordinates,function(l){l[0]&&i.push(new XL(l[0],l.slice(1)))});break;case"LineString":i.push(new ZL([n.coordinates]));break;case"MultiLineString":i.push(new ZL(n.coordinates))}var s=new PP(a[t||"name"],i,a.cp);return s.properties=a,s})}const Eee=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:m2,asc:Ia,getPercentWithPrecision:cX,getPixelPrecision:hC,getPrecision:En,getPrecisionSafe:qI,isNumeric:pC,isRadianAroundZero:jc,linearMap:dt,nice:dC,numericToNumber:li,parseDate:Pa,quantile:Pg,quantity:ZI,quantityExponent:dy,reformIntervals:y2,remRadian:vC,round:Ut},Symbol.toStringTag,{value:"Module"})),Lee=Object.freeze(Object.defineProperty({__proto__:null,format:md,parse:Pa},Symbol.toStringTag,{value:"Module"})),Nee=Object.freeze(Object.defineProperty({__proto__:null,Arc:dd,BezierCurve:tf,BoundingRect:Ve,Circle:fi,CompoundPath:by,Ellipse:vd,Group:Re,Image:br,IncrementalDisplayable:Bk,Line:hr,LinearGradient:rf,Polygon:$r,Polyline:Qr,RadialGradient:TC,Rect:Je,Ring:ef,Sector:Zr,Text:Qe,clipPointsByRect:NC,clipRectByRect:zk,createIcon:nf,extendPath:Ok,extendShape:kk,getShapeClass:Sy,getTransform:rs,initProps:It,makeImage:EC,makePath:pd,mergePath:Ba,registerShape:dn,resizePath:LC,updateProps:st},Symbol.toStringTag,{value:"Module"})),Ree=Object.freeze(Object.defineProperty({__proto__:null,addCommas:jC,capitalFirst:k$,encodeHTML:Wr,formatTime:I$,formatTpl:VC,getTextRect:R$,getTooltipMarker:eO,normalizeCssArray:Ql,toCamelCase:FC,truncateText:FX},Symbol.toStringTag,{value:"Module"})),Bee=Object.freeze(Object.defineProperty({__proto__:null,bind:be,clone:Le,curry:Oe,defaults:Me,each:O,extend:oe,filter:lt,indexOf:He,inherits:nC,isArray:ce,isFunction:Te,isObject:Ee,isString:_e,map:he,merge:ze,reduce:fn},Symbol.toStringTag,{value:"Module"}));var Fv=rt();function jP(r,t){var e=he(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Iee(r){var t=r.getLabelModel().get("customValues");if(t){var e=pf(r),a=r.scale.getExtent(),n=jP(r,t),i=lt(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:he(i,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?Oee(r):zee(r)}function kee(r,t){var e=r.getTickModel().get("customValues");if(e){var a=r.scale.getExtent(),n=jP(r,e);return{ticks:lt(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?Pee(r,t):{ticks:he(r.scale.getTicks(),function(i){return i.value})}}function Oee(r){var t=r.getLabelModel(),e=FP(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function FP(r,t){var e=VP(r,"labels"),a=dA(t),n=HP(e,a);if(n)return n;var i,o;return Te(a)?i=YP(r,a):(o=a==="auto"?jee(r):a,i=UP(r,o)),GP(e,a,{labels:i,labelCategoryInterval:o})}function Pee(r,t){var e=VP(r,"ticks"),a=dA(t),n=HP(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Te(a))i=YP(r,a,!0);else if(a==="auto"){var s=FP(r,r.getLabelModel());o=s.labelCategoryInterval,i=he(s.labels,function(l){return l.tickValue})}else o=a,i=UP(r,o,!0);return GP(e,a,{ticks:i,tickCategoryInterval:o})}function zee(r){var t=r.scale.getTicks(),e=pf(r);return{labels:he(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function VP(r,t){return Fv(r)[t]||(Fv(r)[t]=[])}function HP(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function GP(r,t,e){return r.push({key:t,value:e}),e}function jee(r){var t=Fv(r).autoInterval;return t??(Fv(r).autoInterval=r.calculateCategoryInterval())}function Fee(r){var t=Vee(r),e=pf(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,p=0;l<=i[1];l+=s){var g=0,y=0,x=cd(e({value:l}),t.font,"center","top");g=x.width*1.3,y=x.height*1.3,v=Math.max(v,g,7),p=Math.max(p,y,7)}var _=v/c,S=p/h;isNaN(_)&&(_=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(_,S))),C=Fv(r.model),D=r.getExtent(),M=C.lastAutoInterval,E=C.lastTickCount;return M!=null&&E!=null&&Math.abs(M-w)<=1&&Math.abs(E-o)<=1&&M>w&&C.axisExtent0===D[0]&&C.axisExtent1===D[1]?w=M:(C.lastTickCount=o,C.lastAutoInterval=w,C.axisExtent0=D[0],C.axisExtent1=D[1]),w}function Vee(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function UP(r,t,e){var a=pf(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=kP(r),v=o.get("showMinLabel")||h,p=o.get("showMaxLabel")||h;v&&u!==i[0]&&y(i[0]);for(var g=u;g<=i[1];g+=l)y(g);p&&g-l!==i[1]&&y(i[1]);function y(x){var _={value:x};s.push(e?x:{formattedLabel:a(_),rawLabel:n.getLabel(_),tickValue:x})}return s}function YP(r,t,e){var a=r.scale,n=pf(r),i=[];return O(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var $L=[0,1],mn=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return hC(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),KL(a,n.count())),dt(t,$L,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),KL(a,n.count()));var i=dt(t,a,$L,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=kee(this,e),n=a.ticks,i=he(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Hee(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=he(a,function(i){return he(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return Iee(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return Fee(this)},r})();function KL(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Hee(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;O(t,function(p){p.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var h=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(p,g){return p=Ut(p),g=Ut(g),h?p>g:p<g}}function Gee(r){var t=We.extend(r);return We.registerClass(t),t}function Uee(r){var t=Et.extend(r);return Et.registerClass(t),t}function Yee(r){var t=St.extend(r);return St.registerClass(t),t}function Wee(r){var t=yt.extend(r);return yt.registerClass(t),t}var Nh=Math.PI*2,il=ui.CMD,qee=["top","right","bottom","left"];function Xee(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function Zee(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,h=s*e+t;if(Math.abs(a-n)%Nh<1e-4)return l[0]=c,l[1]=h,u-e;if(i){var v=a;a=ka(n),n=ka(v)}else a=ka(a),n=ka(n);a>n&&(n+=Nh);var p=Math.atan2(s,o);if(p<0&&(p+=Nh),p>=a&&p<=n||p+Nh>=a&&p+Nh<=n)return l[0]=c,l[1]=h,u-e;var g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,x=e*Math.cos(n)+r,_=e*Math.sin(n)+t,S=(g-o)*(g-o)+(y-s)*(y-s),w=(x-o)*(x-o)+(_-s)*(_-s);return S<w?(l[0]=g,l[1]=y,Math.sqrt(S)):(l[0]=x,l[1]=_,Math.sqrt(w))}function Em(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,h=a-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var p=l*c+u*h,g=p/v;s&&(g=Math.min(Math.max(g,0),1)),g*=v;var y=o[0]=r+g*c,x=o[1]=t+g*h;return Math.sqrt((y-n)*(y-n)+(x-i)*(x-i))}function WP(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var Mn=[];function $ee(r,t,e){var a=WP(t.x,t.y,t.width,t.height,r.x,r.y,Mn);return e.set(Mn[0],Mn[1]),a}function Kee(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,h=r.x,v=r.y,p=0;p<c.length;){var g=c[p++];p===1&&(a=c[p],n=c[p+1],i=a,o=n);var y=u;switch(g){case il.M:i=c[p++],o=c[p++],a=i,n=o;break;case il.L:y=Em(a,n,c[p],c[p+1],h,v,Mn,!0),a=c[p++],n=c[p++];break;case il.C:y=TI(a,n,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,v,Mn),a=c[p++],n=c[p++];break;case il.Q:y=EI(a,n,c[p++],c[p++],c[p],c[p+1],h,v,Mn),a=c[p++],n=c[p++];break;case il.A:var x=c[p++],_=c[p++],S=c[p++],w=c[p++],C=c[p++],D=c[p++];p+=1;var M=!!(1-c[p++]);s=Math.cos(C)*S+x,l=Math.sin(C)*w+_,p<=1&&(i=s,o=l);var E=(h-x)*w/S+x;y=Zee(x,_,w,C,C+D,M,E,v,Mn),a=Math.cos(C+D)*S+x,n=Math.sin(C+D)*w+_;break;case il.R:i=a=c[p++],o=n=c[p++];var N=c[p++],B=c[p++];y=WP(i,o,N,B,h,v,Mn);break;case il.Z:y=Em(a,n,i,o,h,v,Mn,!0),a=i,n=o;break}y<u&&(u=y,e.set(Mn[0],Mn[1]))}return u}var Ln=new Fe,Mt=new Fe,Qt=new Fe,ai=new Fe,ei=new Fe;function QL(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||qee,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),h=c&&Zl([],c),v=t.get("length2")||0;u&&Qt.copy(u);for(var p=0;p<o.length;p++){var g=o[p];Xee(g,0,s,Ln,ai),Fe.scaleAndAdd(Mt,Ln,ai,v),Mt.transform(h);var y=r.getBoundingRect(),x=u?u.distance(Mt):r instanceof Xe?Kee(Mt,r.path,Qt):$ee(Mt,y,Qt);x<l&&(l=x,Mt.transform(c),Qt.transform(c),Qt.toArray(i[0]),Mt.toArray(i[1]),Ln.toArray(i[2]))}qP(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Lm=[],na=new Fe;function qP(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ln.fromArray(r[0]),Mt.fromArray(r[1]),Qt.fromArray(r[2]),Fe.sub(ai,Ln,Mt),Fe.sub(ei,Qt,Mt);var e=ai.len(),a=ei.len();if(!(e<.001||a<.001)){ai.scale(1/e),ei.scale(1/a);var n=ai.dot(ei),i=Math.cos(t);if(i<n){var o=Em(Mt.x,Mt.y,Qt.x,Qt.y,Ln.x,Ln.y,Lm,!1);na.fromArray(Lm),na.scaleAndAdd(ei,o/Math.tan(Math.PI-t));var s=Qt.x!==Mt.x?(na.x-Mt.x)/(Qt.x-Mt.x):(na.y-Mt.y)/(Qt.y-Mt.y);if(isNaN(s))return;s<0?Fe.copy(na,Mt):s>1&&Fe.copy(na,Qt),na.toArray(r[1])}}}}function Qee(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ln.fromArray(r[0]),Mt.fromArray(r[1]),Qt.fromArray(r[2]),Fe.sub(ai,Mt,Ln),Fe.sub(ei,Qt,Mt);var a=ai.len(),n=ei.len();if(!(a<.001||n<.001)){ai.scale(1/a),ei.scale(1/n);var i=ai.dot(t),o=Math.cos(e);if(i<o){var s=Em(Mt.x,Mt.y,Qt.x,Qt.y,Ln.x,Ln.y,Lm,!1);na.fromArray(Lm);var l=Math.PI/2,u=Math.acos(ei.dot(t)),c=l+u-e;if(c>=l)Fe.copy(na,Qt);else{na.scaleAndAdd(ei,s/Math.tan(Math.PI/2-c));var h=Qt.x!==Mt.x?(na.x-Mt.x)/(Qt.x-Mt.x):(na.y-Mt.y)/(Qt.y-Mt.y);if(isNaN(h))return;h<0?Fe.copy(na,Mt):h>1&&Fe.copy(na,Qt)}na.toArray(r[1])}}}}function Ab(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Jee(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=Hi(a[0],a[1]),i=Hi(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=ov([],a[1],a[0],o/n),l=ov([],a[1],a[2],o/i),u=ov([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function pA(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<Nv.length;l++){var u=Nv[l],c=t[u],h=u==="normal";if(c){var v=c.get("show"),p=h?s:ke(n.states[u]&&n.states[u].ignore,s);if(p||!ke(v,o)){var g=h?a:a&&a.states[u];g&&(g.ignore=!0),a&&Ab(a,!0,u,c);continue}a||(a=new Qr,r.setTextGuideLine(a),!h&&(s||!o)&&Ab(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Ab(a,!1,u,c)}}if(a){Me(a.style,e),a.style.fill=null;var y=i.get("showAbove"),x=r.textGuideLineConfig=r.textGuideLineConfig||{};x.showAbove=y||!1,a.buildPath=Jee}}function gA(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<la.length;a++){var n=la[a];e[n]=r.getModel([n,t])}return e}function XP(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new hm(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function ZP(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(M,E){return M.rect[t]-E.rect[t]});for(var s=0,l,u=!1,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0),s=v[t]+v[e]}var p=r[0],g=r[o-1],y,x;_(),y<0&&C(-y,.8),x<0&&C(x,.8),_(),S(y,x,1),S(x,y,-1),_(),y<0&&D(-y),x<0&&D(x);function _(){y=p.rect[t]-a,x=n-g.rect[t]-g.rect[e]}function S(M,E,N){if(M<0){var B=Math.min(E,-M);if(B>0){w(B*N,0,o);var R=B+M;R<0&&C(-R*N,1)}else C(-M*N,1)}}function w(M,E,N){M!==0&&(u=!0);for(var B=E;B<N;B++){var R=r[B],I=R.rect;I[t]+=M,R.label[t]+=M}}function C(M,E){for(var N=[],B=0,R=1;R<o;R++){var I=r[R-1].rect,P=Math.max(r[R].rect[t]-I[t]-I[e],0);N.push(P),B+=P}if(B){var z=Math.min(Math.abs(M)/B,E);if(M>0)for(var R=0;R<o-1;R++){var V=N[R]*z;w(V,0,R+1)}else for(var R=o-1;R>0;R--){var V=N[R-1]*z;w(-V,R,o)}}}function D(M){var E=M<0?-1:1;M=Math.abs(M);for(var N=Math.ceil(M/(o-1)),B=0;B<o-1;B++)if(E>0?w(N,0,B+1):w(-N,o-B-1,o),M-=N,M<=0)return}return u}function ete(r,t,e,a){return ZP(r,"x","width",t,e)}function $P(r,t,e,a){return ZP(r,"y","height",t,e)}function KP(r){var t=[];r.sort(function(y,x){return x.priority-y.priority});var e=new Ve(0,0,0,0);function a(y){if(!y.ignore){var x=y.ensureState("emphasis");x.ignore==null&&(x.ignore=!1)}y.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=i.obb,v=!1,p=0;p<t.length;p++){var g=t[p];if(e.intersect(g.rect)){if(o&&g.axisAligned){v=!0;break}if(g.obb||(g.obb=new hm(g.localRect,g.transform)),h||(h=new hm(s,l)),h.intersect(g.obb)){v=!0;break}}}v?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function tte(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function rte(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:tte(a&&a.shape.points)}}var JL=["align","verticalAlign","width","height","fontSize"],ta=new Yi,Db=rt(),ate=rt();function wp(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Cp=["x","y","rotation"],nte=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();Ve.applyTransform(c,c,u),u?ta.setLocalTransform(u):(ta.x=ta.y=ta.rotation=ta.originX=ta.originY=0,ta.scaleX=ta.scaleY=1),ta.rotation=ka(ta.rotation);var h=n.__hostTarget,v;if(h){v=h.getBoundingRect().plain();var p=h.getComputedTransform();Ve.applyTransform(v,v,p)}var g=v&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:g,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:g&&g.ignore,x:ta.x,y:ta.y,scaleX:ta.scaleX,scaleY:ta.scaleY,rotation:ta.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(Te(n)||Ze(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Be(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(w,C){return function(){QL(w,C)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Te(o.layoutOption)?c=o.layoutOption(rte(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var v=!1;if(c.x!=null?(s.x=xe(c.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=xe(c.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),v=!1)}var g=Db(s);g.needsUpdateLabelLine=v,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var y=0;y<JL.length;y++){var x=JL[y];s.setStyle(x,c[x]!=null?c[x]:u.style[x])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var _=o.seriesModel;if(o.dataIndex!=null){var S=o.seriesModel.getData(o.dataType);_=S.getItemModel(o.dataIndex)}s.on("drag",n(l,_.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=XP(this._labelList),i=lt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=lt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});ete(i,0,e),$P(o,0,a);var s=lt(n,function(l){return l.layoutOption.hideOverlap});KP(s)},r.prototype.processLabelsOverall=function(){var t=this;O(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Db(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=Be(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");pA(t,gA(s),l),QL(t,h)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Nc(t))){var i=Db(a),o=i.oldLayout,s=Be(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var v=t.prevStates;v&&(He(v,"select")>=0&&a.attr(i.oldLayoutSelect),He(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),st(a,u,e,l)}else if(a.attr(u),!of(a).valueAnimation){var h=ke(a.style.opacity,1);a.style.opacity=0,It(a,{style:{opacity:h}},e,l)}if(i.oldLayout=u,a.states.select){var p=i.oldLayoutSelect={};wp(p,u,Cp),wp(p,a.states.select,Cp)}if(a.states.emphasis){var g=i.oldLayoutEmphasis={};wp(g,u,Cp),wp(g,a.states.emphasis,Cp)}Hk(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=ate(n),o=i.oldLayout,y={points:n.shape.points};o?(n.attr({shape:o}),st(n,{shape:y},e)):(n.setShape(y),n.style.strokePercent=0,It(n,{style:{strokePercent:1}},e)),i.oldLayout=y}},r})(),Tb=rt();function ite(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Tb(e).labelManager;n||(n=Tb(e).labelManager=new nte),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Tb(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Mb=Math.sin,Eb=Math.cos,QP=Math.PI,ol=Math.PI*2,ote=180/QP,JP=(function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,c=!l,h=Math.abs(u),v=Zo(h-ol)||(c?u>=ol:-u>=ol),p=u>0?u%ol:u%ol+ol,g=!1;v?g=!0:Zo(h)?g=!1:g=p>=QP==!!c;var y=t+a*Eb(o),x=e+n*Mb(o);this._start&&this._add("M",y,x);var _=Math.round(i*ote);if(v){var S=1/this._p,w=(c?1:-1)*(ol-S);this._add("A",a,n,_,1,+c,t+a*Eb(o+w),e+n*Mb(o+w)),S>.01&&this._add("A",a,n,_,0,+c,y,x)}else{var C=t+a*Eb(s),D=e+n*Mb(s);this._add("A",a,n,_,+g,+c,C,D)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var c=[],h=this._p,v=1;v<arguments.length;v++){var p=arguments[v];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*h)/h)}this._d.push(t+c.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),mA="none",ste=Math.round;function lte(r){var t=r.fill;return t!=null&&t!==mA}function ute(r){var t=r.stroke;return t!=null&&t!==mA}var $2=["lineCap","miterLimit","lineJoin"],cte=he($2,function(r){return"stroke-"+r.toLowerCase()});function fte(r,t,e,a){var n=t.opacity==null?1:t.opacity;if(e instanceof br){r("opacity",n);return}if(lte(t)){var i=Ev(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",mA);if(ute(t)){var s=Ev(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,h=t.strokeFirst;if(u!==1&&r("stroke-width",u),h&&r("paint-order",h?"stroke":"fill"),c<1&&r("stroke-opacity",c),t.lineDash){var v=QC(e),p=v[0],g=v[1];p&&(g=ste(g||0),r("stroke-dasharray",p.join(",")),(g||a)&&r("stroke-dashoffset",g))}for(var y=0;y<$2.length;y++){var x=$2[y];if(t[x]!==cm[x]){var _=t[x]||cm[x];_&&r(cte[y],_)}}}}var e7="http://www.w3.org/2000/svg",t7="http://www.w3.org/1999/xlink",hte="http://www.w3.org/2000/xmlns/",vte="http://www.w3.org/XML/1998/namespace",eN="ecmeta_";function r7(r){return document.createElementNS(e7,r)}function mr(r,t,e,a,n){return{tag:r,attrs:e||{},children:a,text:n,key:t}}function dte(r,t){var e=[];if(t)for(var a in t){var n=t[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function pte(r){return"</"+r+">"}function yA(r,t){t=t||{};var e=t.newline?`
  410. `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return dte(o,s)+(o!=="style"?Wr(l):l||"")+(i?""+e+he(i,function(u){return a(u)}).join(e)+e:"")+pte(o)}return a(r)}function gte(r,t,e){e=e||{};var a=e.newline?`
  411. `:"",n=" {"+a,i=a+"}",o=he(Ze(r),function(l){return l+n+he(Ze(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=he(Ze(t),function(l){return"@keyframes "+l+n+he(Ze(t[l]),function(u){return u+n+he(Ze(t[l][u]),function(c){var h=t[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function K2(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tN(r,t,e,a){return mr("svg","root",{width:r,height:t,xmlns:e7,"xmlns:xlink":t7,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var mte=0;function a7(){return mte++}var rN={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"},ul="transform-origin";function yte(r,t,e){var a=oe({},r.shape);oe(a,t),r.buildPath(e,a);var n=new JP;return n.reset(OI(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function xte(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[ul]=e+"px "+a+"px")}var _te={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function n7(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function bte(r,t,e){var a=r.shape.paths,n={},i,o;if(O(a,function(l){var u=K2(e.zrId);u.animation=!0,Fy(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,v=Ze(c),p=v.length;if(p){o=v[p-1];var g=c[o];for(var y in g){var x=g[y];n[y]=n[y]||{d:""},n[y].d+=x.d||""}for(var _ in h){var S=h[_].animation;S.indexOf(o)>=0&&(i=S)}}}),!!i){t.d=!1;var s=n7(n,e);return i.replace(o,s)}}function aN(r){return _e(r)?rN[r]?"cubic-bezier("+rN[r]+")":lC(r)?r:"":""}function Fy(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof by){var s=bte(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],h=[c.getMaxTime()/1e3+"s"],v=aN(c.getClip().easing),p=c.getDelay();v?h.push(v):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var g=h.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function y(S){var w=S[1],C=w.length,D={},M={},E={},N="animation-timing-function";function B(se,ue,we){for(var ve=se.getTracks(),Ae=se.getMaxTime(),Ue=0;Ue<ve.length;Ue++){var De=ve[Ue];if(De.needsAnimate()){var Ke=De.keyframes,ot=De.propName;if(we&&(ot=we(ot)),ot)for(var Lt=0;Lt<Ke.length;Lt++){var Pt=Ke[Lt],Ht=Math.round(Pt.time/Ae*100)+"%",vr=aN(Pt.easing),kt=Pt.rawValue;(_e(kt)||it(kt))&&(ue[Ht]=ue[Ht]||{},ue[Ht][ot]=Pt.rawValue,vr&&(ue[Ht][N]=vr))}}}}for(var R=0;R<C;R++){var I=w[R],P=I.targetName;P?P==="shape"&&B(I,M):!a&&B(I,D)}for(var z in D){var V={};VI(V,r),oe(V,D[z]);var G=PI(V),F=D[z][N];E[z]=G?{transform:G}:{},xte(E[z],V),F&&(E[z][N]=F)}var Y,W=!0;for(var z in M){E[z]=E[z]||{};var X=!Y,F=M[z][N];X&&(Y=new ui);var te=Y.len();Y.reset(),E[z].d=yte(r,M[z],Y);var j=Y.len();if(!X&&te!==j){W=!1;break}F&&(E[z][N]=F)}if(!W)for(var z in E)delete E[z].d;if(!a)for(var R=0;R<C;R++){var I=w[R],P=I.targetName;P==="style"&&B(I,E,function(ve){return _te[ve]})}for(var U=Ze(E),Z=!0,$,R=1;R<U.length;R++){var fe=U[R-1],ye=U[R];if(E[fe][ul]!==E[ye][ul]){Z=!1;break}$=E[fe][ul]}if(Z&&$){for(var z in E)E[z][ul]&&delete E[z][ul];t[ul]=$}if(lt(U,function(se){return Ze(E[se]).length>0}).length){var ee=n7(E,e);return ee+" "+S[0]+" both"}}for(var x in l){var s=y(l[x]);s&&o.push(s)}if(o.length){var _=e.zrId+"-cls-"+a7();e.cssNodes["."+_]={animation:o.join(",")},t.class=_}}function Ste(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};nN(a,t,e)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=om(l))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),nN(a,t,e)}}function nN(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+a7(),e.cssStyleCache[n]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var Vv=Math.round;function i7(r){return r&&_e(r.src)}function o7(r){return r&&Te(r.toDataURL)}function xA(r,t,e,a){fte(function(n,i){var o=n==="fill"||n==="stroke";o&&kI(i)?l7(t,r,n,a):o&&cC(i)?u7(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),Ete(e,r,a)}function _A(r,t){var e=UI(t);e&&(e.each(function(a,n){a!=null&&(r[(eN+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[eN+"silent"]="true"))}function iN(r){return Zo(r[0]-1)&&Zo(r[1])&&Zo(r[2])&&Zo(r[3]-1)}function wte(r){return Zo(r[4])&&Zo(r[5])}function bA(r,t,e){if(t&&!(wte(t)&&iN(t))){var a=1e4;r.transform=iN(t)?"translate("+Vv(t[4]*a)/a+" "+Vv(t[5]*a)/a+")":Mq(t)}}function oN(r,t,e){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(Vv(a[i][0]*e)/e),n.push(Vv(a[i][1]*e)/e);t.points=n.join(" ")}function sN(r){return!r.smooth}function Cte(r){var t=he(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,n){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(a[o[1]]=Vv(s*n)/n)}}}var Ate={circle:[Cte(["cx","cy","r"])],polyline:[oN,sN],polygon:[oN,sN]};function Dte(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function s7(r,t){var e=r.style,a=r.shape,n=Ate[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&OI(r)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&Dte(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);n[0](a,i,c)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;h&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var p=v.getVersion(),g=r,y=g.__svgPathBuilder;(g.__svgPathVersion!==p||!y||l!==g.__svgPathStrokePercent)&&(y||(y=g.__svgPathBuilder=new JP),y.reset(u),v.rebuildPath(y,l),y.generateStr(),g.__svgPathVersion=p,g.__svgPathStrokePercent=l),i.d=y.getStr()}return bA(i,r.transform),xA(i,e,r,t),_A(i,r),t.animation&&Fy(r,i,t),t.emphasis&&Ste(r,i,t),mr(s,r.id+"",i)}function Tte(r,t){var e=r.style,a=e.image;if(a&&!_e(a)&&(i7(a)?a=a.src:o7(a)&&(a=a.toDataURL())),!!a){var n=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),bA(l,r.transform),xA(l,e,r,t),_A(l,r),t.animation&&Fy(r,l,t),mr("image",r.id+"",l)}}function Mte(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var n=e.font||os,i=e.x||0,o=Lq(e.y||0,hy(n),e.textBaseline),s=Eq[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(pk(e)){var u="",c=e.fontStyle,h=dk(e.fontSize);if(!parseFloat(h))return;var v=e.fontFamily||oI,p=e.fontWeight;u+="font-size:"+h+";font-family:"+v+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),bA(l,r.transform),xA(l,e,r,t),_A(l,r),t.animation&&Fy(r,l,t),mr("text",r.id+"",l,void 0,a)}}function lN(r,t){if(r instanceof Xe)return s7(r,t);if(r instanceof br)return Tte(r,t);if(r instanceof Fc)return Mte(r,t)}function Ete(r,t,e){var a=r.style;if(Nq(a)){var n=Rq(r),i=e.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=a.shadowOffsetX||0,h=a.shadowOffsetY||0,v=a.shadowBlur,p=Ev(a.shadowColor),g=p.opacity,y=p.color,x=v/2/l,_=v/2/u,S=x+" "+_;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=mr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[mr("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:S,"flood-color":y,"flood-opacity":g})]),i[n]=o}t.filter=fy(o)}}function l7(r,t,e,a){var n=r[e],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(BI(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(II(n))i="radialGradient",o.cx=ke(n.x,.5),o.cy=ke(n.y,.5),o.r=ke(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=o2(s[u].offset)*100+"%",v=s[u].color,p=Ev(v),g=p.color,y=p.opacity,x={offset:h};x["stop-color"]=g,y<1&&(x["stop-opacity"]=y),l.push(mr("stop",u+"",x))}var _=mr(i,"",o,l),S=yA(_),w=a.gradientCache,C=w[S];C||(C=a.zrId+"-g"+a.gradientIdx++,w[S]=C,o.id=C,a.defs[C]=mr(i,C,o,l)),t[e]=fy(C)}function u7(r,t,e,a){var n=r.style[e],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(RI(n)){var v=n.imageWidth,p=n.imageHeight,g=void 0,y=n.image;if(_e(y)?g=y:i7(y)?g=y.src:o7(y)&&(g=y.toDataURL()),typeof Image>"u"){var x="Image width/height must been given explictly in svg-ssr renderer.";Xr(v,x),Xr(p,x)}else if(v==null||p==null){var _=function(R,I){if(R){var P=R.elm,z=v||I.width,V=p||I.height;R.tag==="pattern"&&(u?(V=1,z/=i.width):c&&(z=1,V/=i.height)),R.attrs.width=z,R.attrs.height=V,P&&(P.setAttribute("width",z),P.setAttribute("height",V))}},S=xC(g,null,r,function(R){l||_(M,R),_(h,R)});S&&S.width&&S.height&&(v=v||S.width,p=p||S.height)}h=mr("image","img",{href:g,width:v,height:p}),o.width=v,o.height=p}else n.svgElement&&(h=Le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var w,C;l?w=C=1:u?(C=1,w=o.width/i.width):c?(w=1,C=o.height/i.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),C!=null&&!isNaN(C)&&(o.height=C);var D=PI(n);D&&(o.patternTransform=D);var M=mr("pattern","",o,[h]),E=yA(M),N=a.patternCache,B=N[E];B||(B=a.zrId+"-p"+a.patternIdx++,N[E]=B,o.id=B,M=a.defs[B]=mr("pattern",B,o,[h])),t[e]=fy(B)}}function Lte(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=mr("clipPath",i,o,[s7(r,e)])}t["clip-path"]=fy(i)}function uN(r){return document.createTextNode(r)}function gl(r,t,e){r.insertBefore(t,e)}function cN(r,t){r.removeChild(t)}function fN(r,t){r.appendChild(t)}function c7(r){return r.parentNode}function f7(r){return r.nextSibling}function Lb(r,t){r.textContent=t}var hN=58,Nte=120,Rte=mr("","");function Q2(r){return r===void 0}function Qn(r){return r!==void 0}function Bte(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function Qh(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Hv(r){var t,e=r.children,a=r.tag;if(Qn(a)){var n=r.elm=r7(a);if(SA(Rte,r),ce(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&fN(n,Hv(i))}else Qn(r.text)&&!Ee(r.text)&&fN(n,uN(r.text))}else r.elm=uN(r.text);return r.elm}function h7(r,t,e,a,n){for(;a<=n;++a){var i=e[a];i!=null&&gl(r,Hv(i),t)}}function Nm(r,t,e,a){for(;e<=a;++e){var n=t[e];if(n!=null)if(Qn(n.tag)){var i=c7(n.elm);cN(i,n.elm)}else cN(r,n.elm)}}function SA(r,t){var e,a=t.elm,n=r&&r.attrs||{},i=t.attrs||{};if(n!==i){for(e in i){var o=i[e],s=n[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==Nte?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(hte,e,o):e.charCodeAt(3)===hN?a.setAttributeNS(vte,e,o):e.charCodeAt(5)===hN?a.setAttributeNS(t7,e,o):a.setAttribute(e,o))}for(e in n)e in i||a.removeAttribute(e)}}function Ite(r,t,e){for(var a=0,n=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],c=e[l],h,v,p,g;a<=i&&n<=l;)o==null?o=t[++a]:s==null?s=t[--i]:u==null?u=e[++n]:c==null?c=e[--l]:Qh(o,u)?(yc(o,u),o=t[++a],u=e[++n]):Qh(s,c)?(yc(s,c),s=t[--i],c=e[--l]):Qh(o,c)?(yc(o,c),gl(r,o.elm,f7(s.elm)),o=t[++a],c=e[--l]):Qh(s,u)?(yc(s,u),gl(r,s.elm,o.elm),s=t[--i],u=e[++n]):(Q2(h)&&(h=Bte(t,a,i)),v=h[u.key],Q2(v)?gl(r,Hv(u),o.elm):(p=t[v],p.tag!==u.tag?gl(r,Hv(u),o.elm):(yc(p,u),t[v]=void 0,gl(r,p.elm,o.elm))),u=e[++n]);(a<=i||n<=l)&&(a>i?(g=e[l+1]==null?null:e[l+1].elm,h7(r,g,e,n,l)):Nm(r,t,a,i))}function yc(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(SA(r,t),Q2(t.text)?Qn(a)&&Qn(n)?a!==n&&Ite(e,a,n):Qn(n)?(Qn(r.text)&&Lb(e,""),h7(e,null,n,0,n.length-1)):Qn(a)?Nm(e,a,0,a.length-1):Qn(r.text)&&Lb(e,""):r.text!==t.text&&(Qn(a)&&Nm(e,a,0,a.length-1),Lb(e,t.text)))}function kte(r,t){if(Qh(r,t))yc(r,t);else{var e=r.elm,a=c7(e);Hv(t),a!==null&&(gl(a,t.elm,f7(e)),Nm(a,[r],0,0))}return t}var Ote=0,Pte=(function(){function r(t,e,a){if(this.type="svg",this.refreshHover=vN(),this.configLayer=vN(),this.storage=e,this._opts=a=oe({},a),this.root=t,this._id="zr"+Ote++,this._oldVNode=tN(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=r7("svg");SA(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",kte(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return lN(t,K2(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=K2(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=zte(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=he(Ze(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=gte(i.cssNodes,i.cssAnims,{newline:!0});if(c){var h=mr("style","stl",{},[],c);o.push(h)}}return tN(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},yA(this.renderToVNode({animation:ke(t.cssAnimation,!0),emphasis:ke(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ke(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,c=0;c<n;c++){var h=t[c];if(!h.invisible){var v=h.__clipPaths,p=v&&v.length||0,g=l&&l.length||0,y=void 0;for(y=Math.max(p-1,g-1);y>=0&&!(v&&l&&v[y]===l[y]);y--);for(var x=g-1;x>y;x--)o--,s=i[o-1];for(var _=y+1;_<p;_++){var S={};Lte(v[_],S,e);var w=mr("g","clip-g-"+u++,S,[]);(s?s.children:a).push(w),i[o++]=w,s=w}l=v;var C=lN(h,e);C&&(s?s.children:a).push(C)}}},r.prototype.resize=function(t,e){var a=this._opts,n=this.root,i=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),n&&i&&(i.style.display="none",t=Cc(n,0,a),e=Cc(n,1,a),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(cC(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=Iq(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r})();function vN(r){return function(){}}function zte(r,t,e,a){var n;if(e&&e!=="none")if(n=mr("rect","bg",{width:r,height:t,x:"0",y:"0"}),kI(e))l7({fill:e},n.attrs,"fill",a);else if(cC(e))u7({style:{fill:e},dirty:qt,getBoundingRect:function(){return{width:r,height:t}}},n.attrs,"fill",a);else{var i=Ev(e),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function jte(r){r.registerPainter("svg",Pte)}function dN(r,t,e){var a=kn.createCanvas(),n=t.getWidth(),i=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*e,a.height=i*e,a}var Nb=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||lm,typeof e=="string"?o=dN(e,a,n):Ee(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(iC(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=dN("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ve(0,0,0,0);function c(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var w=new Ve(0,0,0,0);w.copy(S),o.push(w)}else{for(var C=!1,D=1/0,M=0,E=0;E<o.length;++E){var N=o[E];if(N.intersect(S)){var B=new Ve(0,0,0,0);B.copy(N),B.union(S),o[E]=B,C=!0;break}else if(l){u.copy(S),u.union(N);var R=S.width*S.height,I=N.width*N.height,P=u.width*u.height,z=P-R-I;z<D&&(D=z,M=E)}}if(l&&(o[M].union(S),C=!0),!C){var w=new Ve(0,0,0,0);w.copy(S),o.push(w)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=e[h];if(v){var p=v.shouldBePainted(n,i,!0,!0),g=v.__isRendered&&(v.__dirty&Ra||!p)?v.getPrevPaintRect():null;g&&c(g);var y=p&&(v.__dirty&Ra||!v.__isRendered)?v.getPaintRect():null;y&&c(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=a[h],p=v&&v.shouldBePainted(n,i,!0,!0);if(v&&(!p||!v.__zr)&&v.__isRendered){var g=v.getPrevPaintRect();g&&c(g)}}var x;do{x=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(x=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(x);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=a+"px"),i.width=e*n,i.height=a*n,s&&(s.width=e*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!e,c=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var p=this.domBack;function g(y,x,_,S){if(o.clearRect(y,x,_,S),a&&a!=="transparent"){var w=void 0;if(od(a)){var C=a.global||a.__width===_&&a.__height===S;w=C&&a.__canvasGradient||V2(o,a,{x:0,y:0,width:_,height:S}),a.__canvasGradient=w,a.__width=_,a.__height=S}else fI(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,w=H2(o,a,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=w||a,o.fillRect(y,x,_,S),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(p,y,x,_,S),o.restore())}!n||u?g(0,0,s,l):n.length&&O(n,function(y){g(y.x*h,y.y*h,y.width*h,y.height*h)})},t})(vn),pN=1e5,sl=314159,Ap=.01,Fte=.001;function Vte(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Hte(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var Gte=(function(){function r(t,e,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=oe({},a||{}),this.dpr=a.devicePixelRatio||lm,this._singleCanvas=i,this.root=t;var o=t.style;o&&(iC(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,h=c.width,v=c.height;a.width!=null&&(h=a.width),a.height!=null&&(v=a.height),this.dpr=a.devicePixelRatio||1,c.width=h*this.dpr,c.height=v*this.dpr,this._width=h,this._height=v;var p=new Nb(c,this,this.dpr);p.__builtin__=!0,p.initContext(),l[sl]=p,p.zlevel=sl,s.push(sl),this._domRoot=t}else{this._width=Cc(t,0,a),this._height=Cc(t,1,a);var u=this._domRoot=Hte(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,a,t,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,a=this._hoverlayer;if(a&&a.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(pN)),i||(i=a.ctx,i.save()),Al(i,s,n,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(pN)},r.prototype.paintOne=function(t,e){JC(t,e)},r.prototype._paintList=function(t,e,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;rm(function(){l._paintList(t,e,a,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(sl).ctx,e=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,e,a),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,a)})},r.prototype._doPaintList=function(t,e,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var c=!0,h=!1,v=function(y){var x=i[y],_=x.ctx,S=o&&x.createRepaintRects(t,e,p._width,p._height),w=a?x.__startIndex:x.__drawIndex,C=!a&&x.incremental&&Date.now,D=C&&Date.now(),M=x.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(x.__startIndex===x.__endIndex)x.clear(!1,M,S);else if(w===x.__startIndex){var E=t[w];(!E.incremental||!E.notClear||a)&&x.clear(!1,M,S)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=x.__startIndex);var N,B=function(z){var V={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(N=w;N<x.__endIndex;N++){var G=t[N];if(G.__inHover&&(h=!0),n._doPaintEl(G,x,o,z,V,N===x.__endIndex-1),C){var F=Date.now()-D;if(F>15)break}}V.prevElClipPaths&&_.restore()};if(S)if(S.length===0)N=x.__endIndex;else for(var R=p.dpr,I=0;I<S.length;++I){var P=S[I];_.save(),_.beginPath(),_.rect(P.x*R,P.y*R,P.width*R,P.height*R),_.clip(),B(P),_.restore()}else _.save(),B(),_.restore();x.__drawIndex=N,x.__drawIndex<x.__endIndex&&(c=!1)},p=this,g=0;g<i.length;g++)v(g);return qe.wxa&&O(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:c,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,a,n,i,o){var s=e.ctx;if(a){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(Al(s,t,i,o),t.setPrevPaintRect(l))}else Al(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=sl);var a=this._layers[t];return a||(a=new Nb("zr_"+t,this,this.dpr),a.zlevel=t,a.__builtin__=!0,this._layerConfig[t]?ze(a,this._layerConfig[t],!0):this._layerConfig[t-Ap]&&ze(a,this._layerConfig[t-Ap],!0),e&&(a.virtual=e),this.insertLayer(t,a),a.initContext()),a},r.prototype.insertLayer=function(t,e){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[t]&&Vte(e)){if(i>0&&t>n[0]){for(l=0;l<i-1&&!(n[l]<t&&n[l+1]>t);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function e(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var a=1;a<t.length;a++){var n=t[a];if(n.zlevel!==t[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,c=void 0;s!==u&&(s=u,o=0),n.incremental?(c=this.getLayer(u+Fte,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Ap:0),this._needsManuallyCompositing),c.__builtin__||iy("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,e(l),i=c),n.__dirty&Ra&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?ze(a[t],e,!0):a[t]=e;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===t||i===t+Ap){var o=this._layers[i];ze(o,a[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,a=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],a.splice(He(a,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Cc(i,0,n),e=Cc(i,1,n),a.style.display="",this._width!==t||e!==this._height){a.style.width=t+"px",a.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(sl).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[sl].dom;var e=new Nb("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var a=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height;this.eachLayer(function(h){h.__builtin__?a.drawImage(h.dom,0,0,n,i):h.renderToCanvas&&(a.save(),h.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Al(a,c,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function Ute(r){r.registerPainter("canvas",Gte)}var Yte=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return vi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Re,n=Jt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Jt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(St);function Uc(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Hc(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Hc(r,t,e[o]));return i.join(" ")}}function v7(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!ce(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var _d=(function(r){Q(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Jt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Wte,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Qi(this.childAt(0))},t.prototype.downplay=function(){Ji(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(p):st(v,p,s,a),zn(v)}if(this._updateCommon(e,a,l,n,i),u){var v=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,It(v,p,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,h,v,p,g,y,x,_;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,p=i.blurScope,y=i.labelStatesModels,x=i.hoverScale,_=i.cursorStyle,g=i.emphasisDisabled),!i||e.hasItemOption){var S=i&&i.itemModel?i.itemModel:e.getItemModel(a),w=S.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),h=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),v=w.get("focus"),p=w.get("blurScope"),g=w.get("disabled"),y=xr(S),x=w.getShallow("scale"),_=S.getShallow("cursor")}var C=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var D=Jl(e.getItemVisual(a,"symbolOffset"),n);D&&(s.x=D[0],s.y=D[1]),_&&s.attr("cursor",_);var M=e.getItemVisual(a,"style"),E=M.fill;if(s instanceof br){var N=s.style;s.useStyle(oe({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},M))}else s.__isEmptyBrush?s.useStyle(oe({},M)):s.useStyle(M),s.style.decal=null,s.setColor(E,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var B=e.getItemVisual(a,"liftZ"),R=this._z2;B!=null?R==null&&(this._z2=s.z2,s.z2+=B):R!=null&&(s.z2=R,this._z2=null);var I=o&&o.useNameLabel;Or(s,y,{labelFetcher:l,labelDataIndex:a,defaultText:P,inheritColor:E,defaultOpacity:M.opacity});function P(G){return I?e.getName(G):Uc(e,G)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var z=s.ensureState("emphasis");z.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var V=x==null||x===!0?Math.max(1.1,3/this._sizeY):isFinite(x)&&x>0?+x:1;z.scaleX=this._sizeX*V,z.scaleY=this._sizeY*V,this.setSymbolScale(1),Vt(this,v,p,g)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=Be(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&ls(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ls(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return vf(e.getItemVisual(a,"symbolSize"))},t})(Re);function Wte(r,t){this.parent.drift(r,t)}function Rb(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function gN(r){return r!=null&&!Ee(r)&&(r={isIgnore:r}),r||{}}function mN(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:xr(t),cursorStyle:t.get("cursor")}}var bd=(function(){function r(t){this.group=new Re,this._SymbolCtor=t||_d}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=gN(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=mN(t),u={disableAnimation:s},c=e.getSymbolPoint||function(h){return t.getItemLayout(h)};i||a.removeAll(),t.diff(i).add(function(h){var v=c(h);if(Rb(t,v,h,e)){var p=new o(t,h,l,u);p.setPosition(v),t.setItemGraphicEl(h,p),a.add(p)}}).update(function(h,v){var p=i.getItemGraphicEl(v),g=c(h);if(!Rb(t,g,h,e)){a.remove(p);return}var y=t.getItemVisual(h,"symbol")||"circle",x=p&&p.getSymbolType&&p.getSymbolType();if(!p||x&&x!==y)a.remove(p),p=new o(t,h,l,u),p.setPosition(g);else{p.updateData(t,h,l,u);var _={x:g[0],y:g[1]};s?p.attr(_):st(p,_,n)}a.add(p),t.setItemGraphicEl(h,p)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mN(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=gN(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Rb(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){ps(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r})();function d7(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=qte(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,h=he(r.dimensions,function(g){return t.mapDimension(g)}),v=!1,p=t.getCalculationInfo("stackResultDimension");return to(t,h[0])&&(v=!0,h[0]=p),to(t,h[1])&&(v=!0,h[1]=p),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qte(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:it(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function p7(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Xte(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function Zte(r,t,e,a,n,i,o,s){for(var l=Xte(r,t),u=[],c=[],h=[],v=[],p=[],g=[],y=[],x=d7(n,t,o),_=r.getLayout("points")||[],S=t.getLayout("points")||[],w=0;w<l.length;w++){var C=l[w],D=!0,M=void 0,E=void 0;switch(C.cmd){case"=":M=C.idx*2,E=C.idx1*2;var N=_[M],B=_[M+1],R=S[E],I=S[E+1];(isNaN(N)||isNaN(B))&&(N=R,B=I),u.push(N,B),c.push(R,I),h.push(e[M],e[M+1]),v.push(a[E],a[E+1]),y.push(t.getRawIndex(C.idx1));break;case"+":var P=C.idx,z=x.dataDimsForPoint,V=n.dataToPoint([t.get(z[0],P),t.get(z[1],P)]);E=P*2,u.push(V[0],V[1]),c.push(S[E],S[E+1]);var G=p7(x,n,t,P);h.push(G[0],G[1]),v.push(a[E],a[E+1]),y.push(t.getRawIndex(P));break;case"-":D=!1}D&&(p.push(C),g.push(g.length))}g.sort(function(fe,ye){return y[fe]-y[ye]});for(var F=u.length,Y=ri(F),W=ri(F),X=ri(F),te=ri(F),j=[],w=0;w<g.length;w++){var U=g[w],Z=w*2,$=U*2;Y[Z]=u[$],Y[Z+1]=u[$+1],W[Z]=c[$],W[Z+1]=c[$+1],X[Z]=h[$],X[Z+1]=h[$+1],te[Z]=v[$],te[Z+1]=v[$+1],j[w]=p[U]}return{current:Y,next:W,stackedOnCurrent:X,stackedOnNext:te,status:j}}var zo=Math.min,jo=Math.max;function Bl(r,t){return isNaN(r)||isNaN(t)}function J2(r,t,e,a,n,i,o,s,l){for(var u,c,h,v,p,g,y=e,x=0;x<a;x++){var _=t[y*2],S=t[y*2+1];if(y>=n||y<0)break;if(Bl(_,S)){if(l){y+=i;continue}break}if(y===e)r[i>0?"moveTo":"lineTo"](_,S),h=_,v=S;else{var w=_-u,C=S-c;if(w*w+C*C<.5){y+=i;continue}if(o>0){for(var D=y+i,M=t[D*2],E=t[D*2+1];M===_&&E===S&&x<a;)x++,D+=i,y+=i,M=t[D*2],E=t[D*2+1],_=t[y*2],S=t[y*2+1],w=_-u,C=S-c;var N=x+1;if(l)for(;Bl(M,E)&&N<a;)N++,D+=i,M=t[D*2],E=t[D*2+1];var B=.5,R=0,I=0,P=void 0,z=void 0;if(N>=a||Bl(M,E))p=_,g=S;else{R=M-u,I=E-c;var V=_-u,G=M-_,F=S-c,Y=E-S,W=void 0,X=void 0;if(s==="x"){W=Math.abs(V),X=Math.abs(G);var te=R>0?1:-1;p=_-te*W*o,g=S,P=_+te*X*o,z=S}else if(s==="y"){W=Math.abs(F),X=Math.abs(Y);var j=I>0?1:-1;p=_,g=S-j*W*o,P=_,z=S+j*X*o}else W=Math.sqrt(V*V+F*F),X=Math.sqrt(G*G+Y*Y),B=X/(X+W),p=_-R*o*(1-B),g=S-I*o*(1-B),P=_+R*o*B,z=S+I*o*B,P=zo(P,jo(M,_)),z=zo(z,jo(E,S)),P=jo(P,zo(M,_)),z=jo(z,zo(E,S)),R=P-_,I=z-S,p=_-R*W/X,g=S-I*W/X,p=zo(p,jo(u,_)),g=zo(g,jo(c,S)),p=jo(p,zo(u,_)),g=jo(g,zo(c,S)),R=_-p,I=S-g,P=_+R*X/W,z=S+I*X/W}r.bezierCurveTo(h,v,p,g,_,S),h=P,v=z}else r.lineTo(_,S)}u=_,c=S,y+=i}return x}var g7=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),$te=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new g7},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Bl(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Bl(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=J2(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=ui.CMD,s,l,u=a==="x",c=[],h=0;h<i.length;){var v=i[h++],p=void 0,g=void 0,y=void 0,x=void 0,_=void 0,S=void 0,w=void 0;switch(v){case o.M:s=i[h++],l=i[h++];break;case o.L:if(p=i[h++],g=i[h++],w=u?(e-s)/(p-s):(e-l)/(g-l),w<=1&&w>=0){var C=u?(g-l)*w+l:(p-s)*w+s;return u?[e,C]:[C,e]}s=p,l=g;break;case o.C:p=i[h++],g=i[h++],y=i[h++],x=i[h++],_=i[h++],S=i[h++];var D=u?nm(s,p,y,_,e,c):nm(l,g,x,S,e,c);if(D>0)for(var M=0;M<D;M++){var E=c[M];if(E<=1&&E>=0){var C=u?pr(l,g,x,S,E):pr(s,p,y,_,E);return u?[e,C]:[C,e]}}s=_,l=S;break}}},t})(Xe),Kte=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(g7),m7=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new Kte},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Bl(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Bl(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=J2(e,n,o,s,s,1,a.smooth,l,a.connectNulls);J2(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t})(Xe);function y7(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Je({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),p=v.isHorizontal(),g=v.inverse;p?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=u),h.shape.height=0);var y=Te(n)?function(x){n(x,h)}:null;It(h,{shape:{width:l,height:u,x:o,y:s}},e,null,a,y)}return h}function x7(r,t,e){var a=r.getArea(),n=Ut(a.r0,1),i=Ut(a.r,1),o=new Zr({shape:{cx:Ut(r.cx,1),cy:Ut(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,It(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function Sd(r,t,e,a,n){if(r){if(r.type==="polar")return x7(r,t,e);if(r.type==="cartesian2d")return y7(r,t,e,a,n)}else return null;return null}function eu(r,t){return r.type===t}function yN(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function xN(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function _N(r,t){var e=xN(r),a=e[0],n=e[1],i=xN(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function bN(r){return it(r)?r:r?.5:0}function Qte(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=ri(a*2),i=0;i<a;i++){var o=p7(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Fo(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],v=[];if(n){for(l=0;l<r.length;l+=2){var p=t||r;!isNaN(p[l])&&!isNaN(p[l+1])&&v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=h[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var g=(c[o]+h[o])/2,y=[];u[o]=y[o]=g,u[1-o]=c[1-o],y[1-o]=h[1-o],s.push(u[0],u[1]),s.push(y[0],y[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Jte(r,t){var e=[],a=r.length,n,i;function o(c,h,v){var p=c.coord,g=(v-p)/(h.coord-p),y=uC(g,[c.color,h.color]);return{coord:v,color:y}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function ere(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=he(i.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,h=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var v=Jte(u,n==="x"?e.getWidth():e.getHeight()),p=v.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,y=v[0].coord-g,x=v[p-1].coord+g,_=x-y;if(_<.001)return"transparent";O(v,function(w){w.offset=(w.coord-y)/_}),v.push({offset:p?v[p-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:p?v[0].offset:.5,color:h[0]||"transparent"});var S=new rf(0,0,0,0,v,!0);return S[n]=y,S[n+"2"]=x,S}}}function tre(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&rre(i,t))){var o=t.mapDimension(i.dim),s={};return O(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function rre(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(_d.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function are(r,t){return isNaN(r)||isNaN(t)}function nre(r){for(var t=r.length/2;t>0&&are(r[t*2-2],r[t*2-1]);t--);return t-1}function SN(r,t){return[r[t*2],r[t*2+1]]}function ire(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){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 _7(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<la.length;t++)if(r.get([la[t],"endLabel","show"]))return!0;return!1}function Bb(r,t,e,a){if(eu(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=_7(a)?function(p,g){r._endLabelOnDuring(p,g,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=y7(t,e,a,function(){var p=r._endLabel;p&&e&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var h=c.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,c),c}else return x7(t,e,a)}function ore(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var sre=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Re,a=new bd;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=be(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.getLayout("points")||[],h=i.type==="polar",v=this._coordSys,p=this._symbolDraw,g=this._polyline,y=this._polygon,x=this._lineGroup,_=!a.ssr&&e.get("animation"),S=!u.isEmpty(),w=u.get("origin"),C=d7(i,s,w),D=S&&Qte(i,s,C),M=e.get("showSymbol"),E=e.get("connectNulls"),N=M&&!h&&tre(e,s,i),B=this._data;B&&B.eachItemGraphicEl(function(fe,ye){fe.__temp&&(o.remove(fe),B.setItemGraphicEl(ye,null))}),M||p.remove(),o.add(x);var R=h?!1:e.get("step"),I;i&&i.getArea&&e.get("clip",!0)&&(I=i.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var P=ere(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&v.type===i.type&&R===this._step))M&&p.updateData(s,{isIgnore:N,clipShape:I,disableAnimation:!0,getSymbolPoint:function(fe){return[c[fe*2],c[fe*2+1]]}}),_&&this._initSymbolLabelAnimation(s,i,I),R&&(D&&(D=Fo(D,c,i,R,E)),c=Fo(c,null,i,R,E)),g=this._newPolyline(c),S?y=this._newPolygon(c,D):y&&(x.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(e,i,Fl(P)),x.setClipPath(Bb(this,i,!0,e));else{S&&!y?y=this._newPolygon(c,D):y&&!S&&(x.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(e,i,Fl(P));var z=x.getClipPath();if(z){var V=Bb(this,i,!1,e);It(z,{shape:V.shape},e)}else x.setClipPath(Bb(this,i,!0,e));M&&p.updateData(s,{isIgnore:N,clipShape:I,disableAnimation:!0,getSymbolPoint:function(fe){return[c[fe*2],c[fe*2+1]]}}),(!yN(this._stackedOnPoints,D)||!yN(this._points,c))&&(_?this._doUpdateAnimation(s,D,i,n,R,w,E):(R&&(D&&(D=Fo(D,c,i,R,E)),c=Fo(c,null,i,R,E)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:D})))}var G=e.getModel("emphasis"),F=G.get("focus"),Y=G.get("blurScope"),W=G.get("disabled");if(g.useStyle(Me(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),kr(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var X=g.getState("emphasis").style;X.lineWidth=+g.style.lineWidth+1}Be(g).seriesIndex=e.seriesIndex,Vt(g,F,Y,W);var te=bN(e.get("smooth")),j=e.get("smoothMonotone");if(g.setShape({smooth:te,smoothMonotone:j,connectNulls:E}),y){var U=s.getCalculationInfo("stackedOnSeries"),Z=0;y.useStyle(Me(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(Z=bN(U.get("smooth"))),y.setShape({smooth:te,stackedOnSmooth:Z,smoothMonotone:j,connectNulls:E}),kr(y,e,"areaStyle"),Be(y).seriesIndex=e.seriesIndex,Vt(y,F,Y,W)}var $=this._changePolyState;s.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=$)}),this._polyline.onHoverStateChange=$,this._data=s,this._coordSys=i,this._stackedOnPoints=D,this._points=c,this._step=R,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,g),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,a){Be(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Pl(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 c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var v=e.get("zlevel")||0,p=e.get("z")||0;u=new _d(o,s),u.x=c,u.y=h,u.setZ(v,p);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=v,g.z=p,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else yt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Pl(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 yt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;fm(this._polyline,e),a&&fm(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new $te({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new m7({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");Te(c)&&(c=c(null));var h=u.get("animationDelay")||0,v=Te(h)?h(null):h;e.eachItemGraphicEl(function(p,g){var y=p;if(y){var x=[p.x,p.y],_=void 0,S=void 0,w=void 0;if(n)if(o){var C=n,D=a.pointToCoord(x);i?(_=C.startAngle,S=C.endAngle,w=-D[1]/180*Math.PI):(_=C.r0,S=C.r,w=D[0])}else{var M=n;i?(_=M.x,S=M.x+M.width,w=p.x):(_=M.y+M.height,S=M.y,w=p.y)}var E=S===_?0:(w-_)/(S-_);l&&(E=1-E);var N=Te(h)?h(g):c*E+v,B=y.getSymbolPath(),R=B.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:N}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:N}),B.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(_7(e)){var o=e.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 Qe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=nre(l);c>=0&&(Or(s,xr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(h,v,p){return p!=null?v7(o,p):Uc(o,h)},enableTextSetter:!0},ore(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,p=v.get("connectNulls"),g=s.get("precision"),y=s.get("distance")||0,x=l.getBaseAxis(),_=x.isHorizontal(),S=x.inverse,w=a.shape,C=S?_?w.x:w.y+w.height:_?w.x+w.width:w.y,D=(_?y:0)*(S?-1:1),M=(_?0:-y)*(S?-1:1),E=_?"x":"y",N=ire(h,C,E),B=N.range,R=B[1]-B[0],I=void 0;if(R>=1){if(R>1&&!p){var P=SN(h,B[0]);u.attr({x:P[0]+D,y:P[1]+M}),o&&(I=v.getRawValue(B[0]))}else{var P=c.getPointOn(C,E);P&&u.attr({x:P[0]+D,y:P[1]+M});var z=v.getRawValue(B[0]),V=v.getRawValue(B[1]);o&&(I=ak(n,g,z,V,N.t))}i.lastFrameIndex=B[0]}else{var G=e===1||i.lastFrameIndex>0?B[0]:0,P=SN(h,G);o&&(I=v.getRawValue(G)),u.attr({x:P[0]+D,y:P[1]+M})}if(o){var F=of(u);typeof F.setLabelText=="function"&&F.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,h=e.hostModel,v=Zte(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),p=v.current,g=v.stackedOnCurrent,y=v.next,x=v.stackedOnNext;if(o&&(g=Fo(v.stackedOnCurrent,v.current,n,o,l),p=Fo(v.current,null,n,o,l),x=Fo(v.stackedOnNext,v.next,n,o,l),y=Fo(v.next,null,n,o,l)),_N(p,y)>3e3||c&&_N(g,x)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:x}));return}u.shape.__points=v.current,u.shape.points=p;var _={shape:{points:y}};v.current!==p&&(_.shape.__points=v.next),u.stopAnimation(),st(u,_,h),c&&(c.setShape({points:p,stackedOnPoints:g}),c.stopAnimation(),st(c,{shape:{stackedOnPoints:x}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],w=v.status,C=0;C<w.length;C++){var D=w[C].cmd;if(D==="="){var M=e.getItemGraphicEl(w[C].idx1);M&&S.push({el:M,ptIdx:C})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var E=u.shape.__points,N=0;N<S.length;N++){var B=S[N].el,R=S[N].ptIdx*2;B.x=E[R],B.y=E[R+1],B.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(yt);function wd(r,t){return{seriesType:r,plan:ff(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=he(n.dimensions,function(p){return a.mapDimension(p)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");to(a,s[0])&&(s[0]=u),to(a,s[1])&&(s[1]=u);var c=a.getStore(),h=a.getDimensionIndex(s[0]),v=a.getDimensionIndex(s[1]);return l&&{progress:function(p,g){for(var y=p.end-p.start,x=o&&ri(y*l),_=[],S=[],w=p.start,C=0;w<p.end;w++){var D=void 0;if(l===1){var M=c.get(h,w);D=n.dataToPoint(M,null,S)}else _[0]=c.get(h,w),_[1]=c.get(v,w),D=n.dataToPoint(_,null,S);o?(x[C++]=D[0],x[C++]=D[1]):g.setItemLayout(w,D.slice())}o&&g.setLayout("points",x)}}}}}}var lre={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},ure=function(r){return Math.round(r.length/2)};function b7(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(h||1),p=Math.round(s/v);if(isFinite(p)&&p>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/p)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/p));var g=void 0;_e(i)?g=lre[i]:Te(i)&&(g=i),g&&t.setData(n.downSample(n.mapDimension(u.dim),1/p,g,ure))}}}}}function cre(r){r.registerChartView(sre),r.registerSeriesModel(Yte),r.registerLayout(wd("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,b7("line"))}var Gv=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return vi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)O(i.getAxes(),function(v,p){if(v.type==="category"&&a!=null){var g=v.getTicksCoords(),y=v.getTickModel().get("alignWithLabel"),x=o[p],_=a[p]==="x1"||a[p]==="y1";if(_&&!y&&(x+=1),g.length<2)return;if(g.length===2){s[p]=v.toGlobalCoord(v.getExtent()[_?1:0]);return}for(var S=void 0,w=void 0,C=1,D=0;D<g.length;D++){var M=g[D].coord,E=D===g.length-1?g[D-1].tickValue+C:g[D].tickValue;if(E===x){w=M;break}else if(E<x)S=M;else if(S!=null&&E>x){w=(M+S)/2;break}D===1&&(C=E-g[0].tickValue)}w==null&&(S?S&&(w=g[g.length-1].coord):w=g[0].coord),s[p]=v.toGlobalCoord(w)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(St);St.registerClass(Gv);var fre=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return vi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gs(Gv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Gv),hre=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Rm=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new hre},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,h=a.endAngle,v=a.clockwise,p=Math.PI*2,g=v?h-c<p:c-h<p;g||(c=h-(v?p:-p));var y=Math.cos(c),x=Math.sin(c),_=Math.cos(h),S=Math.sin(h);g?(e.moveTo(y*o+n,x*o+i),e.arc(y*u+n,x*u+i,l,-Math.PI+c,c,!v)):e.moveTo(y*s+n,x*s+i),e.arc(n,i,s,c,h,!v),e.arc(_*u+n,S*u+i,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(n,i,o,h,c,v)},t})(Xe);function vre(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return um(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,h=u.cy,v=u.r,p=u.r0,g=(v+p)/2,y=u.startAngle,x=u.endAngle,_=(y+x)/2,S=e?Math.abs(v-p)/2:0,w=Math.cos,C=Math.sin,D=c+v*w(y),M=h+v*C(y),E="left",N="top";switch(s){case"startArc":D=c+(p-l)*w(_),M=h+(p-l)*C(_),E="center",N="top";break;case"insideStartArc":D=c+(p+l)*w(_),M=h+(p+l)*C(_),E="center",N="bottom";break;case"startAngle":D=c+g*w(y)+Dp(y,l+S,!1),M=h+g*C(y)+Tp(y,l+S,!1),E="right",N="middle";break;case"insideStartAngle":D=c+g*w(y)+Dp(y,-l+S,!1),M=h+g*C(y)+Tp(y,-l+S,!1),E="left",N="middle";break;case"middle":D=c+g*w(_),M=h+g*C(_),E="center",N="middle";break;case"endArc":D=c+(v+l)*w(_),M=h+(v+l)*C(_),E="center",N="bottom";break;case"insideEndArc":D=c+(v-l)*w(_),M=h+(v-l)*C(_),E="center",N="top";break;case"endAngle":D=c+g*w(x)+Dp(x,l+S,!0),M=h+g*C(x)+Tp(x,l+S,!0),E="left",N="middle";break;case"insideEndAngle":D=c+g*w(x)+Dp(x,-l+S,!0),M=h+g*C(x)+Tp(x,-l+S,!0),E="right",N="middle";break;default:return um(a,n,i)}return a=a||{},a.x=D,a.y=M,a.align=E,a.verticalAlign=N,a}}function dre(r,t,e,a){if(it(a)){r.setTextConfig({rotation:a});return}else if(ce(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(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:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function Dp(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Tp(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Dl(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;ce(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:he(a,function(i){return Pn(i,n)})}}var Ib=Math.max,kb=Math.min;function pre(r,t){var e=r.getArea&&r.getArea();if(eu(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var gre=(function(r){Q(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){ps(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var v=e.isAnimationEnabled()?e:null,p=mre(e,u);p&&this._enableRealtimeSort(p,s,n);var g=e.get("clip",!0)||p,y=pre(u,s);o.removeClipPath();var x=e.get("roundCap",!0),_=e.get("showBackground",!0),S=e.getModel("backgroundStyle"),w=S.get("borderRadius")||0,C=[],D=this._backgroundEls,M=i&&i.isInitSort,E=i&&i.type==="changeAxisOrder";function N(I){var P=Mp[u.type](s,I),z=Cre(u,h,P);return z.useStyle(S.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",w):z.setShape("cornerRadius",w),C[I]=z,z}s.diff(l).add(function(I){var P=s.getItemModel(I),z=Mp[u.type](s,I,P);if(_&&N(I),!(!s.hasValue(I)||!TN[u.type](z))){var V=!1;g&&(V=wN[u.type](y,z));var G=CN[u.type](e,s,I,z,h,v,c.model,!1,x);p&&(G.forceLabelAnimation=!0),MN(G,s,I,P,z,e,h,u.type==="polar"),M?G.attr({shape:z}):p?AN(p,v,G,z,I,h,!1,!1):It(G,{shape:z},e,I),s.setItemGraphicEl(I,G),o.add(G),G.ignore=V}}).update(function(I,P){var z=s.getItemModel(I),V=Mp[u.type](s,I,z);if(_){var G=void 0;D.length===0?G=N(P):(G=D[P],G.useStyle(S.getItemStyle()),u.type==="cartesian2d"?G.setShape("r",w):G.setShape("cornerRadius",w),C[I]=G);var F=Mp[u.type](s,I),Y=w7(h,F,u);st(G,{shape:Y},v,I)}var W=l.getItemGraphicEl(P);if(!s.hasValue(I)||!TN[u.type](V)){o.remove(W);return}var X=!1;if(g&&(X=wN[u.type](y,V),X&&o.remove(W)),W?zn(W):W=CN[u.type](e,s,I,V,h,v,c.model,!!W,x),p&&(W.forceLabelAnimation=!0),E){var te=W.getTextContent();if(te){var j=of(te);j.prevValue!=null&&(j.prevValue=j.value)}}else MN(W,s,I,z,V,e,h,u.type==="polar");M?W.attr({shape:V}):p?AN(p,v,W,V,I,h,!0,E):st(W,{shape:V},e,I,null),s.setItemGraphicEl(I,W),W.ignore=X,o.add(W)}).remove(function(I){var P=l.getItemGraphicEl(I);P&&Bv(P,e,I)}).execute();var B=this._backgroundGroup||(this._backgroundGroup=new Re);B.removeAll();for(var R=0;R<C.length;++R)B.add(C[R]);o.add(B),this._backgroundEls=C,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),LN(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),LN(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Sd(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:he(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Bv(i,e,Be(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(yt),wN={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Ib(t.x,r.x),s=kb(t.x+t.width,n),l=Ib(t.y,r.y),u=kb(t.y+t.height,i),c=s<o,h=u<l;return t.x=c&&o>n?s:o,t.y=h&&l>i?u:l,t.width=c?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=kb(t.r,r.r),i=Ib(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},CN={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Je({shape:oe({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,h=n?"height":"width";c[h]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Rm:Zr,c=new u({shape:a,z2:1});c.name="item";var h=S7(n);if(c.calculateTextPosition=vre(h,{isRoundCap:u===Rm}),i){var v=c.shape,p=n?"r":"endAngle",g={};v[p]=n?a.r0:a.startAngle,g[p]=a[p],(s?st:It)(c,{shape:g},i)}return c}};function mre(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function AN(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?st:It)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?st:It)(e,{shape:u},c,n)}function DN(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var yre=["x","y","width","height"],xre=["cx","cy","r","startAngle","endAngle"],TN={cartesian2d:function(r){return!DN(r,yre)},polar:function(r){return!DN(r,xre)}},Mp={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?bre(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function _re(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function S7(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function MN(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,h=Dl(a.getModel("itemStyle"),c,!0);oe(c,h),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var p=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",g=xr(a);Or(r,g,{labelFetcher:i,labelDataIndex:e,defaultText:Uc(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var y=r.getTextContent();if(s&&y){var x=a.get(["label","position"]);r.textConfig.inside=x==="middle"?!0:null,dre(r,x==="outside"?p:x,S7(o),a.get(["label","rotate"]))}Vk(y,g,i.getRawValue(e),function(S){return v7(t,S)});var _=a.getModel(["emphasis"]);Vt(r,_.get("focus"),_.get("blurScope"),_.get("disabled")),kr(r,a),_re(n)&&(r.style.fill="none",r.style.stroke="none",O(r.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function bre(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var Sre=(function(){function r(){}return r})(),EN=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new Sre},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],e.rect(s[0],s[1],l[0],l[1])},t})(Xe);function LN(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new EN({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var h=new EN({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,Be(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",NN),h.on("mousemove",NN)),e&&e.push(h)}var NN=By(function(r){var t=this,e=wre(t,r.offsetX,r.offsetY);Be(t).dataIndex=e>=0?e:null},30,!1);function wre(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,h=i.length/3;c<h;c++){var v=c*3;if(l[a]=u,l[n]=i[v+2],s[a]=i[v+a],s[n]=i[v+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function w7(r,t,e){if(eu(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Cre(r,t,e){var a=r.type==="polar"?Zr:Je;return new a({shape:w7(t,e,r),silent:!0,z2:0})}function Are(r){r.registerChartView(gre),r.registerSeriesModel(fre),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Oe(MP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,EP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,b7("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var RN=Math.PI*2,Ep=Math.PI/180;function C7(r,t){return ir(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A7(r,t){var e=C7(r,t),a=r.get("center"),n=r.get("radius");ce(n)||(n=[0,n]);var i=xe(e.width,t.getWidth()),o=xe(e.height,t.getHeight()),s=Math.min(i,o),l=xe(n[0],s/2),u=xe(n[1],s/2),c,h,v=r.coordinateSystem;if(v){var p=v.dataToPoint(a);c=p[0]||0,h=p[1]||0}else ce(a)||(a=[a,a]),c=xe(a[0],i)+e.x,h=xe(a[1],o)+e.y;return{cx:c,cy:h,r0:l,r:u}}function Dre(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=C7(a,e),s=A7(a,e),l=s.cx,u=s.cy,c=s.r,h=s.r0,v=-a.get("startAngle")*Ep,p=a.get("endAngle"),g=a.get("padAngle")*Ep;p=p==="auto"?v-RN:-p*Ep;var y=a.get("minAngle")*Ep,x=y+g,_=0;n.each(i,function(Y){!isNaN(Y)&&_++});var S=n.getSum(i),w=Math.PI/(S||_)*2,C=a.get("clockwise"),D=a.get("roseType"),M=a.get("stillShowZeroSum"),E=n.getDataExtent(i);E[0]=0;var N=C?1:-1,B=[v,p],R=N*g/2;_C(B,!C),v=B[0],p=B[1];var I=D7(a);I.startAngle=v,I.endAngle=p,I.clockwise=C;var P=Math.abs(p-v),z=P,V=0,G=v;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(Y,W){var X;if(isNaN(Y)){n.setItemLayout(W,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:l,cy:u,r0:h,r:D?NaN:c});return}D!=="area"?X=S===0&&M?w:Y*w:X=P/_,X<x?(X=x,z-=x):V+=Y;var te=G+N*X,j=0,U=0;g>X?(j=G+N*X/2,U=j):(j=G+R,U=te-R),n.setItemLayout(W,{angle:X,startAngle:j,endAngle:U,clockwise:C,cx:l,cy:u,r0:h,r:D?dt(Y,E,[h,c]):c}),G=te}),z<RN&&_)if(z<=.001){var F=P/_;n.each(i,function(Y,W){if(!isNaN(Y)){var X=n.getItemLayout(W);X.angle=F;var te=0,j=0;F<g?(te=v+N*(W+1/2)*F,j=te):(te=v+N*W*F+R,j=v+N*(W+1)*F-R),X.startAngle=te,X.endAngle=j}})}else w=z/V,G=v,n.each(i,function(Y,W){if(!isNaN(Y)){var X=n.getItemLayout(W),te=X.angle===x?x:Y*w,j=0,U=0;te<g?(j=G+N*te/2,U=j):(j=G+R,U=G+N*te-R),X.startAngle=j,X.endAngle=U,G+=N*te}})})}var D7=rt();function Cd(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var Tre=Math.PI/180;function BN(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(y){for(var x=y.rB,_=x*x,S=0;S<y.list.length;S++){var w=y.list[S],C=Math.abs(w.label.y-e),D=a+w.len,M=D*D,E=Math.sqrt(Math.abs((1-C*C/_)*M)),N=t+(E+w.len2)*n,B=N-w.label.x,R=w.targetTextWidth-B*n;T7(w,R,!0),w.label.x=N}}function h(y){for(var x={list:[],maxY:0},_={list:[],maxY:0},S=0;S<y.length;S++)if(y[S].labelAlignTo==="none"){var w=y[S],C=w.label.y>e?_:x,D=Math.abs(w.label.y-e);if(D>=C.maxY){var M=w.label.x-t-w.len2*n,E=a+w.len,N=Math.abs(M)<E?Math.sqrt(D*D/(1-M*M/E/E)):E;C.rB=N,C.maxY=D}C.list.push(w)}c(x),c(_)}for(var v=r.length,p=0;p<v;p++)if(r[p].position==="outer"&&r[p].labelAlignTo==="labelLine"){var g=r[p].label.x-u;r[p].linePoints[1][0]+=g,r[p].label.x=u}$P(r,l,l+o)&&h(r)}function Mre(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var p=r[v].label;Ob(r[v])||(p.x<t?(c=Math.min(c,p.x),l.push(r[v])):(h=Math.max(h,p.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var g=r[v];if(!Ob(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var p=g.label,y=g.linePoints,x=void 0;g.labelAlignTo==="edge"?p.x<t?x=y[2][0]-g.labelDistance-o-g.edgeDistance:x=o+n-g.edgeDistance-y[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?p.x<t?x=c-o-g.bleedMargin:x=o+n-h-g.bleedMargin:p.x<t?x=p.x-o-g.bleedMargin:x=o+n-p.x-g.bleedMargin,g.targetTextWidth=x,T7(g,x)}}BN(u,t,e,a,1,n,i,o,s,h),BN(l,t,e,a,-1,n,i,o,s,c);for(var v=0;v<r.length;v++){var g=r[v];if(!Ob(g)&&g.linePoints){var p=g.label,y=g.linePoints,_=g.labelAlignTo==="edge",S=p.style.padding,w=S?S[1]+S[3]:0,C=p.style.backgroundColor?0:w,D=g.rect.width+C,M=y[1][0]-y[2][0];_?p.x<t?y[2][0]=o+g.edgeDistance+D+g.labelDistance:y[2][0]=o+n-g.edgeDistance-D-g.labelDistance:(p.x<t?y[2][0]=p.x+g.labelDistance:y[2][0]=p.x-g.labelDistance,y[1][0]=y[2][0]+M),y[1][1]=y[2][1]=p.y}}}function T7(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){var h=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var p=t-l,g=t<c?p:e?p>r.unconstrainedWidth?null:p:null;a.setStyle("width",g)}var y=a.getBoundingRect();i.width=y.width;var x=(a.style.margin||0)+2.1;i.height=y.height+x,i.y-=(i.height-h)/2}}}function Ob(r){return r.position==="center"}function Ere(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Tre,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,h=s.y,v=s.height;function p(M){M.ignore=!0}function g(M){if(!M.ignore)return!0;for(var E in M.states)if(M.states[E].ignore===!1)return!0;return!1}t.each(function(M){var E=t.getItemGraphicEl(M),N=E.shape,B=E.getTextContent(),R=E.getTextGuideLine(),I=t.getItemModel(M),P=I.getModel("label"),z=P.get("position")||I.get(["emphasis","label","position"]),V=P.get("distanceToLabelLine"),G=P.get("alignTo"),F=xe(P.get("edgeDistance"),u),Y=P.get("bleedMargin"),W=I.getModel("labelLine"),X=W.get("length");X=xe(X,u);var te=W.get("length2");if(te=xe(te,u),Math.abs(N.endAngle-N.startAngle)<o){O(B.states,p),B.ignore=!0,R&&(O(R.states,p),R.ignore=!0);return}if(g(B)){var j=(N.startAngle+N.endAngle)/2,U=Math.cos(j),Z=Math.sin(j),$,fe,ye,ee;a=N.cx,n=N.cy;var se=z==="inside"||z==="inner";if(z==="center")$=N.cx,fe=N.cy,ee="center";else{var ue=(se?(N.r+N.r0)/2*U:N.r*U)+a,we=(se?(N.r+N.r0)/2*Z:N.r*Z)+n;if($=ue+U*3,fe=we+Z*3,!se){var ve=ue+U*(X+l-N.r),Ae=we+Z*(X+l-N.r),Ue=ve+(U<0?-1:1)*te,De=Ae;G==="edge"?$=U<0?c+F:c+u-F:$=Ue+(U<0?-V:V),fe=De,ye=[[ue,we],[ve,Ae],[Ue,De]]}ee=se?"center":G==="edge"?U>0?"right":"left":U>0?"left":"right"}var Ke=Math.PI,ot=0,Lt=P.get("rotate");if(it(Lt))ot=Lt*(Ke/180);else if(z==="center")ot=0;else if(Lt==="radial"||Lt===!0){var Pt=U<0?-j+Ke:-j;ot=Pt}else if(Lt==="tangential"&&z!=="outside"&&z!=="outer"){var Ht=Math.atan2(U,Z);Ht<0&&(Ht=Ke*2+Ht);var vr=Z>0;vr&&(Ht=Ke+Ht),ot=Ht-Ke}if(i=!!ot,B.x=$,B.y=fe,B.rotation=ot,B.setStyle({verticalAlign:"middle"}),se){B.setStyle({align:ee});var Pr=B.states.select;Pr&&(Pr.x+=B.x,Pr.y+=B.y)}else{var kt=B.getBoundingRect().clone();kt.applyTransform(B.getComputedTransform());var Wt=(B.style.margin||0)+2.1;kt.y-=Wt/2,kt.height+=Wt,e.push({label:B,labelLine:R,position:z,len:X,len2:te,minTurnAngle:W.get("minTurnAngle"),maxSurfaceAngle:W.get("maxSurfaceAngle"),surfaceNormal:new Fe(U,Z),linePoints:ye,textAlign:ee,labelDistance:V,labelAlignTo:G,edgeDistance:F,bleedMargin:Y,rect:kt,unconstrainedWidth:kt.width,labelStyleWidth:B.style.width})}E.setTextConfig({inside:se})}}),!i&&r.get("avoidLabelOverlap")&&Mre(e,a,n,l,u,v,c,h);for(var y=0;y<e.length;y++){var x=e[y],_=x.label,S=x.labelLine,w=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:x.textAlign}),w&&(O(_.states,p),_.ignore=!0);var C=_.states.select;C&&(C.x+=_.x,C.y+=_.y)}if(S){var D=x.linePoints;w||!D?(O(S.states,p),S.ignore=!0):(qP(D,x.minTurnAngle),Qee(D,x.surfaceNormal,x.maxSurfaceAngle),S.setShape({points:D}),_.__hostTarget.textGuideLineConfig={anchor:new Fe(D[0][0],D[0][1])})}}}var Lre=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new Qe;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),h=oe(Dl(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(It(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=c.r0,It(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),It(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,st(o,{shape:{endAngle:c.endAngle}},s,a))}else zn(o),st(o,{shape:h},s,a);o.useStyle(e.getItemVisual(a,"style")),kr(o,l);var p=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),y=Math.cos(p)*g,x=Math.sin(p)*g,_=l.getShallow("cursor");_&&o.attr("cursor",_),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=oe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Dl(u.getModel("itemStyle"),c)),oe(o.ensureState("select"),{x:y,y:x,shape:Dl(l.getModel(["select","itemStyle"]),c)}),oe(o.ensureState("blur"),{shape:Dl(l.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),w=o.getTextContent();S&&oe(S.ensureState("select"),{x:y,y:x}),oe(w.ensureState("select"),{x:y,y:x}),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Or(i,xr(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Qr,this.setTextGuideLine(p)),pA(this,gA(o),{stroke:u,opacity:Nn(s.get(["lineStyle","opacity"]),c,1)})}},t})(Zr),Nre=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<o.count();++h)c=o.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=D7(e),p=new Zr({shape:oe(A7(e,n),v)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(g){var y=new Lre(o,g,u);o.setItemGraphicEl(g,y),l.add(y)}).update(function(g,y){var x=s.getItemGraphicEl(y);x.updateData(o,g,u),x.off("click"),l.add(x),o.setItemGraphicEl(g,x)}).remove(function(g){var y=s.getItemGraphicEl(g);Bv(y,e,g)}).execute(),Ere(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t})(yt);function mf(r,t,e){t=ce(t)&&{coordDimensions:t}||oe({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=df(a,t).dimensions,i=new qr(n,r);return i.initData(a,e),i}var Ad=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),Rre=rt(),Bre=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ad(be(this.getData,this),be(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return mf(this,{coordDimensions:["value"],encodeDefaulter:Oe(GC,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=Rre(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=XI(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ol(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(St);function Ire(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(it(o)&&!isNaN(o)&&o<0)})}}}function kre(r){r.registerChartView(Nre),r.registerSeriesModel(Bre),UO("pie",r.registerAction),r.registerLayout(Oe(Dre,"pie")),r.registerProcessor(Cd("pie")),r.registerProcessor(Ire("pie"))}var Ore=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return vi(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t})(St),M7=4,Pre=(function(){function r(){}return r})(),zre=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new Pre},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<M7,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<n.length;){var v=n[h++],p=n[h++];isNaN(v)||isNaN(p)||c&&!c.contain(v,p)||(s.x=v-i[0]/2,s.y=p-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,h=i[c]-s/2,v=i[c+1]-l/2;if(e>=h&&a>=v&&e<=h+s&&a<=v+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,h=-1/0,v=0;v<n.length;){var p=n[v++],g=n[v++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(g,u),h=Math.max(g,h)}e=this._rect=new Ve(l-o/2,u-s/2,c-l+o,h-u+s)}return e},t})(Xe),jre=(function(){function r(){this.group=new Re}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new zre({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=Jt(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<M7;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Be(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Fre=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=wd("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new jre:new bd,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(yt),Vre=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(We),ew=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",nr).models[0]},t.type="cartesian2dAxis",t})(We);Xt(ew,gf);var E7={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Hre=ze({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E7),wA=ze({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},E7),Gre=ze({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wA),Ure=Me({logBase:10},wA);const L7={category:Hre,value:wA,time:Gre,log:Ure};var Yre={value:1,category:1,time:1,log:1};function Yc(r,t,e,a){O(Yre,function(n,i){var o=ze(ze({},L7[i],!0),a,!0),s=(function(l){Q(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var v=kv(this),p=v?lf(c):{},g=h.getTheme();ze(c,g.get(i+"Axis")),ze(c,this.getDefaultOption()),c.type=IN(c),v&&us(c,p,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=W2.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",IN)}function IN(r){return r.type||(r.data?"category":"value")}var Wre=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return he(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),lt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),tw=["x","y"];function kN(r){return r.type==="interval"||r.type==="time"}var qre=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=tw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!kN(e)||!kN(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*c,p=o[1]-i[0]*h,g=this._transform=[c,0,0,h,v,p];this._invTransform=Zl([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Ve(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ar(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return Ar(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Ve(i,o,s,l)},t})(Wre),Xre=(function(r){Q(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(mn);function rw(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],v={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,g=u==="x"?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));g[v.onZero]=Math.max(Math.min(y,g[1]),g[0])}i.position=[u==="y"?g[v[l]]:h[0],u==="x"?g[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var x={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=x[s],i.labelOffset=o?g[v[s]]-g[v.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),gr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var _=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-_:_,i.z2=1,i}function ON(r){return r.get("coordinateSystem")==="cartesian2d"}function PN(r){var t={xAxisModel:null,yAxisModel:null};return O(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,nr).models[0];t[a]=i}),t}var Pb=Math.log;function N7(r,t,e){var a=ro.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=IP(r,t),u=l.extent,c=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=Pb(r.base);u=[Pb(u[0])/v,Pb(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var p=a.getExtent.call(r);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var g=a.getInterval.call(r),y=u[0],x=u[1];if(c&&h)g=(x-y)/o;else if(c)for(x=u[0]+g*o;x<u[1]&&isFinite(x)&&isFinite(u[1]);)g=Sb(g),x=u[0]+g*o;else if(h)for(y=u[1]-g*o;y>u[0]&&isFinite(y)&&isFinite(u[0]);)g=Sb(g),y=u[1]-g*o;else{var _=r.getTicks().length-1;_>o&&(g=Sb(g));var S=g*o;x=Math.ceil(u[1]/g)*g,y=Ut(x-S),y<0&&u[0]>=0?(y=0,x=Ut(S)):x>0&&u[1]<=0&&(x=0,y=-Ut(S))}var w=(n[0].value-i[0].value)/s,C=(n[o].value-i[o].value)/s;a.setExtent.call(r,y+g*w,x+g*C),a.setInterval.call(r,g),(w||C)&&a.setNiceExtent.call(r,y+g,x-g)}var Zre=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tw,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Ze(o),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var v=+l[h],p=o[v],g=p.model,y=p.scale;q2(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(p):(Vl(y,g),q2(y)&&(s=p))}c.length&&(s||(s=c.pop(),Vl(s.scale,s.model)),O(c,function(x){N7(x.scale,x.model,s.scale)}))}}n(a.x),n(a.y);var i={};O(a.x,function(o){zN(a,"y",o,i)}),O(a.y,function(o){zN(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=ir(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(O(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=pee(u);if(c){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=c[h]+v,u.position==="top"?o.y+=c.height+v:u.position==="left"&&(o.x+=c.width+v)}}}),l()),O(this._coordsList,function(u){u.calcAffineTransform()});function l(){O(s,function(u){var c=u.isHorizontal(),h=c?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),$re(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}Ee(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",nr).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",nr).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,He(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,O(s.x,function(c,h){O(s.y,function(v,p){var g="x"+h+"y"+p,y=new qre(g);y.master=n,y.model=t,n._coordsMap[g]=y,n._coordsList.push(y),y.addAxis(c),y.addAxis(v)})});function u(c){return function(h,v){if(zb(h,t)){var p=h.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var g=new Xre(c,xd(h),[0,0],h.get("type"),p),y=g.type==="category";g.onBand=y&&h.get("boundaryGap"),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=i,g.index=v,i._axesList.push(g),s[c][v]=g,l[c]++}}}},r.prototype._updateScale=function(t,e){O(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(ON(n)){var i=PN(n),o=i.xAxisModel,s=i.yAxisModel;if(!zb(o,e)||!zb(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),h=l.getAxis("y");a(u,c),a(u,h)}},this);function a(n,i){O(Mm(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return O(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);He(e,i)<0&&e.push(i),He(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(ON(n)){var i=PN(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=tw,r})();function zb(r,t){return r.getCoordSysModel()===t}function zN(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)jN(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&jN(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(h){return h.dim+"_"+h.index}}function jN(r){return r&&r.type!=="category"&&r.type!=="time"&&dee(r)}function $re(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}var $o=Math.PI,oa=(function(){function r(t,e){this.group=new Re,this.opt=e,this.axisModel=t,Me(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Re({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!FN[t]},r.prototype.add=function(t){FN[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=vC(e-t),i,o;return jc(n)?(o=a>0?"top":"bottom",i="center"):jc(n-$o)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<$o?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),FN={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Ar(s,s,o),Ar(l,l,o));var c=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new hr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Vc(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var p=t.get(["axisLine","symbolSize"]);_e(v)&&(v=[v,v]),(_e(p)||it(p))&&(p=[p,p]);var g=Jl(t.get(["axisLine","symbolOffset"])||0,p),y=p[0],x=p[1];O([{rotate:r.rotation+Math.PI/2,offset:g[0],r:0},{rotate:r.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(_,S){if(v[S]!=="none"&&v[S]!=null){var w=Jt(v[S],-y/2,-x/2,y,x,c.stroke,!0),C=_.r+_.offset,D=u?l:s;w.attr({rotation:_.rotate,x:D[0]+C*Math.cos(r.rotation),y:D[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),e.add(w)}})}}},axisTickLabel:function(r,t,e,a){var n=Jre(e,a,t,r),i=tae(e,a,t,r);if(Qre(t,i,n),eae(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=XP(he(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));KP(o)}},axisName:function(r,t,e,a){var n=gr(r.axisName,t.get("name"));if(n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,HN(i)?r.labelOffset+o*l:0],v,p=t.get("nameRotate");p!=null&&(p=p*$o/180);var g;HN(i)?v=oa.innerTextLayout(r.rotation,p??r.rotation,o):(v=Kre(r.rotation,i,p||0,u),g=r.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(v.rotation)),!isFinite(g)&&(g=null)));var y=s.getFont(),x=t.get("nameTruncate",!0)||{},_=x.ellipsis,S=gr(r.nameTruncateMaxWidth,x.maxWidth,g),w=new Qe({x:h[0],y:h[1],rotation:v.rotation,silent:oa.isLabelSilent(t),style:At(s,{text:n,font:y,overflow:"truncate",width:S,ellipsis:_,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if($l({el:w,componentModel:t,itemName:n}),w.__fullText=n,w.anid="name",t.get("triggerEvent")){var C=oa.makeAxisEventDataBase(t);C.targetType="axisName",C.name=n,Be(w).eventData=C}a.add(w),w.updateTransform(),e.add(w),w.decomposeTransform()}}};function Kre(r,t,e,a){var n=vC(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return jc(n-$o/2)?(o=l?"bottom":"top",i="center"):jc(n-$o*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<$o*1.5&&n>$o/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function Qre(r,t,e){if(!kP(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],h=e[e.length-1],v=e[e.length-2];a===!1?(Ka(i),Ka(u)):VN(i,o)&&(a?(Ka(o),Ka(c)):(Ka(i),Ka(u))),n===!1?(Ka(s),Ka(h)):VN(l,s)&&(n?(Ka(l),Ka(v)):(Ka(s),Ka(h)))}}function Ka(r){r&&(r.ignore=!0)}function VN(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=ld([]);return ds(n,n,-r.rotation),e.applyTransform(ii([],n,r.getLocalTransform())),a.applyTransform(ii([],n,t.getLocalTransform())),e.intersect(a)}}function HN(r){return r==="middle"||r==="center"}function R7(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Ar(o,o,t),Ar(s,s,t));var c=new hr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Vc(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function Jre(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=R7(u,t.transform,l,Me(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)r.add(c[h]);return c}}function eae(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=Me(s.getLineStyle(),Me(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=R7(o[c],t.transform,l,u,"minorticks_"+c),v=0;v<h.length;v++)r.add(h[v])}}function tae(r,t,e,a){var n=e.axis,i=gr(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(gr(a.labelRotate,o.get("rotate"))||0)*$o/180,c=oa.innerTextLayout(a.rotation,u,a.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],p=oa.isLabelSilent(e),g=e.get("triggerEvent");return O(l,function(y,x){var _=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,S=y.formattedLabel,w=y.rawLabel,C=o;if(h&&h[_]){var D=h[_];Ee(D)&&D.textStyle&&(C=new ut(D.textStyle,o,e.ecModel))}var M=C.getTextColor()||e.get(["axisLine","lineStyle","color"]),E=n.dataToCoord(_),N=C.getShallow("align",!0)||c.textAlign,B=ke(C.getShallow("alignMinLabel",!0),N),R=ke(C.getShallow("alignMaxLabel",!0),N),I=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||c.textVerticalAlign,P=ke(C.getShallow("verticalAlignMinLabel",!0),I),z=ke(C.getShallow("verticalAlignMaxLabel",!0),I),V=new Qe({x:E,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(y.level||0),style:At(C,{text:S,align:x===0?B:x===l.length-1?R:N,verticalAlign:x===0?P:x===l.length-1?z:I,fill:Te(M)?M(n.type==="category"?w:n.type==="value"?_+"":_,x):M})});if(V.anid="label_"+_,$l({el:V,componentModel:e,itemName:S,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:w,tickIndex:x}}),g){var G=oa.makeAxisEventDataBase(e);G.targetType="axisLabel",G.value=w,G.tickIndex=x,n.type==="category"&&(G.dataIndex=_),Be(V).eventData=G}t.add(V),V.updateTransform(),v.push(V),r.add(V),V.decomposeTransform()}),v}}function rae(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aae(e,r,t),e.seriesInvolved&&iae(e,r),e}function aae(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];O(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Uv(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",a);if(O(s.getAxes(),Oe(y,!1,null)),s.getTooltipAxes&&a&&h.get("show")){var v=h.get("trigger")==="axis",p=h.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||p)&&O(g.baseAxes,Oe(y,p?"cross":!0,v)),p&&O(g.otherAxes,Oe(y,"cross",!1))}function y(x,_,S){var w=S.model.getModel("axisPointer",n),C=w.get("show");if(!(!C||C==="auto"&&!x&&!aw(w))){_==null&&(_=w.get("triggerTooltip")),w=x?nae(S,h,n,t,x,_):w;var D=w.get("snap"),M=w.get("triggerEmphasis"),E=Uv(S.model),N=_||D||S.type==="category",B=r.axesInfo[E]={key:E,axis:S,coordSys:s,axisPointerModel:w,triggerTooltip:_,triggerEmphasis:M,involveSeries:N,snap:D,useHandle:aw(w),seriesModels:[],linkGroup:null};u[E]=B,r.seriesInvolved=r.seriesInvolved||N;var R=oae(i,S);if(R!=null){var I=o[R]||(o[R]={axesInfo:{}});I.axesInfo[E]=B,I.mapper=i[R].mapper,B.linkGroup=I}}}})}function nae(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};O(s,function(v){l[v]=Le(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&Me(u,h.textStyle)}}return r.model.getModel("axisPointer",new ut(l,e,a))}function iae(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||O(r.coordSysAxesInfo[Uv(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function oae(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(jb(i[a+"AxisId"],e.id)||jb(i[a+"AxisIndex"],e.componentIndex)||jb(i[a+"AxisName"],e.name))return n}}function jb(r,t){return r==="all"||ce(r)&&He(r,t)>=0||r===t}function sae(r){var t=CA(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=aw(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function CA(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Uv(r)]}function lae(r){var t=CA(r);return t&&t.axisPointerModel}function aw(r){return!!r.get(["handle","show"])}function Uv(r){return r.type+"||"+r.id}var GN={},tu=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&sae(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=lae(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){GN[e]=a},t.getAxisPointerClass=function(e){return e&&GN[e]},t.type="axis",t})(Et),nw=rt();function B7(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,h=nw(r).splitAreaColors,v=Ce(),p=0;if(h)for(var g=0;g<u.length;g++){var y=h.get(u[g].tickValue);if(y!=null){p=(y+(c-1)*g)%c;break}}var x=n.toGlobalCoord(u[0].coord),_=o.getAreaStyle();s=ce(s)?s:[s];for(var g=1;g<u.length;g++){var S=n.toGlobalCoord(u[g].coord),w=void 0,C=void 0,D=void 0,M=void 0;n.isHorizontal()?(w=x,C=l.y,D=S-w,M=l.height,x=w+D):(w=l.x,C=x,D=l.width,M=S-C,x=C+M);var E=u[g-1].tickValue;E!=null&&v.set(E,p),t.add(new Je({anid:E!=null?"area_"+E:null,shape:{x:w,y:C,width:D,height:M},style:Me({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%c}nw(r).splitAreaColors=v}}}function I7(r){nw(r).splitAreaColors=null}var uae=["axisLine","axisTickLabel","axisName"],cae=["splitArea","splitLine","minorSplitLine"],k7=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Re,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=rw(s,e),u=new oa(e,oe({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),p=0;p<v.length;p++)if(q2(v[p].getOtherAxis(e.axis).scale))return!0;return!1}},l));O(uae,u.add,u),this._axisGroup.add(u.getGroup()),O(cae,function(h){e.get([h,"show"])&&fae[h](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||gd(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){I7(this)},t.type="cartesianAxis",t})(tu),fae={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=ce(s)?s:[s];for(var c=a.coordinateSystem.getRect(),h=n.isHorizontal(),v=0,p=n.getTicksCoords({tickModel:i}),g=[],y=[],x=o.getLineStyle(),_=0;_<p.length;_++){var S=n.toGlobalCoord(p[_].coord);if(!(_===0&&!l||_===p.length-1&&!u)){var w=p[_].tickValue;h?(g[0]=S,g[1]=c.y,y[0]=S,y[1]=c.y+c.height):(g[0]=c.x,g[1]=S,y[0]=c.x+c.width,y[1]=S);var C=v++%s.length,D=new hr({anid:w!=null?"line_"+w:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Me({stroke:s[C]},x),silent:!0});Vc(D.shape,x.lineWidth),t.add(D)}}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var c=[],h=[],v=o.getLineStyle(),p=0;p<u.length;p++)for(var g=0;g<u[p].length;g++){var y=n.toGlobalCoord(u[p][g].coord);l?(c[0]=y,c[1]=s.y,h[0]=y,h[1]=s.y+s.height):(c[0]=s.x,c[1]=y,h[0]=s.x+s.width,h[1]=y);var x=new hr({anid:"minor_line_"+u[p][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});Vc(x.shape,v.lineWidth),t.add(x)}},splitArea:function(r,t,e,a){B7(r,t,e,a)}},O7=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(k7),hae=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=O7.type,e}return t.type="yAxis",t})(k7),vae=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new Je({shape:e.coordinateSystem.getRect(),style:Me({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Et),UN={offset:0};function P7(r){r.registerComponentView(vae),r.registerComponentModel(Vre),r.registerCoordinateSystem("cartesian2d",Zre),Yc(r,"x",ew,UN),Yc(r,"y",ew,UN),r.registerComponentView(O7),r.registerComponentView(hae),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function dae(r){Ye(P7),r.registerSeriesModel(Ore),r.registerChartView(Fre),r.registerLayout(wd("scatter"))}function pae(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();O(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=YN(c)?c:WN(n)})}),e.each(function(o){var s=cI(a[o],function(l){return YN(l)})||WN(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function YN(r){return!isNaN(r[0])&&!isNaN(r[1])}function WN(r){return[r.cx,r.cy]}function gae(r){var t=r.polar;if(t){ce(t)||(t=[t]);var e=[];O(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],ce(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}O(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var mae=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,p){var g=v.getItemVisual(p,"symbol")||"circle";if(g!=="none"){var y=vf(v.getItemVisual(p,"symbolSize")),x=Jt(g,-1,-1,2,2),_=v.getItemVisual(p,"symbolRotate")||0;return x.attr({style:{strokeNoScale:!0},z2:100,scaleX:y[0]/2,scaleY:y[1]/2,rotation:_*Math.PI/180||0}),x}}function c(v,p,g,y,x,_){g.removeAll();for(var S=0;S<p.length-1;S++){var w=u(y,x);w&&(w.__dimIdx=S,v[S]?(w.setPosition(v[S]),Kl[_?"initProps":"updateProps"](w,{x:p[S][0],y:p[S][1]},e,x)):w.setPosition(p[S]),g.add(w))}}function h(v){return he(v,function(p){return[i.cx,i.cy]})}s.diff(l).add(function(v){var p=s.getItemLayout(v);if(p){var g=new $r,y=new Qr,x={shape:{points:p}};g.shape.points=h(p),y.shape.points=h(p),It(g,x,e,v),It(y,x,e,v);var _=new Re,S=new Re;_.add(y),_.add(g),_.add(S),c(y.shape.points,p,S,s,v,!0),s.setItemGraphicEl(v,_)}}).update(function(v,p){var g=l.getItemGraphicEl(p),y=g.childAt(0),x=g.childAt(1),_=g.childAt(2),S={shape:{points:s.getItemLayout(v)}};S.shape.points&&(c(y.shape.points,S.shape.points,_,s,v,!1),zn(x),zn(y),st(y,S,e),st(x,S,e),s.setItemGraphicEl(v,g))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,p){var g=s.getItemModel(p),y=v.childAt(0),x=v.childAt(1),_=v.childAt(2),S=s.getItemVisual(p,"style"),w=S.fill;o.add(v),y.useStyle(Me(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),kr(y,g,"lineStyle"),kr(x,g,"areaStyle");var C=g.getModel("areaStyle"),D=C.isEmpty()&&C.parentModel.isEmpty();x.ignore=D,O(["emphasis","select","blur"],function(N){var B=g.getModel([N,"areaStyle"]),R=B.isEmpty()&&B.parentModel.isEmpty();x.ensureState(N).ignore=R&&D}),x.useStyle(Me(C.getAreaStyle(),{fill:w,opacity:.7,decal:S.decal}));var M=g.getModel("emphasis"),E=M.getModel("itemStyle").getItemStyle();_.eachChild(function(N){if(N instanceof br){var B=N.style;N.useStyle(oe({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},S))}else N.useStyle(S),N.setColor(w),N.style.strokeNoScale=!0;var R=N.ensureState("emphasis");R.style=Le(E);var I=s.getStore().get(s.getDimensionIndex(N.__dimIdx),p);(I==null||isNaN(I))&&(I=""),Or(N,xr(g),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:N.__dimIdx,defaultText:I,inheritColor:w,defaultOpacity:S.opacity})}),Vt(v,M.get("focus"),M.get("blurScope"),M.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(yt),yae=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ad(be(this.getData,this),be(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return mf(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=RO(this,e);return _r("section",{header:u,sortBlocks:!0,blocks:he(s,function(h){var v=i.get(i.mapDimension(h.dim),e);return _r("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(he(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(St),Rh=L7.value;function Lp(r,t){return Me({show:t},r)}var xae=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),p=he(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var y=l;g.color!=null&&(y=Me({color:g.color},l));var x=ze(Le(g),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:y,triggerEvent:v},!1);if(_e(c)){var _=x.name;x.name=c.replace("{value}",_??"")}else Te(c)&&(x.name=c(x.name,x));var S=new ut(x,null,this.ecModel);return Xt(S,gf.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ze({lineStyle:{color:"#bbb"}},Rh.axisLine),axisLabel:Lp(Rh.axisLabel,!1),axisTick:Lp(Rh.axisTick,!1),splitLine:Lp(Rh.splitLine,!0),splitArea:Lp(Rh.splitArea,!0),indicator:[]},t})(We),_ae=["axisLine","axisTickLabel","axisName"],bae=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=he(n,function(o){var s=o.model.get("showName")?o.name:"",l=new oa(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});O(i,function(o){O(_ae,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),v=l.get("color"),p=u.get("color"),g=ce(v)?v:[v],y=ce(p)?p:[p],x=[],_=[];function S(G,F,Y){var W=Y%F.length;return G[W]=G[W]||[],W}if(i==="circle")for(var w=n[0].getTicksCoords(),C=a.cx,D=a.cy,M=0;M<w.length;M++){if(c){var E=S(x,g,M);x[E].push(new fi({shape:{cx:C,cy:D,r:w[M].coord}}))}if(h&&M<w.length-1){var E=S(_,y,M);_[E].push(new ef({shape:{cx:C,cy:D,r0:w[M].coord,r:w[M+1].coord}}))}}else for(var N,B=he(n,function(G,F){var Y=G.getTicksCoords();return N=N==null?Y.length-1:Math.min(Y.length-1,N),he(Y,function(W){return a.coordToPoint(W.coord,F)})}),R=[],M=0;M<=N;M++){for(var I=[],P=0;P<n.length;P++)I.push(B[P][M]);if(I[0]&&I.push(I[0].slice()),c){var E=S(x,g,M);x[E].push(new Qr({shape:{points:I}}))}if(h&&R){var E=S(_,y,M-1);_[E].push(new $r({shape:{points:I.concat(R)}}))}R=I.slice().reverse()}var z=l.getLineStyle(),V=u.getAreaStyle();O(_,function(G,F){this.group.add(Ba(G,{style:Me({stroke:"none",fill:y[F%y.length]},V),silent:!0}))},this),O(x,function(G,F){this.group.add(Ba(G,{style:Me({fill:"none",stroke:g[F%g.length]},z),silent:!0}))},this)},t.type="radar",t})(Et),Sae=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t})(mn),wae=(function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=he(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new Sae(o,new ro);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(i-c.angle);h<o&&(s=c,l=u,o=h)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=xe(a[0],n),this.cy=xe(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(_e(s)||it(s))&&(s=[0,s]),this.r0=xe(s[0],o),this.r=xe(s[1],o),O(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;O(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();O(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new ro;o.setExtent(0,i),o.setInterval(1),O(a,function(s,l){N7(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function Cae(r){r.registerCoordinateSystem("radar",wae),r.registerComponentModel(xae),r.registerComponentView(bae),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function Aae(r){Ye(Cae),r.registerChartView(mae),r.registerSeriesModel(yae),r.registerLayout(pae),r.registerProcessor(Cd("radar")),r.registerPreprocessor(gae)}var qN="\0_ec_interaction_mutex";function Dae(r,t,e){var a=AA(r);a[t]=e}function Tae(r,t,e){var a=AA(r),n=a[t];n===e&&(a[t]=null)}function XN(r,t){return!!AA(r)[t]}function AA(r){return r[qN]||(r[qN]={})}Fn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},qt);var Dd=(function(r){Q(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=be(a._mousedownHandler,a),i=be(a._mousemoveHandler,a),o=be(a._mouseupHandler,a),s=be(a._mousewheelHandler,a),l=be(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=Me(Le(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!CE(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Yg("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||XN(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&Ki(e.event),z7(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){CE(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Yg("zoomOnMouseWheel",e,this._opt),n=Yg("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Fb(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Fb(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!XN(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;Fb(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t})(vn);function Fb(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Ki(a.event),z7(r,t,e,a,n))}function z7(r,t,e,a,n){n.isAvailableBehavior=be(Yg,null,e,a),r.trigger(t,n)}function Yg(r,t,e){var a=e[r];return!r||a&&(!_e(a)||t.event[a+"Key"])}function DA(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function TA(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Mae={axisPointer:1,tooltip:1,brush:1};function Vy(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!Mae.hasOwnProperty(a.mainType)&&n&&n.model!==e}function j7(r){if(_e(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Vb,Bm={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"},ZN=Ze(Bm),Im={"alignment-baseline":"textBaseline","stop-color":"stopColor"},$N=Ze(Im),Eae=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=j7(t);this._defsUsePending=[];var n=new Re;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Na(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Rae(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var v=Hy(o);v.length>=4&&(c={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(c&&s!=null&&l!=null&&(h=V7(c,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var p=n;n=new Re,n.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Je({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var c=Vb[s];if(c&&Se(Vb,s)){l=c.call(this,t,e);var h=t.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var p=KN[s];if(p&&Se(KN,s)){var g=p.call(this,t),y=t.getAttribute("id");y&&(this._defs[y]=g)}}if(l&&l.isGroup)for(var x=t.firstChild;x;)x.nodeType===1?this._parseNode(x,l,a,u,i,o):x.nodeType===3&&o&&this._parseText(x,l),x=x.nextSibling},r.prototype._parseText=function(t,e){var a=new Fc({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),Lae(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=(function(){Vb={g:function(t,e){var a=new Re;return Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Je;return Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(t,e){var a=new fi;return Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new hr;return Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(t,e){var a=new vd;return Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=e8(a));var i=new $r({shape:{points:n||[]},silent:!0});return Qa(e,i),Na(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=e8(a));var i=new Qr({shape:{points:n||[]},silent:!0});return Qa(e,i),Na(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new br;return Qa(e,a),Na(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new Re;return Qa(e,s),Na(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Re;return Qa(e,s),Na(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=Ek(a);return Qa(e,n),Na(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),KN={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new rf(t,e,a,n);return QN(r,i),JN(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new TC(t,e,a);return QN(r,n),JN(r,n),n}};function QN(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function JN(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};F7(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function Qa(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Me(t.__inheritedStyle,r.__inheritedStyle))}function e8(r){for(var t=Hy(r),e=[],a=0;a<t.length;a+=2){var n=parseFloat(t[a]),i=parseFloat(t[a+1]);e.push([n,i])}return e}function Na(r,t,e,a,n){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(kae(r,t),F7(r,o,s),a||Oae(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=t8(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=t8(i,"stroke",o.stroke,e)),O(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),O(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=he(Hy(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Lae(r,t){var e=t.__selfStyle;if(e){var a=e.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Nae=/^url\(\s*#(.*?)\)/;function t8(r,t,e,a){var n=e&&e.match(Nae);if(n){var i=un(n[1]);a.push([r,t,i]);return}return e==="none"&&(e=null),e}function Rae(r,t){for(var e=0;e<t.length;e++){var a=t[e];a[0].style[a[1]]=r[a[2]]}}var Bae=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hy(r){return r.match(Bae)||[]}var Iae=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Hb=Math.PI/180;function kae(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var a=[],n=null;e.replace(Iae,function(h,v,p){return a.push(v,p),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=Hy(o);switch(n=n||Sa(),s){case"translate":On(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":cy(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ds(n,n,-parseFloat(l[0])*Hb,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Hb);ii(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Hb);ii(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var r8=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F7(r,t,e){var a=r.getAttribute("style");if(a){r8.lastIndex=0;for(var n;(n=r8.exec(a))!=null;){var i=n[1],o=Se(Bm,i)?Bm[i]:null;o&&(t[o]=n[2]);var s=Se(Im,i)?Im[i]:null;s&&(e[s]=n[2])}}}function Oae(r,t,e){for(var a=0;a<ZN.length;a++){var n=ZN[a],i=r.getAttribute(n);i!=null&&(t[Bm[n]]=i)}for(var a=0;a<$N.length;a++){var n=$N[a],i=r.getAttribute(n);i!=null&&(e[Im[n]]=i)}}function V7(r,t){var e=t.width/r.width,a=t.height/r.height,n=Math.min(e,a);return{scale:n,x:-(r.x+r.width/2)*n+(t.x+t.width/2),y:-(r.y+r.height/2)*n+(t.y+t.height/2)}}function Pae(r,t){var e=new Eae;return e.parse(r,t)}var zae=Ce(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),jae=(function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=Ce(),this._freedGraphics=[],this._mapName=t,this._parsedXML=j7(e)}return r.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 e=Vae(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&Pae(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,Xr(a!=null)}catch(x){throw new Error(`Invalid svg format
  412. `+x.message)}var n=new Re;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var p=a.getBoundingRect();u==null&&(u=p.x,h=p.width),c==null&&(c=p.y,v=p.height)}l=this._boundingRect=new Ve(u,c,h,v)}if(s){var g=V7(s,l);a.scaleX=a.scaleY=g.scale,a.x=g.x,a.y=g.y}n.setClipPath(new Je({shape:l.plain()}));var y=[];return O(e.named,function(x){zae.get(x.svgNodeTagLower)!=null&&(y.push(x),Fae(x.el))}),{root:n,boundingRect:l,named:y}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r})();function Fae(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function Vae(r){var t=[],e=Ce();return O(r,function(a){if(a.namedFrom==null){var n=new Tee(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var iw=[126,25],a8="南海诸岛",cl=[[[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 ll=0;ll<cl.length;ll++)for(var oc=0;oc<cl[ll].length;oc++)cl[ll][oc][0]/=10.5,cl[ll][oc][1]/=-10.5/.75,cl[ll][oc][0]+=iw[0],cl[ll][oc][1]+=iw[1];function Hae(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===a8)return;t.push(new PP(a8,he(cl,function(a){return{type:"polygon",exterior:a}}),iw))}}var Gae={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Uae(r,t){if(r==="china"){var e=Gae[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var Yae=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Wae(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Yae[0]})}var qae="name",Xae=(function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=Ce(),this._mapName=t,this._specialAreas=a,this._geoJSON=$ae(e)}return r.prototype.load=function(t,e){e=e||qae;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:Zae(n)})}var i=Ce(),o=[];return O(a.regions,function(s){var l=s.name;t&&Se(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new Ve(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?Z2(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
  413. `+i.message)}return Hae(e,n),O(n,function(i){var o=i.name;Uae(e,i),Wae(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function Zae(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function $ae(r){return _e(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Bh=Ce();const ao={registerMap:function(r,t,e){if(t.svg){var a=new jae(r,t.svg);Bh.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new Xae(r,n,e);Bh.set(r,a)}},getGeoResource:function(r){return Bh.get(r)},getMapForUser:function(r){var t=Bh.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Bh.get(r);if(a)return a.load(t,e)}};var MA=["rect","circle","line","ellipse","polygon","polyline","path"],Kae=Ce(MA),Qae=Ce(MA.concat(["g"])),Jae=Ce(MA.concat(["g"])),H7=rt();function Np(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function n8(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var G7=(function(){function r(t){var e=new Re;this.uid=sf("ec_map_draw"),this._controller=new Dd(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Re),e.add(this._svgGroup=new Re)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===t&&(s=_.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),v=h.raw,p=h.roam,g=!u.childAt(0)||i;g?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):st(c,p,t);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,x={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(x):l.resourceType==="geoSVG"&&this._buildSVG(x),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Ce(),a=Ce(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(p,g){return g&&(p=g(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function h(p){for(var g=[],y=!u&&l&&l.project,x=0;x<p.length;++x){var _=c(p[x],y);_&&g.push(_)}return g}function v(p){return{shape:{points:h(p)}}}n.removeAll(),O(t.geo.regions,function(p){var g=p.name,y=e.get(g),x=a.get(g)||{},_=x.dataIdx,S=x.regionModel;if(!y){y=e.set(g,new Re),n.add(y),_=s?s.indexOfName(g):null,S=t.isGeo?o.getRegionModel(g):s?s.getItemModel(_):null;var w=S.get("silent",!0);w!=null&&(y.silent=w),a.set(g,{dataIdx:_,regionModel:S})}var C=[],D=[];O(p.geometries,function(N){if(N.type==="polygon"){var B=[N.exterior].concat(N.interiors||[]);u&&(B=c8(B,u)),O(B,function(I){C.push(new $r(v(I)))})}else{var R=N.points;u&&(R=c8(R,u,!0)),O(R,function(I){D.push(new Qr(v(I)))})}});var M=c(p.getCenter(),l&&l.project);function E(N,B){if(N.length){var R=new by({culling:!0,segmentIgnoreThreshold:1,shape:{paths:N}});y.add(R),i8(t,R,_,S),o8(t,R,g,S,o,_,M),B&&(n8(R),O(R.states,n8))}}E(C),E(D,!0)}),e.each(function(p,g){var y=a.get(g),x=y.dataIdx,_=y.regionModel;s8(t,p,g,_,o,x),l8(t,p,g,_,o),u8(t,p,g,_,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=Ce(),i=!1;O(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,p=l.getRegionModel(s);Kae.get(c)!=null&&h instanceof hn&&i8(t,h,v,p),h instanceof hn&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!o.namedFrom&&(Jae.get(c)!=null&&o8(t,h,s,p,l,v,null),s8(t,h,s,p,l,v),l8(t,h,s,p,l),Qae.get(c)!=null)){var y=u8(t,h,s,p,l);y==="self"&&(i=!0);var x=n.get(s)||n.set(s,[]);x.push(h)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){jl(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=ao.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=ao.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,DA(o,u.dx,u.dy),a.dispatchAction(oe(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,TA(o,u.scale,u.originX,u.originY),a.dispatchAction(oe(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,h){return n.containPoint([c,h])&&!Vy(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=H7(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function i8(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Np(n),u=Np(i),c=Np(s),h=Np(o),v=r.data;if(v){var p=v.getItemVisual(e,"style"),g=v.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=Gc(g,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=h,jl(t)}function o8(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var h=l?e:i,v=void 0;(!s||i>=0)&&(v=n);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Or(t,xr(a),{labelFetcher:v,labelDataIndex:h,defaultText:e},p);var g=t.getTextContent();if(g&&(H7(g).ignore=g.ignore,t.textConfig&&o)){var y=t.getBoundingRect().clone();t.textConfig.layoutRect=y,t.textConfig.position=[(o[0]-y.x)/y.width*100+"%",(o[1]-y.y)/y.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function s8(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):Be(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function l8(r,t,e,a,n){r.data||$l({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function u8(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Vt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&OZ(t,n,e),o}function c8(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),O(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}var ene=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new G7(n);o.add(s.group),s.draw(e,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,v=new fi({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:Jc+1)});if(!h){var p=e.mainSeries.getData(),g=i.getName(l),y=p.indexOfName(g),x=i.getItemModel(l),_=x.getModel("label"),S=p.getItemGraphicEl(y);Or(v,xr(x),{labelFetcher:{getFormattedLabel:function(w,C){return e.getFormattedLabel(y,C)}},defaultText:g}),v.disableLabelAnimation=!0,_.get("position")||v.setTextConfig({position:"bottom"}),S.onHoverStateChange=function(w){fm(v,w)}}o.add(v)}}})},t.type="map",t})(yt),tne=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=mf(this,{coordDimensions:["value"],encodeDefaulter:Oe(GC,this)}),n=Ce(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=ao.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return O(u.regions,function(c){var h=c.name,v=n.get(h),p=c.properties&&c.properties.echartsStyle,g;v==null?(g={name:h},i.push(g)):g=a.getRawDataItem(v),p&&ze(g,p)}),a.appendData(i),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),v=i.mapDimension("value");isNaN(l[c].originalData.get(v,h))||u.push(l[c].name)}return _r("section",{header:u.join(", "),noHeader:!u.length,blocks:[_r("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=Jt(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(St);function rne(r,t){var e={};return O(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,c=0;c<u;c++)s=Math.min(s,e[i][c]),l=Math.max(l,e[i][c]),o+=e[i][c];var h;return t==="min"?h=s:t==="max"?h=l:t==="average"?h=o/u:h=o,u===0?NaN:h})}function ane(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),O(t,function(e,a){for(var n=rne(he(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function nne(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};O(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),v=s.getRegion(h);if(!(!v||isNaN(u))){var p=n[h]||0,g=s.dataToPoint(v.getCenter());n[h]=p+1,l.setItemLayout(c,{point:g,offset:p})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var f8=Ar,Td=(function(r){Q(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Yi,a._rawTransformable=new Yi,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new Ve(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new Ve(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ve(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){e&&(this._center=[xe(e[0],a.getWidth()),xe(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Ar([],i,e),n=Ar([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),uy(this.transform||(this.transform=[]),a.transform||Sa()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Zl(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new Yi;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?f8(n,e,i):Ur(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?f8([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=h8(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=h8(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t})(Yi);function h8(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var ine={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},U7=["lng","lat"],ow=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=U7,i.type="geo",i._nameCoordMap=Ce(),i.map=a;var o=n.projection,s=ao.load(a,n.nameMap,n.nameProperty),l=ao.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=ine[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var h;if(o)for(var v=0;v<u.length;v++){var p=u[v].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:ke(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ve(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(_e(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=v8(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=v8(a);return i===this?i.pointToData(n):null},t})(Td);Xt(ow,Td);function v8(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",nr).models[0]||{}).coordinateSystem:null}function d8(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(M,E,N,B){for(var R=N-M,I=B-E,P=0;P<=100;P++){var z=P/100,V=i.project([M+R*z,E+I*z]);Gi(a,a,V),Ui(n,n,V)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var h=this.getBoundingRect(),v=r.get("layoutCenter"),p=r.get("layoutSize"),g=t.getWidth(),y=t.getHeight(),x=h.width/h.height*this.aspectScale,_=!1,S,w;v&&p&&(S=[xe(v[0],g),xe(v[1],y)],w=xe(p,Math.min(g,y)),!isNaN(S[0])&&!isNaN(S[1])&&!isNaN(w)&&(_=!0));var C;if(_)C={},x>1?(C.width=w,C.height=w/x):(C.height=w,C.width=w*x),C.y=S[1]-C.height/2,C.x=S[0]-C.width/2;else{var D=r.getBoxLayoutParams();D.aspect=x,C=ir(D,{width:g,height:y})}this.setViewRect(C.x,C.y,C.width,C.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function one(r,t){O(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var sne=(function(){function r(){this.dimensions=U7}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new ow(l+s,l,oe({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=d8,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),O(i,function(o,s){var l=he(o,function(c){return c.get("nameMap")}),u=new ow(s,s,oe({nameMap:oy(l)},n(o[0])));u.zoomLimit=gr.apply(null,he(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=d8,u.resize(o[0],e),O(o,function(c){c.coordinateSystem=u,one(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=Ce(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ao.load(e,a,n);return O(l.regions,function(u){var c=u.name,h=o.get(c),v=u.properties&&u.properties.echartsStyle;h||(h={name:c},i.push(h)),v&&ze(h,v)}),i},r})(),Y7=new sne,lne=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=ao.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Ol(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=Y7.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=fn(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new ut(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},Ce()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new ut(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(Te(i))return o.status=a,i(o);if(_e(i))return i.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t})(We);function p8(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function EA(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(p8(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=c,r.y-=h,r.updateTransform(),r.setCenter(p8(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var une=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new G7(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;wl(e.target,function(n){return(a=Be(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=Be(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t})(Et);function cne(r,t,e){ao.registerMap(r,t,e)}function W7(r){r.registerCoordinateSystem("geo",Y7),r.registerComponentModel(lne),r.registerComponentView(une),r.registerImpl("registerMap",cne),r.registerImpl("getMap",function(e){return ao.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;O(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var c=[];O(o,function(h,v){o[v]&&c.push(v)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=EA(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&O(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function fne(r){Ye(W7),r.registerChartView(ene),r.registerSeriesModel(tne),r.registerLayout(nne),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ane),UO("map",r.registerAction)}function hne(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function vne(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){gne(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=mne(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function dne(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function g8(r){return arguments.length?r:_ne}function Jh(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function pne(r,t){return ir(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function gne(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function mne(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;s=Gb(s),i=Ub(i),s&&i;){n=Gb(n),o=Ub(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(xne(yne(s,r,e),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!Gb(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!Ub(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function Gb(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Ub(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function yne(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function xne(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function _ne(r,t){return r.parentNode===t.parentNode?1:2}var bne=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),Sne=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bne},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,v=xe(a.forkPosition,1),p=[];p[c]=o[c],p[h]=o[h]+(l[h]-o[h])*v,e.moveTo(o[0],o[1]),e.lineTo(p[0],p[1]),e.moveTo(s[0],s[1]),p[c]=s[c],e.lineTo(p[0],p[1]),p[c]=l[c],e.lineTo(p[0],p[1]),e.lineTo(l[0],l[1]);for(var g=1;g<i-1;g++){var y=n[g];e.moveTo(y[0],y[1]),p[c]=y[c],e.lineTo(p[0],p[1])}},t})(Xe),wne=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new Re,e}return t.prototype.init=function(e,a){this._controller=new Dd(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.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(e,n),this._updateController(e,a,n);var u=this._data;i.diff(u).add(function(c){m8(i,c)&&y8(i,c,null,s,e)}).update(function(c,h){var v=u.getItemGraphicEl(h);if(!m8(i,c)){v&&_8(u,h,v,s,e);return}y8(i,c,v,s,e)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&_8(u,c,h,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:h})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,a){var n=e.getData(),i=[];n.each(function(h){var v=n.getItemLayout(h);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];yy(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 c=e.coordinateSystem=new Td;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center"),a),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,h)&&!Vy(u,n,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){DA(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){TA(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(yt);function m8(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function y8(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,h=o.parentNode===c?o:o.parentNode||o,v=r.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:p,y=o.getLayout();i?(e=new _d(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=g.x,e.y=g.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=y.rawX,e.__radialRawY=y.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,st(e,{x:y.x,y:y.y},n);var x=e.getSymbolPath();if(n.get("layout")==="radial"){var _=c.children[0],S=_.getLayout(),w=_.children.length,C=void 0,D=void 0;if(y.x===S.x&&o.isExpand===!0&&_.children.length){var M={x:(_.children[0].getLayout().x+_.children[w-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[w-1].getLayout().y)/2};C=Math.atan2(M.y-S.y,M.x-S.x),C<0&&(C=Math.PI*2+C),D=M.x<S.x,D&&(C=C-Math.PI)}else C=Math.atan2(y.y-S.y,y.x-S.x),C<0&&(C=Math.PI*2+C),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(D=y.x<S.x,D&&(C=C-Math.PI)):(D=y.x>S.x,D||(C=C-Math.PI));var E=D?"left":"right",N=s.getModel("label"),B=N.get("rotate"),R=B*(Math.PI/180),I=x.getTextContent();I&&(x.setTextConfig({position:N.get("position")||E,rotation:B==null?-C:R,origin:"center"}),I.setStyle("verticalAlign","middle"))}var P=s.get(["emphasis","focus"]),z=P==="relative"?zc(o.getAncestorsIndices(),o.getDescendantIndices()):P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():null;z&&(Be(e).focus=z),Cne(n,o,c,e,g,p,y,a),e.__edge&&(e.onHoverStateChange=function(V){if(V!=="blur"){var G=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);G&&G.hoverState===hd||fm(e.__edge,V)}})}function Cne(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),p=r.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),y=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(y||(y=a.__edge=new tf({shape:sw(c,h,v,n,n)})),st(y,{shape:sw(c,h,v,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var x=t.children,_=[],S=0;S<x.length;S++){var w=x[S].getLayout();_.push([w.x,w.y])}y||(y=a.__edge=new Sne({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),st(y,{shape:{parentPoint:[o.x,o.y],childPoints:_}},r)}y&&!(u==="polyline"&&!t.isExpand)&&(y.useStyle(Me({strokeNoScale:!0,fill:null},g)),kr(y,l,"lineStyle"),jl(y),s.add(y))}function x8(r,t,e,a,n){var i=t.tree.root,o=q7(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),h=c.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),p=a.get("edgeShape"),g=a.get("layout"),y=a.get("orient"),x=a.get(["lineStyle","curveness"]);v&&(p==="curve"?ls(v,{shape:sw(g,y,x,l,l),style:{opacity:0}},a,{cb:function(){e.remove(v)},removeOpt:n}):p==="polyline"&&a.get("layout")==="orthogonal"&&ls(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(v)},removeOpt:n}))}}function q7(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function _8(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=q7(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};ls(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){x8(u,r,a,n,l)}),x8(i,r,a,n,l)}function sw(r,t,e,a,n){var i,o,s,l,u,c,h,v;if(r==="radial"){u=a.rawX,h=a.rawY,c=n.rawX,v=n.rawY;var p=Jh(u,h),g=Jh(u,h+(v-h)*e),y=Jh(c,v+(h-v)*e),x=Jh(c,v);return{x1:p.x||0,y1:p.y||0,x2:x.x||0,y2:x.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:y.x||0,cpy2:y.y||0}}else u=a.x,h=a.y,c=n.x,v=n.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*e,o=h,s=c+(u-c)*e,l=v),(t==="TB"||t==="BT")&&(i=u,o=h+(v-h)*e,s=c,l=v+(h-v)*e);return{x1:u,y1:h,x2:c,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var cn=rt();function X7(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Z7(t,e,r),O(e,function(a){O(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Oe(Ane,r))})}),t.wrapMethod("cloneShallow",Oe(Tne,r)),O(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,Oe(Dne,r))}),Xr(e[t.dataType]===t)}function Ane(r,t){if(Lne(this)){var e=oe({},cn(this).datas);e[this.dataType]=t,Z7(t,e,r)}else LA(t,this.dataType,cn(this).mainData,r);return t}function Dne(r,t){return r.struct&&r.struct.update(),t}function Tne(r,t){return O(cn(t).datas,function(e,a){e!==t&&LA(e.cloneShallow(),a,t,r)}),t}function Mne(r){var t=cn(this).mainData;return r==null||t==null?t:cn(t).datas[r]}function Ene(){var r=cn(this).mainData;return r==null?[{data:r}]:he(Ze(cn(r).datas),function(t){return{type:t,data:cn(r).datas[t]}})}function Lne(r){return cn(r).mainData===r}function Z7(r,t,e){cn(r).datas={},O(t,function(a,n){LA(a,n,r,e)})}function LA(r,t,e,a){cn(e).datas[t]=r,cn(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=Mne,r.getLinkedDataAll=Ene}var Nne=(function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){Te(t)&&(a=e,e=t,t=null),t=t||{},_e(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r})(),NA=(function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(c,h){var v=c.value;o=Math.max(o,ce(v)?v.length:1),i.push(c);var p=new Nne(fr(c.name,""),n);h?Rne(p,h):n.root=p,n._nodes.push(p);var g=c.children;if(g)for(var y=0;y<g.length;y++)s(g[y],p)}n.root.updateDepthAndHeight(0);var l=df(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new qr(l,e);return u.initData(i),a&&a(u),X7({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function Rne(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Yv(r,t,e){if(r&&He(t,r.type)>=0){var a=e.getData().tree.root,n=r.targetNode;if(_e(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function $7(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function RA(r,t){var e=$7(r);return He(e,t)>=0}function Gy(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var Bne=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new ut(n,this,this.ecModel),o=NA.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,p){var g=o.getNodeByDataIndex(p);return g&&g.children.length&&g.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return _r("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Gy(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(St);function Ine(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)t(i,e)}function Ih(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function kne(r,t){r.eachSeriesByType("tree",function(e){One(e,t)})}function One(r,t){var e=pne(r,t);r.layoutInfo=e;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(e.height,e.width)/2,o=g8(function(w,C){return(w.parentNode===C.parentNode?1:2)/w.depth})):(n=e.width,i=e.height,o=g8());var s=r.getData().tree.root,l=s.children[0];if(l){hne(s),Ine(l,vne,o),s.hierNode.modifier=-l.hierNode.prelim,Ih(l,dne);var u=l,c=l,h=l;Ih(l,function(w){var C=w.getLayout().x;C<u.getLayout().x&&(u=w),C>c.getLayout().x&&(c=w),w.depth>h.depth&&(h=w)});var v=u===c?1:o(u,c)/2,p=v-u.getLayout().x,g=0,y=0,x=0,_=0;if(a==="radial")g=n/(c.getLayout().x+v+p),y=i/(h.depth-1||1),Ih(l,function(w){x=(w.getLayout().x+p)*g,_=(w.depth-1)*y;var C=Jh(x,_);w.setLayout({x:C.x,y:C.y,rawX:x,rawY:_},!0)});else{var S=r.getOrient();S==="RL"||S==="LR"?(y=i/(c.getLayout().x+v+p),g=n/(h.depth-1||1),Ih(l,function(w){_=(w.getLayout().x+p)*y,x=S==="LR"?(w.depth-1)*g:n-(w.depth-1)*g,w.setLayout({x,y:_},!0)})):(S==="TB"||S==="BT")&&(g=n/(c.getLayout().x+v+p),y=i/(h.depth-1||1),Ih(l,function(w){x=(w.getLayout().x+p)*g,_=S==="TB"?(w.depth-1)*y:i-(w.depth-1)*y,w.setLayout({x,y:_},!0)}))}}}function Pne(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");oe(s,o)})})}function zne(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=EA(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function jne(r){r.registerChartView(wne),r.registerSeriesModel(Bne),r.registerLayout(kne),r.registerVisual(Pne),zne(r)}var b8=["treemapZoomToNode","treemapRender","treemapMove"];function Fne(r){for(var t=0;t<b8.length;t++)r.registerAction({type:b8[t],update:"updateView"},qt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Yv(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=RA(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function K7(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=I2(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var Vne=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Q7(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new ut({itemStyle:o},this,a);i=e.levels=Hne(i,a);var l=he(i||[],function(h){return new ut(h,s,a)},this),u=NA.createTree(n,this,c);function c(h){h.wrapMethod("getItemModel",function(v,p){var g=u.getNodeByDataIndex(p),y=g?l[g.depth]:null;return v.parentModel=y||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return _r("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Gy(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},oe(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=Ce(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){K7(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(St);function Q7(r){var t=0;O(r.children,function(a){Q7(a);var n=a.value;ce(n)&&(n=n[0]),t+=n});var e=r.value;ce(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),ce(r.value)?r.value[0]=e:r.value=e}function Hne(r,t){var e=bt(t.get("color")),a=bt(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;O(r,function(s){var l=new ut(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var Gne=8,S8=8,Yb=5,Une=(function(){function r(t){this.group=new Re,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(t,h,s,l,u,c,n),Ey(o,h.pos,h.box)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=fr(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+Gne*2,e.emptyItemWidth);e.totalWidth+=s+S8,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),h=O$(e.pos,e.box),v=e.totalWidth,p=e.renderList,g=n.getModel("itemStyle").getItemStyle(),y=p.length-1;y>=0;y--){var x=p[y],_=x.node,S=x.width,w=x.text;v>h.width&&(v-=S-u,S=u,w=null);var C=new $r({shape:{points:Yne(l,0,S,c,y===p.length-1,y===0)},style:Me(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Qe({style:At(i,{text:w})}),textConfig:{position:"inside"},z2:Jc*1e4,onclick:Oe(s,_)});C.disableLabelAnimation=!0,C.getTextContent().ensureState("emphasis").style=At(o,{text:w}),C.ensureState("emphasis").style=g,Vt(C,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(C),Wne(C,t,_),l+=S+S8}},r.prototype.remove=function(){this.group.removeAll()},r})();function Yne(r,t,e,a,n,i){var o=[[n?r:r-Yb,t],[r+e,t],[r+e,t+a],[n?r:r-Yb,t+a]];return!i&&o.splice(2,0,[r+e+Yb,t+a/2]),!n&&o.push([r,t+a/2]),o}function Wne(r,t,e){Be(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Gy(e,t)}}var qne=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function Xne(){return new qne}var lw=Re,w8=Je,C8=3,A8="label",D8="upperLabel",Zne=Jc*10,$ne=Jc*2,Kne=Jc*3,fl=zl([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),T8=function(r){var t=fl(r);return t.stroke=t.fill=t.lineWidth=null,t},km=rt(),Qne=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=kh(),e}return t.prototype.render=function(e,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(He(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Yv(i,s,e),u=i&&i.type,c=e.layoutInfo,h=!this._oldTree,v=this._storage,p=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,g=this._giveContainerGroup(c),y=e.get("animation"),x=this._doRender(g,e,p);y&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,x,e,p):x.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new lw,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,n){var i=a.getData().tree,o=this._oldTree,s=kh(),l=kh(),u=this._storage,c=[];function h(S,w,C,D){return Jne(a,l,u,n,s,c,S,w,C,D)}y(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var v=x(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,g=i.root.getLayout();g.width===p.width&&g.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:v,renderFinally:_};function y(S,w,C,D,M){D?(w=S,O(S,function(B,R){!B.isRemoved()&&N(R,R)})):new eo(w,S,E,E).add(N).update(N).remove(Oe(N,null)).execute();function E(B){return B.getId()}function N(B,R){var I=B!=null?S[B]:null,P=R!=null?w[R]:null,z=h(I,P,C,M);z&&y(I&&I.viewChildren||[],P&&P.viewChildren||[],z,D,M+1)}}function x(S){var w=kh();return S&&O(S,function(C,D){var M=w[D];O(C,function(E){E&&(M.push(E),km(E).willDelete=!0)})}),w}function _(){O(v,function(S){O(S,function(w){w.parent&&w.parent.remove(w)})}),O(c,function(S){S.invisible=!0,S.dirty()})}},t.prototype._doAnimation=function(e,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(Te(o)?0:o)||0,u=(Te(s)?null:s)||"cubicOut",c=Xne();O(a.willDeleteEls,function(h,v){O(h,function(p,g){if(!p.invisible){var y=p.parent,x,_=km(y);if(i&&i.direction==="drillDown")x=y===i.rootNodeGroup?{shape:{x:0,y:0,width:_.nodeWidth,height:_.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var S=0,w=0;_.willDelete||(S=_.nodeWidth/2,w=_.nodeHeight/2),x=v==="nodeGroup"?{x:S,y:w,style:{opacity:0}}:{shape:{x:S,y:w,width:0,height:0},style:{opacity:0}}}x&&c.add(p,x,l,0,u)}})}),O(this._storage,function(h,v){O(h,function(p,g){var y=a.lastsForAnimation[v][g],x={};y&&(p instanceof Re?y.oldX!=null&&(x.x=p.x,x.y=p.y,p.x=y.oldX,p.y=y.oldY):(y.oldShape&&(x.shape=oe({},p.shape),p.setShape(y.oldShape)),y.fadein?(p.setStyle("opacity",0),x.style={opacity:1}):p.style.opacity!==1&&(x.style={opacity:1})),c.add(p,x,l,0,u))})},this),this._state="animating",c.finished(be(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),a||(a=this._controller=new Dd(e.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",be(this._onPan,this)),a.on("zoom",be(this._onZoom,this)));var i=new Ve(0,0,e.getWidth(),e.getHeight());a.setPointerChecker(function(o,s,l){return i.contain(s,l)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>C8||Math.abs(e.dy)>C8)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ve(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var h=c.zoom=c.zoom||1;if(h*=i,u){var v=u.min||0,p=u.max||1/0;h=Math.max(Math.min(p,h),v)}var g=h/c.zoom;c.zoom=h;var y=this.seriesModel.layoutInfo;a-=y.x,n-=y.y;var x=Sa();On(x,x,[-a,-n]),cy(x,x,[g,g]),On(x,x,[a,n]),l.applyTransform(x),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&mm(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Une(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(RA(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=kh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,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(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t})(yt);function kh(){return{nodeGroup:[],background:[],content:[]}}function Jne(r,t,e,a,n,i,o,s,l,u){if(!o)return;var c=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var p=c.width,g=c.height,y=c.borderWidth,x=c.invisible,_=o.getRawIndex(),S=s&&s.getRawIndex(),w=o.viewChildren,C=c.upperHeight,D=w&&w.length,M=v.getModel("itemStyle"),E=v.getModel(["emphasis","itemStyle"]),N=v.getModel(["blur","itemStyle"]),B=v.getModel(["select","itemStyle"]),R=M.get("borderRadius")||0,I=fe("nodeGroup",lw);if(!I)return;if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),km(I).nodeWidth=p,km(I).nodeHeight=g,c.isAboveViewRoot)return I;var P=fe("background",w8,u,$ne);P&&te(I,P,D&&c.upperLabelHeight);var z=v.getModel("emphasis"),V=z.get("focus"),G=z.get("blurScope"),F=z.get("disabled"),Y=V==="ancestor"?o.getAncestorsIndices():V==="descendant"?o.getDescendantIndices():V;if(D)Rv(I)&&bl(I,!1),P&&(bl(P,!F),h.setItemGraphicEl(o.dataIndex,P),D2(P,Y,G));else{var W=fe("content",w8,u,Kne);W&&j(I,W),P.disableMorphing=!0,P&&Rv(P)&&bl(P,!1),bl(I,!F),h.setItemGraphicEl(o.dataIndex,I);var X=v.getShallow("cursor");X&&W.attr("cursor",X),D2(I,Y,G)}return I;function te(se,ue,we){var ve=Be(ue);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=r.seriesIndex,ue.setShape({x:0,y:0,width:p,height:g,r:R}),x)U(ue);else{ue.invisible=!1;var Ae=o.getVisual("style"),Ue=Ae.stroke,De=T8(M);De.fill=Ue;var Ke=fl(E);Ke.fill=E.get("borderColor");var ot=fl(N);ot.fill=N.get("borderColor");var Lt=fl(B);if(Lt.fill=B.get("borderColor"),we){var Pt=p-2*y;Z(ue,Ue,Ae.opacity,{x:y,y:0,width:Pt,height:C})}else ue.removeTextContent();ue.setStyle(De),ue.ensureState("emphasis").style=Ke,ue.ensureState("blur").style=ot,ue.ensureState("select").style=Lt,jl(ue)}se.add(ue)}function j(se,ue){var we=Be(ue);we.dataIndex=o.dataIndex,we.seriesIndex=r.seriesIndex;var ve=Math.max(p-2*y,0),Ae=Math.max(g-2*y,0);if(ue.culling=!0,ue.setShape({x:y,y,width:ve,height:Ae,r:R}),x)U(ue);else{ue.invisible=!1;var Ue=o.getVisual("style"),De=Ue.fill,Ke=T8(M);Ke.fill=De,Ke.decal=Ue.decal;var ot=fl(E),Lt=fl(N),Pt=fl(B);Z(ue,De,Ue.opacity,null),ue.setStyle(Ke),ue.ensureState("emphasis").style=ot,ue.ensureState("blur").style=Lt,ue.ensureState("select").style=Pt,jl(ue)}se.add(ue)}function U(se){!se.invisible&&i.push(se)}function Z(se,ue,we,ve){var Ae=v.getModel(ve?D8:A8),Ue=fr(v.get("name"),null),De=Ae.getShallow("show");Or(se,xr(v,ve?D8:A8),{defaultText:De?Ue:null,inheritColor:ue,defaultOpacity:we,labelFetcher:r,labelDataIndex:o.dataIndex});var Ke=se.getTextContent();if(Ke){var ot=Ke.style,Lt=ly(ot.padding||0);ve&&(se.setTextConfig({layoutRect:ve}),Ke.disableLabelLayout=!0),Ke.beforeUpdate=function(){var Ht=Math.max((ve?ve.width:se.shape.width)-Lt[1]-Lt[3],0),vr=Math.max((ve?ve.height:se.shape.height)-Lt[0]-Lt[2],0);(ot.width!==Ht||ot.height!==vr)&&Ke.setStyle({width:Ht,height:vr})},ot.truncateMinChar=2,ot.lineOverflow="truncate",$(ot,ve,c);var Pt=Ke.getState("emphasis");$(Pt?Pt.style:null,ve,c)}}function $(se,ue,we){var ve=se?se.text:null;if(!ue&&we.isLeafRoot&&ve!=null){var Ae=r.get("drillDownIcon",!0);se.text=Ae?Ae+" "+ve:ve}}function fe(se,ue,we,ve){var Ae=S!=null&&e[se][S],Ue=n[se];return Ae?(e[se][S]=null,ye(Ue,Ae)):x||(Ae=new ue,Ae instanceof hn&&(Ae.z2=eie(we,ve)),ee(Ue,Ae)),t[se][_]=Ae}function ye(se,ue){var we=se[_]={};ue instanceof lw?(we.oldX=ue.x,we.oldY=ue.y):we.oldShape=oe({},ue.shape)}function ee(se,ue){var we=se[_]={},ve=o.parentNode,Ae=ue instanceof Re;if(ve&&(!a||a.direction==="drillDown")){var Ue=0,De=0,Ke=n.background[ve.getRawIndex()];!a&&Ke&&Ke.oldShape&&(Ue=Ke.oldShape.width,De=Ke.oldShape.height),Ae?(we.oldX=0,we.oldY=De):we.oldShape={x:Ue,y:De,width:0,height:0}}we.fadein=!Ae}}function eie(r,t){return r*Zne+t}var Wv=O,tie=Ee,Om=-1,yr=(function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=Le(t);this.type=a,this.mappingMethod=e,this._normalizeData=nie[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Wb(n),rie(n)):e==="category"?n.categories?aie(n):Wb(n,!0):(Xr(e!=="linear"||n.dataExtent),Wb(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return be(this._normalizeData,this)},r.listVisualTypes=function(){return Ze(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){Ee(t)?O(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=ce(t)?[]:Ee(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Wv(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(ce(t))t=t.slice();else if(tie(t)){var e=[];Wv(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||_e(l)&&l===t+"")return o;a&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Bp(h[1],t,c[1]))return o}else if(c[1]===1/0){if(Bp(h[0],c[0],t))return o}else if(Bp(h[0],c[0],t)&&Bp(h[1],t,c[1]))return o;a&&v(c[0],o),a&&v(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function v(p,g){var y=Math.abs(p-t);y<i&&(i=y,n=g)}},r.visualHandlers={color:{applyVisual:Oh("color"),getColorMapper:function(){var t=this.option;return be(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),ev.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=lv(e,t.parsedVisual,n),i?n:Bn(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Bn(lv(t,this.option.parsedVisual),"rgba")},category:ev,piecewise:function(t,e){var a=cw.call(this,e);return a==null&&(a=Bn(lv(t,this.option.parsedVisual),"rgba")),a},fixed:hl}},colorHue:Rp(function(t,e){return Lc(t,e)}),colorSaturation:Rp(function(t,e){return Lc(t,null,e)}),colorLightness:Rp(function(t,e){return Lc(t,null,null,e)}),colorAlpha:Rp(function(t,e){return Tv(t,e)}),decal:{applyVisual:Oh("decal"),_normalizedToVisual:{linear:null,category:ev,piecewise:null,fixed:null}},opacity:{applyVisual:Oh("opacity"),_normalizedToVisual:uw([0,1])},liftZ:{applyVisual:Oh("liftZ"),_normalizedToVisual:{linear:hl,category:hl,piecewise:hl,fixed:hl}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:M8,category:ev,piecewise:function(t,e){var a=cw.call(this,e);return a==null&&(a=M8.call(this,t)),a},fixed:hl}},symbolSize:{applyVisual:Oh("symbolSize"),_normalizedToVisual:uw([0,1])}},r})();function rie(r){var t=r.pieceList;r.hasSpecialVisual=!1,O(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function aie(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Wv(t,function(o,s){e[o]=s}),!ce(a)){var n=[];Ee(a)?Wv(a,function(o,s){var l=e[s];n[l??Om]=o}):n[Om]=a,a=J7(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function Wb(r,t){var e=r.visual,a=[];Ee(e)?Wv(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),J7(r,a)}function Rp(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:uw([0,1])}}function M8(r){var t=this.option.visual;return t[Math.round(dt(r,[0,1],[0,t.length-1],!0))]||{}}function Oh(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function ev(r){var t=this.option.visual;return t[this.option.loop&&r!==Om?r%t.length:r]}function hl(){return this.option.visual[0]}function uw(r){return{linear:function(t){return dt(t,r,this.option.visual,!0)},category:ev,piecewise:function(t,e){var a=cw.call(this,e);return a==null&&(a=dt(t,r,this.option.visual,!0)),a},fixed:hl}}function cw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=yr.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function J7(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=he(t,function(e){var a=ia(e);return a||[0,0,0,1]})),t}var nie={linear:function(r){return dt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=yr.findPieceIndex(r,t,!0);if(e!=null)return dt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Om},fixed:qt};function Bp(r,t,e){return r?t<=e:t<e}var iie="itemStyle",ez=rt();const oie={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||tz(e,{},r.getViewRoot().getAncestors(),r)}};function tz(r,t,e,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(iie),l=sie(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),v;h!=null&&(v=E8(l),c=lie(h,v)),u.stroke=c;var p=r.viewChildren;if(!p||!p.length)v=E8(l),u.fill=v;else{var g=uie(r,n,i,s,l,p);O(p,function(y,x){if(y.depth>=e.length||y===e[y.depth]){var _=cie(n,l,y,x,g,a);tz(y,_,e,a)}})}}}function sie(r,t,e){var a=oe({},t),n=e.designatedVisualItemStyle;return O(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function E8(r){var t=qb(r,"color");if(t){var e=qb(r,"colorAlpha"),a=qb(r,"colorSaturation");return a&&(t=Lc(t,null,null,a)),e&&(t=Tv(t,e)),t}}function lie(r,t){return t!=null?Lc(t,null,null,r):null}function qb(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function uie(r,t,e,a,n,i){if(!(!i||!i.length)){var o=Xb(t,"color")||n.color!=null&&n.color!=="none"&&(Xb(t,"colorAlpha")||Xb(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new yr(h);return ez(v).drColorMappingBy=c,v}}}function Xb(r,t){var e=r.get(t);return ce(e)&&e.length?{name:t,range:e}:null}function cie(r,t,e,a,n,i){var o=oe({},t);if(n){var s=n.type,l=s==="color"&&ez(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var qv=Math.max,Pm=Math.min,L8=gr,BA=O,rz=["itemStyle","borderWidth"],fie=["itemStyle","gapWidth"],hie=["upperLabel","show"],vie=["upperLabel","height"];const die={seriesType:"treemap",reset:function(r,t,e,a){var n=e.getWidth(),i=e.getHeight(),o=r.option,s=ir(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=xe(L8(s.width,l[0]),n),c=xe(L8(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],p=Yv(a,v,r),g=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,y=r.getViewRoot(),x=$7(y);if(h!=="treemapMove"){var _=h==="treemapZoomToNode"?_ie(r,p,y,u,c):g?[g.width,g.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var w={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};y.hostTree.clearLayouts();var C={x:0,y:0,width:_[0],height:_[1],area:_[0]*_[1]};y.setLayout(C),az(y,w,!1,0),C=y.getLayout(),BA(x,function(M,E){var N=(x[E+1]||y).getValue();M.setLayout(oe({dataExtent:[N,N],borderWidth:0,upperHeight:0},C))})}var D=r.getData().tree.root;D.setLayout(bie(s,g,p),!0),r.setLayoutInfo(s),nz(D,new Ve(-s.x,-s.y,n,i),x,y,0)}};function az(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(rz),u=s.get(fie)/2,c=iz(s),h=Math.max(l,c),v=l-u,p=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),n=qv(n-2*v,0),i=qv(i-v-p,0);var g=n*i,y=pie(r,s,g,t,e,a);if(y.length){var x={x:v,y:p,width:n,height:i},_=Pm(n,i),S=1/0,w=[];w.area=0;for(var C=0,D=y.length;C<D;){var M=y[C];w.push(M),w.area+=M.getLayout().area;var E=xie(w,_,t.squareRatio);E<=S?(C++,S=E):(w.area-=w.pop().getLayout().area,N8(w,_,x,u,!1),_=Pm(x.width,x.height),w.length=w.area=0,S=1/0)}if(w.length&&N8(w,_,x,u,!0),!e){var N=s.get("childrenVisibleMin");N!=null&&g<N&&(e=!0)}for(var C=0,D=y.length;C<D;C++)az(y[C],t,e,a+1)}}}function pie(r,t,e,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=lt(o,function(p){return!p.isRemoved()}),mie(o,s);var u=yie(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=gie(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var v=o[c].getValue()/u.sum*e;o[c].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function gie(r,t,e,a,n){if(!a)return e;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),e}function mie(r,t){return t&&r.sort(function(e,a){var n=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return n===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}),r}function yie(r,t,e){for(var a=0,n=0,i=t.length;n<i;n++)a+=t[n].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],BA(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function xie(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?qv(u*a/l,l/(u*n)):1/0}function N8(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],c=t?r.area/t:0;(n||c>e[l[o]])&&(c=e[l[o]]);for(var h=0,v=r.length;h<v;h++){var p=r[h],g={},y=c?p.getLayout().area/c:0,x=g[l[o]]=qv(c-2*a,0),_=e[s[i]]+e[l[i]]-u,S=h===v-1||_<y?_:y,w=g[l[i]]=qv(S-2*a,0);g[s[o]]=e[s[o]]+Pm(a,x/2),g[s[i]]=u+Pm(a,w/2),u+=S,p.setLayout(g,!0)}e[s[o]]+=c,e[l[o]]-=c}function _ie(r,t,e,a,n){var i=(t||{}).node,o=[a,n];if(!i||i===e)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,h=s.children,v=0,p=h.length;v<p;v++)c+=h[v].getValue();var g=i.getValue();if(g===0)return o;u*=c/g;var y=s.getModel(),x=y.get(rz),_=Math.max(x,iz(y));u+=4*x*x+(3*x+_)*Math.pow(u,.5),u>m2&&(u=m2),i=s}u<l&&(u=l);var S=Math.pow(u/l,.5);return[a*S,n*S]}function bie(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var n=e.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function nz(r,t,e,a,n){var i=r.getLayout(),o=e[n],s=o&&o===r;if(!(o&&!s||n===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Ve(t.x-i.x,t.y-i.y,t.width,t.height);BA(r.viewChildren||[],function(u){nz(u,l,e,a,n+1)})}}function iz(r){return r.get(hie)?r.get(vie):0}function Sie(r){r.registerSeriesModel(Vne),r.registerChartView(Qne),r.registerVisual(oie),r.registerLayout(die),Fne(r)}function wie(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){it(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function Cie(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var v=l.getShallow(c[h],!0);v!=null&&a.setItemVisual(o,c[h],v)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){_e(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");oe(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],v=0;v<h.length;v++)n.setItemVisual(o,h[v],a.getItemVisual(l,h[v]))}})})}function Ip(r){return r instanceof Array||(r=[r,r]),r}function Aie(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Ip(t.get("edgeSymbol")),i=Ip(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Ip(s.getShallow("symbol",!0)),c=Ip(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),v=a.ensureUniqueItemVisual(o,"style");switch(oe(v,h),v.stroke){case"source":{var p=l.node1.getVisual("style");v.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");v.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var fw="-->",Uy=function(r){return r.get("autoCurveness")||null},oz=function(r,t){var e=Uy(r),a=20,n=[];if(it(e))a=e;else if(ce(e)){r.__curvenessList=e;return}t>a&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Xv=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(fw)},sz=function(r){var t=r.split(fw);return[t[0],t[2],t[1]].join(fw)},Die=function(r,t){var e=Xv(r.node1,r.node2,t);return t.__edgeMap[e]},Tie=function(r,t){var e=hw(Xv(r.node1,r.node2,t),t),a=hw(Xv(r.node2,r.node1,t),t);return e+a},hw=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function Mie(r){Uy(r)&&(r.__curvenessList=[],r.__edgeMap={},oz(r))}function Eie(r,t,e,a){if(Uy(e)){var n=Xv(r,t,e),i=e.__edgeMap,o=i[sz(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function IA(r,t,e,a){var n=Uy(t),i=ce(n);if(!n)return null;var o=Die(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=Tie(r,t);oz(t,u),r.lineStyle=r.lineStyle||{};var c=Xv(r.node1,r.node2,t),h=t.__curvenessList,v=i||u%2?0:1;if(o.isForward)return h[v+s];var p=sz(c),g=hw(p,t),y=h[s+g+v];return a?i?n&&n[0]===0?(g+v)%2?y:-y:((g%2?0:1)+v)%2?y:-y:(g+v)%2?y:-y:h[s+g+v]}function lz(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),kA(e,r)}}function kA(r,t){r.eachEdge(function(e,a){var n=Nn(e.getModel().get(["lineStyle","curveness"]),-IA(e,t,a,!0),0),i=ni(e.node1.getLayout()),o=ni(e.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),e.setLayout(s)})}function Lie(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.getData(),o=[];O(n.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var h=i.get(o[c],s);isNaN(h)||(u=!0),l.push(h)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}kA(i.graph,e)}else(!a||a==="none")&&lz(e)})}function tv(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,n=t.getZoom(),i=(n-1)*e+1;return i/a}function rv(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var R8=Math.PI,Zb=[];function OA(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(e){var v=n.pointToData(a),p=v[0],g=v[1],y=[p-l,g-u];Xl(y,y),iv(y,y,c),e.setLayout([l+y[0],u+y[1]],!0);var x=r.get(["circular","rotateLabel"]);uz(e,x,l,u)}Nie[t](r,s,o,c,l,u,h),s.eachEdge(function(_,S){var w=Nn(_.getModel().get(["lineStyle","curveness"]),IA(_,r,S),0),C=ni(_.node1.getLayout()),D=ni(_.node2.getLayout()),M,E=(C[0]+D[0])/2,N=(C[1]+D[1])/2;+w&&(w*=3,M=[l*w+E*(1-w),u*w+N*(1-w)]),_.setLayout([C,D,M])})}}}var Nie={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var h=c.getValue("value"),v=u*(l?h:1)/2;s+=v,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=v})},symbolSize:function(r,t,e,a,n,i,o){var s=0;Zb.length=o;var l=tv(r);t.eachNode(function(h){var v=rv(h);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var p=Math.asin(v/2/a);isNaN(p)&&(p=R8/2),Zb[h.dataIndex]=p,s+=p*2});var u=(2*R8-s)/o/2,c=0;t.eachNode(function(h){var v=u+Zb[h.dataIndex];c+=v,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=v})}};function uz(r,t,e,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var c=l[0]<e;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var v=s.ensureState("emphasis");oe(v.textConfig||(v.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function Rie(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&OA(t,"symbolSize")})}var sc=em;function Bie(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,c=0;c<a.length;c++){var h=a[c];h.p||(h.p=vs(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=ni(h.p),h.edges=null}var v=e.friction==null?.6:e.friction,p=v,g,y;return{warmUp:function(){p=v*.8},setFixed:function(x){a[x].fixed=!0},setUnfixed:function(x){a[x].fixed=!1},beforeStep:function(x){g=x},afterStep:function(x){y=x},step:function(x){g&&g(a,n);for(var _=[],S=a.length,w=0;w<n.length;w++){var C=n[w];if(!C.ignoreForceLayout){var D=C.n1,M=C.n2;Wo(_,M.p,D.p);var E=Cv(_)-C.d,N=M.w/(D.w+M.w);isNaN(N)&&(N=0),Xl(_,_),!D.fixed&&sc(D.p,D.p,_,N*E*p),!M.fixed&&sc(M.p,M.p,_,-(1-N)*E*p)}}for(var w=0;w<S;w++){var B=a[w];B.fixed||(Wo(_,l,B.p),sc(B.p,B.p,_,u*p))}for(var w=0;w<S;w++)for(var D=a[w],R=w+1;R<S;R++){var M=a[R];Wo(_,M.p,D.p);var E=Cv(_);E===0&&(gI(_,Math.random()-.5,Math.random()-.5),E=1);var I=(D.rep+M.rep)/E/E;!D.fixed&&sc(D.pp,D.pp,_,I),!M.fixed&&sc(M.pp,M.pp,_,-I)}for(var P=[],w=0;w<S;w++){var B=a[w];B.fixed||(Wo(P,B.p,B.pp),sc(B.p,B.p,P,p),Ur(B.pp,B.p))}p=p*.992;var z=p<.01;y&&y(a,n,z),x&&x(z)}}}function Iie(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(w){var C=i.getId(w);i.setItemLayout(w,a[C]||[NaN,NaN])}):!l||l==="none"?lz(t):l==="circular"&&OA(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),h=s.get("repulsion"),v=s.get("edgeLength"),p=ce(h)?h:[h,h],g=ce(v)?v:[v,v];g=[g[1],g[0]];var y=i.mapArray("value",function(w,C){var D=i.getItemLayout(C),M=dt(w,u,p);return isNaN(M)&&(M=(p[0]+p[1])/2),{w:M,rep:M,fixed:i.getItemModel(C).get("fixed"),p:!D||isNaN(D[0])||isNaN(D[1])?null:D}}),x=o.mapArray("value",function(w,C){var D=n.getEdgeByIndex(C),M=dt(w,c,g);isNaN(M)&&(M=(g[0]+g[1])/2);var E=D.getModel(),N=Nn(D.getModel().get(["lineStyle","curveness"]),-IA(D,t,C,!0),0);return{n1:y[D.node1.dataIndex],n2:y[D.node2.dataIndex],d:M,curveness:N,ignoreForceLayout:E.get("ignoreForceLayout")}}),_=e.getBoundingRect(),S=Bie(y,x,{rect:_,gravity:s.get("gravity"),friction:s.get("friction")});S.beforeStep(function(w,C){for(var D=0,M=w.length;D<M;D++)w[D].fixed&&Ur(w[D].p,n.getNodeByIndex(D).getLayout())}),S.afterStep(function(w,C,D){for(var M=0,E=w.length;M<E;M++)w[M].fixed||n.getNodeByIndex(M).setLayout(w[M].p),a[i.getId(M)]=w[M].p;for(var M=0,E=C.length;M<E;M++){var N=C[M],B=n.getEdgeByIndex(M),R=N.n1.p,I=N.n2.p,P=B.getLayout();P=P?P.slice():[],P[0]=P[0]||[],P[1]=P[1]||[],Ur(P[0],R),Ur(P[1],I),+N.curveness&&(P[2]=[(R[0]+I[0])/2-(R[1]-I[1])*N.curveness,(R[1]+I[1])/2-(I[0]-R[0])*N.curveness]),B.setLayout(P)}}),t.forceLayout=S,t.preservedPoints=a,S.step()}else t.forceLayout=null})}function kie(r,t,e){var a=oe(r.getBoxLayoutParams(),{aspect:e});return ir(a,{width:t.getWidth(),height:t.getHeight()})}function Oie(r,t){var e=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(x){var _=i.getItemModel(x);return[+_.get("x"),+_.get("y")]}),s=[],l=[];yy(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=kie(a,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],v=l[1]-s[1],p=c.width,g=c.height,y=a.coordinateSystem=new Td;y.zoomLimit=a.get("scaleLimit"),y.setBoundingRect(s[0],s[1],h,v),y.setViewRect(c.x,c.y,p,g),y.setCenter(a.get("center"),t),y.setZoom(a.get("zoom")),e.push(y)}}),e}var B8=hr.prototype,$b=tf.prototype,cz=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(cz);function Kb(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Pie=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cz},t.prototype.buildPath=function(e,a){Kb(a)?B8.buildPath.call(this,e,a):$b.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return Kb(this.shape)?B8.pointAt.call(this,e):$b.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=Kb(a)?[a.x2-a.x1,a.y2-a.y1]:$b.tangentAt.call(this,e);return Xl(n,n)},t})(Xe),Qb=["fromSymbol","toSymbol"];function I8(r){return"_"+r+"Type"}function k8(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=vf(n),u=Jl(o||0,l);return a+l+u+(i||"")+(s||"")}function O8(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=vf(n),u=Jl(o||0,l),c=Jt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function zie(r){var t=new Pie({name:"line",subPixelOptimize:!0});return vw(t.shape,r),t}function vw(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var PA=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=zie(o);s.shape.percent=0,It(s,{shape:{percent:1}},i,a),this.add(s),O(Qb,function(l){var u=O8(l,e,a);this.add(u),this[I8(l)]=k8(l,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};vw(l.shape,s),st(o,l,i,a),O(Qb,function(u){var c=k8(u,e,a),h=I8(u);if(this[h]!==c){this.remove(this.childOfName(u));var v=O8(u,e,a);this.add(v)}this[h]=c},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,v=n&&n.focus,p=n&&n.blurScope;if(!n||e.hasItemOption){var g=e.getItemModel(a),y=g.getModel("emphasis");s=y.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),h=y.get("disabled"),v=y.get("focus"),p=y.get("blurScope"),c=xr(g)}var x=e.getItemVisual(a,"style"),_=x.stroke;o.useStyle(x),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,O(Qb,function(M){var E=this.childOfName(M);if(E){E.setColor(_),E.style.opacity=x.opacity;for(var N=0;N<la.length;N++){var B=la[N],R=o.getState(B);if(R){var I=R.style||{},P=E.ensureState(B),z=P.style||(P.style={});I.stroke!=null&&(z[E.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(z.opacity=I.opacity)}}E.markRedraw()}},this);var S=i.getRawValue(a);Or(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(M,E){return i.getFormattedLabel(M,E,e.dataType)}},inheritColor:_||"#000",defaultOpacity:x.opacity,defaultText:(S==null?e.getName(a):isFinite(S)?Ut(S):S)+""});var w=this.getTextContent();if(w){var C=c.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=C.get("position")||"middle";var D=C.get("distance");ce(D)||(D=[D,D]),w.__labelDistance=D}this.setTextConfig({position:null,local:!0,inside:!1}),Vt(this,v,p,h)},t.prototype.highlight=function(){Qi(this)},t.prototype.downplay=function(){Ji(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");vw(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),v=Wo([],h,c);Xl(v,v);function p(R,I){var P=R.__specifiedRotation;if(P==null){var z=l.tangentAt(I);R.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(z[1],z[0]))}else R.attr("rotation",P)}if(a&&(a.setPosition(c),p(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(h),p(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var g=void 0,y=void 0,x=i.__labelDistance,_=x[0]*o,S=x[1]*o,w=u/2,C=l.tangentAt(w),D=[C[1],-C[0]],M=l.pointAt(w);D[1]>0&&(D[0]=-D[0],D[1]=-D[1]);var E=C[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var N=-Math.atan2(C[1],C[0]);h[0]<c[0]&&(N=Math.PI+N),i.rotation=N}var B=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":B=-S,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":B=S,y="top";break;default:B=0,y="middle"}switch(i.__position){case"end":i.x=v[0]*_+h[0],i.y=v[1]*S+h[1],g=v[0]>.8?"left":v[0]<-.8?"right":"center",y=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*_+c[0],i.y=-v[1]*S+c[1],g=v[0]>.8?"right":v[0]<-.8?"left":"center",y=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=_*E+c[0],i.y=c[1]+B,g=C[0]<0?"right":"left",i.originX=-_*E,i.originY=-B;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=M[0],i.y=M[1]+B,g="center",i.originY=-B;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-_*E+h[0],i.y=h[1]+B,g=C[0]>=0?"right":"left",i.originX=_*E,i.originY=-B;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||y,align:i.__align||g})}},t})(Re),zA=(function(){function r(t){this.group=new Re,this._LineCtor=t||PA}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=P8(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=P8(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!jie(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(Jb(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){ps(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(Jb(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!Jb(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r})();function jie(r){return r.animators&&r.animators.length>0}function P8(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:xr(t)}}function z8(r){return isNaN(r[0])||isNaN(r[1])}function Jb(r){return r&&!z8(r[0])&&!z8(r[1])}var eS=[],tS=[],rS=[],lc=Cr,aS=Jo,j8=Math.abs;function F8(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,c=.1;c<=.9;c+=.1){eS[0]=lc(a[0],n[0],i[0],c),eS[1]=lc(a[1],n[1],i[1],c);var h=j8(aS(eS,t)-l);h<o&&(o=h,s=c)}for(var v=0;v<32;v++){var p=s+u;tS[0]=lc(a[0],n[0],i[0],s),tS[1]=lc(a[1],n[1],i[1],s),rS[0]=lc(a[0],n[0],i[0],p),rS[1]=lc(a[1],n[1],i[1],p);var h=aS(tS,t)-l;if(j8(h)<.01)break;var g=aS(rS,t)-l;u/=2,h<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function nS(r,t){var e=[],a=Av,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ni(u[0]),ni(u[1])],u[2]&&u.__original.push(ni(u[2])));var v=u.__original;if(u[2]!=null){if(Ur(n[0],v[0]),Ur(n[1],v[2]),Ur(n[2],v[1]),c&&c!=="none"){var p=rv(s.node1),g=F8(n,v[0],p*t);a(n[0][0],n[1][0],n[2][0],g,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],g,e),n[0][1]=e[3],n[1][1]=e[4]}if(h&&h!=="none"){var p=rv(s.node2),g=F8(n,v[1],p*t);a(n[0][0],n[1][0],n[2][0],g,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],g,e),n[1][1]=e[1],n[2][1]=e[2]}Ur(u[0],n[0]),Ur(u[1],n[2]),Ur(u[2],n[1])}else{if(Ur(i[0],v[0]),Ur(i[1],v[1]),Wo(o,i[1],i[0]),Xl(o,o),c&&c!=="none"){var p=rv(s.node1);em(i[0],i[0],o,p*t)}if(h&&h!=="none"){var p=rv(s.node2);em(i[1],i[1],o,-p*t)}Ur(u[0],i[0]),Ur(u[1],i[1])}})}function V8(r){return r.type==="view"}var Fie=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new bd,i=new zA,o=this.group;this._controller=new Dd(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(V8(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):st(u,c,e)}nS(e.getGraph(),tv(e));var h=e.getData();s.updateData(h);var v=e.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(e,a,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,g=e.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,g);var y=e.get("layout");h.graph.eachNode(function(w){var C=w.dataIndex,D=w.getGraphicEl(),M=w.getModel();if(D){D.off("drag").off("dragend");var E=M.get("draggable");E&&D.on("drag",function(B){switch(y){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,g),p.setFixed(C),h.setItemLayout(C,[D.x,D.y]);break;case"circular":h.setItemLayout(C,[D.x,D.y]),w.setLayout({fixed:!0},!0),OA(e,"symbolSize",w,[B.offsetX,B.offsetY]),i.updateLayout(e);break;case"none":default:h.setItemLayout(C,[D.x,D.y]),kA(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){p&&p.setUnfixed(C)}),D.setDraggable(E,!!M.get("cursor"));var N=M.get(["emphasis","focus"]);N==="adjacency"&&(Be(D).focus=w.getAdjacentDataIndices())}}),h.graph.eachEdge(function(w){var C=w.getGraphicEl(),D=w.getModel().get(["emphasis","focus"]);C&&D==="adjacency"&&(Be(C).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var x=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),_=h.getLayout("cx"),S=h.getLayout("cy");h.graph.eachNode(function(w){uz(w,x,_,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a){var n=this;(function i(){e.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,h)&&!Vy(u,n,e)}),!V8(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){DA(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){TA(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),nS(e.getGraph(),tv(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=tv(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){nS(e.getGraph(),tv(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(yt);function uc(r){return"_EC_"+r}var Vie=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[uc(t)]){var n=new vl(t,e);return n.hostGraph=this,this.nodes.push(n),a[uc(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[uc(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(it(t)&&(t=this.nodes[t]),it(e)&&(e=this.nodes[e]),t instanceof vl||(t=n[uc(t)]),e instanceof vl||(e=n[uc(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new fz(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof vl&&(t=t.id),e instanceof vl&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof vl||(e=this._nodesMap[uc(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(t.call(n,h,l))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r})(),vl=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=Ce(),e=Ce(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){t.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,e.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r})(),fz=(function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=Ce(),e=Ce();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r})();function hz(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Xt(vl,hz("hostGraph","data"));Xt(fz,hz("hostGraph","edgeData"));function vz(r,t,e,a,n){for(var i=new Vie(a),o=0;o<r.length;o++)i.addNode(gr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],h=c.source,v=c.target;i.addEdge(h,v,u)&&(l.push(c),s.push(gr(fr(c.id,null),h+" > "+v)),u++)}var p=e.get("coordinateSystem"),g;if(p==="cartesian2d"||p==="polar")g=vi(r,e);else{var y=cf.get(p),x=y?y.dimensions||[]:[];He(x,"value")<0&&x.concat(["value"]);var _=df(r,{coordDimensions:x,encodeDefine:e.getEncode()}).dimensions;g=new qr(_,e),g.initData(r)}var S=new qr(["value"],e);return S.initData(l,s),n&&n(g,S),X7({mainData:g,struct:i,structAttr:"graph",datas:{node:g,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Hie=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ad(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ol(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){Mie(this);var s=vz(i,n,this,!0,l);return O(s.edges,function(u){Eie(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var y=o._categoriesModels,x=g.getShallow("category"),_=y[x];return _&&(_.parentModel=g.parentModel,g.parentModel=_),g});var h=ut.prototype.getModel;function v(g,y){var x=h.call(this,g,y);return x.resolveParentPath=p,x}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=p,g.getModel=v,g});function p(g){if(g&&(g[0]==="label"||g[1]==="label")){var y=g.slice();return g[0]==="label"?y[0]="edgeLabel":g[1]==="label"&&(y[1]="edgeLabel"),y}return g}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),_r("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=IO({series:this,dataIndex:e,multipleSeries:a});return h},t.prototype._updateCategoriesData=function(){var e=he(this.option.categories||[],function(n){return n.value!=null?n:oe({value:0},n)}),a=new qr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(St),Gie={type:"graphRoam",event:"graphRoam",update:"none"};function Uie(r){r.registerChartView(Fie),r.registerSeriesModel(Hie),r.registerProcessor(wie),r.registerVisual(Cie),r.registerVisual(Aie),r.registerLayout(Lie),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Rie),r.registerLayout(Iie),r.registerCoordinateSystem("graphView",{dimensions:Td.dimensions,create:Oie}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},qt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},qt),r.registerAction(Gie,function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=n.coordinateSystem,o=EA(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var Yie=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),Wie=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new Yie},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t})(Xe);function qie(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=xe(e[0],t.getWidth()),s=xe(e[1],t.getHeight()),l=xe(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function kp(r,t){var e=r==null?"":r+"";return t&&(_e(t)?e=t.replace("{value}",e):Te(t)&&(e=t(r))),e}var Xie=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=qie(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),v=h.get("roundCap"),p=v?Rm:Zr,g=h.get("show"),y=h.getModel("lineStyle"),x=y.get("width"),_=[u,c];_C(_,!l),u=_[0],c=_[1];for(var S=c-u,w=u,C=[],D=0;g&&D<i.length;D++){var M=Math.min(Math.max(i[D][0],0),1);c=u+S*M;var E=new p({shape:{startAngle:w,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-x,r:o.r},silent:!0});E.setStyle({fill:i[D][1]}),E.setStyle(y.getLineStyle(["color","width"])),C.push(E),w=c}C.reverse(),O(C,function(B){return s.add(B)});var N=function(B){if(B<=0)return i[0][1];var R;for(R=0;R<i.length;R++)if(i[R][0]>=B&&(R===0?0:i[R-1][0])<B)return i[R][1];return i[R-1][1]};this._renderTicks(e,a,n,N,o,u,c,l,x),this._renderTitleAndDetail(e,a,n,N,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,N,o,u,c,l,x)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,c){for(var h=this.group,v=o.cx,p=o.cy,g=o.r,y=+e.get("min"),x=+e.get("max"),_=e.getModel("splitLine"),S=e.getModel("axisTick"),w=e.getModel("axisLabel"),C=e.get("splitNumber"),D=S.get("splitNumber"),M=xe(_.get("length"),g),E=xe(S.get("length"),g),N=s,B=(l-s)/C,R=B/D,I=_.getModel("lineStyle").getLineStyle(),P=S.getModel("lineStyle").getLineStyle(),z=_.get("distance"),V,G,F=0;F<=C;F++){if(V=Math.cos(N),G=Math.sin(N),_.get("show")){var Y=z?z+c:c,W=new hr({shape:{x1:V*(g-Y)+v,y1:G*(g-Y)+p,x2:V*(g-M-Y)+v,y2:G*(g-M-Y)+p},style:I,silent:!0});I.stroke==="auto"&&W.setStyle({stroke:i(F/C)}),h.add(W)}if(w.get("show")){var Y=w.get("distance")+z,X=kp(Ut(F/C*(x-y)+y),w.get("formatter")),te=i(F/C),j=V*(g-M-Y)+v,U=G*(g-M-Y)+p,Z=w.get("rotate"),$=0;Z==="radial"?($=-N+2*Math.PI,$>Math.PI/2&&($+=Math.PI)):Z==="tangential"?$=-N-Math.PI/2:it(Z)&&($=Z*Math.PI/180),$===0?h.add(new Qe({style:At(w,{text:X,x:j,y:U,verticalAlign:G<-.8?"top":G>.8?"bottom":"middle",align:V<-.4?"left":V>.4?"right":"center"},{inheritColor:te}),silent:!0})):h.add(new Qe({style:At(w,{text:X,x:j,y:U,verticalAlign:"middle",align:"center"},{inheritColor:te}),silent:!0,originX:j,originY:U,rotation:$}))}if(S.get("show")&&F!==C){var Y=S.get("distance");Y=Y?Y+c:c;for(var fe=0;fe<=D;fe++){V=Math.cos(N),G=Math.sin(N);var ye=new hr({shape:{x1:V*(g-Y)+v,y1:G*(g-Y)+p,x2:V*(g-E-Y)+v,y2:G*(g-E-Y)+p},silent:!0,style:P});P.stroke==="auto"&&ye.setStyle({stroke:i((F+fe/D)/C)}),h.add(ye),N+=R}N-=R}else N+=B}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var h=this.group,v=this._data,p=this._progressEls,g=[],y=e.get(["pointer","show"]),x=e.getModel("progress"),_=x.get("show"),S=e.getData(),w=S.mapDimension("value"),C=+e.get("min"),D=+e.get("max"),M=[C,D],E=[s,l];function N(R,I){var P=S.getItemModel(R),z=P.getModel("pointer"),V=xe(z.get("width"),o.r),G=xe(z.get("length"),o.r),F=e.get(["pointer","icon"]),Y=z.get("offsetCenter"),W=xe(Y[0],o.r),X=xe(Y[1],o.r),te=z.get("keepAspect"),j;return F?j=Jt(F,W-V/2,X-G,V,G,null,te):j=new Wie({shape:{angle:-Math.PI/2,width:V,r:G,x:W,y:X}}),j.rotation=-(I+Math.PI/2),j.x=o.cx,j.y=o.cy,j}function B(R,I){var P=x.get("roundCap"),z=P?Rm:Zr,V=x.get("overlap"),G=V?x.get("width"):c/S.count(),F=V?o.r-G:o.r-(R+1)*G,Y=V?o.r:o.r-R*G,W=new z({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:Y}});return V&&(W.z2=dt(S.get(w,R),[C,D],[100,0],!0)),W}(_||y)&&(S.diff(v).add(function(R){var I=S.get(w,R);if(y){var P=N(R,s);It(P,{rotation:-((isNaN(+I)?E[0]:dt(I,M,E,!0))+Math.PI/2)},e),h.add(P),S.setItemGraphicEl(R,P)}if(_){var z=B(R,s),V=x.get("clip");It(z,{shape:{endAngle:dt(I,M,E,V)}},e),h.add(z),w2(e.seriesIndex,S.dataType,R,z),g[R]=z}}).update(function(R,I){var P=S.get(w,R);if(y){var z=v.getItemGraphicEl(I),V=z?z.rotation:s,G=N(R,V);G.rotation=V,st(G,{rotation:-((isNaN(+P)?E[0]:dt(P,M,E,!0))+Math.PI/2)},e),h.add(G),S.setItemGraphicEl(R,G)}if(_){var F=p[I],Y=F?F.shape.endAngle:s,W=B(R,Y),X=x.get("clip");st(W,{shape:{endAngle:dt(P,M,E,X)}},e),h.add(W),w2(e.seriesIndex,S.dataType,R,W),g[R]=W}}).execute(),S.each(function(R){var I=S.getItemModel(R),P=I.getModel("emphasis"),z=P.get("focus"),V=P.get("blurScope"),G=P.get("disabled");if(y){var F=S.getItemGraphicEl(R),Y=S.getItemVisual(R,"style"),W=Y.fill;if(F instanceof br){var X=F.style;F.useStyle(oe({image:X.image,x:X.x,y:X.y,width:X.width,height:X.height},Y))}else F.useStyle(Y),F.type!=="pointer"&&F.setColor(W);F.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",i(dt(S.get(w,R),M,[0,1],!0))),F.z2EmphasisLift=0,kr(F,I),Vt(F,z,V,G)}if(_){var te=g[R];te.useStyle(S.getItemVisual(R,"style")),te.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),te.z2EmphasisLift=0,kr(te,I),Vt(te,z,V,G)}}),this._progressEls=g)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=Jt(s,a.cx-o/2+xe(l[0],a.r),a.cy-o/2+xe(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),h=+e.get("max"),v=new Re,p=[],g=[],y=e.isAnimationEnabled(),x=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(_){p[_]=new Qe({silent:!0}),g[_]=new Qe({silent:!0})}).update(function(_,S){p[_]=s._titleEls[S],g[_]=s._detailEls[S]}).execute(),l.each(function(_){var S=l.getItemModel(_),w=l.get(u,_),C=new Re,D=i(dt(w,[c,h],[0,1],!0)),M=S.getModel("title");if(M.get("show")){var E=M.get("offsetCenter"),N=o.cx+xe(E[0],o.r),B=o.cy+xe(E[1],o.r),R=p[_];R.attr({z2:x?0:2,style:At(M,{x:N,y:B,text:l.getName(_),align:"center",verticalAlign:"middle"},{inheritColor:D})}),C.add(R)}var I=S.getModel("detail");if(I.get("show")){var P=I.get("offsetCenter"),z=o.cx+xe(P[0],o.r),V=o.cy+xe(P[1],o.r),G=xe(I.get("width"),o.r),F=xe(I.get("height"),o.r),Y=e.get(["progress","show"])?l.getItemVisual(_,"style").fill:D,R=g[_],W=I.get("formatter");R.attr({z2:x?0:2,style:At(I,{x:z,y:V,text:kp(w,W),width:isNaN(G)?null:G,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:Y})}),Vk(R,{normal:I},w,function(te){return kp(te,W)}),y&&Hk(R,_,l,e,{getFormattedLabel:function(te,j,U,Z,$,fe){return kp(fe?fe.interpolatedValue:w,W)}}),C.add(R)}v.add(C)}),this.group.add(v),this._titleEls=p,this._detailEls=g},t.type="gauge",t})(yt),Zie=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return mf(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(St);function $ie(r){r.registerChartView(Xie),r.registerSeriesModel(Zie)}var Kie=["itemStyle","opacity"],Qie=(function(r){Q(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Qr,s=new Qe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(Kie);c=c??1,n||zn(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,It(i,{style:{opacity:c}},o,a)):st(i,{style:{opacity:c},shape:{points:l.points}},o,a),kr(i,s),this._updateLabel(e,a),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),c=u.label,h=e.getItemVisual(a,"style"),v=h.fill;Or(o,xr(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:e.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:v,outsideFill:v});var p=c.linePoints;i.setShape({points:p}),n.textGuideLineConfig={anchor:p?new Fe(p[0][0],p[0][1]):null},st(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),pA(n,gA(l),{stroke:v})},t})($r),Jie=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Qie(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Bv(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(yt),eoe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ad(be(this.getData,this),be(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return mf(this,{coordDimensions:["value"],encodeDefaulter:Oe(GC,this)})},t.prototype._defaultLabelLine=function(e){Ol(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(St);function toe(r,t){return ir(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function roe(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return Te(t)?n.sort(t):t!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function aoe(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,v,p,g;if(c)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,h="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),g=[[v,p],[v,p]];else{var y=void 0,x=void 0,_=void 0,S=void 0,w=s.get("length");o==="left"?(y=(u[3][0]+u[0][0])/2,x=(u[3][1]+u[0][1])/2,_=y-w,v=_-5,h="right"):o==="right"?(y=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,_=y+w,v=_+5,h="left"):o==="top"?(y=(u[3][0]+u[0][0])/2,x=(u[3][1]+u[0][1])/2,S=x-w,p=S-5,h="center"):o==="bottom"?(y=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,S=x+w,p=S+5,h="center"):o==="rightTop"?(y=e==="horizontal"?u[3][0]:u[1][0],x=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(S=x-w,p=S-5,h="center"):(_=y+w,v=_+5,h="top")):o==="rightBottom"?(y=u[2][0],x=u[2][1],e==="horizontal"?(S=x+w,p=S+5,h="center"):(_=y+w,v=_+5,h="bottom")):o==="leftTop"?(y=u[0][0],x=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(S=x-w,p=S-5,h="center"):(_=y-w,v=_-5,h="right")):o==="leftBottom"?(y=e==="horizontal"?u[1][0]:u[3][0],x=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(S=x+w,p=S+5,h="center"):(_=y-w,v=_-5,h="right")):(y=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,e==="horizontal"?(S=x+w,p=S+5,h="center"):(_=y+w,v=_+5,h="left")),e==="horizontal"?(_=y,v=_):(S=x,p=S),g=[[y,x],[_,S]]}l.label={linePoints:g,x:v,y:p,verticalAlign:"middle",textAlign:h,inside:c}})}function noe(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),o=toe(e,t),s=e.get("orient"),l=o.width,u=o.height,c=roe(a,i),h=o.x,v=o.y,p=s==="horizontal"?[xe(e.get("minSize"),u),xe(e.get("maxSize"),u)]:[xe(e.get("minSize"),l),xe(e.get("maxSize"),l)],g=a.getDataExtent(n),y=e.get("min"),x=e.get("max");y==null&&(y=Math.min(g[0],0)),x==null&&(x=g[1]);var _=e.get("funnelAlign"),S=e.get("gap"),w=s==="horizontal"?l:u,C=(w-S*(a.count()-1))/a.count(),D=function(V,G){if(s==="horizontal"){var F=a.get(n,V)||0,Y=dt(F,[y,x],p,!0),W=void 0;switch(_){case"top":W=v;break;case"center":W=v+(u-Y)/2;break;case"bottom":W=v+(u-Y);break}return[[G,W],[G,W+Y]]}var X=a.get(n,V)||0,te=dt(X,[y,x],p,!0),j;switch(_){case"left":j=h;break;case"center":j=h+(l-te)/2;break;case"right":j=h+l-te;break}return[[j,G],[j+te,G]]};i==="ascending"&&(C=-C,S=-S,s==="horizontal"?h+=l:v+=u,c=c.reverse());for(var M=0;M<c.length;M++){var E=c[M],N=c[M+1],B=a.getItemModel(E);if(s==="horizontal"){var R=B.get(["itemStyle","width"]);R==null?R=C:(R=xe(R,l),i==="ascending"&&(R=-R));var I=D(E,h),P=D(N,h+R);h+=R+S,a.setItemLayout(E,{points:I.concat(P.slice().reverse())})}else{var z=B.get(["itemStyle","height"]);z==null?z=C:(z=xe(z,u),i==="ascending"&&(z=-z));var I=D(E,v),P=D(N,v+z);v+=z+S,a.setItemLayout(E,{points:I.concat(P.slice().reverse())})}}aoe(a)})}function ioe(r){r.registerChartView(Jie),r.registerSeriesModel(eoe),r.registerLayout(noe),r.registerProcessor(Cd("funnel"))}var ooe=.3,soe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new Re,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,h=G8(e);s.diff(l).add(v).update(p).remove(g).execute();function v(x){var _=H8(s,o,x,c,u);iS(_,s,x,h)}function p(x,_){var S=l.getItemGraphicEl(_),w=dz(s,x,c,u);s.setItemGraphicEl(x,S),st(S,{shape:{points:w}},e,x),zn(S),iS(S,s,x,h)}function g(x){var _=l.getItemGraphicEl(x);o.remove(_)}if(!this._initialized){this._initialized=!0;var y=loe(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(y)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=G8(a),u=this._progressiveEls=[],c=e.start;c<e.end;c++){var h=H8(i,this._dataGroup,c,s,o);h.incremental=!0,iS(h,i,c,l),u.push(h)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})(yt);function loe(r,t,e){var a=r.model,n=r.getRect(),i=new Je({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),It(i,{shape:{width:n.width,height:n.height}},t,e),i}function dz(r,t,e,a){for(var n=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);uoe(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function H8(r,t,e,a,n){var i=dz(r,e,a,n),o=new Qr({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function G8(r){var t=r.get("smooth",!0);return t===!0&&(t=ooe),t=li(t),Pc(t)&&(t=0),{smooth:t}}function iS(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=t.getItemModel(e),i=n.getModel("emphasis");kr(r,n,"lineStyle"),Vt(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function uoe(r,t){return t==="category"?r==null:r==null||isNaN(r)}var coe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return vi(null,this,{useEncodeDefaulter:be(foe,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){e===o&&i.push(n.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:500,smooth:!1,animationEasing:"linear"},t})(St);function foe(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return O(t.dimensions,function(a){var n=hoe(a);e[a]=n}),e}}function hoe(r){return+r.replace("dim","")}var voe=["lineStyle","opacity"],doe={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){e.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(voe,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function poe(r){goe(r),moe(r)}function goe(r){if(!r.parallel){var t=!1;O(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function moe(r){var t=bt(r.parallelAxis);O(t,function(e){if(Ee(e)){var a=e.parallelIndex||0,n=bt(r.parallel)[a];n&&n.parallelAxisDefault&&ze(e,n.parallelAxisDefault,!1)}})}var yoe=5,xoe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},O(_oe,function(i,o){n.getZr().on(o,this._handlers[o]=be(i,this))},this)),hf(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){Pv(this,"_throttledDispatchExpand"),O(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(oe({type:"parallelAxisExpand"},e))},t.type="parallel",t})(Et),_oe={mousedown:function(r){oS(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(oS(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>yoe)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!oS(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function oS(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var boe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&ze(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){O(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=lt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);O(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t})(We),Soe=(function(r){Q(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(mn);function ru(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=cc(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=cc(s,[0,o]),n=i=cc(s,[n,i]),a=0}t[0]=cc(t[0],e),t[1]=cc(t[1],e);var l=sS(t,a);t[a]+=r;var u=n||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[a]=cc(t[a],c);var h;return h=sS(t,a),n!=null&&(h.sign!==l.sign||h.span<n)&&(t[1-a]=t[a]+l.sign*n),h=sS(t,a),i!=null&&h.span>i&&(t[1-a]=t[a]+h.sign*i),t}function sS(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function cc(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var lS=O,pz=Math.min,gz=Math.max,U8=Math.floor,woe=Math.ceil,Y8=Ut,Coe=Math.PI,Aoe=(function(){function r(t,e,a){this.type="parallel",this._axesMap=Ce(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;lS(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Soe(o,xd(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();lS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Vl(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=ir(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,c=Op(t.get("axisExpandWidth"),l),h=Op(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=t.get("axisExpandWindow"),g;if(p)g=Op(p[1]-p[0],l),p[1]=p[0]+g;else{g=Op(c*(h-1),l);var y=t.get("axisExpandCenter")||U8(u/2);p=[c*y-g/2],p[1]=p[0]+g}var x=(s-g)/(u-h);x<3&&(x=0);var _=[U8(Y8(p[0]/c,1))+1,woe(Y8(p[1]/c,1))-1],S=x/c*p[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:v,axisExpandWidth:c,axisCollapseWidth:x,axisExpandWindow:p,axisCount:u,winInnerIndices:_,axisExpandWindow0Pos:S}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),lS(a,function(o,s){var l=(n.axisExpandable?Toe:Doe)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Coe/2,vertical:0},h=[u[i].x+t.x,u[i].y+t.y],v=c[i],p=Sa();ds(p,p,v),On(p,p,h),this._axesLayout[o]={position:h,rotation:v,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];O(o,function(x){s.push(t.mapDimension(x)),l.push(i.get(x).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var v=t.getValues(s,c),p=0,g=o.length;p<g;p++){var y=l[p].getActiveState(v[p]);if(y==="inactive"){h="inactive";break}}}e(h,c)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return In([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return Le(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),v=h[0]!=null;if(c)v&&c&&s<i*h[0]?(u="jump",l=s-i*h[2]):v&&c&&s>i*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?ru(l,n,o,"all"):u="none";else{var p=n[1]-n[0],g=o[1]*s/p;n=[gz(0,g-p/2)],n[1]=pz(o[1],n[0]+p),n[0]=n[1]-p}return{axisExpandWindow:n,behavior:u}},r})();function Op(r,t){return pz(gz(r,t[0]),t[1])}function Doe(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function Toe(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function Moe(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new Aoe(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",nr).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var Eoe={create:Moe},dw=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return zl([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=Le(e);if(a)for(var n=a.length-1;n>=0;n--)Ia(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t})(We);Xt(dw,gf);var Hl=!0,Zv=Math.min,Wc=Math.max,Loe=Math.pow,Noe=1e4,Roe=6,Boe=6,W8="globalPan",Ioe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},koe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},q8={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Ooe=0,jA=(function(r){Q(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new Re,a._uid="brushController_"+Ooe++,O(Goe,function(n,i){this._handlers[i]=be(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||Dae(a,W8,this._uid),O(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=ze(Le(q8),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Tae(e,W8,this._uid),O(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};O(e,function(n){a[n.panelId]=Le(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=he(e,function(v){return ze(Le(q8),v,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new eo(n,e,u,l).add(c).update(c).remove(h).execute(),this;function l(v,p){return(v.id!=null?v.id:a+p)+"-"+v.brushType}function u(v,p){return l(v.__brushOption,p)}function c(v,p){var g=e[v];if(p!=null&&n[p]===s)i[v]=n[p];else{var y=i[v]=p!=null?(n[p].__brushOption=g,n[p]):yz(o,mz(o,g));FA(o,y)}}function h(v){n[v]!==s&&o.group.remove(n[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),pw(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(vn);function mz(r,t){var e=Yy[t.brushType].createCover(r,t);return e.__brushOption=t,_z(e,t),r.group.add(e),e}function yz(r,t){var e=VA(t);return e.endCreating&&(e.endCreating(r,t),_z(t,t.__brushOption)),t}function xz(r,t){var e=t.__brushOption;VA(t).updateCoverShape(r,t,e.range,e)}function _z(r,t){var e=t.z;e==null&&(e=Noe),r.traverse(function(a){a.z=e,a.z2=e})}function FA(r,t){VA(t).updateCommon(r,t),xz(r,t)}function VA(r){return Yy[r.__brushOption.brushType]}function HA(r,t,e){var a=r._panels;if(!a)return Hl;var n,i=r._transform;return O(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function bz(r,t){var e=r._panels;if(!e)return Hl;var a=t.__brushOption.panelId;return a!=null?e[a]:Hl}function pw(r){var t=r._covers,e=t.length;return O(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function Gl(r,t){var e=he(r._covers,function(a){var n=a.__brushOption,i=Le(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Poe(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=Loe(n*n+i*i,.5);return o>Roe}function Sz(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function wz(r,t,e,a){var n=new Re;return n.add(new Je({name:"main",style:GA(e),silent:!0,draggable:!0,cursor:"move",drift:Oe(X8,r,t,n,["n","s","w","e"]),ondragend:Oe(Gl,t,{isEnd:!0})})),O(a,function(i){n.add(new Je({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Oe(X8,r,t,n,i),ondragend:Oe(Gl,t,{isEnd:!0})}))}),n}function Cz(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Wc(n,Boe),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],h=e[1][1],v=c-i+n/2,p=h-i+n/2,g=c-o,y=h-s,x=g+n,_=y+n;Oi(r,t,"main",o,s,g,y),a.transformable&&(Oi(r,t,"w",l,u,i,_),Oi(r,t,"e",v,u,i,_),Oi(r,t,"n",l,u,x,i),Oi(r,t,"s",l,p,x,i),Oi(r,t,"nw",l,u,i,i),Oi(r,t,"ne",v,u,i,i),Oi(r,t,"sw",l,p,i,i),Oi(r,t,"se",v,p,i,i))}function gw(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(GA(e)),n.attr({silent:!a,cursor:a?"move":"default"}),O([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?mw(r,i[0]):joe(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?koe[s]+"-resize":null})})}function Oi(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(Voe(UA(r,t,[[a,n],[a+i,n+o]])))}function GA(r){return Me({strokeNoScale:!0},r.brushStyle)}function Az(r,t,e,a){var n=[Zv(r,e),Zv(t,a)],i=[Wc(r,e),Wc(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function zoe(r){return rs(r.group)}function mw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=wy(e[t],zoe(r));return a[n]}function joe(r,t){var e=[mw(r,t[0]),mw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function X8(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Dz(t,n,i);O(a,function(u){var c=Ioe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(Az(s[0][0],s[1][0],s[0][1],s[1][1])),FA(t,e),Gl(t,{isEnd:!1})}function Foe(r,t,e,a){var n=t.__brushOption.range,i=Dz(r,e,a);O(n,function(o){o[0]+=i[0],o[1]+=i[1]}),FA(r,t),Gl(r,{isEnd:!1})}function Dz(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function UA(r,t,e){var a=bz(r,t);return a&&a!==Hl?a.clipPath(e,r._transform):Le(e)}function Voe(r){var t=Zv(r[0][0],r[1][0]),e=Zv(r[0][1],r[1][1]),a=Wc(r[0][0],r[1][0]),n=Wc(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function Hoe(r,t,e){if(!(!r._brushType||Uoe(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=HA(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Hl||s.panelId===i.panelId)&&Yy[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function yw(r){var t=r.event;t.preventDefault&&t.preventDefault()}function xw(r,t,e){return r.childOfName("main").contain(t,e)}function Tz(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),Poe(r)||n){if(i&&!n){o.brushMode==="single"&&pw(r);var l=Le(o);l.brushType=Z8(l.brushType,i),l.panelId=i===Hl?null:i.panelId,n=r._creatingCover=mz(r,l),r._covers.push(n)}if(n){var u=Yy[Z8(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(UA(r,n,r._track)),a&&(yz(r,n),u.updateCommon(r,n)),xz(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&HA(r,t,e)&&pw(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Z8(r,t){return r==="auto"?t.defaultBrushType:r}var Goe={mousedown:function(r){if(this._dragging)$8(this,r);else if(!r.target||!r.target.draggable){yw(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=HA(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(Hoe(this,r,a),this._dragging){yw(r);var n=Tz(this,r,a,!1);n&&Gl(this,n)}},mouseup:function(r){$8(this,r)}};function $8(r,t){if(r._dragging){yw(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=Tz(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Gl(r,i)}}function Uoe(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Yy={lineX:K8(0),lineY:K8(1),rect:{createCover:function(r,t){function e(a){return a}return wz({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Sz(r);return Az(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){Cz(r,t,e,a)},updateCommon:gw,contain:xw},polygon:{createCover:function(r,t){var e=new Re;return e.add(new Qr({name:"main",style:GA(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new $r({name:"main",draggable:!0,drift:Oe(Foe,r,t),ondragend:Oe(Gl,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:UA(r,t,e)})},updateCommon:gw,contain:xw}};function K8(r){return{createCover:function(t,e){return wz({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Sz(t),a=Zv(e[0][r],e[1][r]),n=Wc(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=bz(t,e);if(o!==Hl&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),Cz(t,e,l,n)},updateCommon:gw,contain:xw}}function Mz(r){return r=YA(r),function(t){return NC(t,r)}}function Ez(r,t){return r=YA(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function Lz(r,t,e){var a=YA(r);return function(n,i){return a.contain(i[0],i[1])&&!Vy(n,t,e)}}function YA(r){return Ve.create(r)}var Yoe=["axisLine","axisTickLabel","axisName"],Woe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new jA(a.getZr())).on("brush",be(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!qoe(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Re,this.group.add(this._axisGroup),!!e.get("show")){var s=Zoe(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,h=e.axis.dim,v=l.getAxisLayout(h),p=oe({strokeContainThreshold:c},v),g=new oa(e,p);O(Yoe,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(p,u,e,s,c,n),gd(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=Ve.create({x:l[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Mz(h),isTargetByCursor:Lz(h,s,i),getLinearBrushOtherExtent:Ez(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Xoe(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=he(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(Et);function qoe(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function Xoe(r){var t=r.axis;return he(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Zoe(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var $oe={type:"axisAreaSelect",event:"axisAreaSelected"};function Koe(r){r.registerAction($oe,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var Qoe={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(r){r.registerComponentView(xoe),r.registerComponentModel(boe),r.registerCoordinateSystem("parallel",Eoe),r.registerPreprocessor(poe),r.registerComponentModel(dw),r.registerComponentView(Woe),Yc(r,"parallel",dw,Qoe),Koe(r)}function Joe(r){Ye(Nz),r.registerChartView(soe),r.registerSeriesModel(coe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,doe)}var ese=(function(){function r(){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 r})(),tse=(function(r){Q(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ese},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){Qi(this)},t.prototype.downplay=function(){Ji(this)},t})(Xe),rse=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,c=l.height,h=e.getData(),v=e.getData("edge"),p=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(g){var y=new tse,x=Be(y);x.dataIndex=g.dataIndex,x.seriesIndex=e.seriesIndex,x.dataType="edge";var _=g.getModel(),S=_.getModel("lineStyle"),w=S.get("curveness"),C=g.node1.getLayout(),D=g.node1.getModel(),M=D.get("localX"),E=D.get("localY"),N=g.node2.getLayout(),B=g.node2.getModel(),R=B.get("localX"),I=B.get("localY"),P=g.getLayout(),z,V,G,F,Y,W,X,te;y.shape.extent=Math.max(1,P.dy),y.shape.orient=p,p==="vertical"?(z=(M!=null?M*u:C.x)+P.sy,V=(E!=null?E*c:C.y)+C.dy,G=(R!=null?R*u:N.x)+P.ty,F=I!=null?I*c:N.y,Y=z,W=V*(1-w)+F*w,X=G,te=V*w+F*(1-w)):(z=(M!=null?M*u:C.x)+C.dx,V=(E!=null?E*c:C.y)+P.sy,G=R!=null?R*u:N.x,F=(I!=null?I*c:N.y)+P.ty,Y=z*(1-w)+G*w,W=V,X=z*w+G*(1-w),te=F),y.setShape({x1:z,y1:V,x2:G,y2:F,cpx1:Y,cpy1:W,cpx2:X,cpy2:te}),y.useStyle(S.getItemStyle()),Q8(y.style,p,g);var j=""+_.get("value"),U=xr(_,"edgeLabel");Or(y,U,{labelFetcher:{getFormattedLabel:function(fe,ye,ee,se,ue,we){return e.getFormattedLabel(fe,ye,"edge",se,Nn(ue,U.normal&&U.normal.get("formatter"),j),we)}},labelDataIndex:g.dataIndex,defaultText:j}),y.setTextConfig({position:"inside"});var Z=_.getModel("emphasis");kr(y,_,"lineStyle",function(fe){var ye=fe.getItemStyle();return Q8(ye,p,g),ye}),s.add(y),v.setItemGraphicEl(g.dataIndex,y);var $=Z.get("focus");Vt(y,$==="adjacency"?g.getAdjacentDataIndices():$==="trajectory"?g.getTrajectoryDataIndices():$,Z.get("blurScope"),Z.get("disabled"))}),o.eachNode(function(g){var y=g.getLayout(),x=g.getModel(),_=x.get("localX"),S=x.get("localY"),w=x.getModel("emphasis"),C=x.get(["itemStyle","borderRadius"])||0,D=new Je({shape:{x:_!=null?_*u:y.x,y:S!=null?S*c:y.y,width:y.dx,height:y.dy,r:C},style:x.getModel("itemStyle").getItemStyle(),z2:10});Or(D,xr(x),{labelFetcher:{getFormattedLabel:function(E,N){return e.getFormattedLabel(E,N,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),D.disableLabelAnimation=!0,D.setStyle("fill",g.getVisual("color")),D.setStyle("decal",g.getVisual("style").decal),kr(D,x),s.add(D),h.setItemGraphicEl(g.dataIndex,D),Be(D).dataType="node";var M=w.get("focus");Vt(D,M==="adjacency"?g.getAdjacentDataIndices():M==="trajectory"?g.getTrajectoryDataIndices():M,w.get("blurScope"),w.get("disabled"))}),h.eachItemGraphicEl(function(g,y){var x=h.getItemModel(y);x.get("draggable")&&(g.drift=function(_,S){i._focusAdjacencyDisabled=!0,this.shape.x+=_,this.shape.y+=S,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:h.getRawIndex(y),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){i._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(ase(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(yt);function Q8(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");_e(a)&&_e(n)&&(r.fill=new rf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function ase(r,t,e){var a=new Je({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return It(a,{shape:{width:r.width+20}},t,e),a}var nse=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.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 ut(o[l],this,a));var u=vz(i,n,this,!0,c);return u.data;function c(h,v){h.wrapMethod("getItemModel",function(p,g){var y=p.parentModel,x=y.getData().getItemLayout(g);if(x){var _=x.depth,S=y.levelModels[_];S&&(p.parentModel=S)}return p}),v.wrapMethod("getItemModel",function(p,g){var y=p.parentModel,x=y.getGraph().getEdgeByIndex(g),_=x.node1.getLayout();if(_){var S=_.depth,w=y.levelModels[S];w&&(p.parentModel=w)}return p})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(p){return isNaN(p)||p==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return _r("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(e),h=c.getLayout().value,v=this.getDataParams(e,n).data.name;return _r("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t})(St);function ise(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=ose(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,c=l.edges;lse(u);var h=lt(u,function(y){return y.getLayout().value===0}),v=h.length!==0?0:e.get("layoutIterations"),p=e.get("orient"),g=e.get("nodeAlign");sse(u,c,a,n,o,s,v,p,g)})}function ose(r,t){return ir(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sse(r,t,e,a,n,i,o,s,l){use(r,t,e,n,i,s,l),vse(r,t,i,n,a,o,s),Sse(r,s)}function lse(r){O(r,function(t){var e=is(t.outEdges,zm),a=is(t.inEdges,zm),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function use(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],c=[],h=0,v=0;v<t.length;v++)s[v]=1;for(var v=0;v<r.length;v++)l[v]=r[v].inEdges.length,l[v]===0&&u.push(r[v]);for(var p=-1;u.length;){for(var g=0;g<u.length;g++){var y=u[g],x=y.hostGraph.data.getRawDataItem(y.dataIndex),_=x.depth!=null&&x.depth>=0;_&&x.depth>p&&(p=x.depth),y.setLayout({depth:_?x.depth:h},!0),i==="vertical"?y.setLayout({dy:e},!0):y.setLayout({dx:e},!0);for(var S=0;S<y.outEdges.length;S++){var w=y.outEdges[S],C=t.indexOf(w);s[C]=0;var D=w.node2,M=r.indexOf(D);--l[M]===0&&c.indexOf(D)<0&&c.push(D)}}++h,u=c,c=[]}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 E=p>h-1?p:h-1;o&&o!=="left"&&cse(r,o,i,E);var N=i==="vertical"?(n-e)/E:(a-e)/E;hse(r,N,i)}function Rz(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function cse(r,t,e,a){if(t==="right"){for(var n=[],i=r,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 c=l.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}O(r,function(h){Rz(h)||h.setLayout({depth:Math.max(0,a-h.getLayout().skNodeHeight)},!0)})}else t==="justify"&&fse(r,a)}function fse(r,t){O(r,function(e){!Rz(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function hse(r,t,e){O(r,function(a){var n=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function vse(r,t,e,a,n,i,o){var s=dse(r,o);pse(s,t,e,a,n,o),uS(s,n,e,a,o);for(var l=1;i>0;i--)l*=.99,gse(s,l,o),uS(s,n,e,a,o),bse(s,l,o),uS(s,n,e,a,o)}function dse(r,t){var e=[],a=t==="vertical"?"y":"x",n=x2(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),O(n.keys,function(i){e.push(n.buckets.get(i))}),e}function pse(r,t,e,a,n,i){var o=1/0;O(r,function(s){var l=s.length,u=0;O(s,function(h){u+=h.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;c<o&&(o=c)}),O(r,function(s){O(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),O(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function uS(r,t,e,a,n){var i=n==="vertical"?"x":"y";O(r,function(o){o.sort(function(y,x){return y.getLayout()[i]-x.getLayout()[i]});for(var s,l,u,c=0,h=o.length,v=n==="vertical"?"dx":"dy",p=0;p<h;p++)l=o[p],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[v]+t;var g=n==="vertical"?a:e;if(u=c-t-g,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var p=h-2;p>=0;--p)l=o[p],u=l.getLayout()[i]+l.getLayout()[v]+t-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function gse(r,t,e){O(r.slice().reverse(),function(a){O(a,function(n){if(n.outEdges.length){var i=is(n.outEdges,mse,e)/is(n.outEdges,zm);if(isNaN(i)){var o=n.outEdges.length;i=o?is(n.outEdges,yse,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-cs(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-cs(n,e))*t;n.setLayout({y:l},!0)}}})})}function mse(r,t){return cs(r.node2,t)*r.getValue()}function yse(r,t){return cs(r.node2,t)}function xse(r,t){return cs(r.node1,t)*r.getValue()}function _se(r,t){return cs(r.node1,t)}function cs(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function zm(r){return r.getValue()}function is(r,t,e){for(var a=0,n=r.length,i=-1;++i<n;){var o=+t(r[i],e);isNaN(o)||(a+=o)}return a}function bse(r,t,e){O(r,function(a){O(a,function(n){if(n.inEdges.length){var i=is(n.inEdges,xse,e)/is(n.inEdges,zm);if(isNaN(i)){var o=n.inEdges.length;i=o?is(n.inEdges,_se,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-cs(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-cs(n,e))*t;n.setLayout({y:l},!0)}}})})}function Sse(r,t){var e=t==="vertical"?"x":"y";O(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[e]-i.node2.getLayout()[e]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[e]-i.node1.getLayout()[e]})}),O(r,function(a){var n=0,i=0;O(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),O(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function wse(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),a=e.nodes,n=e.edges;if(a.length){var i=1/0,o=-1/0;O(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),O(a,function(s){var l=new yr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&O(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Cse(r){r.registerChartView(rse),r.registerSeriesModel(nse),r.registerLayout(ise),r.registerVisual(wse),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Bz=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],v=u[1-c],p=[n,i],g=p[c].get("type"),y=p[1-c].get("type"),x=t.data;if(x&&l){var _=[];O(x,function(C,D){var M;ce(C)?(M=C.slice(),C.unshift(D)):ce(C.value)?(M=oe({},C),M.value=M.value.slice(),C.value.unshift(D)):M=C,_.push(M)}),t.data=_}var S=this.defaultValueDimensions,w=[{name:h,type:Tm(g),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Tm(y),dimsDef:S.slice()}];return mf(this,{coordDimensions:w,dimensionsCount:S.length+1,encodeDefaulter:Oe(sO,w,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r})(),Iz=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(St);Xt(Iz,Bz,!0);var Ase=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),h=J8(c,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(zn(h),kz(v,h,i,u)):h=J8(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t})(yt),Dse=(function(){function r(){}return r})(),Tse=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new Dse},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t})(Xe);function J8(r,t,e,a,n){var i=r.ends,o=new Tse({shape:{points:n?Mse(i,a,r):i}});return kz(r,o,t,e,n),o}function kz(r,t,e,a,n){var i=e.hostModel,o=Kl[n?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");kr(t,s),Vt(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Mse(r,t,e){return he(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var xv=O;function Ese(r){var t=Lse(r);xv(t,function(e){var a=e.seriesModels;a.length&&(Nse(e),xv(a,function(n,i){Rse(n,e.boxOffsetList[i],e.boxWidthList[i])}))})}function Lse(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=He(e,n);i<0&&(i=e.length,e[i]=n,t[i]={axis:n,seriesModels:[]}),t[i].seriesModels.push(a)}),t}function Nse(r){var t=r.axis,e=r.seriesModels,a=e.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;xv(e,function(g){l=Math.max(l,g.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}xv(e,function(g){var y=g.get("boxWidth");ce(y)||(y=[y,y]),o.push([xe(y[0],s)||0,xe(y[1],s)||0])});var c=s*.8-2,h=c/a*.3,v=(c-h*(a-1))/a,p=v/2-c/2;xv(e,function(g,y){i.push(p),p+=h+v,n.push(Math.min(Math.max(v,o[y][0]),o[y][1]))})}function Rse(r,t,e){var a=r.coordinateSystem,n=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<n.count();h++){var v=n.get(u,h),p=w(v,c[2],h),g=w(v,c[0],h),y=w(v,c[1],h),x=w(v,c[3],h),_=w(v,c[4],h),S=[];C(S,y,!1),C(S,x,!0),S.push(g,y,_,x),D(S,g),D(S,_),D(S,p),n.setItemLayout(h,{initBaseline:p[s],ends:S})}function w(M,E,N){var B=n.get(E,N),R=[];R[o]=M,R[s]=B;var I;return isNaN(M)||isNaN(B)?I=[NaN,NaN]:(I=a.dataToPoint(R),I[o]+=t),I}function C(M,E,N){var B=E.slice(),R=E.slice();B[o]+=i,R[o]-=i,N?M.push(B,R):M.push(R,B)}function D(M,E){var N=E.slice(),B=E.slice();N[o]-=i,B[o]+=i,M.push(N,B)}}function Bse(r,t){t=t||{};for(var e=[],a=[],n=t.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Ia(r[o].slice()),l=Pg(s,.25),u=Pg(s,.5),c=Pg(s,.75),h=s[0],v=s[s.length-1],p=(n??1.5)*(c-l),g=i?h:Math.max(h,l-p),y=i?v:Math.min(v,c+p),x=t.itemNameFormatter,_=Te(x)?x({value:o}):_e(x)?x.replace("{value}",o+""):o+"";e.push([_,g,l,u,c,y]);for(var S=0;S<s.length;S++){var w=s[S];if(w<g||w>y){var C=[_,w];a.push(C)}}}return{boxData:e,outliers:a}}var Ise={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Kr){var a="";pt(a)}var n=Bse(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function kse(r){r.registerSeriesModel(Iz),r.registerChartView(Ase),r.registerLayout(Ese),r.registerTransform(Ise)}var Ose=["itemStyle","borderColor"],Pse=["itemStyle","borderColor0"],zse=["itemStyle","borderColorDoji"],jse=["itemStyle","color"],Fse=["itemStyle","color0"];function WA(r,t){return t.get(r>0?jse:Fse)}function qA(r,t){return t.get(r===0?zse:r>0?Ose:Pse)}var Vse={seriesType:"candlestick",plan:ff(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=WA(s,o),l.stroke=qA(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");oe(u,l)}}}}}},Hse=["color","borderColor"],Gse=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){ps(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var h=a.getItemLayout(c);if(s&&e6(u,h))return;var v=cS(h,c,!0);It(v,{shape:{points:h.ends}},e,c),fS(v,a,c,o),i.add(v),a.setItemGraphicEl(c,v)}}).update(function(c,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(c)){i.remove(v);return}var p=a.getItemLayout(c);if(s&&e6(u,p)){i.remove(v);return}v?(st(v,{shape:{points:p.ends}},e,c),zn(v)):v=cS(p),fS(v,a,c,o),i.add(v),a.setItemGraphicEl(c,v)}).remove(function(c){var h=n.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),t6(e,this.group);var a=e.get("clip",!0)?Sd(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=cS(s);fS(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){t6(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(yt),Use=(function(){function r(){}return r})(),Yse=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new Use},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t})(Xe);function cS(r,t,e){var a=r.ends;return new Yse({shape:{points:e?Wse(a,r):a},z2:100})}function e6(r,t){for(var e=!0,a=0;a<t.ends.length;a++)if(r.contain(t.ends[a][0],t.ends[a][1])){e=!1;break}return e}function fS(r,t,e,a){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,kr(r,n);var i=t.getItemLayout(e).sign;O(r.states,function(s,l){var u=n.getModel(l),c=WA(i,u),h=qA(i,u)||c,v=s.style||(s.style={});c&&(v.fill=c),h&&(v.stroke=h)});var o=n.getModel("emphasis");Vt(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Wse(r,t){return he(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var qse=(function(){function r(){}return r})(),hS=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new qse},t.prototype.buildPath=function(e,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t})(Xe);function t6(r,t,e,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new hS({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new hS({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new hS({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),vS(1,o,r),vS(-1,s,r),vS(0,l,r),a&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function vS(r,t,e,a){var n=qA(r,e)||WA(r,e),i=e.getModel("itemStyle").getItemStyle(Hse);t.useStyle(i),t.style.fill=null,t.style.stroke=n}var Oz=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,n){var i=a.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(St);Xt(Oz,Bz,!0);function Xse(r){!r||!ce(r.series)||O(r.series,function(t){Ee(t)&&t.type==="k"&&(t.type="candlestick")})}var Zse={seriesType:"candlestick",plan:ff(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=$se(r,e),n=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=he(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],h=l[2],v=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?g:p};function p(y,x){for(var _,S=x.getStore();(_=y.next())!=null;){var w=S.get(s,_),C=S.get(u,_),D=S.get(c,_),M=S.get(h,_),E=S.get(v,_),N=Math.min(C,D),B=Math.max(C,D),R=Y(N,w),I=Y(B,w),P=Y(M,w),z=Y(E,w),V=[];W(V,I,0),W(V,R,1),V.push(te(z),te(I),te(P),te(R));var G=x.getItemModel(_),F=!!G.get(["itemStyle","borderColorDoji"]);x.setItemLayout(_,{sign:r6(S,_,C,D,c,F),initBaseline:C>D?I[i]:R[i],ends:V,brushRect:X(M,E,w)})}function Y(j,U){var Z=[];return Z[n]=U,Z[i]=j,isNaN(U)||isNaN(j)?[NaN,NaN]:t.dataToPoint(Z)}function W(j,U,Z){var $=U.slice(),fe=U.slice();$[n]=Fg($[n]+a/2,1,!1),fe[n]=Fg(fe[n]-a/2,1,!0),Z?j.push($,fe):j.push(fe,$)}function X(j,U,Z){var $=Y(j,Z),fe=Y(U,Z);return $[n]-=a/2,fe[n]-=a/2,{x:$[0],y:$[1],width:a,height:fe[1]-$[1]}}function te(j){return j[n]=Fg(j[n],1),j}}function g(y,x){for(var _=ri(y.count*4),S=0,w,C=[],D=[],M,E=x.getStore(),N=!!r.get(["itemStyle","borderColorDoji"]);(M=y.next())!=null;){var B=E.get(s,M),R=E.get(u,M),I=E.get(c,M),P=E.get(h,M),z=E.get(v,M);if(isNaN(B)||isNaN(P)||isNaN(z)){_[S++]=NaN,S+=3;continue}_[S++]=r6(E,M,R,I,c,N),C[n]=B,C[i]=P,w=t.dataToPoint(C,null,D),_[S++]=w?w[0]:NaN,_[S++]=w?w[1]:NaN,C[i]=z,w=t.dataToPoint(C,null,D),_[S++]=w?w[1]:NaN}x.setLayout("largePoints",_)}}};function r6(r,t,e,a,n,i){var o;return e>a?o=-1:e<a?o=1:o=i?0:t>0?r.get(n,t-1)<=a?1:-1:1,o}function $se(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=xe(ke(r.get("barMaxWidth"),n),n),o=xe(ke(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?xe(s,n):Math.max(Math.min(n/2,i),o)}function Kse(r){r.registerChartView(Gse),r.registerSeriesModel(Oz),r.registerPreprocessor(Xse),r.registerVisual(Vse),r.registerLayout(Zse)}function a6(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Qse=(function(r){Q(t,r);function t(e,a){var n=r.call(this)||this,i=new _d(e,a),o=new Re;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Jt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}a6(o,e)},t.prototype.updateEffectAnimation=function(e){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}a6(n,e)},t.prototype.highlight=function(){Qi(this)},t.prototype.downplay=function(){Ji(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var n=this,i=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=vf(e.getItemVisual(a,"symbolSize")),c=e.getItemVisual(a,"style"),h=c&&c.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(x){x.setStyle("fill",h)});var p=Jl(e.getItemVisual(a,"symbolOffset"),u);p&&(o.x=p[0],o.y=p[1]);var g=e.getItemVisual(a,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var y={};y.showEffectOn=i.get("showEffectOn"),y.rippleScale=s.get(["rippleEffect","scale"]),y.brushType=s.get(["rippleEffect","brushType"]),y.period=s.get(["rippleEffect","period"])*1e3,y.effectOffset=a/e.count(),y.z=i.getShallow("z")||0,y.zlevel=i.getShallow("zlevel")||0,y.symbolType=l,y.color=h,y.rippleEffectColor=s.get(["rippleEffect","color"]),y.rippleNumber=s.get(["rippleEffect","number"]),y.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(y):this.startEffectAnimation(y),this._effectCfg=y):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(x){x==="emphasis"?y.showEffectOn!=="render"&&n.startEffectAnimation(y):x==="normal"&&y.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=y,Vt(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t})(Re),Jse=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new bd(Qse)},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,a,n){var i=e.getData();this.group.dirty();var o=wd("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=xI(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(yt),ele=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return vi(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},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})(St);function tle(r){r.registerChartView(Jse),r.registerSeriesModel(ele),r.registerLayout(wd("effectScatter"))}var Pz=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new PA(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");ce(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Jt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),h=gr(a.get("delay"),function(p){return p/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;Te(h)?v=h(n):v=h,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(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Hi(e.__p1,e.__cp1)+Hi(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Cr,c=a2;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=e.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),v=e.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Hi(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*Hi(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t})(Re),zz=(function(r){Q(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new Qr({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};st(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}i.useStyle(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,Vt(this,l,u,c)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.setShape("points",e.getItemLayout(a))},t})(Re),rle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new zz(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=Hi(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];e.x=h[0]*(1-c)+c*v[0],e.y=h[1]*(1-c)+c*v[1];var p=e.__t<1?v[0]-h[0]:h[0]-v[0],g=e.__t<1?v[1]-h[1]:h[1]-v[1];e.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t})(Pz),ale=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),nle=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ale},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],h=n[o++],v=n[o++];if(e.moveTo(u,c),i>0){var p=(u+h)/2-(c-v)*i,g=(c+v)/2-(h-u)*i;e.quadraticCurveTo(p,g,h,v)}else e.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var h=i[u++],v=i[u++],p=1;p<c;p++){var g=i[u++],y=i[u++];if(Go(h,v,g,y,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var h=i[u++],v=i[u++],g=i[u++],y=i[u++];if(o>0){var x=(h+g)/2-(v-y)*o,_=(v+y)/2-(g-h)*o;if(ck(h,v,x,_,g,y,s,e,a))return l}else if(Go(h,v,g,y,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],h=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(h,o),l=Math.max(h,l)}e=this._rect=new Ve(i,o,s,l)}return e},t})(Xe),ile=(function(){function r(){this.group=new Re}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new nle({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Be(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),jz={seriesType:"lines",plan:ff(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,v=[],c=n.start;c<n.end;c++){var p=r.getLineCoords(c,o);e&&(s[h++]=p);for(var g=0;g<p;g++)v=t.dataToPoint(o[g],!1,v),s[h++]=v[0],s[h++]=v[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var y=i.getItemModel(c),p=r.getLineCoords(c,o),x=[];if(e)for(var _=0;_<p;_++)x.push(t.dataToPoint(o[_]));else{x[0]=t.dataToPoint(o[0]),x[1]=t.dataToPoint(o[1]);var S=y.get(["lineStyle","curveness"]);+S&&(x[2]=[(x[0][0]+x[1][0])/2-(x[0][1]-x[1][1])*S,(x[0][1]+x[1][1])/2-(x[1][0]-x[0][0])*S])}i.setItemLayout(c,x)}}}}}},ole=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=e.get("clip",!0)&&Sd(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=jz.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new ile:new zA(o?i?rle:zz:i?Pz:PA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t})(yt),sle=typeof Uint32Array>"u"?Array:Uint32Array,lle=typeof Float64Array>"u"?Array:Float64Array;function n6(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=he(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),oy([n,e[0],e[1]])}))}var ule=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],n6(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(n6(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=zc(this._flatCoords,a.flatCoords),this._flatCoordsOffset=zc(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),it(e[0])){for(var n=e.length,i=new sle(n),o=new lle(n),s=0,l=0,u=0,c=0;c<n;){u++;var h=e[c++];i[l++]=s+a,i[l++]=h;for(var v=0;v<h;v++){var p=e[c++],g=e[c++];o[s++]=p,o[s++]=g}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new qr(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),_r("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},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})(St);function Pp(r){return r instanceof Array||(r=[r,r]),r}var cle={seriesType:"lines",reset:function(r){var t=Pp(r.get("symbol")),e=Pp(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Pp(s.getShallow("symbol",!0)),u=Pp(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:a.hasItemOption?n:null}}};function fle(r){r.registerChartView(ole),r.registerSeriesModel(ule),r.registerLayout(jz),r.registerVisual(cle)}var hle=256,vle=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=kn.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),p=t.length;h.width=e,h.height=a;for(var g=0;g<p;++g){var y=t[g],x=y[0],_=y[1],S=y[2],w=n(S);v.globalAlpha=w,v.drawImage(s,x-c,_-c)}if(!h.width||!h.height)return h;for(var C=v.getImageData(0,0,h.width,h.height),D=C.data,M=0,E=D.length,N=this.minOpacity,B=this.maxOpacity,R=B-N;M<E;){var w=D[M+3]/256,I=Math.floor(w*(hle-1))*4;if(w>0){var P=o(w)?l:u;w>0&&(w=w*R+N),D[M++]=P[I],D[M++]=P[I+1],D[M++]=P[I+2],D[M++]=P[I+3]*w*256}else M+=4}return v.putImageData(C,0,0),h},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=kn.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function dle(r,t,e){var a=r[1]-r[0];t=he(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)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<n&&e[s]}}function ple(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function i6(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var gle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):i6(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(i6(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ps(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,a,n,i,o){var s=e.coordinateSystem,l=eu(s,"cartesian2d"),u,c,h,v;if(l){var p=s.getAxis("x"),g=s.getAxis("y");u=p.getBandWidth()+.5,c=g.getBandWidth()+.5,h=p.scale.getExtent(),v=g.scale.getExtent()}for(var y=this.group,x=e.getData(),_=e.getModel(["emphasis","itemStyle"]).getItemStyle(),S=e.getModel(["blur","itemStyle"]).getItemStyle(),w=e.getModel(["select","itemStyle"]).getItemStyle(),C=e.get(["itemStyle","borderRadius"]),D=xr(e),M=e.getModel("emphasis"),E=M.get("focus"),N=M.get("blurScope"),B=M.get("disabled"),R=l?[x.mapDimension("x"),x.mapDimension("y"),x.mapDimension("value")]:[x.mapDimension("time"),x.mapDimension("value")],I=n;I<i;I++){var P=void 0,z=x.getItemVisual(I,"style");if(l){var V=x.get(R[0],I),G=x.get(R[1],I);if(isNaN(x.get(R[2],I))||isNaN(V)||isNaN(G)||V<h[0]||V>h[1]||G<v[0]||G>v[1])continue;var F=s.dataToPoint([V,G]);P=new Je({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:z})}else{if(isNaN(x.get(R[1],I)))continue;P=new Je({z2:1,shape:s.dataToRect([x.get(R[0],I)]).contentShape,style:z})}if(x.hasItemOption){var Y=x.getItemModel(I),W=Y.getModel("emphasis");_=W.getModel("itemStyle").getItemStyle(),S=Y.getModel(["blur","itemStyle"]).getItemStyle(),w=Y.getModel(["select","itemStyle"]).getItemStyle(),C=Y.get(["itemStyle","borderRadius"]),E=W.get("focus"),N=W.get("blurScope"),B=W.get("disabled"),D=xr(Y)}P.shape.r=C;var X=e.getRawValue(I),te="-";X&&X[2]!=null&&(te=X[2]+""),Or(P,D,{labelFetcher:e,labelDataIndex:I,defaultOpacity:z.opacity,defaultText:te}),P.ensureState("emphasis").style=_,P.ensureState("blur").style=S,P.ensureState("select").style=w,Vt(P,E,N,B),P.incremental=o,o&&(P.states.emphasis.hoverLayer=!0),y.add(P),x.setItemGraphicEl(I,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new vle;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=e.getViewRect().clone(),h=e.getRoamTransform();c.applyTransform(h);var v=Math.max(c.x,0),p=Math.max(c.y,0),g=Math.min(c.width+c.x,i.getWidth()),y=Math.min(c.height+c.y,i.getHeight()),x=g-v,_=y-p,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],w=l.mapArray(S,function(E,N,B){var R=e.dataToPoint([E,N]);return R[0]-=v,R[1]-=p,R.push(B),R}),C=n.getExtent(),D=n.type==="visualMap.continuous"?ple(C,n.option.range):dle(C,n.getPieceList(),n.option.selected);u.update(w,x,_,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},D);var M=new br({style:{width:x,height:_,x:v,y:p,image:u.canvas},silent:!0});this.group.add(M)},t.type="heatmap",t})(yt),mle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return vi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=cf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(St);function yle(r){r.registerChartView(gle),r.registerSeriesModel(mle)}var xle=["itemStyle","borderWidth"],o6=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],dS=new fi,_le=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:o6[+c],categoryDim:o6[1-+c]};o.diff(s).add(function(g){if(o.hasValue(g)){var y=l6(o,g),x=s6(o,g,y,v),_=u6(o,v,x);o.setItemGraphicEl(g,_),i.add(_),f6(_,v,x)}}).update(function(g,y){var x=s.getItemGraphicEl(y);if(!o.hasValue(g)){i.remove(x);return}var _=l6(o,g),S=s6(o,g,_,v),w=Yz(o,S);x&&w!==x.__pictorialShapeStr&&(i.remove(x),o.setItemGraphicEl(g,null),x=null),x?Tle(x,v,S):x=u6(o,v,S,!0),o.setItemGraphicEl(g,x),x.__pictorialSymbolMeta=S,i.add(x),f6(x,v,S)}).remove(function(g){var y=s.getItemGraphicEl(g);y&&c6(s,g,y.__pictorialSymbolMeta.animationModel,y)}).execute();var p=e.get("clip",!0)?Sd(e.coordinateSystem,!1,e):null;return p?i.setClipPath(p):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){c6(i,Be(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t})(yt);function s6(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),v={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};ble(e,i,n,a,v),Sle(r,t,n,i,o,v.boundingLength,v.pxSign,c,a,v),wle(e,v.symbolScale,u,a,v);var p=v.symbolSize,g=Jl(e.get("symbolOffset"),p);return Cle(e,p,n,i,o,g,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function ble(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(ce(o)){var h=[pS(s,o[0])-l,pS(s,o[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else o!=null?c=pS(s,o)-l:t?c=a.coordSysExtent[i.index][u]-l:c=e[i.wh];n.boundingLength=c,t&&(n.repeatCutLength=e[i.wh]);var v=i.xy==="x",p=s.inverse;n.pxSign=v&&!p||!v&&p?c>=0?1:-1:c>0?1:-1}function pS(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Sle(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,h=l.categoryDim,v=Math.abs(e[h.wh]),p=r.getItemVisual(t,"symbolSize"),g;ce(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[h.index]=xe(g[h.index],v),g[c.index]=xe(g[c.index],a?v:Math.abs(i)),u.symbolSize=g;var y=u.symbolScale=[g[0]/s,g[1]/s];y[c.index]*=(l.isHorizontal?-1:1)*o}function wle(r,t,e,a,n){var i=r.get(xle)||0;i&&(dS.attr({scaleX:t[0],scaleY:t[1],rotation:e}),dS.updateTransform(),i/=dS.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function Cle(r,t,e,a,n,i,o,s,l,u,c,h){var v=c.categoryDim,p=c.valueDim,g=h.pxSign,y=Math.max(t[p.index]+s,0),x=y;if(a){var _=Math.abs(l),S=gr(r.get("symbolMargin"),"15%")+"",w=!1;S.lastIndexOf("!")===S.length-1&&(w=!0,S=S.slice(0,S.length-1));var C=xe(S,t[p.index]),D=Math.max(y+C*2,0),M=w?0:C*2,E=pC(a),N=E?a:h6((_+M)/D),B=_-N*y;C=B/2/(w?N:Math.max(N-1,1)),D=y+C*2,M=w?0:C*2,!E&&a!=="fixed"&&(N=u?h6((Math.abs(u)+M)/D):0),x=N*D-M,h.repeatTimes=N,h.symbolMargin=C}var R=g*(x/2),I=h.pathPosition=[];I[v.index]=e[v.wh]/2,I[p.index]=o==="start"?R:o==="end"?l-R:l/2,i&&(I[0]+=i[0],I[1]+=i[1]);var P=h.bundlePosition=[];P[v.index]=e[v.xy],P[p.index]=e[p.xy];var z=h.barRectShape=oe({},e);z[p.wh]=g*Math.max(Math.abs(e[p.wh]),Math.abs(I[p.index]+R)),z[v.wh]=e[v.wh];var V=h.clipShape={};V[v.xy]=-e[v.xy],V[v.wh]=c.ecSize[v.wh],V[p.xy]=0,V[p.wh]=e[p.wh]}function Fz(r){var t=r.symbolPatternSize,e=Jt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Vz(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,h=i[t.valueDim.index]+o+e.symbolMargin*2;for(XA(r,function(y){y.__pictorialAnimationIndex=c,y.__pictorialRepeatTimes=u,c<u?kc(y,null,g(c),e,a):kc(y,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(y)}),c++});c<u;c++){var v=Fz(e);v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,n.add(v);var p=g(c);kc(v,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},e,a)}function g(y){var x=s.slice(),_=e.pxSign,S=y;return(e.symbolRepeatDirection==="start"?_>0:_<0)&&(S=u-1-y),x[l.index]=h*(S-u/2+.5)+s[l.index],{x:x[0],y:x[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Hz(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?kc(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=Fz(e),n.add(i),kc(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function Gz(r,t,e){var a=oe({},t.barRectShape),n=r.__pictorialBarRect;n?kc(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Je({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Uz(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=oe({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)st(n,{shape:i},s,l);else{i[o.wh]=0,n=new Je({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],Kl[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function l6(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=Ale,e.isAnimationEnabled=Dle,e}function Ale(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Dle(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function u6(r,t,e,a){var n=new Re,i=new Re;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Vz(n,t,e):Hz(n,t,e),Gz(n,e,a),Uz(n,t,e,a),n.__pictorialShapeStr=Yz(r,e),n.__pictorialSymbolMeta=e,n}function Tle(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;st(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Vz(r,t,e,!0):Hz(r,t,e,!0),Gz(r,e,!0),Uz(r,t,e,!0)}function c6(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];XA(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),O(i,function(o){ls(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Yz(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function XA(r,t,e){O(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function kc(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&Kl[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function f6(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");XA(r,function(y){if(y instanceof br){var x=y.style;y.useStyle(oe({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},e.style))}else y.useStyle(e.style);var _=y.ensureState("emphasis");_.style=o,v&&(_.scaleX=y.scaleX*1.1,_.scaleY=y.scaleY*1.1),y.ensureState("blur").style=s,y.ensureState("select").style=l,u&&(y.cursor=u),y.z2=e.z2});var p=t.valueDim.posDesc[+(e.boundingLength>0)],g=r.__pictorialBarRect;g.ignoreClip=!0,Or(g,xr(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Uc(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:p}),Vt(r,c,h,i.get("disabled"))}function h6(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var Mle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=gs(Gv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(Gv);function Ele(r){r.registerChartView(_le),r.registerSeriesModel(Mle),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Oe(MP,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,EP("pictorialBar"))}var Lle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function v(x){return x.name}var p=new eo(this._layersSeries||[],l,v,v),g=[];p.add(be(y,this,"add")).update(be(y,this,"update")).remove(be(y,this,"remove")).execute();function y(x,_,S){var w=o._layers;if(x==="remove"){s.remove(w[_]);return}for(var C=[],D=[],M,E=l[_].indices,N=0;N<E.length;N++){var B=i.getItemLayout(E[N]),R=B.x,I=B.y0,P=B.y;C.push(R,I),D.push(R,I+P),M=i.getItemVisual(E[N],"style")}var z,V=i.getItemLayout(E[0]),G=e.getModel("label"),F=G.get("margin"),Y=e.getModel("emphasis");if(x==="add"){var W=g[_]=new Re;z=new m7({shape:{points:C,stackedOnPoints:D,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),W.add(z),s.add(W),e.isAnimationEnabled()&&z.setClipPath(Nle(z.getBoundingRect(),e,function(){z.removeClipPath()}))}else{var W=w[S];z=W.childAt(0),s.add(W),g[_]=W,st(z,{shape:{points:C,stackedOnPoints:D}},e),zn(z)}Or(z,xr(e),{labelDataIndex:E[N-1],defaultText:i.getName(E[N-1]),inheritColor:M.fill},{normal:{verticalAlign:"middle"}}),z.setTextConfig({position:null,local:!0});var X=z.getTextContent();X&&(X.x=V.x-F,X.y=V.y0+V.y/2),z.useStyle(M),i.setItemGraphicEl(_,z),kr(z,e),Vt(z,Y.get("focus"),Y.get("blurScope"),Y.get("disabled"))}this._layersSeries=l,this._layers=g},t.type="themeRiver",t})(yt);function Nle(r,t,e){var a=new Je({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return It(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var gS=2,Rle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ad(be(this.getData,this),be(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,n={},i=x2(e,function(v){return n.hasOwnProperty(v[0]+"")||(n[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,p){o.push({name:p,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var h=o[l].dataList[c][0]+"";n[h]=l}for(var h in n)n.hasOwnProperty(h)&&n[h]!==l&&(n[h]=l,e[a]=[h,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var n=this.getReferringComponents("singleAxis",nr).models[0],i=n.get("type"),o=lt(e.data,function(g){return g[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Ce(),c=0,h=0;h<s.length;++h)l.push(s[h][gS]),u.get(s[h][gS])||(u.set(s[h][gS],c),c++);var v=df(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Tm(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new qr(v,this);return p.initData(s),p},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),n=[],i=0;i<a;++i)n[i]=i;var o=e.mapDimension("single"),s=x2(n,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,v){return e.get(o,h)-e.get(o,v)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,n){ce(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,v=-1,p=o[c].indices.length,g=0;g<p;++g){var y=i.get(e[0],o[c].indices[g]),x=Math.abs(y-a);x<=h&&(u=y,h=x,v=o[c].indices[g])}s.push(v)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return _r("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t})(St);function Ble(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=xe(s[0],o.height),s[1]=xe(s[1],o.height);var u=o.height-s[0]-s[1];v6(a,e,u)}else{s[0]=xe(s[0],o.width),s[1]=xe(s[1],o.width);var c=o.width-s[0]-s[1];v6(a,e,c)}a.setLayout("layoutInfo",i)})}function v6(r,t,e){if(r.count())for(var a=t.coordinateSystem,n=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=he(n,function(x){return he(x.indices,function(_){var S=a.dataToPoint(r.get(i,_));return S[1]=r.get(o,_),S})}),l=Ile(s),u=l.y0,c=e/l.max,h=n.length,v=n[0].indices.length,p,g=0;g<v;++g){p=u[g]*c,r.setItemLayout(n[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:p,y:s[0][g][1]*c});for(var y=1;y<h;++y)p+=s[y-1][g][1]*c,r.setItemLayout(n[y].indices[g],{layerIndex:y,x:s[y][g][0],y0:p,y:s[y][g][1]*c})}}function Ile(r){for(var t=r.length,e=r[0].length,a=[],n=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<e;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<e;++c){var h=a[c]+n[c];h>i&&(i=h)}return{y0:n,max:i}}function kle(r){r.registerChartView(Lle),r.registerSeriesModel(Rle),r.registerLayout(Ble),r.registerProcessor(Cd("themeRiver"))}var Ole=2,Ple=4,d6=(function(r){Q(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=Ole,o.textConfig={inside:!0},Be(o).seriesIndex=a.seriesIndex;var s=new Qe({z2:Ple,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;Be(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),h=oe({},c);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var p=a.getVisual("decal");p&&(v.decal=Gc(p,o));var g=Dl(l.getModel("itemStyle"),h,!0);oe(h,g),O(la,function(S){var w=s.ensureState(S),C=l.getModel([S,"itemStyle"]);w.style=C.getItemStyle();var D=Dl(C,h);D&&(w.shape=D)}),e?(s.setShape(h),s.shape.r=c.r0,It(s,{shape:{r:c.r}},n,a.dataIndex)):(st(s,{shape:h},n),zn(s)),s.useStyle(v),this._updateLabel(n);var y=l.getShallow("cursor");y&&s.attr("cursor",y),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var x=u.get("focus"),_=x==="relative"?zc(a.getAncestorsIndices(),a.getDescendantIndices()):x==="ancestor"?a.getAncestorsIndices():x==="descendant"?a.getDescendantIndices():x;Vt(this,_,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,v=h.getTextContent(),p=this.node.dataIndex,g=i.get("minAngle")/180*Math.PI,y=i.get("show")&&!(g!=null&&Math.abs(s)<g);v.ignore=!y,O(Nv,function(_){var S=_==="normal"?n.getModel("label"):n.getModel([_,"label"]),w=_==="normal",C=w?v:v.ensureState(_),D=e.getFormattedLabel(p,_);w&&(D=D||a.node.name),C.style=At(S,{},null,_!=="normal",!0),D&&(C.style.text=D);var M=S.get("show");M!=null&&!w&&(C.ignore=!M);var E=x(S,"position"),N=w?h:h.states[_],B=N.style.fill;N.textConfig={outsideFill:S.get("color")==="inherit"?B:null,inside:E!=="outside"};var R,I=x(S,"distance")||0,P=x(S,"align"),z=x(S,"rotate"),V=Math.PI*.5,G=Math.PI*1.5,F=ka(z==="tangential"?Math.PI/2-l:l),Y=F>V&&!jc(F-V)&&F<G;E==="outside"?(R=o.r+I,P=Y?"right":"left"):!P||P==="center"?(s===2*Math.PI&&o.r0===0?R=0:R=(o.r+o.r0)/2,P="center"):P==="left"?(R=o.r0+I,P=Y?"right":"left"):P==="right"&&(R=o.r-I,P=Y?"left":"right"),C.style.align=P,C.style.verticalAlign=x(S,"verticalAlign")||"middle",C.x=R*u+o.cx,C.y=R*c+o.cy;var W=0;z==="radial"?W=ka(-l)+(Y?Math.PI:0):z==="tangential"?W=ka(Math.PI/2-l)+(Y?Math.PI:0):it(z)&&(W=z*Math.PI/180),C.rotation=ka(W)});function x(_,S){var w=_.get(S);return w??i.get(S)}v.dirtyStyle()},t})(Zr),_w="sunburstRootToNode",p6="sunburstHighlight",zle="sunburstUnhighlight";function jle(r){r.registerAction({type:_w,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=Yv(t,[_w],n);if(o){var s=n.getViewRoot();s&&(t.direction=RA(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:p6,update:"none"},function(t,e,a){t=oe({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=Yv(t,[p6],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(oe(t,{type:"highlight"}))}),r.registerAction({type:zle,update:"updateView"},function(t,e,a){t=oe({},t),a.dispatchAction(oe(t,{type:"downplay"}))})}var Fle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,h=e.get("renderLabelForZeroData"),v=[];u.eachNode(function(S){v.push(S)});var p=this._oldChildren||[];g(v,p),_(l,u),this._initEvents(),this._oldChildren=v;function g(S,w){if(S.length===0&&w.length===0)return;new eo(w,S,C,C).add(D).update(D).remove(Oe(D,null)).execute();function C(M){return M.getId()}function D(M,E){var N=M==null?null:S[M],B=E==null?null:w[E];y(N,B)}}function y(S,w){if(!h&&S&&!S.getValue()&&(S=null),S!==l&&w!==l){if(w&&w.piece)S?(w.piece.updateData(!1,S,e,a,n),s.setItemGraphicEl(S.dataIndex,w.piece)):x(w);else if(S){var C=new d6(S,e,a,n);c.add(C),s.setItemGraphicEl(S.dataIndex,C)}}}function x(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)}function _(S,w){w.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,e,a,n):(o.virtualPiece=new d6(S,e,a,n),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(C){o._rootToNode(w.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";mm(u,c)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_w,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t})(yt),Vle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Wz(n);var i=this._levelModels=he(e.levels||[],function(l){return new ut(l,this,a)},this),o=NA.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=o.getNodeByDataIndex(c),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Gy(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){K7(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t})(St);function Wz(r){var t=0;O(r.children,function(a){Wz(a);var n=a.value;ce(n)&&(n=n[0]),t+=n});var e=r.value;ce(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),ce(r.value)?r.value[0]=e:r.value=e}var g6=Math.PI/180;function Hle(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");ce(i)||(i=[0,i]),ce(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=xe(n[0],o),c=xe(n[1],s),h=xe(i[0],l/2),v=xe(i[1],l/2),p=-a.get("startAngle")*g6,g=a.get("minAngle")*g6,y=a.getData().tree.root,x=a.getViewRoot(),_=x.depth,S=a.get("sort");S!=null&&qz(x,S);var w=0;O(x.children,function(F){!isNaN(F.getValue())&&w++});var C=x.getValue(),D=Math.PI/(C||w)*2,M=x.depth>0,E=x.height-(M?-1:1),N=(v-h)/(E||1),B=a.get("clockwise"),R=a.get("stillShowZeroSum"),I=B?1:-1,P=function(F,Y){if(F){var W=Y;if(F!==y){var X=F.getValue(),te=C===0&&R?D:X*D;te<g&&(te=g),W=Y+I*te;var j=F.depth-_-(M?-1:1),U=h+N*j,Z=h+N*(j+1),$=a.getLevelModel(F);if($){var fe=$.get("r0",!0),ye=$.get("r",!0),ee=$.get("radius",!0);ee!=null&&(fe=ee[0],ye=ee[1]),fe!=null&&(U=xe(fe,l/2)),ye!=null&&(Z=xe(ye,l/2))}F.setLayout({angle:te,startAngle:Y,endAngle:W,clockwise:B,cx:u,cy:c,r0:U,r:Z})}if(F.children&&F.children.length){var se=0;O(F.children,function(ue){se+=P(ue,Y+se)})}return W-Y}};if(M){var z=h,V=h+N,G=Math.PI*2;y.setLayout({angle:G,startAngle:p,endAngle:p+G,clockwise:B,cx:u,cy:c,r0:z,r:V})}P(x,p)})}function qz(r,t){var e=r.children||[];r.children=Gle(e,t),e.length&&O(r.children,function(a){qz(a,t)})}function Gle(r,t){if(Te(t)){var e=he(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(n,i){return t(n.params,i.params)}),he(e,function(n){return r[n.index]})}else{var a=t==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function Ule(r){var t={};function e(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&_e(s)&&(s=im(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");oe(u,l)})})}function Yle(r){r.registerChartView(Fle),r.registerSeriesModel(Vle),r.registerLayout(Oe(Hle,"sunburst")),r.registerProcessor(Oe(Cd,"sunburst")),r.registerVisual(Ule),jle(r)}var m6={color:"fill",borderColor:"stroke"},Wle={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xi=rt(),qle=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return vi(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Xi(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(St);function Xle(r,t){return t=t||[0,0],he(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function Zle(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:be(Xle,r)}}}function $le(r,t){return t=t||[0,0],he([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function Kle(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:be($le,r)}}}function Qle(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function Jle(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:be(Qle,r)}}}function eue(r,t){return t=t||[0,0],he(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function tue(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:be(eue,r)}}}function rue(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function Xz(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Se(r,"text")))}function Zz(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Se(a,"text")&&(o.text=a.text),Se(a,"rich")&&(o.rich=a.rich),Se(a,"textFill")&&(o.fill=a.textFill),Se(a,"textStroke")&&(o.stroke=a.textStroke),Se(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Se(a,"fontSize")&&(o.fontSize=a.fontSize),Se(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Se(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Se(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Se(a,"textPosition")&&(n.position=a.textPosition),Se(a,"textOffset")&&(n.offset=a.textOffset),Se(a,"textRotation")&&(n.rotation=a.textRotation),Se(a,"textDistance")&&(n.distance=a.textDistance)}return y6(o,r),O(o.rich,function(l){y6(l,l)}),{textConfig:n,textContent:i}}function y6(r,t){t&&(t.font=t.textFont||t.font,Se(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Se(t,"textAlign")&&(r.align=t.textAlign),Se(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Se(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Se(t,"textWidth")&&(r.width=t.textWidth),Se(t,"textHeight")&&(r.height=t.textHeight),Se(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Se(t,"textPadding")&&(r.padding=t.textPadding),Se(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Se(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Se(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Se(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Se(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Se(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Se(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function x6(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";_6(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||"#fff",!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||"#000"),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,O(t.rich,function(s){_6(s,s)}),a}function _6(r,t){t&&(Se(t,"fill")&&(r.textFill=t.fill),Se(t,"stroke")&&(r.textStroke=t.fill),Se(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Se(t,"font")&&(r.font=t.font),Se(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Se(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Se(t,"fontSize")&&(r.fontSize=t.fontSize),Se(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Se(t,"align")&&(r.textAlign=t.align),Se(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Se(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Se(t,"width")&&(r.textWidth=t.width),Se(t,"height")&&(r.textHeight=t.height),Se(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Se(t,"padding")&&(r.textPadding=t.padding),Se(t,"borderColor")&&(r.textBorderColor=t.borderColor),Se(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Se(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Se(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Se(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Se(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Se(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Se(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Se(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Se(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Se(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var $z={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},b6=Ze($z);fn(si,function(r,t){return r[t]=1,r},{});si.join(", ");var jm=["","style","shape","extra"],qc=rt();function ZA(r,t,e,a,n){var i=r+"Animation",o=af(r,a,n)||{},s=qc(t).userDuring;return o.duration>0&&(o.during=s?be(sue,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),oe(o,e[i]),o}function Wg(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=qc(r),u=t.style;l.userDuring=t.during;var c={},h={};if(uue(r,t,h),w6("shape",t,h),w6("extra",t,h),!i&&s&&(lue(r,t,c),S6("shape",r,t,c),S6("extra",r,t,c),cue(r,t,u,c)),h.style=u,aue(r,h,o),iue(r,t),s)if(i){var v={};O(jm,function(g){var y=g?t[g]:t;y&&y.enterFrom&&(g&&(v[g]=v[g]||{}),oe(g?v[g]:v,y.enterFrom))});var p=ZA("enter",r,t,e,n);p.duration>0&&r.animateFrom(v,p)}else nue(r,t,n||0,e,c);Kz(r,t),u?r.dirty():r.markRedraw()}function Kz(r,t){for(var e=qc(r).leaveToProps,a=0;a<jm.length;a++){var n=jm[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=qc(r).leaveToProps={}),n&&(e[n]=e[n]||{}),oe(n?e[n]:e,i.leaveTo))}}function Wy(r,t,e,a){if(r){var n=r.parent,i=qc(r).leaveToProps;if(i){var o=ZA("update",r,t,e,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function Il(r){return r==="all"}function aue(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function nue(r,t,e,a,n){if(n){var i=ZA("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function iue(r,t){Se(t,"silent")&&(r.silent=t.silent),Se(t,"ignore")&&(r.ignore=t.ignore),r instanceof hn&&Se(t,"invisible")&&(r.invisible=t.invisible),r instanceof Xe&&Se(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var $n={},oue={setTransform:function(r,t){return $n.el[r]=t,this},getTransform:function(r){return $n.el[r]},setShape:function(r,t){var e=$n.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=$n.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=$n.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=$n.el.style;if(t)return t[r]},setExtra:function(r,t){var e=$n.el.extra||($n.el.extra={});return e[r]=t,this},getExtra:function(r){var t=$n.el.extra;if(t)return t[r]}};function sue(){var r=this,t=r.el;if(t){var e=qc(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}$n.el=t,a(oue)}}function S6(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Il(l))oe(o,i);else for(var u=bt(l),c=0;c<u.length;c++){var h=u[c],v=i[h];o[h]=v}else if(Il(s)||He(s,r)>=0){!o&&(o=a[r]={});for(var p=Ze(i),c=0;c<p.length;c++){var h=p[c],v=i[h];fue(n[h],v)&&(o[h]=v)}}}}}function w6(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Ze(a),o=0;o<i.length;o++){var s=i[o];n[s]=uv(a[s])}}function lue(r,t,e){for(var a=t.transition,n=Il(a)?si:bt(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function uue(r,t,e){for(var a=0;a<b6.length;a++){var n=b6[a],i=$z[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<si.length;a++){var s=si[a];t[s]!=null&&(e[s]=t[s])}}function cue(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!Il(o)){var l=bt(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],h=n[c];i[c]=h}}else if(r.getAnimationStyleProps&&(Il(s)||Il(o)||He(s,"style")>=0)){var v=r.getAnimationStyleProps(),p=v?v.style:null;if(p){!i&&(i=a.style={});for(var g=Ze(e),u=0;u<g.length;u++){var c=g[u];if(p[c]){var h=n[c];i[c]=h}}}}}}}function fue(r,t){return Ir(r)?r!==t:r!=null&&isFinite(r)}var Qz=rt(),hue=["percent","easing","shape","style","extra"];function Jz(r){r.stopAnimation("keyframe"),r.attr(Qz(r))}function Fm(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(ce(t)){O(t,function(s){Fm(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=af("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Qz(r);O(jm,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),O(a,function(u){var c=r.animators,h=s?u[s]:u;if(h){var v=Ze(h);if(s||(v=lt(v,function(y){return He(hue,y)<0})),!!v.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==l&&c[p].targetName===l.targetName&&c[p].stopTracks(v);s&&(o[s]=o[s]||{});var g=s?o[s]:o;O(v,function(y){g[y]=((s?r[s]:r)||{})[y]}),l.whenWithKeys(n*u.percent,h,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Zi="emphasis",Ko="normal",$A="blur",KA="select",fs=[Ko,Zi,$A,KA],mS={normal:["itemStyle"],emphasis:[Zi,"itemStyle"],blur:[$A,"itemStyle"],select:[KA,"itemStyle"]},yS={normal:["label"],emphasis:[Zi,"label"],blur:[$A,"label"],select:[KA,"label"]},vue=["x","y"],due="e\0\0",Ja={normal:{},emphasis:{},blur:{},select:{}},pue={cartesian2d:Zle,geo:Kle,single:Jle,polar:tue,calendar:rue};function bw(r){return r instanceof Xe}function Sw(r){return r instanceof hn}function gue(r,t){t.copyTransform(r),Sw(t)&&Sw(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,bw(t)&&bw(r)&&t.setShape(r.shape))}var mue=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=C6(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(h){xS(n,null,h,u(h,i),e,l,s)}).remove(function(h){var v=o.getItemGraphicEl(h);v&&Wy(v,Xi(v).option,e)}).update(function(h,v){var p=o.getItemGraphicEl(v);xS(n,p,h,u(h,i),e,l,s)}).execute();var c=e.get("clip",!0)?Sd(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=C6(a,s,n,i),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var h=e.start;h<e.end;h++){var v=xS(null,null,h,l(h,o),a,this.group,s);v&&(v.traverse(c),u.push(v))}},t.prototype.eachRendered=function(e){ps(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t})(yt);function QA(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=r9(a);e=pd(i,null,n,a.layout||"center"),Xi(e).customPathData=i}else if(t==="image")e=new br({}),Xi(e).customImagePath=r.style.image;else if(t==="text")e=new Qe({});else if(t==="group")e=new Re;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Sy(t);if(!o){var s="";pt(s)}e=new o}return Xi(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function JA(r,t,e,a,n,i,o){Jz(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=vue);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;Se(u,"textFill")&&(u.fill=u.textFill),Se(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=bw(t)?l.decal:null;r&&h&&(h.dirty=!0,c=Gc(h,r)),l.__decalPattern=c}if(Sw(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Wg(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Fm(t,a.keyframeAnimation,i)}function e9(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),jl(i)}}function yue(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<fs.length;s++)xue(a,t,fs[s])}}function xue(r,t,e){var a=e===Ko,n=a?t:Vm(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function C6(r,t,e,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):pue[i.type](i));for(var s=Me({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:C,style:M,ordinalRawValue:D,styleEmphasis:E,visual:R,barLayout:I,currentSeriesIndices:P,font:z},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:_ue(r.getData())},u,c,h={},v={},p={},g={},y=0;y<fs.length;y++){var x=fs[y];p[x]=r.getModel(mS[x]),g[x]=r.getModel(yS[x])}function _(V){return V===u?c||(c=t.getItemModel(V)):t.getItemModel(V)}function S(V,G){return t.hasItemOption?V===u?h[G]||(h[G]=_(V).getModel(mS[G])):_(V).getModel(mS[G]):p[G]}function w(V,G){return t.hasItemOption?V===u?v[G]||(v[G]=_(V).getModel(yS[G])):_(V).getModel(yS[G]):g[G]}return function(V,G){return u=V,c=null,h={},v={},n&&n(Me({dataIndexInside:V,dataIndex:t.getRawIndex(V),actionType:G?G.type:null},l),s)};function C(V,G){return G==null&&(G=u),t.getStore().get(t.getDimensionIndex(V||0),G)}function D(V,G){G==null&&(G=u),V=V||0;var F=t.getDimensionInfo(V);if(!F){var Y=t.getDimensionIndex(V);return Y>=0?t.getStore().get(Y,G):void 0}var W=t.get(F.name,G),X=F&&F.ordinalMeta;return X?X.categories[W]:W}function M(V,G){G==null&&(G=u);var F=t.getItemVisual(G,"style"),Y=F&&F.fill,W=F&&F.opacity,X=S(G,Ko).getItemStyle();Y!=null&&(X.fill=Y),W!=null&&(X.opacity=W);var te={inheritColor:_e(Y)?Y:"#000"},j=w(G,Ko),U=At(j,null,te,!1,!0);U.text=j.getShallow("show")?ke(r.getFormattedLabel(G,Ko),Uc(t,G)):null;var Z=pm(j,te,!1);return B(V,X),X=x6(X,U,Z),V&&N(X,V),X.legacy=!0,X}function E(V,G){G==null&&(G=u);var F=S(G,Zi).getItemStyle(),Y=w(G,Zi),W=At(Y,null,null,!0,!0);W.text=Y.getShallow("show")?Nn(r.getFormattedLabel(G,Zi),r.getFormattedLabel(G,Ko),Uc(t,G)):null;var X=pm(Y,null,!0);return B(V,F),F=x6(F,W,X),V&&N(F,V),F.legacy=!0,F}function N(V,G){for(var F in G)Se(G,F)&&(V[F]=G[F])}function B(V,G){V&&(V.textFill&&(G.textFill=V.textFill),V.textPosition&&(G.textPosition=V.textPosition))}function R(V,G){if(G==null&&(G=u),Se(m6,V)){var F=t.getItemVisual(G,"style");return F?F[m6[V]]:null}if(Se(Wle,V))return t.getItemVisual(G,V)}function I(V){if(i.type==="cartesian2d"){var G=i.getBaseAxis();return ZJ(Me({axis:G},V))}}function P(){return e.getCurrentSeriesIndices()}function z(V){return RC(V,e)}}function _ue(r){var t={};return O(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function xS(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=eD(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Vt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function eD(r,t,e,a,n,i){var o=-1,s=t;t&&t9(t,a,n)&&(o=He(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=QA(a),s&&gue(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ja.normal.cfg=Ja.normal.conOpt=Ja.emphasis.cfg=Ja.emphasis.conOpt=Ja.blur.cfg=Ja.blur.conOpt=Ja.select.cfg=Ja.select.conOpt=null,Ja.isLegacy=!1,Sue(u,e,a,n,l,Ja),bue(u,e,a,n,l),JA(r,u,e,a,Ja,n,l),Se(a,"info")&&(Xi(u).info=a.info);for(var c=0;c<fs.length;c++){var h=fs[c];if(h!==Ko){var v=Vm(a,h),p=tD(a,v,h);e9(h,u,v,p,Ja)}}return yue(u,a,n),a.type==="group"&&wue(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function t9(r,t,e){var a=Xi(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&Tue(i)&&r9(i)!==a.customPathData||n==="image"&&Se(o,"image")&&o.image!==a.customImagePath}function bue(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&t9(o,i,a)&&(o=null),o||(o=QA(i),r.setClipPath(o)),JA(null,o,t,i,null,a,n)}}function Sue(r,t,e,a,n,i){if(!r.isGroup){A6(e,null,i),A6(e,Zi,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 c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=QA(o),r.setTextContent(c)),JA(null,c,t,o,null,a,n);for(var h=o&&o.style,v=0;v<fs.length;v++){var p=fs[v];if(p!==Ko){var g=i[p].conOpt;e9(p,c,g,tD(o,g,p),null)}}h?c.dirty():c.markRedraw()}}}}function A6(r,t,e){var a=t?Vm(r,t):r,n=t?tD(r,a,Zi):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?Vm(s,t):s:null;if(n&&(e.isLegacy||Xz(n,i,!!o,!!l))){e.isLegacy=!0;var u=Zz(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?e[t]:e.normal;h.cfg=o,h.conOpt=l}function Vm(r,t){return t?r?r[t]:null:r}function tD(r,t,e){var a=t&&t.style;return a==null&&e===Zi&&r&&(a=r.styleEmphasis),a}function wue(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Aue({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var h=i[c],v=t.childAt(c);h?(h.ignore==null&&(h.ignore=!1),eD(r,v,e,h,n,t)):v.ignore=!0}for(var p=t.childCount()-1;p>=c;p--){var g=t.childAt(p);Cue(t,g,n)}}}function Cue(r,t,e){t&&Wy(t,Xi(r).option,e)}function Aue(r){new eo(r.oldChildren,r.newChildren,D6,D6,r).add(T6).update(T6).remove(Due).execute()}function D6(r,t){var e=r&&r.name;return e??due+t}function T6(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;eD(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function Due(r){var t=this.context,e=t.oldChildren[r];e&&Wy(e,Xi(e).option,t.seriesModel)}function r9(r){return r&&(r.pathData||r.d)}function Tue(r){return r&&(Se(r,"pathData")||Se(r,"d"))}function Mue(r){r.registerChartView(mue),r.registerSeriesModel(qle)}var ml=rt(),M6=Le,_S=be,rD=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&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,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Re,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=Oe(E6,e,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}N6(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=CA(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=ml(t).pointerEl=new Kl[i.type](M6(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=ml(t).labelEl=new Qe(M6(e.label));t.add(i),L6(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=ml(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=ml(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),L6(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=nf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ki(u.event)},onmousedown:_S(this._onHandleDragMove,this,0,0),drift:_S(this._onHandleDragMove,this),ondragend:_S(this._onHandleDragEnd,this)}),a.add(n)),N6(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");ce(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,hf(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){E6(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(bS(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(bS(n)),ml(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Pv(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function E6(r,t,e,a){a9(ml(e).lastProp,a)||(ml(e).lastProp=a,t?st(e,a,r):(e.stopAnimation(),e.attr(a)))}function a9(r,t){if(Ee(r)&&Ee(t)){var e=!0;return O(t,function(a,n){e=e&&a9(r[n],a)}),!!e}else return r===t}function L6(r,t){r[t.get(["label","show"])?"show":"hide"]()}function bS(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function N6(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function aD(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function n9(r,t,e,a,n){var i=e.get("value"),o=i9(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ql(s.get("padding")||0),u=s.getFont(),c=cd(o,u),h=n.position,v=c.width+l[1]+l[3],p=c.height+l[0]+l[2],g=n.align;g==="right"&&(h[0]-=v),g==="center"&&(h[0]-=v/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=p),y==="middle"&&(h[1]-=p/2),Eue(h,v,p,a);var x=s.get("backgroundColor");(!x||x==="auto")&&(x=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:At(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:x}),z2:10}}function Eue(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function i9(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:vA(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),_e(o)?i=o.replace("{value}",i):Te(o)&&(i=o(s))}return i}function nD(r,t,e){var a=Sa();return ds(a,a,e.rotation),On(a,a,e.position),In([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function o9(r,t,e,a,n,i){var o=oa.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),n9(t,a,n,i,{position:nD(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function iD(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function s9(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function R6(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var Lue=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=B6(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=aD(i),p=Nue[u](s,h,c);p.style=v,e.graphicKey=p.type,e.pointer=p}var g=rw(l.model,n);o9(a,e,g,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=rw(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=nD(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=B6(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[e.x,e.y];h[c]+=a[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var v=(u[1]+u[0])/2,p=[v,v];p[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:p,tooltipOption:g[c]}},t})(rD);function B6(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Nue={line:function(r,t,e){var a=iD([t,e[0]],[t,e[1]],I6(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:s9([t-a/2,e[0]],[a,n],I6(r))}}};function I6(r){return r.dim==="x"?0:1}var Rue=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(We),Wi=rt(),Bue=O;function l9(r,t,e){if(!qe.node){var a=t.getZr();Wi(a).records||(Wi(a).records={}),Iue(a,t);var n=Wi(a).records[r]||(Wi(a).records[r]={});n.handler=e}}function Iue(r,t){if(Wi(r).initialized)return;Wi(r).initialized=!0,e("click",Oe(k6,"click")),e("mousemove",Oe(k6,"mousemove")),e("globalout",Oue);function e(a,n){r.on(a,function(i){var o=Pue(t);Bue(Wi(r).records,function(s){s&&n(s,i,o.dispatchAction)}),kue(o.pendings,t)})}}function kue(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function Oue(r,t,e){r.handler("leave",null,e)}function k6(r,t,e,a){t.handler(r,e,a)}function Pue(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function ww(r,t){if(!qe.node){var e=t.getZr(),a=(Wi(e).records||{})[r];a&&(Wi(e).records[r]=null)}}var zue=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";l9("axisPointer",n,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(e,a){ww("axisPointer",a)},t.prototype.dispose=function(e,a){ww("axisPointer",a)},t.type="axisPointer",t})(Et);function u9(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Pl(i,r);if(o==null||o<0||ce(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,v=u.dim,p=h==="x"||h==="radius"?1:0,g=i.mapDimension(v),y=[];y[p]=i.get(g,o),y[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(y)||[]}else e=l.dataToPoint(i.getValues(he(l.dimensions,function(_){return i.mapDimension(_)}),o))||[];else if(s){var x=s.getBoundingRect().clone();x.applyTransform(s.transform),e=[x.x+x.width/2,x.y+x.height/2]}return{point:e,el:s}}var O6=rt();function jue(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||be(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qg(n)&&(n=u9({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=qg(n),u=i.axesInfo,c=s.axesInfo,h=a==="leave"||qg(n),v={},p={},g={list:[],map:{}},y={showPointer:Oe(Vue,p),showTooltip:Oe(Hue,g)};O(s.coordSysMap,function(_,S){var w=l||_.containPoint(n);O(s.coordSysAxesInfo[S],function(C,D){var M=C.axis,E=Wue(u,C);if(!h&&w&&(!u||E)){var N=E&&E.value;N==null&&!l&&(N=M.pointToData(n)),N!=null&&P6(C,N,y,!1,v)}})});var x={};return O(c,function(_,S){var w=_.linkGroup;w&&!p[S]&&O(w.axesInfo,function(C,D){var M=p[D];if(C!==_&&M){var E=M.value;w.mapper&&(E=_.axis.scale.parse(w.mapper(E,z6(C),z6(_)))),x[_.key]=E}})}),O(x,function(_,S){P6(c[S],_,y,!0,v)}),Gue(p,c,v),Uue(g,n,r,o),Yue(c,o,e),v}}function P6(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Fue(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&oe(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Fue(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return O(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,r,e);v=p.dataIndices,h=p.nestestValue}else{if(v=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!v.length)return;h=l.getData().get(c[0],v[0])}if(!(h==null||!isFinite(h))){var g=r-h,y=Math.abs(g);y<=o&&((y<o||g>=0&&s<0)&&(o=y,s=g,n=h,i.length=0),O(v,function(x){i.push({seriesIndex:l.seriesIndex,dataIndexInside:x,dataIndex:l.getData().getRawIndex(x)})}))}}),{payloadBatch:i,snapToValue:n}}function Vue(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function Hue(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Uv(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Gue(r,t,e){var a=e.axesInfo=[];O(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Uue(r,t,e,a){if(qg(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function Yue(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=O6(a)[n]||{},o=O6(a)[n]={};O(r,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&O(h.seriesDataIndices,function(v){var p=v.seriesIndex+" | "+v.dataIndex;o[p]=v})});var s=[],l=[];O(i,function(u,c){!o[c]&&l.push(u)}),O(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Wue(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function z6(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function qg(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Md(r){tu.registerAxisPointerClass("CartesianAxisPointer",Lue),r.registerComponentModel(Rue),r.registerComponentView(zue),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ce(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=rae(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jue)}function que(r){Ye(P7),Ye(Md)}var Xue=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var p=aD(i),g=$ue[v](s,l,h,c);g.style=p,e.graphicKey=g.type,e.pointer=g}var y=i.get(["label","margin"]),x=Zue(a,n,i,l,y);n9(e,n,i,o,x)},t})(rD);function Zue(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,h;if(i.dim==="radius"){var v=Sa();ds(v,v,s),On(v,v,[a.cx,a.cy]),u=In([o,-n],v);var p=t.getModel("axisLabel").get("rotate")||0,g=oa.innerTextLayout(s,p*Math.PI/180,-1);c=g.textAlign,h=g.textVerticalAlign}else{var y=l[1];u=a.coordToPoint([y+n,o]);var x=a.cx,_=a.cy;c=Math.abs(u[0]-x)/y<.3?"center":u[0]>x?"left":"right",h=Math.abs(u[1]-_)/y<.3?"middle":u[1]>_?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var $ue={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:iD(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:R6(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:R6(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},Kue=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(We),oD=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",nr).models[0]},t.type="polarAxis",t})(We);Xt(oD,gf);var Que=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t})(oD),Jue=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t})(oD),sD=(function(r){Q(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t})(mn);sD.prototype.dataToRadius=mn.prototype.dataToCoord;sD.prototype.radiusToData=mn.prototype.coordToData;var ece=rt(),lD=(function(r){Q(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=cd(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(c.height,7),v=h/u;isNaN(v)&&(v=1/0);var p=Math.max(0,Math.floor(v)),g=ece(e.model),y=g.lastAutoInterval,x=g.lastTickCount;return y!=null&&x!=null&&Math.abs(y-p)<=1&&Math.abs(x-o)<=1&&y>p?p=y:(g.lastTickCount=o,g.lastAutoInterval=p),p},t})(mn);lD.prototype.dataToAngle=mn.prototype.dataToCoord;lD.prototype.angleToData=mn.prototype.coordToData;var c9=["radius","angle"],tce=(function(){function r(t){this.dimensions=c9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new sD,this._angleAxis=new lD,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,h=u*u+c*c,v=this.r,p=this.r0;return v!==p&&h-o<=v*v&&h+o>=p*p}}},r.prototype.convertToPixel=function(t,e,a){var n=j6(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=j6(e);return n===this?this.pointToData(a):null},r})();function j6(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function rce(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=xe(a[0],n),r.cy=xe(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:ce(l)||(l=[0,l]);var u=[xe(l[0],s),xe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function ace(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();O(Mm(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),O(Mm(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Vl(a.scale,a.model),Vl(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function nce(r){return r.mainType==="angleAxis"}function F6(r,t){var e;if(r.type=t.get("type"),r.scale=xd(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),nce(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var ice={dimensions:c9,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new tce(n+"");i.update=ace;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");F6(o,l),F6(s,u),rce(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",nr).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},oce=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function zp(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function jp(r){var t=r.getRadiusAxis();return t.inverse?0:1}function V6(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var sce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=he(n.getViewLabels(),function(c){c=Le(c);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(v),c});V6(u),V6(s),O(oce,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&lce[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t})(tu),lce={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=jp(e),h=c?0:1,v,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?v=new Kl[p]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new ef({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[jp(e)],u=he(a,function(c){return new hr({shape:zp(e,[l,l+s],c.coord)})});r.add(Ba(u,{style:Me(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[jp(e)],c=[],h=0;h<n.length;h++)for(var v=0;v<n[h].length;v++)c.push(new hr({shape:zp(e,[u,u+l],n[h][v].coord)}));r.add(Ba(c,{style:Me(s.getModel("lineStyle").getLineStyle(),Me(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");O(o,function(h,v){var p=l,g=h.tickValue,y=i[jp(e)],x=e.coordToPoint([y+u,h.coord]),_=e.cx,S=e.cy,w=Math.abs(x[0]-_)/y<.3?"center":x[0]>_?"left":"right",C=Math.abs(x[1]-S)/y<.3?"middle":x[1]>S?"top":"bottom";if(s&&s[g]){var D=s[g];Ee(D)&&D.textStyle&&(p=new ut(D.textStyle,l,l.ecModel))}var M=new Qe({silent:oa.isLabelSilent(t),style:At(p,{x:x[0],y:x[1],fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:w,verticalAlign:C})});if(r.add(M),c){var E=oa.makeAxisEventDataBase(t);E.targetType="axisLabel",E.value=h.rawLabel,Be(M).eventData=E}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<a.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new hr({shape:zp(e,i,a[h].coord)}))}for(var h=0;h<c.length;h++)r.add(Ba(c[h],{style:Me({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new hr({shape:zp(e,i,n[u][c].coord)}));r.add(Ba(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,v=-a[0].coord*h,p=Math.min(i[0],i[1]),g=Math.max(i[0],i[1]),y=t.get("clockwise"),x=1,_=a.length;x<=_;x++){var S=x===_?a[0].coord:a[x].coord,w=u++%l.length;c[w]=c[w]||[],c[w].push(new Zr({shape:{cx:e.cx,cy:e.cy,r0:p,r:g,startAngle:v,endAngle:-S*h,clockwise:y},silent:!0})),v=-S*h}for(var x=0;x<c.length;x++)r.add(Ba(c[x],{style:Me({fill:l[x%l.length]},s.getAreaStyle()),silent:!0}))}}},uce=["axisLine","axisTickLabel","axisName"],cce=["splitLine","splitArea","minorSplitLine"],fce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Re;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),p=vce(s,e,h),g=new oa(e,p);O(uce,g.add,g),i.add(g.getGroup()),gd(n,i,e),O(cce,function(y){e.get([y,"show"])&&!o.scale.isBlank()&&hce[y](this.group,e,s,h,v,u,c)},this)}},t.type="radiusAxis",t})(tu),hce={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),h=Math.PI/180,v=c.getExtent(),p=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],y=0;y<i.length;y++){var x=u++%l.length;g[x]=g[x]||[],g[x].push(new Kl[p]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[y].coord,0),startAngle:-v[0]*h,endAngle:-v[1]*h,clockwise:c.inverse}}))}for(var y=0;y<g.length;y++)r.add(Ba(g[y],{style:Me({stroke:l[y%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new fi({shape:{cx:e.cx,cy:e.cy,r:o[c][h].coord}}));r.add(Ba(u,{style:Me({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,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 c=[],h=i[0].coord,v=1;v<i.length;v++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Zr({shape:{cx:e.cx,cy:e.cy,r0:h,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=i[v].coord}for(var v=0;v<c.length;v++)r.add(Ba(c[v],{style:Me({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function vce(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function f9(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function h9(r,t){return t.dim+r.model.componentIndex}function dce(r,t,e){var a={},n=pce(lt(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=h9(s,l),c=f9(i),h=n[u][c],v=h.offset,p=h.width,g=s.getOtherAxis(l),y=i.coordinateSystem.cx,x=i.coordinateSystem.cy,_=i.get("barMinHeight")||0,S=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var w=o.mapDimension(g.dim),C=o.mapDimension(l.dim),D=to(o,w),M=l.dim!=="radius"||!i.get("roundCap",!0),E=g.model,N=E.get("startValue"),B=g.dataToCoord(N||0),R=0,I=o.count();R<I;R++){var P=o.get(w,R),z=o.get(C,R),V=P>=0?"p":"n",G=B;D&&(a[c][z]||(a[c][z]={p:B,n:B}),G=a[c][z][V]);var F=void 0,Y=void 0,W=void 0,X=void 0;if(g.dim==="radius"){var te=g.dataToCoord(P)-B,j=l.dataToCoord(z);Math.abs(te)<_&&(te=(te<0?-1:1)*_),F=G,Y=G+te,W=j-v,X=W-p,D&&(a[c][z][V]=Y)}else{var U=g.dataToCoord(P,M)-B,Z=l.dataToCoord(z);Math.abs(U)<S&&(U=(U<0?-1:1)*S),F=Z+v,Y=F+p,W=G,X=G+U,D&&(a[c][z][V]=X)}o.setItemLayout(R,{cx:y,cy:x,r0:F,r:Y,startAngle:-W*Math.PI/180,endAngle:-X*Math.PI/180,clockwise:W>=X})}}})}function pce(r){var t={};O(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=h9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;t[l]=h;var p=f9(a);v[p]||h.autoWidthCount++,v[p]=v[p]||{width:0,maxWidth:0};var g=xe(a.get("barWidth"),c),y=xe(a.get("barMaxWidth"),c),x=a.get("barGap"),_=a.get("barCategoryGap");g&&!v[p].width&&(g=Math.min(h.remainedWidth,g),v[p].width=g,h.remainedWidth-=g),y&&(v[p].maxWidth=y),x!=null&&(h.gap=x),_!=null&&(h.categoryGap=_)});var e={};return O(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=xe(a.categoryGap,o),l=xe(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),O(i,function(y,x){var _=y.maxWidth;_&&_<h&&(_=Math.min(_,u),y.width&&(_=Math.min(_,y.width)),u-=_,y.width=_,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var v=0,p;O(i,function(y,x){y.width||(y.width=h),p=y,v+=y.width*(1+l)}),p&&(v-=p.width*l);var g=-v/2;O(i,function(y,x){e[n][x]=e[n][x]||{offset:g,width:y.width},g+=y.width*(1+l)})}),e}var gce={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},mce={splitNumber:5},yce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t})(Et);function xce(r){Ye(Md),tu.registerAxisPointerClass("PolarAxisPointer",Xue),r.registerCoordinateSystem("polar",ice),r.registerComponentModel(Kue),r.registerComponentView(yce),Yc(r,"angle",Que,gce),Yc(r,"radius",Jue,mce),r.registerComponentView(sce),r.registerComponentView(fce),r.registerLayout(Oe(dce,"bar"))}function Cw(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=e.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]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=h[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),gr(t.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=t.rotate;return v==null&&(v=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-v:v,n.z2=1,n}var _ce=["axisLine","axisTickLabel","axisName"],bce=["splitArea","splitLine"],Sce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Re;var l=Cw(e),u=new oa(e,l);O(_ce,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),O(bce,function(c){e.get([c,"show"])&&wce[c](this,this.group,this._axisGroup,e)},this),gd(s,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)},t.prototype.remove=function(){I7(this)},t.type="singleAxis",t})(tu),wce={splitLine:function(r,t,e,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),c=n.isHorizontal(),h=[],v=0,p=n.getTicksCoords({tickModel:i}),g=[],y=[],x=0;x<p.length;++x){var _=n.toGlobalCoord(p[x].coord);c?(g[0]=_,g[1]=u.y,y[0]=_,y[1]=u.y+u.height):(g[0]=u.x,g[1]=_,y[0]=u.x+u.width,y[1]=_);var S=new hr({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});Vc(S.shape,l);var w=v++%s.length;h[w]=h[w]||[],h[w].push(S)}for(var C=o.getLineStyle(["color"]),x=0;x<h.length;++x)t.add(Ba(h[x],{style:Me({stroke:s[x%s.length]},C),silent:!0}))}},splitArea:function(r,t,e,a){B7(r,e,a,a)}},Xg=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t})(We);Xt(Xg,gf.prototype);var Cce=(function(r){Q(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t})(mn),v9=["single"],Ace=(function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=v9,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=this.dimension,i=new Cce(n,xd(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();O(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),Vl(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=ir({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return n-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return n-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),n=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[i]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(t,e,a){var n=H6(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=H6(e);return n===this?this.pointToData(a):null},r})();function H6(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Dce(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new Ace(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",nr).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var Tce={create:Dce,dimensions:v9},G6=["x","y"],Mce=["width","height"],Ece=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=SS(l,1-Hm(s)),c=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=aD(i),p=Lce[h](s,c,u);p.style=v,e.graphicKey=p.type,e.pointer=p}var g=Cw(n);o9(a,e,g,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Cw(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=nD(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Hm(o),u=SS(s,l),c=[e.x,e.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=SS(s,1-l),v=(h[1]+h[0])/2,p=[v,v];return p[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t})(rD),Lce={line:function(r,t,e){var a=iD([t,e[0]],[t,e[1]],Hm(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:s9([t-a/2,e[0]],[a,n],Hm(r))}}};function Hm(r){return r.isHorizontal()?0:1}function SS(r,t){var e=r.getRect();return[e[G6[t]],e[G6[t]]+e[Mce[t]]]}var Nce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t})(Et);function Rce(r){Ye(Md),tu.registerAxisPointerClass("SingleAxisPointer",Ece),r.registerComponentView(Nce),r.registerComponentView(Sce),r.registerComponentModel(Xg),Yc(r,"single",Xg,Xg.defaultOption),r.registerCoordinateSystem("single",Tce)}var Bce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=lf(e);r.prototype.init.apply(this,arguments),U6(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),U6(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(We);function U6(r,t){var e=r.cellSize,a;ce(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=he([0,1],function(i){return P$(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});us(r,t,{type:"box",ignoreSize:n})}var Ice=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,h=new Je({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){g(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=s.getDateInfo(p)}g(s.getNextNDay(a.end.time,1).formatedDate);function g(y){o._firstDayOfMonth.push(s.getDateInfo(y)),o._firstDayPoints.push(s.dataToRect([y],!1).tl);var x=o._getLinePointsOfOneWeek(e,y,n);o._tlpoints.push(x[0]),o._blpoints.push(x[x.length-1]),u&&o._drawSplitline(x,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Qr({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return _e(e)&&e?B$(e,a):Te(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[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 c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,p={top:[c,u[v][1]],bottom:[c,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},g=a.start.y;+a.end.y>+a.start.y&&(g=g+"-"+a.end.y);var y=o.get("formatter"),x={start:a.start.y,end:a.end.y,nameMap:g},_=this._formatterLabel(y,x),S=new Qe({z2:30,style:At(o,{text:_}),silent:o.get("silent")});S.attr(this._yearTextPositionControl(S,p[l],n,l,s)),i.add(S)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],c=e[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||_e(s))&&(s&&(a=N2(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,p=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",y=o.get("silent"),x=0;x<h[v].length-1;x++){var _=h[v][x].slice(),S=this._firstDayOfMonth[x];if(g){var w=this._firstDayPoints[x];_[p]=(w[p]+h[0][x+1][p])/2}var C=o.get("formatter"),D=s[+S.m-1],M={yyyy:S.y,yy:(S.y+"").slice(2),MM:S.m,M:+S.m,nameMap:D},E=this._formatterLabel(C,M),N=new Qe({z2:30,style:oe(At(o,{text:E}),this._monthTextPositionControl(_,g,n,u,l)),silent:y});i.add(N)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],c=e[1],h=n==="start";return a==="horizontal"?(u=u+i+(h?1:-1)*o[0]/2,s=h?"right":"left"):(c=c+i+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),v=l.getFirstDayOfWeek();if(!c||_e(c)){c&&(a=N2(c)||a);var p=a.get(["time","dayOfWeekShort"]);c=p||he(a.get(["time","dayOfWeekAbbr"]),function(M){return M[0]})}var g=l.getNextNDay(n.end.time,7-n.lweek).time,y=[l.getCellWidth(),l.getCellHeight()];h=xe(h,Math.min(y[1],y[0])),u==="start"&&(g=l.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var x=s.get("silent"),_=0;_<7;_++){var S=l.getNextNDay(g,_),w=l.dataToRect([S.time],!1).center,C=_;C=Math.abs((_+v)%7);var D=new Qe({z2:30,style:oe(At(s,{text:c[C]}),this._weekTextPositionControl(w,i,u,h,y)),silent:x});o.add(D)}}},t.type="calendar",t})(Et),wS=864e5,kce=(function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Pa(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){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 a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];O([0,1],function(h){c(i,h)&&(o[n[h]]=i[h]*s[h])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ir(o,l);O([0,1],function(h){c(i,h)||(i[h]=u[n[h]]/s[h])});function c(h,v){return h[v]!=null&&h[v]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){ce(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),n=this._rangeInfo,i=a.formatedDate;if(e&&!(a.time>=n.start.time&&a.time<n.end.time+wS))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=Y6(e);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Y6(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(ce(t)&&t.length===1&&(t=t[0]),ce(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/wS)-Math.floor(e[0].time/wS)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+e[0].day+6)/7),h=a?-c+1:c-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function Y6(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function Oce(r){r.registerComponentModel(Bce),r.registerComponentView(Ice),r.registerCoordinateSystem("calendar",kce)}function Pce(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function W6(r,t){var e;return O(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function zce(r,t,e){var a=oe({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(ze(n,a,!0),us(n,a,{ignoreSize:!0}),rO(e,n),Fp(e,n),Fp(e,n,"shape"),Fp(e,n,"style"),Fp(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var d9=["transition","enterFrom","leaveTo"],jce=d9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Fp(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?d9:jce,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function Fce(r,t){if(r&&(r.hv=t.hv=[W6(t,["left","right"]),W6(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var Vce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=ek(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];O(l,function(c,h){var v=c.newOption;v&&(u.push(v),Pce(c,v),zce(o,h,v),Fce(o[h],v))},this),n.elements=lt(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,a,n){O(e,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t})(We),q6={path:null,compoundPath:null,group:Re,image:br,text:Qe},nn=rt(),Hce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=Ce()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");O(a,function(l){var u=fr(l.id,null),c=u!=null?n.get(u):null,h=fr(l.parentId,null),v=h!=null?n.get(h):i,p=l.type,g=l.style;p==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var y=l.textContent,x=l.textConfig;if(g&&Xz(g,p,!!x,!!y)){var _=Zz(g,p,!0);!x&&_.textConfig&&(x=l.textConfig=_.textConfig),!y&&_.textContent&&(y=_.textContent)}var S=Gce(l),w=l.$action||"merge",C=w==="merge",D=w==="replace";if(C){var M=!c,E=c;M?E=X6(u,v,l.type,n):(E&&(nn(E).isNew=!1),Jz(E)),E&&(Wg(E,S,e,{isInit:M}),Z6(E,l,o,s))}else if(D){Zg(c,l,n,e);var N=X6(u,v,l.type,n);N&&(Wg(N,S,e,{isInit:!0}),Z6(N,l,o,s))}else w==="remove"&&(Kz(c,l),Zg(c,l,n,e));var B=n.get(u);if(B&&y)if(C){var R=B.getTextContent();R?R.attr(y):B.setTextContent(new Qe(y))}else D&&B.setTextContent(new Qe(y));if(B){var I=l.clipPath;if(I){var P=I.type,z=void 0,M=!1;if(C){var V=B.getClipPath();M=!V||nn(V).type!==P,z=M?Aw(P):V}else D&&(M=!0,z=Aw(P));B.setClipPath(z),Wg(z,I,e,{isInit:M}),Fm(z,I.keyframeAnimation,e)}var G=nn(B);B.setTextConfig(x),G.option=l,Uce(B,e,l),$l({el:B,componentModel:e,itemName:B.name,itemTooltipOption:l.tooltip}),Fm(B,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var h=n[c],v=fr(h.id,null),p=v!=null?o.get(v):null;if(!(!p||!p.isGroup)){var g=p.parent,y=g===i,x=nn(p),_=nn(g);x.width=xe(x.option.width,y?s:_.width)||0,x.height=xe(x.option.height,y?l:_.height)||0}}for(var c=n.length-1;c>=0;c--){var h=n[c],v=fr(h.id,null),p=v!=null?o.get(v):null;if(p){var g=p.parent,_=nn(g),S=g===i?{width:s,height:l}:{width:_.width,height:_.height},w={},C=Ey(p,h,S,null,{hv:h.hv,boundingMode:h.bounding},w);if(!nn(p).isNew&&C){for(var D=h.transition,M={},E=0;E<u.length;E++){var N=u[E],B=w[N];D&&(Il(D)||He(D,N)>=0)?M[N]=B:p[N]=B}st(p,M,e,0)}else p.attr(w)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Zg(n,nn(n).option,a,e._lastGraphicModel)}),this._elMap=Ce()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(Et);function Aw(r){var t=Se(q6,r)?q6[r]:Sy(r),e=new t({});return nn(e).type=r,e}function X6(r,t,e,a){var n=Aw(e);return t.add(n),a.set(r,n),nn(n).id=r,nn(n).isNew=!0,n}function Zg(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Zg(i,t,e,a)}),Wy(r,t,a),e.removeKey(nn(r).id))}function Z6(r,t,e,a){r.isGroup||O([["cursor",hn.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];Se(t,i)?r[i]=ke(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),O(Ze(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=Te(i)?i:null}}),Se(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Gce(r){return r=oe({},r),O(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(tO),function(t){delete r[t]}),r}function Uce(r,t,e){var a=Be(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Be(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Yce(r){r.registerComponentModel(Vce),r.registerComponentView(Hce),r.registerPreprocessor(function(t){var e=t.graphic;ce(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var $6=["x","y","radius","angle","single"],Wce=["cartesian2d","polar","singleAxis"];function qce(r){var t=r.get("coordinateSystem");return He(Wce,t)>=0}function Qo(r){return r+"Axis"}function Xce(r,t){var e=Ce(),a=[],n=Ce();r.eachComponent({mainType:"dataZoom",query:t},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(v,p){var g=e.get(v);g&&g[p]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,v){(e.get(h)||e.set(h,[]))[v]=!0})}return a}function p9(r){var t=r.ecModel,e={infoList:[],infoMap:Ce()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Qo(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var CS=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),$v=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=K6(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=K6(e);ze(this.option,e,!0),ze(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;O([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=Ce(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return O($6,function(n){var i=this.getReferringComponents(Qo(n),AX);if(i.specified){a=!0;var o=new CS;O(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var h=u[0];if(h){var v=new CS;if(v.add(h.componentIndex),e.set(c,v),i=!1,c==="x"||c==="y"){var p=h.getReferringComponents("grid",nr).models[0];p&&O(u,function(g){h.componentIndex!==g.componentIndex&&p===g.getReferringComponents("grid",nr).models[0]&&v.add(g.componentIndex)})}}}i&&O($6,function(u){if(i){var c=n.findComponents({mainType:Qo(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var h=new CS;h.add(c[0].componentIndex),e.set(u,h),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");O([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(Qo(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){O(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(Qo(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;O([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;O(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[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;a||(a=u)}return a},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})(We);function K6(r){var t={};return O(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Zce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})($v),uD=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t})(Et),$ce=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(uD),xc=O,Q6=Ia,Kce=(function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(qce(e)){var a=Qo(this._dimName),n=e.getReferringComponents(a,nr).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Le(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;xc(["start","end"],function(v,p){var g=t[v],y=t[v+"Value"];i[p]==="percent"?(g==null&&(g=o[p]),y=n.parse(dt(g,o,e))):(u=!0,y=y==null?e[p]:n.parse(y),g=dt(y,e,o)),l[p]=y==null||isNaN(y)?e[p]:y,s[p]=g==null||isNaN(g)?o[p]:g}),Q6(l),Q6(s);var c=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(v,p,g,y,x){var _=x?"Span":"ValueSpan";ru(0,v,g,"all",c["min"+_],c["max"+_]);for(var S=0;S<2;S++)p[S]=dt(v[S],g,y,!0),x&&(p[S]=n.parse(p[S]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Qce(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;xc(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var h=u.getStore(),v=he(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var g,y,x,_=0;_<c.length;_++){var S=h.get(v[_],p),w=!isNaN(S),C=S<o[0],D=S>o[1];if(w&&!C&&!D)return!0;w&&(x=!0),C&&(g=!0),D&&(y=!0)}return x&&g&&y})}else xc(c,function(p){if(i==="empty")l.setData(u=u.map(p,function(y){return s(y)?y:NaN}));else{var g={};g[p]=o,u.selectRange(g)}});xc(c,function(p){u.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;xc(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=dt(a[0]+o,a,[0,100],!0):i!=null&&(o=dt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=hC(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function Qce(r,t,e){var a=[1/0,-1/0];xc(e,function(o){mee(a,o.getData(),t)});var n=r.getAxisModel(),i=BP(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Jce={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Qo(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Kce(n,i,s,r),e.push(o.__dzAxisProxy))});var a=Ce();return O(e,function(n){O(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function efe(r){r.registerAction("dataZoom",function(t,e){var a=Xce(e,t);O(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var J6=!1;function cD(r){J6||(J6=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Jce),efe(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function tfe(r){r.registerComponentModel(Zce),r.registerComponentView($ce),cD(r)}var sn=(function(){function r(){}return r})(),g9={};function _c(r,t){g9[r]=t}function m9(r){return g9[r]}var rfe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;O(this.option.feature,function(a,n){var i=m9(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),ze(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t})(We);function afe(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=ir(a,i,n);Nl(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Ey(r,a,i,n)}function y9(r,t){var e=Ql(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new Je({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var nfe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),h=[];O(u,function(g,y){h.push(y)}),new eo(this._featureNames||[],h).add(v).update(v).remove(Oe(v,null)).execute(),this._featureNames=h;function v(g,y){var x=h[g],_=h[y],S=u[x],w=new ut(S,e,e.ecModel),C;if(i&&i.newTitle!=null&&i.featureName===x&&(S.title=i.newTitle),x&&!_){if(ife(x))C={onclick:w.option.onclick,featureName:x};else{var D=m9(x);if(!D)return;C=new D}c[x]=C}else if(C=c[_],!C)return;C.uid=sf("toolbox-feature"),C.model=w,C.ecModel=a,C.api=n;var M=C instanceof sn;if(!x&&_){M&&C.dispose&&C.dispose(a,n);return}if(!w.get("show")||M&&C.unusable){M&&C.remove&&C.remove(a,n);return}p(w,C,x),w.setIconStatus=function(E,N){var B=this.option,R=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[E]=N,R[E]&&(N==="emphasis"?Qi:Ji)(R[E])},C instanceof sn&&C.render&&C.render(w,a,n,i)}function p(g,y,x){var _=g.getModel("iconStyle"),S=g.getModel(["emphasis","iconStyle"]),w=y instanceof sn&&y.getIcons?y.getIcons():g.get("icon"),C=g.get("title")||{},D,M;_e(w)?(D={},D[x]=w):D=w,_e(C)?(M={},M[x]=C):M=C;var E=g.iconPaths={};O(D,function(N,B){var R=nf(N,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(_.getItemStyle());var I=R.ensureState("emphasis");I.style=S.getItemStyle();var P=new Qe({style:{text:M[B],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:RC({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},a)},ignore:!0});R.setTextContent(P),$l({el:R,componentModel:e,itemName:B,formatterParamsExtra:{title:M[B]}}),R.__title=M[B],R.on("mouseover",function(){var z=S.getItemStyle(),V=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:S.get("textFill")||z.fill||z.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),R.setTextConfig({position:S.get("textPosition")||V}),P.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",B])!=="emphasis"&&n.leaveEmphasis(this),P.hide()}),(g.get(["iconStatus",B])==="emphasis"?Qi:Ji)(R),o.add(R),R.on("click",be(y.onclick,y,a,n,B)),E[B]=R})}afe(o,e,n),o.add(y9(o.getBoundingRect(),e)),l||o.eachChild(function(g){var y=g.__title,x=g.ensureState("emphasis"),_=x.textConfig||(x.textConfig={}),S=g.getTextContent(),w=S&&S.ensureState("emphasis");if(w&&!Te(w)&&y){var C=w.style||(w.style={}),D=cd(y,Qe.makeFont(C)),M=g.x+o.x,E=g.y+o.y+s,N=!1;E+D.height>n.getHeight()&&(_.position="top",N=!0);var B=N?-5-D.height:s+10;M+D.width/2>n.getWidth()?(_.position=["100%",B],C.align="right"):M-D.width/2<0&&(_.position=[0,B],C.align="left")}})},t.prototype.updateView=function(e,a,n,i){O(this._features,function(o){o instanceof sn&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){O(this._features,function(n){n instanceof sn&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){O(this._features,function(n){n instanceof sn&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t})(Et);function ife(r){return r.indexOf("my")===0}var ofe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=qe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),p=v[0].indexOf("base64")>-1,g=o?decodeURIComponent(v[1]):v[1];p&&(g=window.atob(g));var y=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var x=g.length,_=new Uint8Array(x);x--;)_[x]=g.charCodeAt(x);var S=new Blob([_]);window.navigator.msSaveOrOpenBlob(S,y)}else{var w=document.createElement("iframe");document.body.appendChild(w);var C=w.contentWindow,D=C.document;D.open("image/svg+xml","replace"),D.write(g),D.close(),C.focus(),D.execCommand("SaveAs",!0,y),document.body.removeChild(w)}}else{var M=n.get("lang"),E='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(M&&M[0]||"")+'" /></body>',N=window.open();N.document.write(E),N.document.title=i}},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t})(sn),eR="__ec_magicType_stack__",sfe=[["line","bar"],["stack"]],lfe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return O(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(tR[n]){var s={series:[]},l=function(h){var v=h.subType,p=h.id,g=tR[n](v,p,h,i);g&&(Me(g,h.option),s.series.push(g));var y=h.coordinateSystem;if(y&&y.type==="cartesian2d"&&(n==="line"||n==="bar")){var x=y.getAxesByScale("ordinal")[0];if(x){var _=x.dim,S=_+"Axis",w=h.getReferringComponents(S,nr).models[0],C=w.componentIndex;s[S]=s[S]||[];for(var D=0;D<=C;D++)s[S][C]=s[S][C]||{};s[S][C].boundaryGap=n==="bar"}}};O(sfe,function(h){He(h,n)>=0&&O(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=ze({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t})(sn),tR={line:function(r,t,e,a){if(r==="bar")return ze({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return ze({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===eR;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ze({id:t,stack:n?"":eR},a.get(["option","stack"])||{},!0)}};Fn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var qy=new Array(60).join("-"),Xc=" ";function ufe(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function cfe(r){var t=[];return O(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(he(e.series,function(p){return p.name})),l=[n.model.getCategories()];O(e.series,function(p){var g=p.getRawData();l.push(p.getRawData().mapArray(g.mapDimension(o),function(y){return y}))});for(var u=[s.join(Xc)],c=0;c<l[0].length;c++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][c]);u.push(h.join(Xc))}t.push(u.join(`
  414. `))}),t.join(`
  415. `+qy+`
  416. `)}function ffe(r){return he(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Xc:"")+n.join(Xc))}),a.join(`
  417. `)}).join(`
  418. `+qy+`
  419. `)}function hfe(r){var t=ufe(r);return{value:lt([cfe(t.seriesGroupByCategoryAxis),ffe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
  420. `+qy+`
  421. `),meta:t.meta}}function Gm(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vfe(r){var t=r.slice(0,r.indexOf(`
  422. `));if(t.indexOf(Xc)>=0)return!0}var Dw=new RegExp("["+Xc+"]+","g");function dfe(r){for(var t=r.split(/\n+/g),e=Gm(t.shift()).split(Dw),a=[],n=he(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Gm(t[i]).split(Dw);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function pfe(r){for(var t=r.split(/\n+/g),e=Gm(t.shift()),a=[],n=0;n<t.length;n++){var i=Gm(t[n]);if(i){var o=i.split(Dw),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function gfe(r,t){var e=r.split(new RegExp(`
  423. *`+qy+`
  424. *`,"g")),a={series:[]};return O(e,function(n,i){if(vfe(n)){var o=dfe(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=pfe(n);a.series.push(o)}}),a}var mfe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.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")||"#fff";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"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),p=hfe(e);if(Te(h)){var g=h(a.getOption());_e(g)?u.innerHTML=g:kl(g)&&u.appendChild(g)}else{c.readOnly=i.get("readOnly");var y=c.style;y.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",y.color=i.get("textColor"),y.borderColor=i.get("textareaBorderColor"),y.backgroundColor=i.get("textareaColor"),c.value=p.value,u.appendChild(c)}var x=p.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:5px;left:0;right:0";var S="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),C=document.createElement("div");S+=";background-color:"+i.get("buttonColor"),S+=";color:"+i.get("buttonTextColor");var D=this;function M(){n.removeChild(o),D._dom=null}r2(w,"click",M),r2(C,"click",function(){if(v==null&&h!=null||v!=null&&h==null){M();return}var E;try{Te(v)?E=v(u,a.getOption()):E=gfe(c.value,x)}catch(N){throw M(),new Error("Data view format error "+N)}E&&a.dispatchAction({type:"changeDataView",newOption:E}),M()}),w.innerHTML=l[1],C.innerHTML=l[2],C.style.cssText=w.style.cssText=S,!i.get("readOnly")&&_.appendChild(C),_.appendChild(w),o.appendChild(s),o.appendChild(u),o.appendChild(_),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t})(sn);function yfe(r,t){return he(r,function(e,a){var n=t&&t[a];if(Ee(n)&&!ce(n)){var i=Ee(e)&&!ce(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=Me(e,n),o&&delete e.name,e}else return e})}Fn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];O(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(oe({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:yfe(a.data,i)})}}),t.mergeOption(Me({series:e},r.newOption))});var x9=O,_9=rt();function xfe(r,t){var e=fD(r);x9(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function _fe(r){var t=fD(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return x9(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function bfe(r){_9(r).snapshots=null}function Sfe(r){return fD(r).length}function fD(r){var t=_9(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var wfe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){bfe(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t})(sn);Fn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Cfe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],hD=(function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=rR(e,t);O(Afe,function(o,s){(!a||!a.include||He(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=AS[a.brushType](0,i,n);a.__rangeOffset={offset:oR[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){O(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&O(i.coordSyses,function(o){var s=AS[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){O(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=AS[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?oR[a.brushType](i.values,o.offset,Dfe(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return he(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:Mz(n),isTargetByCursor:Lz(n,t,a.coordSysModel),getLinearBrushOtherExtent:Ez(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&He(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=rR(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<aR.length;l++)if(aR[l](n,o))return o}return!0},r})();function Tw(r){return r[0]>r[1]&&r.reverse(),r}function rR(r,t){return fv(r,t,{includeMainTypes:Cfe})}var Afe={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=Ce(),o={},s={};!e&&!a&&!n||(O(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),O(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),O(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];O(u.getCartesians(),function(h,v){(He(e,h.getAxis("x").model)>=0||He(a,h.getAxis("y").model)>=0)&&c.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:nR.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){O(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:nR.geo})})}},aR=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],nR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(rs(r)),t}},AS={lineX:Oe(iR,0),lineY:Oe(iR,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Tw([n[0],i[0]]),Tw([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=he(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function iR(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Tw(he([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var oR={lineX:Oe(sR,0),lineY:Oe(sR,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return he(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function sR(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function Dfe(r,t){var e=lR(r),a=lR(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function lR(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Mw=O,Tfe=_X("toolbox-dataZoom_"),Mfe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new jA(n.getZr()),this._brushController.on("brush",be(this._onBrush,this)).mount()),Nfe(e,a,this,i,n),Lfe(e,a)},t.prototype.onclick=function(e,a,n){Efe[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new hD(vD(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[v],h,c)}}),xfe(i,n),this._dispatchZoomAction(n);function s(u,c,h){var v=c.getAxis(u),p=v.model,g=l(u,p,i),y=g.findRepresentativeAxisProxy(p).getMinMaxSpan();(y.minValueSpan!=null||y.maxValueSpan!=null)&&(h=ru(0,h.slice(),v.scale.getExtent(),0,y.minValueSpan,y.maxValueSpan)),g&&(n[g.id]={dataZoomId:g.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var g=p.getAxisModel(u,c.componentIndex);g&&(v=p)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];Mw(e,function(n,i){a.push(Le(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t})(sn),Efe={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(_fe(this.ecModel))}};function vD(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Lfe(r,t){r.setIconStatus("back",Sfe(t)>1?"emphasis":"normal")}function Nfe(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new hD(vD(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}G$("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=vD(a),o=fv(r,i);Mw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Mw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Tfe+u+h};v[c]=h,n.push(v)}return n});function Rfe(r){r.registerComponentModel(rfe),r.registerComponentView(nfe),_c("saveAsImage",ofe),_c("magicType",lfe),_c("dataView",mfe),_c("dataZoom",Mfe),_c("restore",wfe),Ye(tfe)}var Bfe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(We);function b9(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function S9(r){if(qe.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var w9=S9(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ife=S9(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function C9(r,t){if(!r)return t;t=FC(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function kfe(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var Ofe=C9(Ife,"transition"),dD=C9(w9,"transform"),Pfe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(qe.transform3dSupported?"will-change:transform;":"");function zfe(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function jfe(r,t,e){if(!_e(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Fl(t);var i=zfe(e),o=Math.max(Math.round(n)*1.5,6),s="",l=dD+":",u;He(["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 c=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+p+"px";var g=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+a+";"];return'<div style="'+y.join("")+'"></div>'}function Ffe(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=qe.transformSupported?","+dD+a:",left"+a+",top"+a),Ofe+":"+n}function uR(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!qe.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=qe.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+dD+":"+o+";":[["top",0],["left",0],[w9,o]]}function Vfe(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=ke(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),O(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function Hfe(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=BO(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),t&&n&&a.push(Ffe(n,e)),i&&a.push("background-color:"+i),O(["width","color","radius"],function(p){var g="border-"+p,y=FC(g),x=r.get(y);x!=null&&a.push(g+":"+x+(p==="color"?"":"px"))}),a.push(Vfe(c)),h!=null&&a.push("padding:"+Ql(h).join("px ")+"px"),a.join(";")+";"}function cR(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&XW(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Gfe=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,qe.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(_e(i)?document.querySelector(i):kl(i)?i:Te(i)&&i(t.getDom()));cR(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();tn(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=kfe(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Pfe+Hfe(t,!this._firstShow,this._longHide)+uR(i[0],i[1],!0)+("border-color:"+Fl(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(_e(i)&&a.get("trigger")==="item"&&!b9(a)&&(s=jfe(a,n,i)),_e(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ce(t)||(t=[t]);for(var l=0;l<t.length;l++)kl(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)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(cR(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=uR(a[0],a[1]);O(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",qe.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(be(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),Ufe=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),hR(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;Ee(t)&&pt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Qe({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:BO(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),O(["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})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=fR(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;hR(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Ho(i.borderWidth||0),s=fR(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(be(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ho(r){return Math.max(0,r)}function fR(r){var t=Ho(r.shadowBlur||0),e=Ho(r.shadowOffsetX||0),a=Ho(r.shadowOffsetY||0);return{left:Ho(t-e),right:Ho(t+e),top:Ho(t-a),bottom:Ho(t+a)}}function hR(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Yfe=new Je({shape:{x:-1,y:-1,width:2,height:2}}),Wfe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(qe.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=TX(n.get("renderMode"));this._tooltipContent=i==="richText"?new Ufe(a):new Gfe(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(qe.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?hf(this,"_updatePosition",50,"fixRate"):Pv(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");l9("itemTooltip",this._api,be(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||qe.node||!n.getDom())){var o=vR(i,n);this._ticket="";var s=i.dataByCoordSys,l=$fe(i,a,n);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 c=Yfe;c.x=i.x,c.y=i.y,c.update(),Be(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},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(e,a,n,i))return;var h=u9(i,a),v=h.point[0],p=h.point[1];v!=null&&p!=null&&this._tryShow({offsetX:v,offsetY:p,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(vR(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),h=Ph([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=Be(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;wl(n,function(c){if(Be(c).dataIndex!=null)return l=c,!0;if(Be(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=be(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Ph([a.tooltipOption],i),l=this._renderMode,u=[],c=_r("section",{blocks:[],noHeader:!0}),h=[],v=new cb;O(e,function(S){O(S.dataByAxis,function(w){var C=n.getComponent(w.axisDim+"Axis",w.axisIndex),D=w.value;if(!(!C||D==null)){var M=i9(D,C.axis,n,w.seriesDataIndices,w.valueLabelOpt),E=_r("section",{header:M,noHeader:!un(M),sortBlocks:!0,blocks:[]});c.blocks.push(E),O(w.seriesDataIndices,function(N){var B=n.getSeriesByIndex(N.seriesIndex),R=N.dataIndexInside,I=B.getDataParams(R);if(!(I.dataIndex<0)){I.axisDim=w.axisDim,I.axisIndex=w.axisIndex,I.axisType=w.axisType,I.axisId=w.axisId,I.axisValue=vA(C.axis,{value:D}),I.axisValueLabel=M,I.marker=v.makeTooltipMarker("item",Fl(I.color),l);var P=eL(B.formatTooltip(R,!0,null)),z=P.frag;if(z){var V=Ph([B],i).get("valueFormatter");E.blocks.push(V?oe({valueFormatter:V},z):z)}P.text&&h.push(P.text),u.push(I)}})}})}),c.blocks.reverse(),h.reverse();var p=a.position,g=s.get("order"),y=oL(c,v,l,g,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var x=l==="richText"?`
  425. `:"<br/>",_=h.join(x);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,_,u,Math.random()+"",o[0],o[1],p,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=Be(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,h=o.dataType,v=u.getData(h),p=this._renderMode,g=e.positionDefault,y=Ph([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),x=y.get("trigger");if(!(x!=null&&x!=="item")){var _=u.getDataParams(c,h),S=new cb;_.marker=S.makeTooltipMarker("item",Fl(_.color),p);var w=eL(u.formatTooltip(c,!1,h)),C=y.get("order"),D=y.get("valueFormatter"),M=w.frag,E=M?oL(D?oe({valueFormatter:D},M):M,S,p,C,i.get("useUTC"),y.get("textStyle")):w.text,N="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,E,_,N,e.offsetX,e.offsetY,e.position,e.target,S)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=Be(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(_e(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Le(l),l.content=Wr(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var p=e.positionDefault,g=Ph(h,this._tooltipModel,p?{position:p}:null),y=g.get("content"),x=Math.random()+"",_=new cb;this._showOrMove(g,function(){var S=Le(g.get("formatterParams")||{});this._showTooltipContent(g,y,S,x,e.offsetX,e.offsetY,e.position,a,_)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var p=a,g=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),y=g.color;if(v)if(_e(v)){var x=e.ecModel.get("useUTC"),_=ce(n)?n[0]:n,S=_&&_.axisType&&_.axisType.indexOf("time")>=0;p=v,S&&(p=md(_.axisValue,p,x)),p=VC(p,n,!0)}else if(Te(v)){var w=be(function(C,D){C===this._ticket&&(h.setContent(D,c,e,y,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=i,p=v(n,i,w)}else p=v;h.setContent(p,c,e,y,l),h.show(e,y),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||ce(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ce(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var h=o.getSize(),v=e.get("align"),p=e.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),Te(a)&&(a=a([n,i],s,o.el,g,{viewSize:[u,c],contentSize:h.slice()})),ce(a))n=xe(a[0],u),i=xe(a[1],c);else if(Ee(a)){var y=a;y.width=h[0],y.height=h[1];var x=ir(y,{width:u,height:c});n=x.x,i=x.y,v=null,p=null}else if(_e(a)&&l){var _=Zfe(a,g,h,e.get("borderWidth"));n=_[0],i=_[1]}else{var _=qfe(n,i,o,u,c,v?null:20,p?null:20);n=_[0],i=_[1]}if(v&&(n-=dR(v)?h[0]/2:v==="right"?h[0]:0),p&&(i-=dR(p)?h[1]/2:p==="bottom"?h[1]:0),b9(e)){var _=Xfe(n,i,o,u,c);n=_[0],i=_[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&O(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&O(u,function(v,p){var g=h[p]||{},y=v.seriesDataIndices||[],x=g.seriesDataIndices||[];o=o&&v.value===g.value&&v.axisType===g.axisType&&v.axisId===g.axisId&&y.length===x.length,o&&O(y,function(_,S){var w=x[S];o=o&&_.seriesIndex===w.seriesIndex&&_.dataIndex===w.dataIndex}),i&&O(v.seriesDataIndices,function(_){var S=_.seriesIndex,w=a[S],C=i[S];w&&C&&C.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){qe.node||!a.getDom()||(Pv(this,"_updatePosition"),this._tooltipContent.dispose(),ww("itemTooltip",a))},t.type="tooltip",t})(Et);function Ph(r,t,e){var a=t.ecModel,n;e?(n=new ut(e,a,a),n=new ut(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ut&&(o=o.get("tooltip",!0)),_e(o)&&(o={formatter:o}),o&&(n=new ut(o,n,a)))}return n}function vR(r,t){return r.dispatchAction||be(t.dispatchAction,t)}function qfe(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function Xfe(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Zfe(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function dR(r){return r==="center"||r==="middle"}function $fe(r,t,e){var a=mC(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=fd(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Be(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function Kfe(r){Ye(Md),r.registerComponentModel(Bfe),r.registerComponentView(Wfe),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qt)}var Qfe=["rect","polygon","keep","clear"];function Jfe(r,t){var e=bt(r?r.brush:[]);if(e.length){var a=[];O(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;ce(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),ehe(s),t&&!s.length&&s.push.apply(s,Qfe)}}function ehe(r){var t={};O(r,function(e){t[e]=1}),r.length=0,O(t,function(e,a){r.push(a)})}var pR=O;function gR(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Ew(r,t,e){var a={};return pR(t,function(i){var o=a[i]=n();pR(r[i],function(s,l){if(yr.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new yr(u),l==="opacity"&&(u=Le(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new yr(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function A9(r,t,e){var a;O(e,function(n){t.hasOwnProperty(n)&&gR(t[n])&&(a=!0)}),a&&O(e,function(n){t.hasOwnProperty(n)&&gR(t[n])?r[n]=Le(t[n]):delete r[n]})}function the(r,t,e,a,n,i){var o={};O(r,function(h){var v=yr.prepareVisualTypes(t[h]);o[h]=v});var s;function l(h){return KC(e,s,h)}function u(h,v){GO(e,s,h,v)}e.each(c);function c(h,v){s=h;var p=e.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var g=a.call(n,h),y=t[g],x=o[g],_=0,S=x.length;_<S;_++){var w=x[_];y[w]&&y[w].applyVisual(h,l,u)}}}function rhe(r,t,e,a){var n={};return O(r,function(i){var o=yr.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(D){return KC(s,h,D)}function c(D,M){GO(s,h,D,M)}for(var h,v=s.getStore();(h=o.next())!=null;){var p=s.getRawDataItem(h);if(!(p&&p.visualMap===!1))for(var g=a!=null?v.get(l,h):h,y=e(g),x=t[y],_=n[y],S=0,w=_.length;S<w;S++){var C=_[S];x[C]&&x[C].applyVisual(g,u,c)}}}}}function ahe(r){var t=r.brushType,e={point:function(a){return mR[t].point(a,e,r)},rect:function(a){return mR[t].rect(a,e,r)}};return e}var mR={lineX:yR(0),lineY:yR(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&pl(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(pl(a,n,i)||pl(a,n+o,i)||pl(a,n,i+s)||pl(a,n+o,i+s)||Ve.create(r).contain(l[0],l[1])||Zh(n,i,n+o,i,a)||Zh(n,i,n,i+s,a)||Zh(n+o,i,n+o,i+s,a)||Zh(n,i+s,n+o,i+s,a))return!0}}};function yR(r){var t=["x","y"],e=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return zh(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),zh(s[0],o)||zh(s[1],o)||zh(o[0],s)||zh(o[1],s)}}}}function zh(r,t){return t[0]<=r&&r<=t[1]}var xR=["inBrush","outOfBrush"],DS="__ecBrushSelect",Lw="__ecInBrushSelectEvent";function D9(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new hD(t.option,r);e.setInputRanges(t.areas,r)})}function nhe(r,t,e){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),D9(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Le(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,h=[],v=[],p=[],g=!1;s||(n=u.throttleType,i=u.throttleDelay);var y=he(o.areas,function(D){var M=lhe[D.brushType],E=Me({boundingRect:M?M(D):void 0},D);return E.selectors=ahe(E),E}),x=Ew(o.option,xR,function(D){D.mappingMethod="fixed"});ce(c)&&O(c,function(D){h[D]=1});function _(D){return c==="all"||!!h[D]}function S(D){return!!D.length}r.eachSeries(function(D,M){var E=p[M]=[];D.subType==="parallel"?w(D,M):C(D,M,E)});function w(D,M){var E=D.coordinateSystem;g=g||E.hasAxisBrushed(),_(M)&&E.eachActiveState(D.getData(),function(N,B){N==="active"&&(v[B]=1)})}function C(D,M,E){if(!(!D.brushSelector||she(o,M))&&(O(y,function(B){o.brushTargetManager.controlSeries(B,D,r)&&E.push(B),g=g||S(E)}),_(M)&&S(E))){var N=D.getData();N.each(function(B){_R(D,E,N,B)&&(v[B]=1)})}}r.eachSeries(function(D,M){var E={seriesId:D.id,seriesIndex:M,seriesName:D.name,dataIndex:[]};l.selected.push(E);var N=p[M],B=D.getData(),R=_(M)?function(I){return v[I]?(E.dataIndex.push(B.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return _R(D,N,B,I)?(E.dataIndex.push(B.getRawIndex(I)),"inBrush"):"outOfBrush"};(_(M)?g:S(N))&&the(xR,x,B,R)})}),ihe(t,n,i,a,e)}function ihe(r,t,e,a,n){if(n){var i=r.getZr();if(!i[Lw]){i[DS]||(i[DS]=ohe);var o=hf(i,DS,e,t);o(r,a)}}}function ohe(r,t){if(!r.isDisposed()){var e=r.getZr();e[Lw]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[Lw]=!1}}function _R(r,t,e,a){for(var n=0,i=t.length;n<i;n++){var o=t[n];if(r.brushSelector(a,e,o.selectors,o))return!0}}function she(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(ce(e)?He(e,t)<0:t!==e)}var lhe={rect:function(r){return bR(r.range)},polygon:function(r){for(var t,e=r.range,a=0,n=e.length;a<n;a++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[a];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&&bR(t)}};function bR(r){return new Ve(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var uhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new jA(a.getZr())).on("brush",be(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){D9(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Le(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Le(n),$from:a})},t.type="brush",t})(Et),che="#ddd",fhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&A9(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:che},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=he(e,function(a){return SR(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=SR(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t})(We);function SR(r,t){return ze({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ut(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var hhe=["rect","polygon","lineX","lineY","keep","clear"],vhe=(function(r){Q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,O(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return O(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:hhe.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:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t})(sn);function dhe(r){r.registerComponentView(uhe),r.registerComponentModel(fhe),r.registerPreprocessor(Jfe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,nhe),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qt),_c("brush",vhe)}var phe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(We),ghe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ke(e.get("textBaseline"),e.get("textVerticalAlign")),c=new Qe({style:At(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),v=e.get("subtext"),p=new Qe({style:At(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),y=e.get("sublink"),x=e.get("triggerEvent",!0);c.silent=!g&&!x,p.silent=!y&&!x,g&&c.on("click",function(){mm(g,"_"+e.get("target"))}),y&&p.on("click",function(){mm(y,"_"+e.get("subtarget"))}),Be(c).eventData=Be(p).eventData=x?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),v&&i.add(p);var _=i.getBoundingRect(),S=e.getBoxLayoutParams();S.width=_.width,S.height=_.height;var w=ir(S,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var C={align:l,verticalAlign:u};c.setStyle(C),p.setStyle(C),_=i.getBoundingRect();var D=w.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var E=new Je({shape:{x:_.x-D[3],y:_.y-D[0],width:_.width+D[1]+D[3],height:_.height+D[0]+D[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});i.add(E)}},t.type="title",t})(Et);function mhe(r){r.registerComponentModel(phe),r.registerComponentView(ghe)}var wR=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],O(a,function(u,c){var h=fr(Qc(u),""),v;Ee(u)?(v=Le(u),v.value=c):v=c,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"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:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t})(We),T9=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=gs(wR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t})(wR);Xt(T9,Ny.prototype);var yhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t})(Et),xhe=(function(r){Q(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||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})(mn),TS=Math.PI,CR=rt(),_he=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return _r("nameValue",{noName:!0,value:c})},O(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=She(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":_e(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:TS/2},h=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),p=v.get("show",!0),g=p?v.get("itemSize"):0,y=p?v.get("itemGap"):0,x=g+y,_=e.get(["label","rotate"])||0;_=_*TS/180;var S,w,C,D=v.get("position",!0),M=p&&v.get("showPlayBtn",!0),E=p&&v.get("showPrevBtn",!0),N=p&&v.get("showNextBtn",!0),B=0,R=h;D==="left"||D==="bottom"?(M&&(S=[0,0],B+=x),E&&(w=[B,0],B+=x),N&&(C=[R-g,0],R-=x)):(M&&(S=[R-g,0],R-=x),E&&(w=[0,0],B+=x),N&&(C=[R-g,0],R-=x));var I=[B,R];return e.get("inverse")&&I.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:c[i],labelRotation:_,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:S,prevBtnPosition:w,nextBtnPosition:C,axisExtent:I,controlSize:g,controlGap:y}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Sa(),l=o.x,u=o.y+o.height;On(s,s,[-l,-u]),ds(s,s,-TS/2),On(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),h=S(n.getBoundingRect()),v=S(i.getBoundingRect()),p=[n.x,n.y],g=[i.x,i.y];g[0]=p[0]=c[0][0];var y=e.labelPosOpt;if(y==null||_e(y)){var x=y==="+"?0:1;w(p,h,c,1,x),w(g,v,c,1,1-x)}else{var x=y>=0?0:1;w(p,h,c,1,x),g[1]=p[1]+y}n.setPosition(p),i.setPosition(g),n.rotation=i.rotation=e.rotation,_(n),_(i);function _(C){C.originX=c[0][0]-C.x,C.originY=c[1][0]-C.y}function S(C){return[[C.x,C.x+C.width],[C.y,C.y+C.height]]}function w(C,D,M,E,N){C[E]+=M[E][N]-D[E][N]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=bhe(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new xhe("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new Re;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new hr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:oe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new hr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Me({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],O(l,function(u){var c=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),p=h.getModel(["emphasis","itemStyle"]),g=h.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:be(o._changeTimeline,o,u.value)},x=AR(h,v,a,y);x.ensureState("emphasis").style=p.getItemStyle(),x.ensureState("progress").style=g.getItemStyle(),ts(x);var _=Be(x);h.get("tooltip")?(_.dataIndex=u.value,_.dataModel=i):_.dataIndex=_.dataModel=null,o._tickSymbols.push(x)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],O(u,function(c){var h=c.tickValue,v=l.getItemModel(h),p=v.getModel("label"),g=v.getModel(["emphasis","label"]),y=v.getModel(["progress","label"]),x=n.dataToCoord(c.tickValue),_=new Qe({x,y:0,rotation:e.labelRotation-e.rotation,onclick:be(o._changeTimeline,o,h),silent:!1,style:At(p,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});_.ensureState("emphasis").style=At(g),_.ensureState("progress").style=At(y),a.add(_),ts(_),CR(_).dataIndex=h,o._tickLabels.push(_)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),h=i.get("inverse",!0);v(e.nextBtnPosition,"next",be(this._changeTimeline,this,h?"-":"+")),v(e.prevBtnPosition,"prev",be(this._changeTimeline,this,h?"+":"-")),v(e.playPosition,c?"stop":"play",be(this._handlePlayClick,this,!c),!0);function v(p,g,y,x){if(p){var _=Pn(ke(i.get(["controlStyle",g+"BtnSize"]),o),o),S=[0,-_/2,_,_],w=whe(i,g+"Icon",S,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:x?-s:0,rectHover:!0,style:l,onclick:y});w.ensureState("emphasis").style=u,a.add(w),ts(w)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=be(u._handlePointerDrag,u),h.ondragend=be(u._handlePointerDragend,u),DR(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){DR(h,u._progressLine,s,n,i)}};this._currentPointer=AR(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Ia(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return In(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<n&&(n=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",CR(n[i]).dataIndex<=e)},t.type="timeline.slider",t})(yhe);function bhe(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new jy({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new fA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ro}}function She(r,t){return ir(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function whe(r,t,e,a){var n=a.style,i=nf(r.get(["controlStyle",t]),a||{},new Ve(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function AR(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=Jt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=ze({rectHover:!0,z2:100},a,!0);var u=vf(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=Jl(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var h=r.get("symbolRotate");return a.rotation=(h||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function DR(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function Che(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Me({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function Ahe(r){var t=r&&r.timeline;ce(t)||(t=t?[t]:[]),O(t,function(e){e&&Dhe(e)})}function Dhe(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),TR(r),yl(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});yl(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!yl(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}O(r.data||[],function(n){Ee(n)&&!ce(n)&&(!yl(n,"value")&&yl(n,"name")&&(n.value=n.name),TR(n))})}function TR(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};O(a,function(o,s){!i[s]&&!yl(n,s)&&(n[s]=o)}),e.label&&!yl(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function yl(r,t){return r.hasOwnProperty(t)}function The(r){r.registerComponentModel(T9),r.registerComponentView(_he),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Che(r),r.registerPreprocessor(Ahe)}function pD(r,t){if(!r)return!1;for(var e=ce(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function Vp(r){Ol(r,"label",["show"])}var Hp=rt(),no=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(qe.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Hp(s)[o];if(!l||!l.data){Hp(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Vp(l),O(l.data,function(c){c instanceof Array?(Vp(c[0]),Vp(c[1])):Vp(c)}),u=this.createMarkerModelFromSeries(l,this,a),oe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Hp(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return _r("section",{header:this.name,blocks:[_r("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var n=Ny.prototype.getDataParams.call(this,e,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,a){return Hp(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(We);Xt(no,Ny.prototype);var Mhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},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})(no);function Nw(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Ehe(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Gp(r,t,e,a,n,i){var o=[],s=to(t,a),l=s?t.getCalculationInfo("stackResultDimension"):a,u=gD(t,l,r),c=t.indicesOfNearest(l,u)[0];o[n]=t.get(e,c),o[i]=t.get(l,c);var h=t.get(a,c),v=En(t.get(a,c));return v=Math.min(v,20),v>=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var MS={min:Oe(Gp,"min"),max:Oe(Gp,"max"),average:Oe(Gp,"average"),median:Oe(Gp,"median")};function Kv(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!Ehe(t)&&!ce(t.coord)&&ce(n)){var i=M9(t,e,a,r);if(t=Le(t),t.type&&MS[t.type]&&i.baseAxis&&i.valueAxis){var o=He(n,i.baseAxis.dim),s=He(n,i.valueAxis.dim),l=MS[t.type](e,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||!ce(n))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)MS[u[c]]&&(u[c]=gD(e,e.mapDimension(n[c]),u[c]));return t}}function M9(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(Lhe(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function Lhe(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Qv(r,t){return r&&r.containData&&t.coord&&!Nw(t)?r.containData(t.coord):!0}function Nhe(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Nw(t)&&!Nw(e)?r.containZone(t.coord,e.coord):!0}function E9(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return ns(o,t[i])}:function(e,a,n,i){return ns(e.value,t[i])}}function gD(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var ES=rt(),mD=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=Ce()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){ES(s).keep=!1}),a.eachSeries(function(s){var l=no.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!ES(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){ES(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;O(e,function(i){var o=no.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?_k(l):CC(l))})}})},t.type="marker",t})(Et);function MR(r,t,e){var a=t.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=xe(i.get("x"),e.getWidth()),l=xe(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),c=r.get(a.dimensions[1],n);o=a.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var Rhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=no.getMarkerModelFromSeries(i,"markPoint");o&&(MR(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new bd),h=Bhe(o,e,a);a.setData(h),MR(a.getData(),e,i),h.each(function(v){var p=h.getItemModel(v),g=p.getShallow("symbol"),y=p.getShallow("symbolSize"),x=p.getShallow("symbolRotate"),_=p.getShallow("symbolOffset"),S=p.getShallow("symbolKeepAspect");if(Te(g)||Te(y)||Te(x)||Te(_)){var w=a.getRawValue(v),C=a.getDataParams(v);Te(g)&&(g=g(w,C)),Te(y)&&(y=y(w,C)),Te(x)&&(x=x(w,C)),Te(_)&&(_=_(w,C))}var D=p.getModel("itemStyle").getItemStyle(),M=yd(l,"color");D.fill||(D.fill=M),h.setItemVisual(v,{symbol:g,symbolSize:y,symbolRotate:x,symbolOffset:_,symbolKeepAspect:S,style:D})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(v){v.traverse(function(p){Be(p).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t})(mD);function Bhe(r,t,e){var a;r?a=he(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return oe(oe({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new qr(a,e),i=he(e.get("data"),Oe(Kv,t));r&&(i=lt(i,Oe(Qv,r)));var o=E9(!!r,a);return n.initData(i,null,o),n}function Ihe(r){r.registerComponentModel(Mhe),r.registerComponentView(Rhe),r.registerPreprocessor(function(t){pD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var khe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},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})(no),Up=rt(),Ohe=function(r,t,e,a){var n=r.getData(),i;if(ce(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=gr(a.yAxis,a.xAxis);else{var u=M9(a,n,t,r);s=u.valueAxis;var c=uA(n,u.valueDataDim);l=gD(n,c,o)}var h=s.dim==="x"?0:1,v=1-h,p=Le(a),g={coord:[]};p.type=null,p.coord=[],p.coord[v]=-1/0,g.coord[v]=1/0;var y=e.get("precision");y>=0&&it(l)&&(l=+l.toFixed(Math.min(y,20))),p.coord[h]=g.coord[h]=l,i=[p,g,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var x=[Kv(r,i[0]),Kv(r,i[1]),oe({},i[2])];return x[2].type=x[2].type||null,ze(x[2],x[0]),ze(x[2],x[1]),x};function Um(r){return!isNaN(r)&&!isFinite(r)}function ER(r,t,e,a){var n=1-r,i=a.dimensions[r];return Um(t[n])&&Um(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function Phe(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(ER(1,e,a,r)||ER(0,e,a,r)))return!0}return Qv(r,t[0])&&Qv(r,t[1])}function LS(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=xe(o.get("x"),n.getWidth()),u=xe(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=i.dimensions,h=r.get(c[0],t),v=r.get(c[1],t);s=i.dataToPoint([h,v])}if(eu(i,"cartesian2d")){var p=i.getAxis("x"),g=i.getAxis("y"),c=i.dimensions;Um(r.get(c[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[e?0:1]):Um(r.get(c[1],t))&&(s[1]=g.toGlobalCoord(g.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var zhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=no.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Up(o).from,u=Up(o).to;l.each(function(c){LS(l,c,!0,i,n),LS(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new zA);this.group.add(c.group);var h=jhe(o,e,a),v=h.from,p=h.to,g=h.line;Up(a).from=v,Up(a).to=p,a.setData(g);var y=a.get("symbol"),x=a.get("symbolSize"),_=a.get("symbolRotate"),S=a.get("symbolOffset");ce(y)||(y=[y,y]),ce(x)||(x=[x,x]),ce(_)||(_=[_,_]),ce(S)||(S=[S,S]),h.from.each(function(C){w(v,C,!0),w(p,C,!1)}),g.each(function(C){var D=g.getItemModel(C).getModel("lineStyle").getLineStyle();g.setItemLayout(C,[v.getItemLayout(C),p.getItemLayout(C)]),D.stroke==null&&(D.stroke=v.getItemVisual(C,"style").fill),g.setItemVisual(C,{fromSymbolKeepAspect:v.getItemVisual(C,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(C,"symbolOffset"),fromSymbolRotate:v.getItemVisual(C,"symbolRotate"),fromSymbolSize:v.getItemVisual(C,"symbolSize"),fromSymbol:v.getItemVisual(C,"symbol"),toSymbolKeepAspect:p.getItemVisual(C,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(C,"symbolOffset"),toSymbolRotate:p.getItemVisual(C,"symbolRotate"),toSymbolSize:p.getItemVisual(C,"symbolSize"),toSymbol:p.getItemVisual(C,"symbol"),style:D})}),c.updateData(g),h.line.eachItemGraphicEl(function(C){Be(C).dataModel=a,C.traverse(function(D){Be(D).dataModel=a})});function w(C,D,M){var E=C.getItemModel(D);LS(C,D,M,e,i);var N=E.getModel("itemStyle").getItemStyle();N.fill==null&&(N.fill=yd(l,"color")),C.setItemVisual(D,{symbolKeepAspect:E.get("symbolKeepAspect"),symbolOffset:ke(E.get("symbolOffset",!0),S[M?0:1]),symbolRotate:ke(E.get("symbolRotate",!0),_[M?0:1]),symbolSize:ke(E.get("symbolSize"),x[M?0:1]),symbol:ke(E.get("symbol",!0),y[M?0:1]),style:N})}this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t})(mD);function jhe(r,t,e){var a;r?a=he(r&&r.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return oe(oe({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new qr(a,e),i=new qr(a,e),o=new qr([],e),s=he(e.get("data"),Oe(Ohe,t,r,e));r&&(s=lt(s,Oe(Phe,r)));var l=E9(!!r,a);return n.initData(he(s,function(u){return u[0]}),null,l),i.initData(he(s,function(u){return u[1]}),null,l),o.initData(he(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function Fhe(r){r.registerComponentModel(khe),r.registerComponentView(zhe),r.registerPreprocessor(function(t){pD(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Vhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},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})(no),Yp=rt(),Hhe=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Kv(r,n),s=Kv(r,i),l=o.coord,u=s.coord;l[0]=gr(l[0],-1/0),l[1]=gr(l[1],-1/0),u[0]=gr(u[0],1/0),u[1]=gr(u[1],1/0);var c=oy([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Ym(r){return!isNaN(r)&&!isFinite(r)}function LR(r,t,e,a){var n=1-r;return Ym(t[n])&&Ym(e[n])}function Ghe(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return eu(r,"cartesian2d")?e&&a&&(LR(1,e,a)||LR(0,e,a))?!0:Nhe(r,n,i):Qv(r,n)||Qv(r,i)}function NR(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=xe(o.get(e[0]),n.getWidth()),u=xe(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],t),h=r.getValues(["x1","y1"],t),v=i.clampData(c),p=i.clampData(h),g=[];e[0]==="x0"?g[0]=v[0]>p[0]?h[0]:c[0]:g[0]=v[0]>p[0]?c[0]:h[0],e[1]==="y0"?g[1]=v[1]>p[1]?h[1]:c[1]:g[1]=v[1]>p[1]?c[1]:h[1],s=a.getMarkerPosition(g,e,!0)}else{var y=r.get(e[0],t),x=r.get(e[1],t),_=[y,x];i.clampData&&i.clampData(_,_),s=i.dataToPoint(_,!0)}if(eu(i,"cartesian2d")){var S=i.getAxis("x"),w=i.getAxis("y"),y=r.get(e[0],t),x=r.get(e[1],t);Ym(y)?s[0]=S.toGlobalCoord(S.getExtent()[e[0]==="x0"?0:1]):Ym(x)&&(s[1]=w.toGlobalCoord(w.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var RR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Uhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=no.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=he(RR,function(h){return NR(s,l,h,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Re});this.group.add(c.group),this.markKeep(c);var h=Yhe(o,e,a);a.setData(h),h.each(function(v){var p=he(RR,function(N){return NR(h,v,N,e,i)}),g=o.getAxis("x").scale,y=o.getAxis("y").scale,x=g.getExtent(),_=y.getExtent(),S=[g.parse(h.get("x0",v)),g.parse(h.get("x1",v))],w=[y.parse(h.get("y0",v)),y.parse(h.get("y1",v))];Ia(S),Ia(w);var C=!(x[0]>S[1]||x[1]<S[0]||_[0]>w[1]||_[1]<w[0]),D=!C;h.setItemLayout(v,{points:p,allClipped:D});var M=h.getItemModel(v).getModel("itemStyle").getItemStyle(),E=yd(l,"color");M.fill||(M.fill=E,_e(M.fill)&&(M.fill=Tv(M.fill,.4))),M.stroke||(M.stroke=E),h.setItemVisual(v,"style",M)}),h.diff(Yp(c).data).add(function(v){var p=h.getItemLayout(v);if(!p.allClipped){var g=new $r({shape:{points:p.points}});h.setItemGraphicEl(v,g),c.group.add(g)}}).update(function(v,p){var g=Yp(c).data.getItemGraphicEl(p),y=h.getItemLayout(v);y.allClipped?g&&c.group.remove(g):(g?st(g,{shape:{points:y.points}},a,v):g=new $r({shape:{points:y.points}}),h.setItemGraphicEl(v,g),c.group.add(g))}).remove(function(v){var p=Yp(c).data.getItemGraphicEl(v);c.group.remove(p)}).execute(),h.eachItemGraphicEl(function(v,p){var g=h.getItemModel(p),y=h.getItemVisual(p,"style");v.useStyle(h.getItemVisual(p,"style")),Or(v,xr(g),{labelFetcher:a,labelDataIndex:p,defaultText:h.getName(p)||"",inheritColor:_e(y.fill)?Tv(y.fill,1):"#000"}),kr(v,g),Vt(v,null,null,g.get(["emphasis","disabled"])),Be(v).dataModel=a}),Yp(c).data=h,c.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t})(mD);function Yhe(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=he(r&&r.dimensions,function(u){var c=t.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return oe(oe({},h),{name:u,ordinalMeta:null})});n=he(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new qr(n,e)}else n=[{name:"value",type:"float"}],a=new qr(n,e);var s=he(e.get("data"),Oe(Hhe,t,r,e));r&&(s=lt(s,Oe(Ghe,r)));var l=r?function(u,c,h,v){var p=u.coord[Math.floor(v/2)][v%2];return ns(p,n[v])}:function(u,c,h,v){return ns(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}function Whe(r){r.registerComponentModel(Vhe),r.registerComponentView(Uhe),r.registerPreprocessor(function(t){pD(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var qhe=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Rw=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),ce(a)&&O(a,function(i,o){_e(i)&&(i={type:i}),a[o]=ze(i,qhe(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(v)),v.length?a=a.concat(v):c=!0}else c=!0;c&&gC(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=Ce(),s=he(i,function(l){return(_e(l)||it(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ut(l,this,this.ecModel))},this);this._data=lt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;O(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;O(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;O(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&He(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(We),fc=Oe,Bw=O,Wp=Re,L9=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Wp),this.group.add(this._selectorGroup=new Wp),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),p=ir(c,h,v),g=this.layoutInner(e,o,p,i,l,u),y=ir(Me({width:g.width,height:g.height},c),h,v);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=y9(g,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=Ce(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&v.push(p.id)}),Bw(a.getData(),function(p,g){var y=p.get("name");if(!this.newlineDisabled&&(y===""||y===`
  426. `)){var x=new Wp;x.newline=!0,u.add(x);return}var _=n.getSeriesByName(y)[0];if(!c.get(y))if(_){var S=_.getData(),w=S.getVisual("legendLineStyle")||{},C=S.getVisual("legendIcon"),D=S.getVisual("style"),M=this._createItem(_,y,g,p,a,e,w,D,C,h,i);M.on("click",fc(BR,y,null,i,v)).on("mouseover",fc(Iw,_.name,null,i,v)).on("mouseout",fc(kw,_.name,null,i,v)),n.ssr&&M.eachChild(function(E){var N=Be(E);N.seriesIndex=_.seriesIndex,N.dataIndex=g,N.ssrType="legend"}),c.set(y,!0)}else n.eachRawSeries(function(E){if(!c.get(y)&&E.legendVisualProvider){var N=E.legendVisualProvider;if(!N.containName(y))return;var B=N.indexOfName(y),R=N.getItemVisual(B,"style"),I=N.getItemVisual(B,"legendIcon"),P=ia(R.fill);P&&P[3]===0&&(P[3]=.2,R=oe(oe({},R),{fill:Bn(P,"rgba")}));var z=this._createItem(E,y,g,p,a,e,{},R,I,h,i);z.on("click",fc(BR,null,y,i,v)).on("mouseover",fc(Iw,null,y,i,v)).on("mouseout",fc(kw,null,y,i,v)),n.ssr&&z.eachChild(function(V){var G=Be(V);G.seriesIndex=E.seriesIndex,G.dataIndex=g,G.ssrType="legend"}),c.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();Bw(e,function(u){var c=u.type,h=new Qe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),p=a.getModel(["emphasis","selectorLabel"]);Or(h,{normal:v,emphasis:p},{defaultText:u.title}),ts(h)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,h,v){var p=e.visualDrawType,g=o.get("itemWidth"),y=o.get("itemHeight"),x=o.isSelected(a),_=i.get("symbolRotate"),S=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var C=Xhe(c,i,l,u,p,x,v),D=new Wp,M=i.getModel("textStyle");if(Te(e.getLegendIcon)&&(!w||w==="inherit"))D.add(e.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:_,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:S}));else{var E=w==="inherit"&&e.getData().getVisual("symbol")?_==="inherit"?e.getData().getVisual("symbolRotate"):_:0;D.add(Zhe({itemWidth:g,itemHeight:y,icon:c,iconRotate:E,itemStyle:C.itemStyle,symbolKeepAspect:S}))}var N=s==="left"?g+5:-5,B=s,R=o.get("formatter"),I=a;_e(R)&&R?I=R.replace("{name}",a??""):Te(R)&&(I=R(a));var P=x?M.getTextColor():i.get("inactiveColor");D.add(new Qe({style:At(M,{text:I,x:N,y:y/2,fill:P,align:B,verticalAlign:"middle"},{inheritColor:P})}));var z=new Je({shape:D.getBoundingRect(),style:{fill:"transparent"}}),V=i.getModel("tooltip");return V.get("show")&&$l({el:z,componentModel:o,itemName:a,itemTooltipOption:V.option}),D.add(z),D.eachChild(function(G){G.silent=!0}),z.silent=!h,this.getContentGroup().add(D),ts(D),D.__legendDataIndex=n,D},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Nl(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Nl("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),p=[-v.x,-v.y],g=e.get("selectorButtonGap",!0),y=e.getOrient().index,x=y===0?"width":"height",_=y===0?"height":"width",S=y===0?"y":"x";s==="end"?p[y]+=c[x]+g:h[y]+=v[x]+g,p[1-y]+=c[_]/2-v[_]/2,u.x=p[0],u.y=p[1],l.x=h[0],l.y=h[1];var w={x:0,y:0};return w[x]=c[x]+g+v[x],w[_]=Math.max(c[_],v[_]),w[S]=Math.min(0,v[S]+p[1-y]),w}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Et);function Xhe(r,t,e,a,n,i,o){function s(x,_){x.lineWidth==="auto"&&(x.lineWidth=_.lineWidth>0?2:0),Bw(x,function(S,w){x[w]==="inherit"&&(x[w]=_[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:Gc(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),p=v.getLineStyle();if(s(p,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),p.stroke==="auto"&&(p.stroke=a.fill),!i){var g=t.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?a.lineWidth>0&&y?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=v.get("inactiveColor"),p.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function Zhe(r){var t=r.icon||"roundRect",e=Jt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function BR(r,t,e,a){kw(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Iw(r,t,e,a)}function N9(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function Iw(r,t,e,a){N9(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function kw(r,t,e,a){N9(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function $he(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function jh(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),IR(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){O(n,function(l,u){s[l?"select":"unSelect"](u)}),IR(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function IR(r,t){var e=t||{};return O(r.getData(),function(a){var n=a.get("name");if(!(n===`
  427. `||n==="")){var i=r.isSelected(n);Se(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function Khe(r){r.registerAction("legendToggleSelect","legendselectchanged",Oe(jh,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Oe(jh,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Oe(jh,"inverseSelect")),r.registerAction("legendSelect","legendselected",Oe(jh,"select")),r.registerAction("legendUnSelect","legendunselected",Oe(jh,"unSelect"))}function R9(r){r.registerComponentModel(Rw),r.registerComponentView(L9),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,$he),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Khe(r)}var Qhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=lf(e);r.prototype.init.call(this,e,a,n),kR(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),kR(this,this.option,e)},t.type="legend.scroll",t.defaultOption=gs(Rw.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(Rw);function kR(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,us(t,e,{type:"box",ignoreSize:!!n})}var OR=Re,NS=["width","height"],RS=["x","y"],Jhe=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new OR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new OR)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,h=a.get("pageIconSize",!0),v=ce(h)?h:[h,h];g("pagePrev",0);var p=a.getModel("pageTextStyle");c.add(new Qe({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(y,x){var _=y+"DataIndex",S=nf(a.get("pageIcons",!0)[a.getOrient().name][x],{onclick:be(u._pageGo,u,_,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});S.name=y,c.add(S)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=NS[u],h=RS[u],v=NS[1-u],p=RS[1-u];o&&Nl("horizontal",l,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),y=l.getBoundingRect(),x=[-y.x,-y.y],_=Le(n);o&&(_[c]=n[c]-y[c]-g);var S=this._layoutContentAndController(e,i,_,u,c,v,p,h);if(o){if(s==="end")x[u]+=S[c]+g;else{var w=y[c]+g;x[u]-=w,S[h]-=w}S[c]+=y[c]+g,x[1-u]+=S[p]+S[v]/2-y[v]/2,S[v]=Math.max(S[v],y[v]),S[p]=Math.min(S[p],y[p]+x[1-u]),l.x=x[0],l.y=x[1],l.markRedraw()}return S},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Nl(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Nl("horizontal",v,e.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),g=v.getBoundingRect(),y=this._showController=p[o]>n[o],x=[-p.x,-p.y];a||(x[i]=c[u]);var _=[0,0],S=[-g.x,-g.y],w=ke(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(y){var C=e.get("pageButtonPosition",!0);C==="end"?S[i]+=n[o]-g[o]:_[i]+=g[o]+w}S[1-i]+=p[s]/2-g[s]/2,c.setPosition(x),h.setPosition(_),v.setPosition(S);var D={x:0,y:0};if(D[o]=y?n[o]:p[o],D[s]=Math.max(p[s],g[s]),D[l]=Math.min(0,g[l]+S[1-i]),h.__rectSize=n[o],y){var M={x:0,y:0};M[o]=Math.max(n[o]-g[o]-w,0),M[s]=D[s],h.setClipPath(new Je({shape:M})),h.__rectSize=M[o]}else v.eachChild(function(N){N.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(e);return E.pageIndex!=null&&st(c,{x:E.contentPosition[0],y:E.contentPosition[1]},y?e:null),this._updatePageInfoView(e,E),D},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;O(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",v=a[h]!=null,p=n.childOfName(c);p&&(p.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),p.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",_e(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=NS[o],l=RS[o],u=this._findTargetItemIndex(a),c=n.children(),h=c[u],v=c.length,p=v?1:0,g={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var y=C(h);g.contentPosition[o]=-y.s;for(var x=u+1,_=y,S=y,w=null;x<=v;++x)w=C(c[x]),(!w&&S.e>_.s+i||w&&!D(w,_.s))&&(S.i>_.i?_=S:_=w,_&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=_.i),++g.pageCount)),S=w;for(var x=u-1,_=y,S=y,w=null;x>=-1;--x)w=C(c[x]),(!w||!D(S,w.s))&&_.i<S.i&&(S=_,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=_.i),++g.pageCount,++g.pageIndex),_=w;return g;function C(M){if(M){var E=M.getBoundingRect(),N=E[l]+M[l];return{s:N,e:N+E[s],i:M.__legendDataIndex}}}function D(M,E){return M.e>=E&&M.s<=E+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t})(L9);function eve(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function tve(r){Ye(R9),r.registerComponentModel(Qhe),r.registerComponentView(Jhe),eve(r)}function rve(r){Ye(R9),Ye(tve)}var ave=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=gs($v.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})($v),yD=rt();function nve(r,t,e){yD(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function ive(r,t){for(var e=yD(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||B9(e,o))}}}function B9(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function ove(r,t){var e={model:t,containsPoint:Oe(lve,t),dispatchAction:Oe(sve,r),dataZoomInfoMap:null,controller:null},a=e.controller=new Dd(r.getZr());return O(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function sve(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function lve(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function uve(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function cve(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=yD(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=Ce());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=p9(i);O(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,ove(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ce());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.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){B9(n,i);return}var c=uve(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),hf(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),nve(n,e,{pan:be(BS.pan,this),zoom:be(BS.zoom,this),scrollMove:be(BS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ive(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(uD),BS={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=IS[t](null,[a.originX,a.originY],o,e,r),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/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ru(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:PR(function(r,t,e,a,n,i){var o=IS[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:PR(function(r,t,e,a,n,i){var o=IS[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function PR(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(ru(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var IS={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function I9(r){cD(r),r.registerComponentModel(ave),r.registerComponentView(fve),cve(r)}var hve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=gs($v.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})($v),Fh=Je,zR=7,vve=1,kS=30,dve=7,Vh="horizontal",jR="vertical",pve=5,gve=["line","bar","candlestick","scatter"],mve={easing:"cubicOut",duration:100,delay:0},yve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=be(this._onBrush,this),this._onBrushEnd=be(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),hf(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.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(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Pv(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new Re;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?dve:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Vh?{right:s.width-o.x-o.width,top:s.height-kS-zR-i,width:o.width,height:kS}:{right:zR,top:o.y,width:kS,height:o.height},u=lf(e.option);O(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=ir(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===jR&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Vh&&!o?{scaleY:l?1:-1,scaleX:1}:n===Vh&&o?{scaleY:l?1:-1,scaleX:-1}:n===jR&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Fh({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Fh({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:be(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)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var p=[0,a[1]],g=[0,a[0]],y=[[a[0],0],[0,0]],x=[],_=g[1]/(o.count()-1),S=0,w=Math.round(o.count()/a[0]),C;o.each([l],function(B,R){if(w>0&&R%w){S+=_;return}var I=B==null||isNaN(B)||B==="",P=I?0:dt(B,h,p,!0);I&&!C&&R?(y.push([y[y.length-1][0],0]),x.push([x[x.length-1][0],0])):!I&&C&&(y.push([S,0]),x.push([S,0])),y.push([S,P]),x.push([S,P]),S+=_,C=I}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=x}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var D=this.dataZoomModel;function M(B){var R=D.getModel(B?"selectedDataBackground":"dataBackground"),I=new Re,P=new $r({shape:{points:u},segmentIgnoreThreshold:1,style:R.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),z=new Qr({shape:{points:c},segmentIgnoreThreshold:1,style:R.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(P),I.add(z),I}for(var E=0;E<3;E++){var N=M(E===1);this._displayables.sliderGroup.add(N),this._displayables.dataShadowSegs.push(N)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();O(l,function(u){if(!n&&!(a!==!0&&He(gve,u.get("type"))<0)){var c=i.getComponent(Qo(o),s).axis,h=xve(o),v,p=u.coordinateSystem;h!=null&&p.getOtherAxis&&(v=p.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),n={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new Fh({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Fh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:vve,fill:"rgba(0,0,0,0)"}})),O([0,1],function(w){var C=l.get("handleIcon");!_m[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var D=Jt(C,-1,0,2,2,null,!0);D.attr({cursor:FR(this._orient),draggable:!0,drift:be(this._onDragMove,this,w),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1),z2:5});var M=D.getBoundingRect(),E=l.get("handleSize");this._handleHeight=xe(E,this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,D.setStyle(l.getModel("handleStyle").getItemStyle()),D.style.strokeNoScale=!0,D.rectHover=!0,D.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ts(D);var N=l.get("handleColor");N!=null&&(D.style.fill=N),o.add(n[w]=D);var B=l.getModel("textStyle"),R=l.get("handleLabel")||{},I=R.show||!1;e.add(i[w]=new Qe({silent:!0,invisible:!I,style:At(B,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:B.getTextColor(),font:B.getFont()}),z2:10}))},this);var p=v;if(h){var g=xe(l.get("moveHandleSize"),s[1]),y=a.moveHandle=new Je({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),x=g*.8,_=a.moveHandleIcon=Jt(l.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);_.silent=!0,_.y=s[1]+g/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(g,10));p=a.moveZone=new Je({invisible:!0,shape:{y:s[1]-S,height:g+S}}),p.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(_),o.add(p)}p.attr({draggable:!0,cursor:FR(this._orient),drift:be(this._onDragMove,this,"all"),ondragstart:be(this._showDataInfo,this,!0),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[dt(e[0],[0,100],a,!0),dt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ru(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?dt(s.minSpan,l,o,!0):null,s.maxSpan!=null?dt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ia([dt(i[0],o,l,!0),dt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Ia(n.slice()),o=this._size;O([0,1],function(p){var g=a.handles[p],y=this._handleHeight;g.attr({scaleX:y/2,scaleY:y/2,x:n[p]+(p?-1:1),y:o[1]/2-y/2})},this),a.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]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var h=l[c],v=h.getClipPath();v||(v=new Je,h.setClipPath(v)),v.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=Ia(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(g){var y=rs(n.handles[g].parent,this.group),x=wy(g===0?"right":"left",y),_=this._handleWidth/2+pve,S=In([v[g]+(g===0?-_:_),this._size[1]/2],y);i[g].setStyle({x:S[0],y:S[1],verticalAlign:o===Vh?"middle":x,align:o===Vh?x:"center",text:s[g]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Te(i)?i(e,s):_e(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,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._onDragMove=function(e,a,n,i){this._dragging=!0,Ki(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=In([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new Fe(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ia([dt(n.x,o,s,!0),dt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ki(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Fh({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?mve:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=p9(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(uD);function xve(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function FR(r){return r==="vertical"?"ns-resize":"ew-resize"}function k9(r){r.registerComponentModel(hve),r.registerComponentView(yve),cD(r)}function _ve(r){Ye(I9),Ye(k9)}var O9={get:function(r,t,e){var a=Le((bve[r]||{})[t]);return e&&ce(a)?a[a.length-1]:a}},bve={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},VR=yr.mapVisual,Sve=yr.eachVisual,wve=ce,HR=O,Cve=Ia,Ave=dt,Wm=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&A9(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=be(e,this),this.controllerVisuals=Ew(this.option.controller,a,e),this.targetVisuals=Ew(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=bt(e),a},t.prototype.eachTargetSeries=function(e,a){O(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],ce(e)&&(e=e.slice(),u=!0);var c=a?e:u?[h(e[0]),h(e[1])]:h(e);if(_e(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Te(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+c[1]:e[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=Cve([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ze(i,n),ze(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(h){wve(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,v,p){var g=h[v],y=h[p];g&&!y&&(y=h[p]={},HR(g,function(x,_){if(yr.isValidType(_)){var S=O9.get(_,"inactive",s);S!=null&&(y[_]=S,_==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,p=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),y=this.getItemSymbol(),x=y||"roundRect";HR(this.stateList,function(_){var S=this.itemSize,w=h[_];w||(w=h[_]={color:s?g:[g]}),w.symbol==null&&(w.symbol=v&&Le(v)||(s?x:[x])),w.symbolSize==null&&(w.symbolSize=p&&Le(p)||(s?S[0]:[S[0],S[0]])),w.symbol=VR(w.symbol,function(M){return M==="none"?x:M});var C=w.symbolSize;if(C!=null){var D=-1/0;Sve(C,function(M){M>D&&(D=M)}),w.symbolSize=VR(C,function(M){return Ave(M,[0,D],[0,S[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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t})(We),GR=[20,140],Dve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=GR[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=GR[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):ce(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),O(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Ia((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=e)&&(a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=UR(this,"outOfRange",this.getExtent()),n=UR(this,"inRange",this.option.range.slice()),i=[];function o(p,g){i.push({value:p,color:e(p,g)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var h=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(h&&(i.length&&o(i[i.length-1].value,"outOfRange"),h=0),o(a[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=gs(Wm.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t})(Wm);function UR(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var P9=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Ql(a.get("padding")||0),i=e.getBoundingRect();e.add(new Je({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(p){return s[p]}function c(p,g){s[p]=g}var h=o.controllerVisuals[i||o.getValueState(e)],v=yr.prepareVisualTypes(h);return O(v,function(p){var g=h[p];n.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",g=h.__alphaForOpacity),yr.dependsOn(p,a)&&g&&g.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api;Ey(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t})(Et),YR=[["left","right","width"],["top","bottom","height"]];function z9(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=YR[o],l=[0,null,10],u={},c=0;c<3;c++)u[YR[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var h=[["x","width",3],["y","height",0]][o],v=ir(u,i,a.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<i[h[1]]*.5?0:1]}function $g(r,t){return O(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Kn=dt,Tve=O,WR=Math.min,OS=Math.max,Mve=12,Eve=6,Lve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=be(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=be(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),h=this._applyTransform(n===0?"bottom":"top",u),v=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Qe({style:At(p,{x:c[0],y:c[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=z9(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new Re;u.add(c),c.add(n.outOfRange=qR()),c.add(n.inRange=qR(null,s?ZR(this._orient):null,be(this._dragHandle,this,"all",!1),be(this._dragHandle,this,"all",!0))),c.setClipPath(new Je({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=a.textStyleModel.getTextRect("国"),v=OS(h.width,h.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,v,o),this._createHandle(a,u,1,i,v,o)),this._createIndicator(a,u,i,v,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=be(this._dragHandle,this,n,!1),u=be(this._dragHandle,this,n,!0),c=Pn(e.get("handleSize"),i[0]),h=Jt(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),v=ZR(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(_){Ki(_.event)}}),h.x=i[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),bl(h,!0),a.add(h);var p=this.visualMapModel.textStyleModel,g=new Qe({cursor:v,draggable:!0,drift:l,onmousemove:function(_){Ki(_.event)},ondragend:u,style:At(p,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var y=[c,0],x=this._shapes;x.handleThumbs[n]=h,x.handleLabelPoints[n]=y,x.handleLabels[n]=g},t.prototype._createIndicator=function(e,a,n,i,o){var s=Pn(e.get("indicatorSize"),n[0]),l=Jt(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof br){var c=l.style;l.useStyle(oe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var h=this.visualMapModel.textStyleModel,v=new Qe({silent:!0,invisible:!0,style:At(h,{x:0,y:0,text:""})});this.group.add(v);var p=[(o==="horizontal"?i/2:Eve)+n[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=v,g.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():XR(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[Kn(a[0],n,i,!0),Kn(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ru(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[Kn(i[0],o,s,!0),Kn(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,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(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new rf(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new Re(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);Tve([0,1],function(h){var v=o[h];v.setStyle("fill",a.handlesColor[h]),v.y=e[h];var p=Kn(e[h],[0,l[1]],u,!0),g=this.getControllerVisual(p,"symbolSize");v.scaleX=v.scaleY=g/l[0],v.x=l[0]-g/2;var y=In(n.handleLabelPoints[h],rs(v,this.group));if(this._orient==="horizontal"){var x=c==="left"||c==="top"?(l[0]-g)/2:(l[0]-g)/-2;y[1]+=x}s[h].setStyle({x:y[0],y:y[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",v),g=this.getControllerVisual(e,"symbolSize"),y=Kn(e,s,u,!0),x=l[0]-g/2,_={x:h.x,y:h.y};h.y=y,h.x=x;var S=In(c.indicatorLabelPoint,rs(h,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var C=this._applyTransform("left",c.mainGroup),D=this._orient,M=D==="horizontal";w.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:M?C:"middle",align:M?"center":C});var E={x,y,style:{fill:p}},N={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var B={duration:100,easing:"cubicInOut",additive:!0};h.x=_.x,h.y=_.y,h.animateTo(E,B),w.animateTo(N,B)}else h.attr(E),w.attr(N);this._firstShowIndicator=!1;var R=this._shapes.handleLabels;if(R)for(var I=0;I<R.length;I++)this.api.enterBlur(R[I])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=WR(OS(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=WR(OS(o[0],e),o[1]);var l=Nve(n,s,o),u=[e-l,e+l],c=Kn(e,o,s,!0),h=[Kn(u[0],o,s,!0),Kn(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var v=this._hoverLinkDataIndices,p=[];(a||XR(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var g=wX(v,p);this._dispatchHighDown("downplay",$g(g[0],n)),this._dispatchHighDown("highlight",$g(g[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(wl(e.target,function(l){var u=Be(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",$g(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=rs(a,i?null:this.group);return ce(e)?In(e,o,n):wy(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(P9);function qR(r,t,e,a){return new $r({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){Ki(n.event)},ondragend:a})}function Nve(r,t,e){var a=Mve/2,n=r.get("hoverLinkDataSize");return n&&(a=Kn(n,t,e,!0)/2),a}function XR(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function ZR(r){return r==="vertical"?"ns-resize":"ew-resize"}var Rve={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Bve=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Ive=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(rhe(a.stateList,a.targetVisuals,be(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(be(kve,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function kve(r,t,e,a){for(var n=t.targetVisuals[a],i=yr.prepareVisualTypes(n),o={color:yd(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,h,v)}return o.color;function h(p){return o[p]}function v(p,g){o[p]=g}}var $R=O;function Ove(r){var t=r&&r.visualMap;ce(t)||(t=t?[t]:[]),$R(t,function(e){if(e){hc(e,"splitList")&&!hc(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&ce(a)&&$R(a,function(n){Ee(n)&&(hc(n,"start")&&!hc(n,"min")&&(n.min=n.start),hc(n,"end")&&!hc(n,"max")&&(n.max=n.end))})}})}function hc(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var KR=!1;function j9(r){KR||(KR=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Rve,Bve),O(Ive,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Ove))}function F9(r){r.registerComponentModel(Dve),r.registerComponentView(Lve),j9(r)}var Pve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],zve[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=Le(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=he(this._pieceList,function(l){return l=Le(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=yr.listVisualTypes(),i=this.isCategory();O(e.pieces,function(s){O(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),O(a,function(s,l){var u=!1;O(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&O(this.stateList,function(c){(e[c]||(e[c]={}))[l]=O9.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,O(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;O(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Le(e)},t.prototype.getValueState=function(e){var a=yr.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=yr.findPieceIndex(l,n);c===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,h){var v=i.getRepresentValue({interval:c});h||(h=i.getValueState(v));var p=e(v,h);c[0]===-1/0?n[0]=p:c[1]===1/0?n[1]=p:a.push({value:c[0],color:p},{value:c[1],color:p})}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 O(s,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=gs(Wm.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})(Wm),zve={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),y2(r),O(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;O(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),QR(t,r)},pieces:function(r){var t=this.option;O(t.pieces,function(e,a){Ee(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&o[h]==null;p++)o[h]=e[v[p]],s[h]=l[p],c[h]=p===2;o[h]==null&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=yr.retrieveVisuals(e),r.push(n)},this),QR(t,r),y2(r),O(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function QR(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var jve=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),h=c.endsText,v=gr(a.get("showLabel",!0),!h),p=!a.get("selectedMode");h&&this._renderEndsText(e,h[0],u,v,l),O(c.viewPieceList,function(g){var y=g.piece,x=new Re;x.onclick=be(this._onItemClick,this,y),this._enableHoverLink(x,g.indexInModelPieceList);var _=a.getRepresentValue(y);if(this._createItemSymbol(x,_,[0,0,u[0],u[1]],p),v){var S=this.visualMapModel.getValueState(_);x.add(new Qe({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:y.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:S==="outOfRange"?.5:1},silent:p}))}e.add(x)},this),h&&this._renderEndsText(e,h[1],u,v,l),Nl(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:$g(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return z9(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new Re,l=this.visualMapModel.textStyleModel;s.add(new Qe({style:At(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=he(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=Jt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=Le(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,O(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})(P9);function V9(r){r.registerComponentModel(Pve),r.registerComponentView(jve),j9(r)}function Fve(r){Ye(F9),Ye(V9)}var Vve={label:{enabled:!0},decal:{show:!1}},JR=rt(),Hve={};function Gve(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Le(Vve);ze(a.label,r.getLocaleModel().get("aria"),!1),ze(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var h=Ce();r.eachSeries(function(v){if(!v.isColorBySeries()){var p=h.get(v.type);p||(p={},h.set(v.type,p)),JR(v).scope=p}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(Te(v.enableAriaDecal)){v.enableAriaDecal();return}var p=v.getData();if(v.isColorBySeries()){var S=I2(v.ecModel,v.name,Hve,r.getSeriesCount()),w=p.getVisual("decal");p.setVisual("decal",C(w,S))}else{var g=v.getRawData(),y={},x=JR(v).scope;p.each(function(D){var M=p.getRawIndex(D);y[M]=D});var _=g.count();g.each(function(D){var M=y[D],E=g.getName(D)||D+"",N=I2(v.ecModel,E,x,_),B=p.getItemVisual(M,"decal");p.setItemVisual(M,"decal",C(B,N))})}function C(D,M){var E=D?oe(oe({},M),D):M;return E.dirty=!0,E}})}}function i(){var u=t.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=Me(h.option,c),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),p=h.get(["data","maxCount"])||10,g=h.get(["series","maxCount"])||10,y=Math.min(v,g),x;if(!(v<1)){var _=s();if(_){var S=h.get(["general","withTitle"]);x=o(S,{title:_})}else x=h.get(["general","withoutTitle"]);var w=[],C=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);x+=o(C,{seriesCount:v}),r.eachSeries(function(N,B){if(B<y){var R=void 0,I=N.get("name"),P=I?"withName":"withoutName";R=v>1?h.get(["series","multiple",P]):h.get(["series","single",P]),R=o(R,{seriesId:N.seriesIndex,seriesName:N.get("name"),seriesType:l(N.subType)});var z=N.getData();if(z.count()>p){var V=h.get(["data","partialData"]);R+=o(V,{displayCnt:p})}else R+=h.get(["data","allData"]);for(var G=h.get(["data","separator","middle"]),F=h.get(["data","separator","end"]),Y=h.get(["data","excludeDimensionId"]),W=[],X=0;X<z.count();X++)if(X<p){var te=z.getName(X),j=Y?lt(z.getValues(X),function(Z,$){return He(Y,$)===-1}):z.getValues(X),U=h.get(["data",te?"withName":"withoutName"]);W.push(o(U,{name:te,value:j.join(G)}))}R+=W.join(G)+F,w.push(R)}});var D=h.getModel(["series","multiple","separator"]),M=D.get("middle"),E=D.get("end");x+=w.join(M)+E,u.setAttribute("aria-label",x)}}}}function o(u,c){if(!_e(u))return u;var h=u;return O(c,function(v,p){h=h.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Uve(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},O(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Yve(r){r.registerPreprocessor(Uve),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Gve)}var eB={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Wve=(function(){function r(t){var e=this._condVal=_e(t)?new RegExp(t):hI(t)?t:null;if(e==null){var a="";pt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return _e(e)?this._condVal.test(t):it(e)?this._condVal.test(t+""):!1},r})(),qve=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Xve=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),Zve=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),$ve=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Kve=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r})();function xD(r,t){if(r===!0||r===!1){var e=new qve;return e.value=r,e}var a="";return H9(r)||pt(a),r.and?tB("and",r,t):r.or?tB("or",r,t):r.not?Qve(r,t):Jve(r,t)}function tB(r,t,e){var a=t[r],n="";ce(a)||pt(n),a.length||pt(n);var i=r==="and"?new Xve:new Zve;return i.children=he(a,function(o){return xD(o,e)}),i.children.length||pt(n),i}function Qve(r,t){var e=r.not,a="";H9(e)||pt(a);var n=new $ve;return n.child=xD(e,t),n.child||pt(a),n}function Jve(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=Ze(r),o=r.parser,s=o?_O(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Se(eB,u)?eB[u]:u,h=r[u],v=s?s(h):h,p=CK(c,v)||c==="reg"&&new Wve(v);p||pt(e),n.push(p)}}n.length||pt(e);var g=new Kve;return g.valueGetterParam=a,g.valueParser=s,g.getValue=t.getValue,g.subCondList=n,g}function H9(r){return Ee(r)&&!Ir(r)}var ede=(function(){function r(t,e){this._cond=xD(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function tde(r,t){return new ede(r,t)}var rde={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=tde(r.config,{valueGetterAttrMap:Ce({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Se(s,"dimension")||pt(l);var c=t.getDimensionInfo(u);return c||pt(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},ade={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=bt(e);n.length||pt(a);var i=[];O(n,function(c){var h=c.dimension,v=c.order,p=c.parser,g=c.incomparable;if(h==null&&pt(a),v!=="asc"&&v!=="desc"&&pt(a),g&&g!=="min"&&g!=="max"){var y="";pt(y)}if(v!=="asc"&&v!=="desc"){var x="";pt(x)}var _=t.getDimensionInfo(h);_||pt(a);var S=p?_O(p):null;p&&!S&&pt(a),i.push({dimIdx:_.index,parser:S,comparator:new SO(v,g)})});var o=t.sourceFormat;o!==Kr&&o!==gn&&pt(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,h){for(var v=0;v<i.length;v++){var p=i[v],g=t.retrieveValueFromItem(c,p.dimIdx),y=t.retrieveValueFromItem(h,p.dimIdx);p.parser&&(g=p.parser(g),y=p.parser(y));var x=p.comparator.evaluate(g,y);if(x!==0)return x}return 0}),{data:s}}};function nde(r){r.registerTransform(rde),r.registerTransform(ade)}var ide=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new DO(this),nL(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),nL(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:oi},t})(We),ode=(function(r){Q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(Et);function sde(r){r.registerComponentModel(ide),r.registerComponentView(ode)}var Zn=ui.CMD;function Ac(r,t){return Math.abs(r-t)<1e-5}function Ow(r){var t=r.data,e=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(z,V){n&&n.length>2&&a.push(n),n=[z,V]}function c(z,V,G,F){Ac(z,G)&&Ac(V,F)||n.push(z,V,G,F,G,F)}function h(z,V,G,F,Y,W){var X=Math.abs(V-z),te=Math.tan(X/4)*4/3,j=V<z?-1:1,U=Math.cos(z),Z=Math.sin(z),$=Math.cos(V),fe=Math.sin(V),ye=U*Y+G,ee=Z*W+F,se=$*Y+G,ue=fe*W+F,we=Y*te*j,ve=W*te*j;n.push(ye-we*Z,ee+ve*U,se+we*fe,ue-ve*$,se,ue)}for(var v,p,g,y,x=0;x<e;){var _=t[x++],S=x===1;switch(S&&(i=t[x],o=t[x+1],s=i,l=o,(_===Zn.L||_===Zn.C||_===Zn.Q)&&(n=[s,l])),_){case Zn.M:i=s=t[x++],o=l=t[x++],u(s,l);break;case Zn.L:v=t[x++],p=t[x++],c(i,o,v,p),i=v,o=p;break;case Zn.C:n.push(t[x++],t[x++],t[x++],t[x++],i=t[x++],o=t[x++]);break;case Zn.Q:v=t[x++],p=t[x++],g=t[x++],y=t[x++],n.push(i+2/3*(v-i),o+2/3*(p-o),g+2/3*(v-g),y+2/3*(p-y),g,y),i=g,o=y;break;case Zn.A:var w=t[x++],C=t[x++],D=t[x++],M=t[x++],E=t[x++],N=t[x++]+E;x+=1;var B=!t[x++];v=Math.cos(E)*D+w,p=Math.sin(E)*M+C,S?(s=v,l=p,u(s,l)):c(i,o,v,p),i=Math.cos(N)*D+w,o=Math.sin(N)*M+C;for(var R=(B?-1:1)*Math.PI/2,I=E;B?I>N:I<N;I+=R){var P=B?Math.max(I+R,N):Math.min(I+R,N);h(I,P,w,C,D,M)}break;case Zn.R:s=i=t[x++],l=o=t[x++],v=s+t[x++],p=l+t[x++],u(v,l),c(v,l,v,p),c(v,p,s,p),c(s,p,s,l),c(s,l,v,l);break;case Zn.Z:n&&c(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function Pw(r,t,e,a,n,i,o,s,l,u){if(Ac(r,e)&&Ac(t,a)&&Ac(n,o)&&Ac(i,s)){l.push(o,s);return}var c=2/u,h=c*c,v=o-r,p=s-t,g=Math.sqrt(v*v+p*p);v/=g,p/=g;var y=e-r,x=a-t,_=n-o,S=i-s,w=y*y+x*x,C=_*_+S*S;if(w<h&&C<h){l.push(o,s);return}var D=v*y+p*x,M=-v*_-p*S,E=w-D*D,N=C-M*M;if(E<h&&D>=0&&N<h&&M>=0){l.push(o,s);return}var B=[],R=[];ss(r,e,n,o,.5,B),ss(t,a,i,s,.5,R),Pw(B[0],R[0],B[1],R[1],B[2],R[2],B[3],R[3],l,u),Pw(B[4],R[4],B[5],R[5],B[6],R[6],B[7],R[7],l,u)}function lde(r,t){var e=Ow(r),a=[];t=t||1;for(var n=0;n<e.length;n++){var i=e[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],h=i[u++],v=i[u++],p=i[u++],g=i[u++],y=i[u++];Pw(s,l,c,h,v,p,g,y,o,t),s=g,l=y}a.push(o)}return a}function G9(r,t,e){var a=r[t],n=r[1-t],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,h=e-c;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function rB(r,t,e){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,c=l>Math.abs(u),h=G9([l,u],c?0:1,t),v=(c?s:u)/h.length,p=0;p<h.length;p++)for(var g=(c?u:s)/h[p],y=0;y<h[p];y++){var x={};c?(x.startAngle=i+v*p,x.endAngle=i+v*(p+1),x.r0=a+g*y,x.r=a+g*(y+1)):(x.startAngle=i+g*y,x.endAngle=i+g*(y+1),x.r0=a+v*p,x.r=a+v*(p+1)),x.clockwise=r.clockwise,x.cx=r.cx,x.cy=r.cy,e.push(x)}}function ude(r,t,e){for(var a=r.width,n=r.height,i=a>n,o=G9([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var p=r[l]/o[v],g=0;g<o[v];g++){var y={};y[u]=v*h,y[c]=g*p,y[s]=h,y[l]=p,y.x+=r.x,y.y+=r.y,e.push(y)}}function aB(r,t,e,a){return r*a-e*t}function cde(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,h=s-i,v=aB(c,h,l,u);if(Math.abs(v)<1e-6)return null;var p=r-n,g=t-i,y=aB(p,g,c,h)/v;return y<0||y>1?null:new Fe(y*l+r,y*u+t)}function fde(r,t,e){var a=new Fe;Fe.sub(a,e,t),a.normalize();var n=new Fe;Fe.sub(n,r,t);var i=n.dot(a);return i}function vc(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function hde(r,t,e){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=cde(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&n.push({projPt:fde(l,t,e),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(x,_){return x.projPt-_.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var v=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],g=[v],y=[p],i=u.idx+1;i<=c.idx;i++)vc(g,r[i].slice());vc(g,p),vc(g,v);for(var i=c.idx+1;i<=u.idx+a;i++)vc(y,r[i%a].slice());return vc(y,v),vc(y,p),[{points:g},{points:y}]}function nB(r){var t=r.points,e=[],a=[];yy(t,e,a);var n=new Ve(e[0],e[1],a[0]-e[0],a[1]-e[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new Fe,c=new Fe;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),hde(t,u,c)}function qm(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);qm(r,i[0],n,a),qm(r,i[1],e-n,a)}return a}function vde(r,t){for(var e=[],a=0;a<t;a++)e.push(DC(r));return e}function dde(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function pde(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function gde(r,t){var e=[],a=r.shape,n;switch(r.type){case"rect":ude(a,t,e),n=Je;break;case"sector":rB(a,t,e),n=Zr;break;case"circle":rB({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},t,e),n=Zr;break;default:var i=r.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=he(lde(r.getUpdatedPathProxy(),o),function(_){return pde(_)}),l=s.length;if(l===0)qm(nB,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var c=0,h=he(s,function(_){var S=[],w=[];yy(_,S,w);var C=(w[1]-S[1])*(w[0]-S[0]);return c+=C,{poly:_,area:C}});h.sort(function(_,S){return S.area-_.area});for(var v=t,u=0;u<l;u++){var p=h[u];if(v<=0)break;var g=u===l-1?v:Math.ceil(p.area/c*t);g<0||(qm(nB,{points:p.poly},g,e),v-=g)}}n=$r;break}if(!n)return vde(r,t);for(var y=[],u=0;u<e.length;u++){var x=new n;x.setShape(e[u]),dde(r,x),y.push(x)}return y}function mde(r,t){var e=r.length,a=t.length;if(e===a)return[r,t];for(var n=[],i=[],o=e<a?r:t,s=Math.min(e,a),l=Math.abs(a-e)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],v=l,p=2;p<s;){var g=o[p-2],y=o[p-1],x=o[p++],_=o[p++],S=o[p++],w=o[p++],C=o[p++],D=o[p++];if(v<=0){h.push(x,_,S,w,C,D);continue}for(var M=Math.min(v,c-1)+1,E=1;E<=M;E++){var N=E/M;ss(g,x,S,C,N,n),ss(y,_,w,D,N,i),g=n[3],y=i[3],h.push(n[1],i[1],n[2],i[2],g,y),x=n[5],_=i[5],S=n[6],w=i[6]}v-=M-1}return o===r?[h,t]:[r,h]}function iB(r,t){for(var e=r.length,a=r[e-2],n=r[e-1],i=[],o=0;o<t.length;)i[o++]=a,i[o++]=n;return i}function yde(r,t){for(var e,a,n,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],c=void 0,h=void 0;l?u?(e=mde(l,u),c=e[0],h=e[1],a=c,n=h):(h=iB(n||l,l),c=l):(c=iB(a||u,u),h=u),i.push(c),o.push(h)}return[i,o]}function oB(r){for(var t=0,e=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],h=s*c-u*l;t+=h,e+=(s+u)*h,a+=(l+c)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,a/t/3,t]}function xde(r,t,e,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var c=u*6,h=0,v=0;v<s;v+=2){var p=v===0?c:(c+v-2)%l+2,g=r[p]-e[0],y=r[p+1]-e[1],x=t[v]-a[0],_=t[v+1]-a[1],S=x-g,w=_-y;h+=S*S+w*w}h<i&&(i=h,o=u)}return o}function _de(r){for(var t=[],e=r.length,a=0;a<e;a+=2)t[a]=r[e-a-2],t[a+1]=r[e-a-1];return t}function bde(r,t,e,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=oB(s),c=oB(l);i==null&&(i=u[2]<0!=c[2]<0);var h=[],v=[],p=0,g=1/0,y=[],x=s.length;i&&(s=_de(s));for(var _=xde(s,l,u,c)*6,S=x-2,w=0;w<S;w+=2){var C=(_+w)%S+2;h[w+2]=s[C]-u[0],h[w+3]=s[C+1]-u[1]}h[0]=s[_]-u[0],h[1]=s[_+1]-u[1];for(var D=a/e,M=-a/2;M<=a/2;M+=D){for(var E=Math.sin(M),N=Math.cos(M),B=0,w=0;w<s.length;w+=2){var R=h[w],I=h[w+1],P=l[w]-c[0],z=l[w+1]-c[1],V=P*N-z*E,G=P*E+z*N;y[w]=V,y[w+1]=G;var F=V-R,Y=G-I;B+=F*F+Y*Y}if(B<g){g=B,p=M;for(var W=0;W<y.length;W++)v[W]=y[W]}}n.push({from:h,to:v,fromCp:u,toCp:c,rotation:-p})}return n}function Xm(r){return r.__isCombineMorphing}var U9="__mOriginal_";function Zm(r,t,e){var a=U9+t,n=r[a]||r[t];r[a]||(r[a]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function _v(r,t){var e=U9+t;r[e]&&(r[t]=r[e],r[e]=null)}function sB(r,t){for(var e=0;e<r.length;e++)for(var a=r[e],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=t[0]*i+t[2]*o+t[4],a[n++]=t[1]*i+t[3]*o+t[5]}}function Y9(r,t){var e=r.getUpdatedPathProxy(),a=t.getUpdatedPathProxy(),n=yde(Ow(e),Ow(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&sB(i,s),l&&sB(o,l),Zm(t,"updateTransform",{replace:u}),t.transform=null;var c=bde(i,o,10,Math.PI),h=[];Zm(t,"buildPath",{replace:function(v){for(var p=t.__morphT,g=1-p,y=[],x=0;x<c.length;x++){var _=c[x],S=_.from,w=_.to,C=_.rotation*p,D=_.fromCp,M=_.toCp,E=Math.sin(C),N=Math.cos(C);ov(y,D,M,p);for(var B=0;B<S.length;B+=2){var R=S[B],I=S[B+1],P=w[B],z=w[B+1],V=R*g+P*p,G=I*g+z*p;h[B]=V*N-G*E+y[0],h[B+1]=V*E+G*N+y[1]}var F=h[0],Y=h[1];v.moveTo(F,Y);for(var B=2;B<S.length;){var P=h[B++],z=h[B++],W=h[B++],X=h[B++],te=h[B++],j=h[B++];F===P&&Y===z&&W===te&&X===j?v.lineTo(te,j):v.bezierCurveTo(P,z,W,X,te,j),F=te,Y=j}}}})}function _D(r,t,e){if(!r||!t)return t;var a=e.done,n=e.during;Y9(r,t),t.__morphT=0;function i(){_v(t,"buildPath"),_v(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Me({during:function(o){t.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},e)),t}function Sde(r,t,e,a,n,i){var o=16;r=n===e?0:Math.round(32767*(r-e)/(n-e)),t=i===a?0:Math.round(32767*(t-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(r&u)>0&&(c=1),(t&u)>0&&(h=1),s+=u*u*(3*c^h),h===0&&(c===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function $m(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=he(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),e=Math.min(h,e),a=Math.max(c,a),n=Math.max(h,n),[c,h]}),o=he(i,function(s,l){return{cp:s,z:Sde(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function W9(r){return gde(r.path,r.count)}function zw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wde(r,t,e){var a=[];function n(D){for(var M=0;M<D.length;M++){var E=D[M];Xm(E)?n(E.childrenRef()):E instanceof Xe&&a.push(E)}}n(r);var i=a.length;if(!i)return zw();var o=e.dividePath||W9,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),zw();a=$m(a),s=$m(s);for(var l=e.done,u=e.during,c=e.individualDelay,h=new Yi,v=0;v<i;v++){var p=a[v],g=s[v];g.parent=t,g.copyTransform(h),c||Y9(p,g)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function y(D){for(var M=0;M<s.length;M++)s[M].addSelfToZr(D)}Zm(t,"addSelfToZr",{after:function(D){y(D)}}),Zm(t,"removeSelfFromZr",{after:function(D){for(var M=0;M<s.length;M++)s[M].removeSelfFromZr(D)}});function x(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,_v(t,"addSelfToZr"),_v(t,"removeSelfFromZr")}var _=s.length;if(c)for(var S=_,w=function(){S--,S===0&&(x(),l&&l())},v=0;v<_;v++){var C=c?Me({delay:(e.delay||0)+c(v,_,a[v],s[v]),done:w},e):e;_D(a[v],s[v],C)}else t.__morphT=0,t.animateTo({__morphT:1},Me({during:function(D){for(var M=0;M<_;M++){var E=s[M];E.__morphT=t.__morphT,E.dirtyShape()}u&&u(D)},done:function(){x();for(var D=0;D<r.length;D++)_v(r[D],"updateTransform");l&&l()}},e));return t.__zr&&y(t.__zr),{fromIndividuals:a,toIndividuals:s,count:_}}function Cde(r,t,e){var a=t.length,n=[],i=e.dividePath||W9;function o(p){for(var g=0;g<p.length;g++){var y=p[g];Xm(y)?o(y.childrenRef()):y instanceof Xe&&n.push(y)}}if(Xm(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(DC(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var c=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),zw()}n=$m(n),t=$m(t);for(var h=e.individualDelay,u=0;u<a;u++){var v=h?Me({delay:(e.delay||0)+h(u,a,n[u],t[u])},e):e;_D(n[u],t[u],v)}return{fromIndividuals:n,toIndividuals:t,count:t.length}}function lB(r){return ce(r[0])}function uB(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Ade={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=DC(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function PS(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=af("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;lB(r)&&(u=r,c=t),lB(t)&&(u=t,c=r);function h(_,S,w,C,D){var M=_.many,E=_.one;if(M.length===1&&!D){var N=S?M[0]:E,B=S?E:M[0];if(Xm(N))h({many:[N],one:B},!0,w,C,!0);else{var R=s?Me({delay:s(w,C)},l):l;_D(N,B,R),i(N,B,N,B,R)}}else for(var I=Me({dividePath:Ade[e],individualDelay:s&&function(Y,W,X,te){return s(Y+w,C)}},l),P=S?wde(M,E,I):Cde(E,M,I),z=P.fromIndividuals,V=P.toIndividuals,G=z.length,F=0;F<G;F++){var R=s?Me({delay:s(F,G)},l):l;i(z[F],V[F],S?M[F]:_.one,S?_.one:M[F],R)}}for(var v=u?u===r:r.length>t.length,p=u?uB(c,u):uB(v?t:r,[v?r:t]),g=0,y=0;y<p.length;y++)g+=p[y].many.length;for(var x=0,y=0;y<p.length;y++)h(p[y],v,x,g),x+=p[y].many.length}function dl(r){if(!r)return[];if(ce(r)){for(var t=[],e=0;e<r.length;e++)t.push(dl(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof Xe&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var q9=1e4,Dde=0,cB=1,fB=2,Tde=rt();function Mde(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function Ede(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function hB(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=Mde(r,n);if(i){var o=Ede(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function vB(r){var t=[];return O(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>q9))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:hB(a,o,n,!1),childGroupId:hB(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function zS(r,t,e){r.traverse(function(a){a instanceof Xe&&It(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function jS(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function dc(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Lde(r,t,e){var a=af("update",e,t);a&&r.traverse(function(n){if(n instanceof hn){var i=l$(n);i&&n.animateFrom({style:i},a)}})}function Nde(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function X9(r,t,e){var a=vB(r),n=vB(t);function i(w,C,D,M,E){(D||w)&&C.animateFrom({style:D&&D!==w?oe(oe({},D.style),w.style):w.style},E)}var o=!1,s=Dde,l=Ce(),u=Ce();a.forEach(function(w){w.groupId&&l.set(w.groupId,!0),w.childGroupId&&u.set(w.childGroupId,!0)});for(var c=0;c<n.length;c++){var h=n[c].groupId;if(u.get(h)){s=cB;break}var v=n[c].childGroupId;if(v&&l.get(v)){s=fB;break}}function p(w,C){return function(D){var M=D.data,E=D.dataIndex;return C?M.getId(E):w?s===cB?D.childGroupId:D.groupId:s===fB?D.childGroupId:D.groupId}}var g=Nde(a,n),y={};if(!g)for(var c=0;c<n.length;c++){var x=n[c],_=x.data.getItemGraphicEl(x.dataIndex);_&&(y[_.id]=!0)}function S(w,C){var D=a[C],M=n[w],E=M.data.hostModel,N=D.data.getItemGraphicEl(D.dataIndex),B=M.data.getItemGraphicEl(M.dataIndex);if(N===B){B&&Lde(B,M.dataIndex,E);return}N&&y[N.id]||B&&(dc(B),N?(dc(N),jS(N),o=!0,PS(dl(N),dl(B),M.divide,E,w,i)):zS(B,E,w))}new eo(a,n,p(!0,g),p(!1,g),null,"multiple").update(S).updateManyToOne(function(w,C){var D=n[w],M=D.data,E=M.hostModel,N=M.getItemGraphicEl(D.dataIndex),B=lt(he(C,function(R){return a[R].data.getItemGraphicEl(a[R].dataIndex)}),function(R){return R&&R!==N&&!y[R.id]});N&&(dc(N),B.length?(O(B,function(R){dc(R),jS(R)}),o=!0,PS(dl(B),dl(N),D.divide,E,w,i)):zS(N,E,D.dataIndex))}).updateOneToMany(function(w,C){var D=a[C],M=D.data.getItemGraphicEl(D.dataIndex);if(!(M&&y[M.id])){var E=lt(he(w,function(B){return n[B].data.getItemGraphicEl(n[B].dataIndex)}),function(B){return B&&B!==M}),N=n[w[0]].data.hostModel;E.length&&(O(E,function(B){return dc(B)}),M?(dc(M),jS(M),o=!0,PS(dl(M),dl(E),D.divide,N,w[0],i)):O(E,function(B){return zS(B,N,w[0])}))}}).updateManyToMany(function(w,C){new eo(C,w,function(D){return a[D].data.getId(a[D].dataIndex)},function(D){return n[D].data.getId(n[D].dataIndex)}).update(function(D,M){S(w[D],C[M])}).execute()}).execute(),o&&O(t,function(w){var C=w.data,D=C.hostModel,M=D&&e.getViewOfSeriesModel(D),E=af("update",D,0);M&&D.isAnimationEnabled()&&E&&E.duration>0&&M.group.traverse(function(N){N instanceof Xe&&!N.animators.length&&N.animateFrom({style:{opacity:0}},E)})})}function dB(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function pB(r){return ce(r)?r.sort().join(","):r}function Uo(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Rde(r,t){var e=Ce(),a=Ce(),n=Ce();return O(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=dB(i),c=pB(u);a.set(c,{dataGroupId:s,data:l}),ce(u)&&O(u,function(h){n.set(h,{key:c,dataGroupId:s,data:l})})}),O(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=dB(i),u=pB(l),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Uo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Uo(s),data:s}]});else if(ce(l)){var h=[];O(l,function(g){var y=a.get(g);y.data&&h.push({dataGroupId:y.dataGroupId,divide:Uo(y.data),data:y.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Uo(s)}]})}else{var v=n.get(l);if(v){var p=e.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Uo(v.data)}],newSeries:[]},e.set(v.key,p)),p.newSeries.push({dataGroupId:o,data:s,divide:Uo(s)})}}}}),e}function gB(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function Bde(r,t,e,a){var n=[],i=[];O(bt(r.from),function(o){var s=gB(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Uo(t.oldData[s]),groupIdDim:o.dimension})}),O(bt(r.to),function(o){var s=gB(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Uo(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&X9(n,i,a)}function Ide(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){O(bt(a.seriesTransition),function(n){O(bt(n.to),function(i){for(var o=a.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][Gg]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=Tde(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)O(bt(i),function(p){Bde(p,n,a,e)});else{var o=Rde(n,a);O(o.keys(),function(p){var g=o.get(p);X9(g.oldSeries,g.newSeries,e)})}O(a.updatedSeries,function(p){p[Gg]&&(p[Gg]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<q9&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(v))}})}Ye([Ute]);Ye([jte]);Ye([cre,Are,kre,dae,Aae,fne,jne,Sie,Uie,$ie,ioe,Joe,Cse,kse,Kse,tle,fle,yle,Ele,kle,Yle,Mue]);Ye(que);Ye(xce);Ye(W7);Ye(Rce);Ye(Nz);Ye(Oce);Ye(Yce);Ye(Rfe);Ye(Kfe);Ye(Md);Ye(dhe);Ye(mhe);Ye(The);Ye(Ihe);Ye(Fhe);Ye(Whe);Ye(rve);Ye(_ve);Ye(I9);Ye(k9);Ye(Fve);Ye(F9);Ye(V9);Ye(Yve);Ye(nde);Ye(sde);Ye(Ide);Ye(ite);const kde=Object.freeze(Object.defineProperty({__proto__:null,Axis:mn,ChartView:yt,ComponentModel:We,ComponentView:Et,List:qr,Model:ut,PRIORITY:tP,SeriesModel:St,color:Tq,connect:dJ,dataTool:bJ,dependencies:$Q,disConnect:pJ,disconnect:uP,dispose:gJ,env:qe,extendChartView:Wee,extendComponentModel:Gee,extendComponentView:Uee,extendSeriesModel:Yee,format:Ree,getCoordinateSystemDimensions:yJ,getInstanceByDom:aA,getInstanceById:mJ,getMap:_J,graphic:Nee,helper:wee,init:vJ,innerDrawElementOnCanvas:JC,matrix:iq,number:Eee,parseGeoJSON:Z2,parseGeoJson:Z2,registerAction:Fn,registerCoordinateSystem:hP,registerLayout:vP,registerLoading:lA,registerLocale:kC,registerMap:dP,registerPostInit:cP,registerPostUpdate:fP,registerPreprocessor:iA,registerProcessor:oA,registerTheme:nA,registerTransform:pP,registerUpdateLifecycle:ky,registerVisual:ms,setCanvasCreator:xJ,setPlatformAPI:sI,throttle:By,time:Lee,use:Ye,util:Bee,vector:YW,version:ZQ,zrUtil:zW,zrender:lX},Symbol.toStringTag,{value:"Module"}));var Pi={},zi={},FS={},mB;function Ode(){return mB||(mB=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=1;r.default=function(){return"".concat(t++)}})(FS)),FS}var Hh={},Gh={},VS={},yB;function Z9(){return yB||(yB=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(n),n=setTimeout(function(){e.apply(i,s)},a)}}})(VS)),VS}var ji={},xB;function bD(){return xB||(xB=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.SizeSensorId=ji.SensorTabIndex=ji.SensorClassName=void 0,ji.SizeSensorId="size-sensor-id",ji.SensorClassName="size-sensor-object",ji.SensorTabIndex="-1"),ji}var _B;function Pde(){if(_B)return Gh;_B=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.createSensor=void 0;var r=e(Z9()),t=bD();function e(a){return a&&a.__esModule?a:{default:a}}return Gh.createSensor=function(n,i){var o=void 0,s=[],l=function(){getComputedStyle(n).position==="static"&&(n.style.position="relative");var g=document.createElement("object");return g.onload=function(){g.contentDocument.defaultView.addEventListener("resize",u),u()},g.style.display="block",g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.height="100%",g.style.width="100%",g.style.overflow="hidden",g.style.pointerEvents="none",g.style.zIndex="-1",g.style.opacity="0",g.setAttribute("class",t.SensorClassName),g.setAttribute("tabindex",t.SensorTabIndex),g.type="text/html",n.appendChild(g),g.data="about:blank",g},u=(0,r.default)(function(){s.forEach(function(p){p(n)})}),c=function(g){o||(o=l()),s.indexOf(g)===-1&&s.push(g)},h=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),n.removeAttribute(t.SizeSensorId),o=void 0,s=[],i&&i())},v=function(g){var y=s.indexOf(g);y!==-1&&s.splice(y,1),s.length===0&&o&&h()};return{element:n,bind:c,destroy:h,unbind:v}},Gh}var Uh={},bB;function zde(){if(bB)return Uh;bB=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.createSensor=void 0;var r=bD(),t=e(Z9());function e(a){return a&&a.__esModule?a:{default:a}}return Uh.createSensor=function(n,i){var o=void 0,s=[],l=(0,t.default)(function(){s.forEach(function(p){p(n)})}),u=function(){var g=new ResizeObserver(l);return g.observe(n),l(),g},c=function(g){o||(o=u()),s.indexOf(g)===-1&&s.push(g)},h=function(){o&&o.disconnect(),s=[],o=void 0,n.removeAttribute(r.SizeSensorId),i&&i()},v=function(g){var y=s.indexOf(g);y!==-1&&s.splice(y,1),s.length===0&&o&&h()};return{element:n,bind:c,destroy:h,unbind:v}},Uh}var SB;function jde(){if(SB)return Hh;SB=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.createSensor=void 0;var r=Pde(),t=zde();return Hh.createSensor=typeof ResizeObserver<"u"?t.createSensor:r.createSensor,Hh}var wB;function Fde(){if(wB)return zi;wB=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.removeSensor=zi.getSensor=zi.Sensors=void 0;var r=a(Ode()),t=jde(),e=bD();function a(o){return o&&o.__esModule?o:{default:o}}var n=zi.Sensors={};function i(o){o&&n[o]&&delete n[o]}return zi.getSensor=function(s){var l=s.getAttribute(e.SizeSensorId);if(l&&n[l])return n[l];var u=(0,r.default)();s.setAttribute(e.SizeSensorId,u);var c=(0,t.createSensor)(s,function(){return i(u)});return n[u]=c,c},zi.removeSensor=function(s){var l=s.element.getAttribute(e.SizeSensorId);s.destroy(),i(l)},zi}var CB;function Vde(){if(CB)return Pi;CB=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.ver=Pi.clear=Pi.bind=void 0;var r=Fde();return Pi.bind=function(e,a){var n=(0,r.getSensor)(e);return n.bind(a),function(){n.unbind(a)}},Pi.clear=function(e){var a=(0,r.getSensor)(e);(0,r.removeSensor)(a)},Pi.ver="1.0.3",Pi}var AB=Vde();function DB(r,t){var e={};return t.forEach(function(a){e[a]=r[a]}),e}function HS(r){return typeof r=="function"}function Hde(r){return typeof r=="string"}var GS,TB;function Gde(){return TB||(TB=1,GS=function r(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=e.length)return!1;for(n=a;n--!==0;)if(!r(t[n],e[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(e).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=a;n--!==0;){var o=i[n];if(!r(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}),GS}var Ude=Gde();const pc=Km(Ude);var Yde=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.echarts=e.echarts,a.ele=null,a.isInitialResize=!0,a.eventHandlerRefs={},a}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var a=this.props.shouldSetOption;if(!(HS(a)&&!a(e,this.props))){if(!pc(e.theme,this.props.theme)||!pc(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();pc(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];pc(DB(this.props,i),DB(e,i))||this.updateEChartsOption(),(!pc(e.style,this.props.style)||!pc(e.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return yE(this,void 0,void 0,function(){var e=this;return xE(this,function(a){return[2,new Promise(function(n){e.echarts.init(e.ele,e.props.theme,e.props.opts);var i=e.getEchartsInstance();i.on("finished",function(){var o=e.ele.clientWidth,s=e.ele.clientHeight;e.echarts.dispose(e.ele);var l=av({width:o,height:s},e.props.opts);n(e.echarts.init(e.ele,e.props.theme,l))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{AB.clear(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return yE(this,void 0,void 0,function(){var e,a,n,i,o,s,l=this;return xE(this,function(u){switch(u.label){case 0:return e=this.props,a=e.onEvents,n=e.onChartReady,i=e.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,a||{}),HS(n)&&n(s),this.ele&&o&&AB.bind(this.ele,function(){l.resize()}),[2]}})})},t.prototype.bindEvents=function(e,a){var n=this,i=function(s,l){if(Hde(s)&&HS(l)){var u=function(c){l(c,e)};e.on(s,u),n.eventHandlerRefs[s]=u}};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&i(o,a[o])},t.prototype.unbindEvents=function(e){for(var a=0,n=Object.entries(this.eventHandlerRefs);a<n.length;a++){var i=n[a],o=i[0],s=i[1];e.off(o,s)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var e=this.props,a=e.option,n=e.notMerge,i=n===void 0?!1:n,o=e.replaceMerge,s=o===void 0?null:o,l=e.lazyUpdate,u=l===void 0?!1:l,c=e.showLoading,h=e.loadingOption,v=h===void 0?null:h,p=this.getEchartsInstance();return p.setOption(a,{notMerge:i,replaceMerge:s,lazyUpdate:u}),c?p.showLoading(v):p.hideLoading(),p},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize({width:"auto",height:"auto"})}catch(a){console.warn(a)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,a=this.props,n=a.style,i=a.className,o=i===void 0?"":i;a.echarts,a.option,a.theme,a.notMerge,a.replaceMerge,a.lazyUpdate,a.showLoading,a.loadingOption,a.opts,a.onChartReady,a.onEvents,a.shouldSetOption,a.autoResize;var s=bW(a,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=av({height:300},n);return bc.createElement("div",av({ref:function(u){e.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},t})(q.PureComponent),Jv=(function(r){Q(t,r);function t(e){var a=r.call(this,e)||this;return a.echarts=kde,a}return t})(Yde);const qp=({title:r,value:t,change:e,icon:a,iconBg:n,loading:i,hideChange:o,accent:s})=>{const l=(e??0)>=0;return A.jsx("div",{className:"bg-white rounded-xl border border-slate-200/80 p-5 hover:shadow-md hover:border-slate-300/80 transition-all duration-200",children:A.jsxs("div",{className:"flex items-start justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500 font-medium",children:r}),i?A.jsx("div",{className:"h-8 w-20 bg-slate-200 animate-pulse rounded mt-1.5"}):A.jsx("p",{className:`text-2xl font-bold mt-1.5 ${s||"text-slate-800"}`,children:t}),i?A.jsx("div",{className:"h-5 w-24 bg-slate-100 animate-pulse rounded mt-2"}):o?A.jsx("div",{className:"h-5 mt-2"}):A.jsxs("div",{className:`flex items-center gap-1 mt-2 text-sm ${l?"text-emerald-600":"text-red-500"}`,children:[l?A.jsx(iI,{className:"w-3.5 h-3.5"}):A.jsx(aW,{className:"w-3.5 h-3.5"}),A.jsxs("span",{className:"font-medium",children:[l?"+":"",(e??0).toFixed(1),"%"]}),A.jsx("span",{className:"text-slate-400 ml-1 font-normal",children:"较昨日"})]})]}),A.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center ${n}`,children:a})]})})},Wde=3e4,qde=()=>{const r=Yl(),[t,e]=q.useState(!0),[a,n]=q.useState(!0),[i,o]=q.useState({todayNewUsers:0,todayNewUsersChange:0,totalUsers:0,activeUsers:0}),[s,l]=q.useState([]),[u,c]=q.useState([]),[h,v]=q.useState(null),p=q.useRef(null),g=q.useCallback(async()=>{try{const D=await Dc.getDashboard();o({todayNewUsers:D.today_new_users,todayNewUsersChange:D.today_new_users_growth,totalUsers:D.total_users,activeUsers:D.active_users}),v(new Date)}catch(D){console.error("加载仪表盘指标失败:",D)}finally{e(!1)}},[]),y=q.useCallback(async()=>{const D=new Date,E=new Date(D.getTime()-696*60*60*1e3).toISOString().split("T")[0],N=D.toISOString().split("T")[0];try{const B=await Dc.getUserGrowthTrend(E,N).catch(()=>[]);l(B);const R=await Dc.getModelUsageRanking().catch(()=>[]);c(R)}catch(B){console.error("加载图表数据失败:",B)}finally{n(!1)}},[]);q.useEffect(()=>{g(),y()},[g,y]),q.useEffect(()=>(p.current=setInterval(()=>{g(),y()},Wde),()=>{p.current&&clearInterval(p.current)}),[g,y]);const x=()=>{e(!0),n(!0),g(),y()},_={tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",top:"12%",containLabel:!0},xAxis:{type:"category",data:s.map(D=>D.date.slice(5)),axisLine:{lineStyle:{color:"#e2e8f0"}},axisLabel:{color:"#64748b",fontSize:11}},yAxis:{type:"value",axisLine:{show:!1},splitLine:{lineStyle:{color:"#f1f5f9"}},axisLabel:{color:"#64748b",fontSize:11}},series:[{name:"新增用户",data:s.map(D=>D.new_users),type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(59, 130, 246, 0.15)"},{offset:1,color:"rgba(59, 130, 246, 0.01)"}]}},lineStyle:{color:"#3b82f6",width:2.5},itemStyle:{color:"#3b82f6"},symbol:"none"},{name:"活跃用户",data:s.map(D=>D.active_users),type:"line",smooth:!0,lineStyle:{color:"#10b981",width:2,type:"dashed"},itemStyle:{color:"#10b981"},symbol:"none"}]},S=u.slice(0,10),w={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"12%",bottom:"3%",top:"3%",containLabel:!0},xAxis:{type:"value",axisLine:{show:!1},splitLine:{lineStyle:{color:"#f1f5f9"}},axisLabel:{color:"#64748b",fontSize:11}},yAxis:{type:"category",data:S.map(D=>D.model_name||"未知").reverse(),axisLine:{lineStyle:{color:"#e2e8f0"}},axisLabel:{color:"#64748b",fontSize:11,width:100,overflow:"truncate"}},series:[{data:S.map(D=>D.usage_count).reverse(),type:"bar",itemStyle:{color:D=>{const M=["#3b82f6","#06b6d4","#8b5cf6","#f59e0b","#10b981","#ef4444","#ec4899","#6366f1","#14b8a6","#f97316"];return M[D.dataIndex%M.length]},borderRadius:[0,4,4,0]},label:{show:!0,position:"right",color:"#64748b",fontSize:11}}]},C=u.reduce((D,M)=>D+M.usage_count,0);return A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"工作台"}),A.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:["平台运营数据概览",h&&A.jsxs("span",{className:"ml-2 text-xs text-slate-400",children:["更新于 ",h.toLocaleTimeString()]})]})]}),A.jsxs("button",{onClick:x,disabled:t,className:"flex items-center gap-2 px-4 py-2 text-sm text-slate-600 hover:text-slate-800 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:shadow-sm disabled:opacity-50 cursor-pointer transition-all",children:[A.jsx(id,{className:`w-4 h-4 ${t?"animate-spin":""}`}),"刷新数据"]})]}),A.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[A.jsx(qp,{title:"今日新增用户",value:i.todayNewUsers,change:i.todayNewUsersChange,icon:A.jsx(Tc,{className:"w-5 h-5 text-blue-600"}),iconBg:"bg-blue-50",loading:t}),A.jsx(qp,{title:"总用户数",value:i.totalUsers.toLocaleString(),icon:A.jsx(Tc,{className:"w-5 h-5 text-slate-600"}),iconBg:"bg-slate-100",loading:t,hideChange:!0}),A.jsx(qp,{title:"活跃用户 (7日)",value:i.activeUsers.toLocaleString(),icon:A.jsx(eI,{className:"w-5 h-5 text-emerald-600"}),iconBg:"bg-emerald-50",loading:t,hideChange:!0}),A.jsx(qp,{title:"模型总调用",value:C.toLocaleString(),icon:A.jsx(Qg,{className:"w-5 h-5 text-amber-600"}),iconBg:"bg-amber-50",loading:a,hideChange:!0})]}),A.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[A.jsx("button",{onClick:()=>r("/models"),className:"group bg-white rounded-xl border border-slate-200 p-4 hover:border-blue-200 hover:shadow-md transition-all cursor-pointer text-left",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-blue-50 rounded-lg flex items-center justify-center group-hover:bg-blue-100 transition-colors",children:A.jsx(rI,{className:"w-5 h-5 text-blue-600"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-semibold text-slate-800",children:"模型管理"}),A.jsx("p",{className:"text-xs text-slate-500",children:"管理云端和私域模型"})]})]}),A.jsx(y_,{className:"w-4 h-4 text-slate-400 group-hover:text-blue-500 group-hover:translate-x-0.5 transition-all"})]})}),A.jsx("button",{onClick:()=>r("/users"),className:"group bg-white rounded-xl border border-slate-200 p-4 hover:border-emerald-200 hover:shadow-md transition-all cursor-pointer text-left",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-emerald-50 rounded-lg flex items-center justify-center group-hover:bg-emerald-100 transition-colors",children:A.jsx(Tc,{className:"w-5 h-5 text-emerald-600"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-semibold text-slate-800",children:"用户管理"}),A.jsx("p",{className:"text-xs text-slate-500",children:"查看和管理平台用户"})]})]}),A.jsx(y_,{className:"w-4 h-4 text-slate-400 group-hover:text-emerald-500 group-hover:translate-x-0.5 transition-all"})]})}),A.jsx("button",{onClick:()=>r("/stats/usage"),className:"group bg-white rounded-xl border border-slate-200 p-4 hover:border-purple-200 hover:shadow-md transition-all cursor-pointer text-left",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-purple-50 rounded-lg flex items-center justify-center group-hover:bg-purple-100 transition-colors",children:A.jsx(Qg,{className:"w-5 h-5 text-purple-600"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-semibold text-slate-800",children:"用量分析"}),A.jsx("p",{className:"text-xs text-slate-500",children:"查看模型调用统计"})]})]}),A.jsx(y_,{className:"w-4 h-4 text-slate-400 group-hover:text-purple-500 group-hover:translate-x-0.5 transition-all"})]})})]}),A.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"用户增长趋势"}),A.jsx("span",{className:"text-xs text-slate-400 bg-slate-50 px-2 py-1 rounded",children:"近30天"})]}),a?A.jsx("div",{className:"h-[280px] flex items-center justify-center",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-blue-500"})}):s.length===0?A.jsx("div",{className:"h-[280px] flex items-center justify-center text-slate-400",children:"暂无数据"}):A.jsx(Jv,{option:_,style:{height:280}})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"模型使用排行"}),A.jsx("span",{className:"text-xs text-slate-400 bg-slate-50 px-2 py-1 rounded",children:"Top 10"})]}),a?A.jsx("div",{className:"h-[320px] flex items-center justify-center",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-blue-500"})}):u.length===0?A.jsx("div",{className:"h-[320px] flex items-center justify-center text-slate-400",children:"暂无数据"}):A.jsx(Jv,{option:w,style:{height:320}})]})]})]})},Xde=()=>{const r=Yl(),[t,e]=qH(),[a,n]=q.useState(""),[i,o]=q.useState(""),[s,l]=q.useState(!1),[u,c]=q.useState([]),[h,v]=q.useState(0),p=parseInt(t.get("page")||"1",10),g=10,y=async()=>{l(!0);try{const E=await Yo.list({page:p,page_size:g,keyword:a||void 0,status:i||void 0});c(E.items),v(E.total)}catch(E){console.error("获取用户列表失败:",E)}finally{l(!1)}};q.useEffect(()=>{y()},[p,a,i]);const x=Math.ceil(h/g),_=E=>{e({page:String(E)})},S=()=>{e({page:"1"}),y()},w=async(E,N)=>{const B=N==="active"?"disabled":"active";try{await Yo.updateStatus(E,B),y()}catch(R){alert("操作失败: "+R.message)}},C=async E=>{if(confirm("确定要重置该用户的密码吗?"))try{const N=await Yo.resetPassword(E);alert(`密码已重置为: ${N.new_password}`)}catch(N){alert("操作失败: "+N.message)}},D=()=>{n(""),o("")},M=a||i;return A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"用户管理"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"管理平台所有注册用户"})]}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-4",children:A.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[A.jsxs("div",{className:"relative flex-1 min-w-[240px]",children:[A.jsx(ay,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),A.jsx("input",{type:"text",value:a,onChange:E=>n(E.target.value),onKeyDown:E=>E.key==="Enter"&&S(),placeholder:"搜索用户名、手机号、邮箱",className:"w-full pl-10 pr-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("select",{value:i,onChange:E=>o(E.target.value),className:"px-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent cursor-pointer",children:[A.jsx("option",{value:"",children:"全部状态"}),A.jsx("option",{value:"active",children:"正常"}),A.jsx("option",{value:"disabled",children:"已禁用"})]}),M&&A.jsxs("button",{onClick:D,className:"flex items-center gap-1 px-3 py-2 text-sm text-slate-500 hover:text-slate-700 transition-colors cursor-pointer",children:[A.jsx(Tl,{className:"w-4 h-4"}),"清除筛选"]})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 overflow-hidden",children:s?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-primary-500"})}):A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"overflow-x-auto",children:A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"ID"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"用户名"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"昵称"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"手机号"}),A.jsx("th",{className:"text-center py-3 px-4 text-sm font-medium text-slate-600",children:"实名认证"}),A.jsx("th",{className:"text-center py-3 px-4 text-sm font-medium text-slate-600",children:"状态"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"注册时间"}),A.jsx("th",{className:"text-center py-3 px-4 text-sm font-medium text-slate-600",children:"操作"})]})}),A.jsx("tbody",{children:u.map(E=>A.jsxs("tr",{className:"border-b border-slate-100 hover:bg-slate-50 transition-colors",children:[A.jsx("td",{className:"py-3 px-4 text-sm font-mono text-slate-600",children:E.id}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-800",children:E.username}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-800",children:E.nickname||"-"}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600",children:E.phone||"-"}),A.jsx("td",{className:"py-3 px-4 text-center",children:E.is_verified==="verified"?A.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-green-50 text-green-700",children:[A.jsx(aI,{className:"w-3.5 h-3.5"}),"已认证"]}):A.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-slate-50 text-slate-500",children:[A.jsx(GY,{className:"w-3.5 h-3.5"}),"未认证"]})}),A.jsx("td",{className:"py-3 px-4 text-center",children:A.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${E.status==="active"?"bg-green-50 text-green-700":"bg-red-50 text-red-700"}`,children:E.status==="active"?"正常":"已禁用"})}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-500",children:E.registration_date?new Date(E.registration_date).toLocaleDateString():"-"}),A.jsx("td",{className:"py-3 px-4",children:A.jsxs("div",{className:"flex items-center justify-center gap-2",children:[A.jsx("button",{onClick:()=>r(`/users/${E.id}`),className:"text-sm text-primary-600 hover:text-primary-700 hover:underline cursor-pointer",children:"详情"}),A.jsx("button",{onClick:()=>w(E.id,E.status),className:`p-1.5 rounded-lg transition-colors cursor-pointer ${E.status==="active"?"text-red-500 hover:bg-red-50":"text-green-500 hover:bg-green-50"}`,title:E.status==="active"?"禁用":"启用",children:E.status==="active"?A.jsx(kU,{className:"w-4 h-4"}):A.jsx($w,{className:"w-4 h-4"})}),A.jsx("button",{onClick:()=>C(E.id),className:"p-1.5 text-slate-400 hover:text-slate-600 hover:bg-slate-100 rounded-lg transition-colors cursor-pointer",title:"重置密码",children:A.jsx(kY,{className:"w-4 h-4"})})]})})]},E.id))})]})}),A.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-slate-200",children:[A.jsxs("div",{className:"text-sm text-slate-500",children:["共 ",h," 条记录,第 ",p," / ",x||1," 页"]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("button",{onClick:()=>_(p-1),disabled:p<=1,className:"p-2 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:A.jsx(ad,{className:"w-4 h-4"})}),Array.from({length:Math.min(5,x)},(E,N)=>{let B;return x<=5||p<=3?B=N+1:p>=x-2?B=x-4+N:B=p-2+N,A.jsx("button",{onClick:()=>_(B),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors cursor-pointer ${p===B?"bg-primary-500 text-white":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:B},B)}),A.jsx("button",{onClick:()=>_(p+1),disabled:p>=x,className:"p-2 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:A.jsx(nd,{className:"w-4 h-4"})})]})]})]})})]})},Zde=()=>{const{id:r}=nH(),t=Yl(),[e,a]=q.useState(!0),[n,i]=q.useState(null),[o,s]=q.useState(null),[l,u]=q.useState(!1),[c,h]=q.useState([]),[v,p]=q.useState(!1),[g,y]=q.useState(null),x=async()=>{if(r){a(!0);try{const[w,C]=await Promise.all([Yo.getDetail(r),Yo.getUsageStats(r)]);i(w),s(C);try{const M=(await Yo.getLocalModelPermissions(r)).map(N=>({id:N.model_id.toString(),model_id:N.model_id,name:N.model_name,endpoint:N.base_url,selected:N.has_access}));h(M);const E=M.length>0&&M.every(N=>N.selected);u(E)}catch(D){console.error("获取本地模型权限失败:",D),h([]),u(!1)}}catch(w){console.error("获取用户详情失败:",w)}finally{a(!1)}}};if(q.useEffect(()=>{x()},[r]),e)return A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-primary-500"})});if(!n)return A.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[A.jsx("p",{className:"text-slate-500",children:"用户不存在"}),A.jsx("button",{onClick:()=>t("/users"),className:"mt-4 text-primary-600 hover:underline cursor-pointer",children:"返回用户列表"})]});const _=async w=>{u(w),p(!0),y(null);try{await Yo.updateAllLocalModelPermissions(r,w),h(C=>C.map(D=>({...D,selected:w}))),y({type:"success",text:"权限更新成功"})}catch(C){console.error("更新权限失败:",C),y({type:"error",text:"权限更新失败"}),u(!w)}finally{p(!1),setTimeout(()=>y(null),3e3)}},S=async(w,C)=>{const D=c.find(M=>M.id===w);if(D){p(!0),y(null);try{await Yo.updateLocalModelPermission(r,D.model_id,C),h(N=>N.map(B=>B.id===w?{...B,selected:C}:B)),C||u(!1);const M=c.map(N=>N.id===w?{...N,selected:C}:N);M.length>0&&M.every(N=>N.selected)&&u(!0),y({type:"success",text:"权限更新成功"})}catch(M){console.error("更新权限失败:",M),y({type:"error",text:"权限更新失败"})}finally{p(!1),setTimeout(()=>y(null),3e3)}}};return A.jsxs("div",{className:"space-y-6",children:[A.jsxs("button",{onClick:()=>t("/users"),className:"flex items-center gap-2 text-slate-600 hover:text-slate-800 transition-colors cursor-pointer",children:[A.jsx(LU,{className:"w-4 h-4"}),A.jsx("span",{className:"text-sm",children:"返回用户列表"})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-6",children:[A.jsx("div",{className:"flex items-start justify-between",children:A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-primary-400 to-primary-600 rounded-full flex items-center justify-center text-white text-2xl font-bold",children:(n.nickname||n.username).charAt(0)}),A.jsxs("div",{children:[A.jsx("h1",{className:"text-xl font-bold text-slate-800",children:n.nickname||n.username}),A.jsxs("p",{className:"text-sm text-slate-500 font-mono",children:["ID: ",n.id]}),A.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium mt-2 ${n.status==="active"?"bg-green-50 text-green-700":"bg-red-50 text-red-700"}`,children:n.status==="active"?"正常":"已禁用"})]})]})}),A.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-6 pt-6 border-t border-slate-100",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-slate-100 rounded-lg flex items-center justify-center",children:A.jsx(lW,{className:"w-5 h-5 text-slate-500"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs text-slate-500",children:"用户名"}),A.jsx("p",{className:"text-sm font-medium text-slate-800",children:n.username})]})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-slate-100 rounded-lg flex items-center justify-center",children:A.jsx(LY,{className:"w-5 h-5 text-slate-500"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs text-slate-500",children:"手机号"}),A.jsx("p",{className:"text-sm font-medium text-slate-800",children:n.phone||"-"})]})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-slate-100 rounded-lg flex items-center justify-center",children:A.jsx(CY,{className:"w-5 h-5 text-slate-500"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs text-slate-500",children:"邮箱"}),A.jsx("p",{className:"text-sm font-medium text-slate-800",children:n.email||"-"})]})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"w-10 h-10 bg-slate-100 rounded-lg flex items-center justify-center",children:A.jsx(GU,{className:"w-5 h-5 text-slate-500"})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs text-slate-500",children:"注册时间"}),A.jsx("p",{className:"text-sm font-medium text-slate-800",children:n.registration_date?new Date(n.registration_date).toLocaleDateString():"-"})]})]})]})]}),o&&A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-6",children:[A.jsx("h2",{className:"text-base font-semibold text-slate-800 mb-4",children:"使用统计"}),A.jsx("div",{className:"grid grid-cols-1 gap-4",children:A.jsxs("div",{className:"p-4 bg-slate-50 rounded-lg",children:[A.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[A.jsx(Qw,{className:"w-4 h-4 text-cyan-500"}),A.jsx("span",{className:"text-sm text-slate-600",children:"开放平台API"})]}),A.jsxs("p",{className:"text-lg font-semibold text-slate-800",children:[o.api_call_count," 次"]}),A.jsxs("p",{className:"text-xs text-slate-500",children:["输入: ",o.api_input_tokens," / 输出: ",o.api_output_tokens]})]})})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-6",children:[A.jsx("h2",{className:"text-base font-semibold text-slate-800 mb-4",children:"私域密钥管理"}),g&&A.jsxs("div",{className:`flex items-center gap-2 p-3 rounded-lg mb-4 ${g.type==="success"?"bg-green-50 text-green-700":"bg-red-50 text-red-700"}`,children:[g.type==="success"?A.jsx(KU,{className:"w-4 h-4"}):A.jsx(Kw,{className:"w-4 h-4"}),A.jsx("span",{className:"text-sm",children:g.text})]}),A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-medium text-slate-700",children:"访问所有私域模型"}),A.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"开启后,用户的私域密钥可以访问所有私域模型"})]}),A.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[A.jsx("input",{type:"checkbox",className:"sr-only peer",checked:l,onChange:w=>_(w.target.checked),disabled:v}),A.jsx("div",{className:`w-11 h-6 ${l?"bg-primary-500":"bg-slate-200"} peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all ${v?"opacity-50":""}`})]})]}),A.jsxs("div",{className:"pt-4 border-t border-slate-100",children:[A.jsx("h3",{className:"text-sm font-medium text-slate-700 mb-3",children:"可访问的私域模型"}),A.jsx("div",{className:"space-y-2",children:c.length>0?c.map(w=>A.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-50 rounded-lg",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-medium text-slate-800",children:w.name}),A.jsx("p",{className:"text-xs text-slate-500",children:w.endpoint})]}),A.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[A.jsx("input",{type:"checkbox",className:"sr-only peer",checked:w.selected,onChange:C=>S(w.id,C.target.checked),disabled:v}),A.jsx("div",{className:`w-11 h-6 ${w.selected?"bg-primary-500":"bg-slate-200"} peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all ${v?"opacity-50":""}`})]})]},w.id)):A.jsx("div",{className:"p-4 text-center text-slate-500",children:"暂无私域模型"})})]})]})]})]})},MB={0:"语言模型",1:"多模态",2:"TTS",3:"STT",4:"文生图",5:"生视频",6:"图生图",7:"Embedding",8:"Rerank"},$de=[0,1,2,3,4,5,6,7,8],Kde=()=>{const[r,t]=q.useState([]),[e,a]=q.useState(!1),[n,i]=q.useState(""),[o,s]=q.useState(""),[l,u]=q.useState(0),[c,h]=q.useState(1),[v,p]=q.useState(20),[g,y]=q.useState(!1),[x,_]=q.useState(null),[S,w]=q.useState(!1),[C,D]=q.useState({}),[M,E]=q.useState(!1),[N,B]=q.useState("simple"),[R,I]=q.useState(""),[P,z]=q.useState(""),[V,G]=q.useState("tokens"),[F,Y]=q.useState([]),W=async()=>{a(!0);try{const ee=await Wu.list({page:c,page_size:v,keyword:n||void 0,model_type:o||void 0});t(ee.items),u(ee.total)}catch(ee){console.error("获取模型列表失败:",ee)}finally{a(!1)}};q.useEffect(()=>{W()},[c,n,o,v]);const X=Math.ceil(l/v),te=async(ee,se)=>{try{const ue=ee[se];await Wu.updateStatus(ee.id,se,!ue),W()}catch(ue){alert("操作失败: "+ue.message)}},j=async ee=>{var se,ue,we;try{const ve=await Wu.getDetail(ee.id);w(!1),_(ve),D({title:ve.title,name:ve.name,img:ve.img,categories:(se=ve.categories)!=null&&se.length?ve.categories:[ve.category??0],supplier:ve.supplier,description:ve.description||"",tag1:ve.tag1||"",tag2:ve.tag2||"",keyword:ve.keyword||"",is_featured:ve.is_featured,is_search:ve.is_search,is_thinking:ve.is_thinking,is_show_enabled:ve.is_show_enabled,is_api_enabled:ve.is_api_enabled}),ve.price?(B(ve.price.pricing_mode),I(((ue=ve.price.input_price)==null?void 0:ue.toString())||""),z(((we=ve.price.output_price)==null?void 0:we.toString())||""),G(ve.price.unit||"tokens"),ve.price.tiers?Y(ve.price.tiers.map(Ae=>({tier_min:Ae.tier_min,tier_max:Ae.tier_max,input_price:Ae.input_price.toString(),output_price:Ae.output_price.toString()}))):Y([])):(B("simple"),I(""),z(""),G("tokens"),Y([])),y(!0)}catch(ve){alert("获取模型详情失败: "+ve.message)}},U=async()=>{if(!C.title||!C.name||!C.img||!C.supplier){alert("请填写必填字段");return}E(!0);try{if(S)await Wu.create(C);else if(x){await Wu.update(x.id,C);const ee=N==="simple"?{pricing_mode:"simple",input_price:parseFloat(R)||0,output_price:parseFloat(P)||0,unit:V}:{pricing_mode:"tier",unit:V,tiers:F.map(se=>({tier_min:se.tier_min,tier_max:se.tier_max,input_price:parseFloat(se.input_price)||0,output_price:parseFloat(se.output_price)||0}))};await Wu.updatePrice(x.id,ee.input_price||0,ee.output_price||0)}y(!1),W()}catch(ee){alert("保存失败: "+ee.message)}finally{E(!1)}},Z=()=>{const ee=F[F.length-1],se=ee?(ee.tier_max||0)+1:0;Y([...F,{tier_min:se,tier_max:null,input_price:"",output_price:""}])},$=ee=>{Y(F.filter((se,ue)=>ue!==ee))},fe=(ee,se,ue)=>{const we=[...F];we[ee]={...we[ee],[se]:ue},Y(we)},ye=ee=>{if(!ee.price_unit)return"—";const se=ee.discount_rate!==null&&ee.discount_rate<.9999,ue=ee.input_price_discounted??0,we=ee.output_price_discounted??0,ve=ee.input_price_original??0,Ae=ee.output_price_original??0,Ue=ee.price_unit;if(se){const Ke=`¥${ve>0?ve:Ae}`,ot=`¥${ue>0?ue:we}`;return A.jsxs("span",{className:"flex flex-col leading-tight",children:[A.jsxs("span",{className:"line-through text-slate-400 text-xs",children:[Ke," / ",Ue]}),A.jsxs("span",{className:"text-blue-600 font-medium text-xs",children:[ot," / ",Ue,ee.discount_label&&A.jsx("span",{className:"ml-1 px-1 py-0.5 bg-red-500 text-white text-[10px] font-bold rounded",children:ee.discount_label})]})]})}const De=ue>0?ue:we;return A.jsxs("span",{className:"text-xs text-slate-600",children:["¥",De," / ",Ue]})};return A.jsxs("div",{className:"space-y-6",children:[A.jsx("div",{className:"flex items-center justify-between",children:A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"模型管理"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"管理平台所有AI模型"})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-4",children:A.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[A.jsxs("div",{className:"relative flex-1 min-w-[240px]",children:[A.jsx(ay,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),A.jsx("input",{type:"text",value:n,onChange:ee=>i(ee.target.value),placeholder:"搜索模型标识、名称",className:"w-full pl-10 pr-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("select",{value:o,onChange:ee=>s(ee.target.value),className:"px-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[A.jsx("option",{value:"",children:"全部分类"}),A.jsx("option",{value:"0",children:"语言模型"}),A.jsx("option",{value:"1",children:"多模态"}),A.jsx("option",{value:"2",children:"TTS"}),A.jsx("option",{value:"3",children:"STT"}),A.jsx("option",{value:"4",children:"生图模型"}),A.jsx("option",{value:"5",children:"生视频"})]})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 overflow-hidden",children:e?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-primary-500"})}):A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"overflow-x-auto",children:A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"ID"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"图标"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"模型标识"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600",children:"显示名称"}),A.jsx("th",{className:"text-left py-3 px-3 text-sm font-medium text-slate-600",children:"描述"}),A.jsx("th",{className:"text-left py-3 px-3 text-sm font-medium text-slate-600",children:"分类"}),A.jsx("th",{className:"text-left py-3 px-3 text-sm font-medium text-slate-600",children:"供应商"}),A.jsx("th",{className:"text-left py-3 px-3 text-sm font-medium text-slate-600",children:"价格(折扣价)"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600",children:"特性"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600",children:"展示"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600",children:"API"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600",children:"精选"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600",children:"操作"})]})}),A.jsx("tbody",{children:r.map(ee=>{var se;return A.jsxs("tr",{className:"border-b border-slate-100 hover:bg-slate-50",children:[A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600",children:ee.id}),A.jsx("td",{className:"py-3 px-4",children:ee.img?A.jsx("img",{src:ee.img,alt:ee.model_code,className:"w-8 h-8 rounded-lg object-cover"}):A.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-200 flex items-center justify-center text-slate-400 text-xs",children:"无"})}),A.jsx("td",{className:"py-3 px-4 text-xs font-mono text-slate-600 max-w-[140px] truncate",title:ee.model_code,children:ee.model_code}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-800 max-w-[120px] truncate",title:ee.title||ee.model_code,children:ee.title||A.jsx("span",{className:"text-slate-400 italic",children:"未设置"})}),A.jsx("td",{className:"py-3 px-3 max-w-[200px]",children:A.jsx("p",{className:"text-xs text-slate-500 line-clamp-2 leading-relaxed",children:ee.description||"—"})}),A.jsx("td",{className:"py-3 px-3",children:A.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs bg-slate-100 text-slate-700",children:((se=ee.categories)!=null&&se.length?ee.categories:[ee.category]).map(ue=>MB[ue]||`分类${ue}`).join("/")})}),A.jsx("td",{className:"py-3 px-3 text-sm text-slate-600",children:ee.supplier}),A.jsx("td",{className:"py-3 px-3",children:ye(ee)}),A.jsx("td",{className:"py-3 px-2",children:A.jsxs("div",{className:"flex justify-center gap-1",children:[ee.is_search&&A.jsx("span",{title:"联网搜索",children:A.jsx(Qw,{className:"w-4 h-4 text-blue-500"})}),ee.is_thinking&&A.jsx("span",{title:"思考模式",children:A.jsx(VU,{className:"w-4 h-4 text-purple-500"})})]})}),A.jsx("td",{className:"py-3 px-2 text-center",children:A.jsx("button",{onClick:()=>te(ee,"is_show_enabled"),className:`p-1.5 rounded-lg cursor-pointer ${ee.is_show_enabled?"text-green-500 hover:bg-green-50":"text-slate-400 hover:bg-slate-100"}`,children:ee.is_show_enabled?A.jsx(ry,{className:"w-4 h-4"}):A.jsx(ty,{className:"w-4 h-4"})})}),A.jsx("td",{className:"py-3 px-2 text-center",children:A.jsx("button",{onClick:()=>te(ee,"is_api_enabled"),className:`p-1.5 rounded-lg cursor-pointer ${ee.is_api_enabled?"text-primary-500 hover:bg-primary-50":"text-slate-400 hover:bg-slate-100"}`,children:ee.is_api_enabled?A.jsx(Qg,{className:"w-4 h-4"}):A.jsx(hW,{className:"w-4 h-4"})})}),A.jsx("td",{className:"py-3 px-2 text-center",children:A.jsx("button",{onClick:()=>te(ee,"is_featured"),className:`p-1.5 rounded-lg cursor-pointer ${ee.is_featured?"text-amber-500 hover:bg-amber-50":"text-slate-400 hover:bg-slate-100"}`,children:ee.is_featured?A.jsx(KY,{className:"w-4 h-4 fill-current"}):A.jsx(ZY,{className:"w-4 h-4"})})}),A.jsx("td",{className:"py-3 px-2 text-center",children:A.jsx("button",{onClick:()=>j(ee),className:"p-1.5 text-slate-400 hover:text-primary-600 hover:bg-primary-50 rounded-lg cursor-pointer",title:"编辑模型",children:A.jsx(DY,{className:"w-4 h-4"})})})]},ee.id)})})]})}),A.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-slate-200",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsxs("div",{className:"text-sm text-slate-500",children:["共 ",A.jsx("span",{className:"font-medium text-slate-700",children:l})," 条记录"]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("span",{className:"text-sm text-slate-500",children:"每页"}),A.jsxs("select",{value:v,onChange:ee=>{p(Number(ee.target.value)),h(1)},className:"px-2 py-1 border border-slate-200 rounded text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[A.jsx("option",{value:10,children:"10"}),A.jsx("option",{value:20,children:"20"}),A.jsx("option",{value:50,children:"50"}),A.jsx("option",{value:100,children:"100"})]}),A.jsx("span",{className:"text-sm text-slate-500",children:"条"})]})]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("button",{onClick:()=>h(1),disabled:c<=1,className:"px-3 py-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer text-sm",children:"首页"}),A.jsx("button",{onClick:()=>h(ee=>Math.max(1,ee-1)),disabled:c<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:A.jsx(ad,{className:"w-4 h-4"})}),A.jsx("div",{className:"flex items-center gap-1",children:(()=>{const ee=[];let ue=Math.max(1,c-Math.floor(2.5)),we=Math.min(X,ue+5-1);we-ue<4&&(ue=Math.max(1,we-5+1)),ue>1&&(ee.push(A.jsx("button",{onClick:()=>h(1),className:"px-3 py-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 cursor-pointer text-sm",children:"1"},1)),ue>2&&ee.push(A.jsx("span",{className:"px-2 text-slate-400",children:"..."},"ellipsis1")));for(let ve=ue;ve<=we;ve++)ee.push(A.jsx("button",{onClick:()=>h(ve),className:`px-3 py-1.5 rounded-lg border text-sm cursor-pointer ${ve===c?"bg-primary-500 text-white border-primary-500":"border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:ve},ve));return we<X&&(we<X-1&&ee.push(A.jsx("span",{className:"px-2 text-slate-400",children:"..."},"ellipsis2")),ee.push(A.jsx("button",{onClick:()=>h(X),className:"px-3 py-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 cursor-pointer text-sm",children:X},X))),ee})()}),A.jsx("button",{onClick:()=>h(ee=>Math.min(X,ee+1)),disabled:c>=X,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",children:A.jsx(nd,{className:"w-4 h-4"})}),A.jsx("button",{onClick:()=>h(X),disabled:c>=X,className:"px-3 py-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer text-sm",children:"末页"}),A.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[A.jsx("span",{className:"text-sm text-slate-500",children:"跳至"}),A.jsx("input",{type:"number",min:1,max:X,onKeyDown:ee=>{if(ee.key==="Enter"){const se=parseInt(ee.target.value);se>=1&&se<=X&&h(se)}},className:"w-16 px-2 py-1 border border-slate-200 rounded text-sm text-center focus:outline-none focus:ring-2 focus:ring-primary-500",placeholder:String(c)}),A.jsx("span",{className:"text-sm text-slate-500",children:"页"})]})]})]})]})}),g&&A.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 overflow-y-auto py-8",children:A.jsxs("div",{className:"bg-white rounded-xl w-full max-w-2xl mx-4 max-h-[90vh] overflow-y-auto",children:[A.jsxs("div",{className:"sticky top-0 bg-white border-b border-slate-200 px-6 py-4 flex items-center justify-between",children:[A.jsx("h3",{className:"text-lg font-semibold text-slate-800",children:S?"添加模型":`编辑模型 - ${x==null?void 0:x.name}`}),A.jsx("button",{onClick:()=>y(!1),className:"p-1 hover:bg-slate-100 rounded cursor-pointer",children:A.jsx(Tl,{className:"w-5 h-5 text-slate-400"})})]}),A.jsxs("div",{className:"p-6 space-y-6",children:[A.jsxs("div",{className:"space-y-4",children:[A.jsx("h4",{className:"text-sm font-medium text-slate-700 border-b pb-2",children:"基本信息"}),A.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型标识 *"}),A.jsx("input",{type:"text",value:C.title||"",onChange:ee=>D({...C,title:ee.target.value}),placeholder:"如: qwen-max",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"显示名称 *"}),A.jsx("input",{type:"text",value:C.name||"",onChange:ee=>D({...C,name:ee.target.value}),placeholder:"如: 通义千问Max",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"图标URL *"}),A.jsx("input",{type:"text",value:C.img||"",onChange:ee=>D({...C,img:ee.target.value}),placeholder:"https://...",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"供应商 *"}),A.jsx("input",{type:"text",value:C.supplier||"",onChange:ee=>D({...C,supplier:ee.target.value}),placeholder:"如: 阿里云",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"分类 *"}),A.jsx("div",{className:"grid grid-cols-3 gap-2",children:$de.map(ee=>A.jsxs("label",{className:"flex items-center gap-1.5 text-sm cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:(C.categories||[]).includes(ee),onChange:se=>{const ue=C.categories||[];D({...C,categories:se.target.checked?[...ue,ee]:ue.filter(we=>we!==ee)})},className:"rounded border-slate-300"}),MB[ee]]},ee))})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"关键词"}),A.jsx("input",{type:"text",value:C.keyword||"",onChange:ee=>D({...C,keyword:ee.target.value}),placeholder:"搜索关键词",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"描述"}),A.jsx("textarea",{value:C.description||"",onChange:ee=>D({...C,description:ee.target.value}),rows:2,placeholder:"模型描述",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"主标签"}),A.jsx("input",{type:"text",value:C.tag1||"",onChange:ee=>D({...C,tag1:ee.target.value}),placeholder:"如: 推荐",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"次要标签"}),A.jsx("input",{type:"text",value:C.tag2||"",onChange:ee=>D({...C,tag2:ee.target.value}),placeholder:"如: 新品",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]})]})]}),A.jsxs("div",{className:"space-y-4",children:[A.jsx("h4",{className:"text-sm font-medium text-slate-700 border-b pb-2",children:"特性设置"}),A.jsxs("div",{className:"flex flex-wrap gap-6",children:[A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:C.is_show_enabled??!0,onChange:ee=>D({...C,is_show_enabled:ee.target.checked}),className:"w-4 h-4 rounded border-slate-300 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"前台展示"})]}),A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:C.is_api_enabled??!1,onChange:ee=>D({...C,is_api_enabled:ee.target.checked}),className:"w-4 h-4 rounded border-slate-300 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"API启用"})]}),A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:C.is_featured??!1,onChange:ee=>D({...C,is_featured:ee.target.checked}),className:"w-4 h-4 rounded border-slate-300 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"精选推荐"})]}),A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:C.is_search??!1,onChange:ee=>D({...C,is_search:ee.target.checked}),className:"w-4 h-4 rounded border-slate-300 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"联网搜索"})]}),A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:C.is_thinking??!1,onChange:ee=>D({...C,is_thinking:ee.target.checked}),className:"w-4 h-4 rounded border-slate-300 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"思考模式"})]})]})]}),!S&&A.jsxs("div",{className:"space-y-4",children:[A.jsx("h4",{className:"text-sm font-medium text-slate-700 border-b pb-2",children:"价格设置"}),A.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"radio",name:"pricingMode",checked:N==="simple",onChange:()=>B("simple"),className:"w-4 h-4 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"简单计价"})]}),A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[A.jsx("input",{type:"radio",name:"pricingMode",checked:N==="tier",onChange:()=>B("tier"),className:"w-4 h-4 text-primary-500 focus:ring-primary-500"}),A.jsx("span",{className:"text-sm text-slate-700",children:"阶梯计价"})]}),A.jsxs("div",{className:"ml-auto",children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1",children:"计价单位"}),A.jsxs("select",{value:V,onChange:ee=>G(ee.target.value),className:"px-3 py-1.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[A.jsx("option",{value:"tokens",children:"千tokens"}),A.jsx("option",{value:"characters",children:"千字符"}),A.jsx("option",{value:"seconds",children:"秒"}),A.jsx("option",{value:"images",children:"张"}),A.jsx("option",{value:"minutes",children:"分钟"})]})]})]}),N==="simple"?A.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"输入价格(元)"}),A.jsx("input",{type:"number",value:R,onChange:ee=>I(ee.target.value),step:"0.0001",min:"0",placeholder:"0.0000",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"输出价格(元)"}),A.jsx("input",{type:"number",value:P,onChange:ee=>z(ee.target.value),step:"0.0001",min:"0",placeholder:"0.0000",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]})]}):A.jsxs("div",{className:"space-y-3",children:[F.map((ee,se)=>A.jsxs("div",{className:"flex items-center gap-3 p-3 bg-slate-50 rounded-lg",children:[A.jsxs("div",{className:"flex-1 grid grid-cols-4 gap-3",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"起始量"}),A.jsx("input",{type:"number",value:ee.tier_min,onChange:ue=>fe(se,"tier_min",parseInt(ue.target.value)||0),className:"w-full px-2 py-1.5 border border-slate-200 rounded text-sm"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"结束量"}),A.jsx("input",{type:"number",value:ee.tier_max??"",onChange:ue=>fe(se,"tier_max",ue.target.value?parseInt(ue.target.value):null),placeholder:"无限",className:"w-full px-2 py-1.5 border border-slate-200 rounded text-sm"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"输入价格"}),A.jsx("input",{type:"number",value:ee.input_price,onChange:ue=>fe(se,"input_price",ue.target.value),step:"0.0001",className:"w-full px-2 py-1.5 border border-slate-200 rounded text-sm"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"输出价格"}),A.jsx("input",{type:"number",value:ee.output_price,onChange:ue=>fe(se,"output_price",ue.target.value),step:"0.0001",className:"w-full px-2 py-1.5 border border-slate-200 rounded text-sm"})]})]}),A.jsx("button",{onClick:()=>$(se),className:"p-1 text-red-500 hover:bg-red-50 rounded cursor-pointer",children:A.jsx(Tl,{className:"w-4 h-4"})})]},se)),A.jsx("button",{onClick:Z,className:"w-full py-2 border-2 border-dashed border-slate-300 rounded-lg text-sm text-slate-500 hover:border-primary-400 hover:text-primary-500 cursor-pointer",children:"+ 添加阶梯"})]})]})]}),A.jsxs("div",{className:"sticky bottom-0 bg-white border-t border-slate-200 px-6 py-4 flex justify-end gap-3",children:[A.jsx("button",{onClick:()=>y(!1),className:"px-4 py-2 border border-slate-200 text-slate-600 rounded-lg text-sm font-medium hover:bg-slate-50 cursor-pointer",children:"取消"}),A.jsxs("button",{onClick:U,disabled:M,className:"px-4 py-2 bg-primary-500 text-white rounded-lg text-sm font-medium hover:bg-primary-600 disabled:opacity-50 cursor-pointer flex items-center gap-2",children:[M&&A.jsx(Br,{className:"w-4 h-4 animate-spin"}),S?"创建":"保存"]})]})]})})]})},Qde={user:"个人",global:"全局"},Jde=()=>{const r=me=>(Array.isArray(me)?me:[typeof me=="string"?Number(me):me]).map(zt=>{var er;return((er=ue.find(Zt=>Zt.value===zt))==null?void 0:er.label)||`分类${zt}`}).join("/"),[t,e]=q.useState([]),[a,n]=q.useState(!1),[i,o]=q.useState(""),[s,l]=q.useState(""),[u,c]=q.useState(""),[h,v]=q.useState(0),[p,g]=q.useState(1),[y,x]=q.useState(20),[_,S]=q.useState(!0),[w,C]=q.useState(!1),[D,M]=q.useState(!1),[E,N]=q.useState({name:"",supplier:"Custom",base_url:"",api_key:"",categories:[0],visibility:"user"}),[B,R]=q.useState(!1),[I,P]=q.useState(!1),[z,V]=q.useState(null),[G,F]=q.useState(!1),[Y,W]=q.useState(null),[X,te]=q.useState({name:"",supplier:"Custom",base_url:"",api_key:"",categories:[0],visibility:"user"}),[j,U]=q.useState(!1),[Z,$]=q.useState(null),[fe,ye]=q.useState(!1),[ee,se]=q.useState(null),ue=[{value:0,label:"语言模型 (LLM)"},{value:1,label:"多模态模型"},{value:2,label:"语音合成 (TTS)"},{value:3,label:"语音识别 (STT)"},{value:4,label:"图像生成 (文生图)"},{value:5,label:"视频生成"},{value:6,label:"图像编辑 (图生图)"},{value:7,label:"向量嵌入 (Embedding)"},{value:8,label:"重排序 (Rerank)"}],we=async()=>{var me;n(!0);try{let at={page:p,page_size:y,keyword:i||void 0,visibility:u||void 0};if(u==="user"&&!s){const er=rd.getState();(me=er.user)!=null&&me.id&&(at.user_id=String(er.user.id))}else at.user_id=s||void 0;const zt=await zs.list(at);e(zt.items),v(zt.total)}catch(at){console.error("获取本地模型列表失败:",at)}finally{n(!1)}},ve=async()=>{try{const me=await Oc.getAll();S(me.enable_local_models!==!1)}catch(me){console.error("获取系统配置失败:",me)}};q.useEffect(()=>{ve(),we()},[p,i,s,u,y]);const Ae=Math.ceil(h/y),Ue=me=>me.replace(/^local_[0-9a-fA-F-]{36}_/,""),De=(me,at="success")=>{$({message:me,type:at}),setTimeout(()=>$(null),3e3)},Ke=async me=>{const at=me.visibility==="user"?"global":"user";try{await zs.updateVisibility(me.id,at),we(),De("更新可见性成功")}catch(zt){De("更新可见性失败: "+zt.message,"error")}},ot=me=>{se(me),ye(!0)},Lt=async()=>{if(ee){ye(!1);try{await zs.delete(ee.id),we(),De("删除成功")}catch(me){De("删除失败: "+me.message,"error")}finally{se(null)}}},Pt=()=>{ye(!1),se(null)},Ht=async()=>{C(!0);try{await Oc.update({enable_local_models:!_}),S(!_),De(_?"已关闭本地模型全局开关":"已开启本地模型全局开关")}catch(me){De("更新配置失败: "+me.message,"error")}finally{C(!1)}},vr=()=>{N({name:"",supplier:"Custom",base_url:"",api_key:"",categories:[0],visibility:"user"}),V(null),M(!0)},kt=()=>{M(!1),V(null)},Wt=me=>{const{name:at,value:zt}=me.target;N(er=>({...er,[at]:zt})),(at==="base_url"||at==="api_key")&&V(null)},Pr=async()=>{if(!E.base_url){De("请先填写API地址","error");return}P(!0),V(null);try{const me=await zs.testConnection({base_url:E.base_url,api_key:E.api_key||void 0,model_name:E.name||void 0,categories:E.categories});V(me),me.success||De(me.message,"error")}catch(me){const at=me.message||"测试连接失败";V({success:!1,message:at}),De(at,"error")}finally{P(!1)}},or=async()=>{if(!E.name||!E.supplier||!E.base_url){De("模型名称、提供商和API地址为必填项","error");return}R(!0);try{await zs.create(E),M(!1),we(),De("添加成功")}catch(me){De("添加失败: "+me.message,"error")}finally{R(!1)}},au=me=>{W(me),te({name:me.name,supplier:me.supplier||"Custom",base_url:me.base_url,api_key:"",categories:Array.isArray(me.categories)?me.categories:[typeof me.category=="string"?Number(me.category):me.category||0],visibility:me.visibility}),U(!1),V(null),F(!0)},ja=()=>{F(!1),W(null),U(!1),V(null)},ua=me=>{const{name:at,value:zt}=me.target;te(er=>({...er,[at]:zt})),(at==="base_url"||at==="api_key")&&V(null)},oo=async()=>{if(!X.base_url){De("请先填写API地址","error");return}P(!0),V(null);try{const me=X.api_key||void 0,at=await zs.testConnection({base_url:X.base_url,api_key:me,model_name:X.name||void 0,categories:X.categories});V(at),at.success||De(at.message,"error")}catch(me){const at=me.message||"测试连接失败";V({success:!1,message:at}),De(at,"error")}finally{P(!1)}},nu=async()=>{if(Y){if(!X.name||!X.supplier||!X.base_url){De("模型名称、提供商和API地址为必填项","error");return}R(!0);try{const me={name:X.name,supplier:X.supplier,base_url:X.base_url,categories:X.categories,visibility:X.visibility};X.api_key&&(me.api_key=X.api_key),await zs.update(Y.id,me),F(!1),we(),De("编辑成功")}catch(me){De("编辑失败: "+me.message,"error")}finally{R(!1)}}};return A.jsxs("div",{className:"space-y-6",children:[Z&&A.jsx("div",{className:`${Z.type==="success"?"bg-green-50 border-green-200 text-green-700":"bg-red-50 border-red-200 text-red-700"} border rounded-lg p-4 mb-4`,children:Z.message}),A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"私域模型管理"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"管理用户创建的私域模型,设置可见性"})]}),A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("span",{className:"text-sm text-slate-600",children:"全局开关:"}),A.jsx("button",{onClick:Ht,disabled:w,className:`relative inline-flex items-center h-6 rounded-full w-11 transition-colors focus:outline-none ${_?"bg-primary-600":"bg-slate-300"}`,children:A.jsx("span",{className:`inline-block w-4 h-4 transform rounded-full bg-white transition-transform ${_?"translate-x-6":"translate-x-1"}`})}),A.jsx("span",{className:"text-sm text-slate-600",children:_?"已开启":"已关闭"})]}),A.jsxs("button",{onClick:vr,className:"flex items-center gap-2 px-4 py-2 bg-primary-500 text-white rounded-lg text-sm font-medium hover:bg-primary-600 cursor-pointer",children:[A.jsx(RY,{className:"w-4 h-4"}),"添加模型"]})]})]}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-4",children:A.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[A.jsxs("div",{className:"relative flex-1 min-w-[220px]",children:[A.jsx(ay,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),A.jsx("input",{type:"text",value:i,onChange:me=>o(me.target.value),placeholder:"搜索模型名称",className:"w-full pl-10 pr-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),A.jsx("input",{type:"text",value:s,onChange:me=>l(me.target.value),placeholder:"创建者ID筛选",className:"min-w-[180px] px-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"}),A.jsxs("select",{value:u,onChange:me=>c(me.target.value),className:"px-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[A.jsx("option",{value:"",children:"全部可见性"}),A.jsx("option",{value:"user",children:"仅自己"}),A.jsx("option",{value:"global",children:"全站可见"})]})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 overflow-hidden",children:a?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-primary-500"})}):A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"overflow-x-auto",children:A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 w-16",children:"ID"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 w-48",children:"模型名称"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 w-32",children:"提供商"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 w-48",children:"显示名称"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 w-40",children:"模型类型"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 min-w-[200px]",children:"API地址"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600 w-24",children:"可见性"}),A.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-slate-600 w-32",children:"创建时间"}),A.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-slate-600 w-24",children:"操作"})]})}),A.jsx("tbody",{children:t.map(me=>A.jsxs("tr",{className:"border-b border-slate-100 hover:bg-slate-50",children:[A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600",children:me.id}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-800",children:Ue(me.title)}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600",children:me.supplier||"Custom"}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-800",children:me.name}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600",children:r(me.categories||me.category)}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600 max-w-[300px] truncate",title:me.base_url,children:me.base_url}),A.jsx("td",{className:"py-3 px-2 text-center",children:A.jsxs("button",{onClick:()=>Ke(me),className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-medium whitespace-nowrap ${me.visibility==="global"?"bg-blue-100 text-blue-700":"bg-slate-100 text-slate-600"}`,children:[me.visibility==="global"?A.jsx(Qw,{className:"w-3 h-3"}):A.jsx(_Y,{className:"w-3 h-3"}),Qde[me.visibility]]})}),A.jsx("td",{className:"py-3 px-4 text-sm text-slate-600",children:new Date(me.created_at).toLocaleDateString()}),A.jsxs("td",{className:"py-3 px-2 text-center",children:[A.jsx("button",{onClick:()=>au(me),className:"p-1.5 hover:bg-blue-50 rounded-lg mr-2",title:"编辑",children:A.jsx(MY,{className:"w-4 h-4 text-blue-600"})}),A.jsx("button",{onClick:()=>ot(me),className:"p-1.5 hover:bg-red-50 rounded-lg",title:"删除",children:A.jsx(tW,{className:"w-4 h-4 text-red-600"})})]})]},me.id))})]})}),A.jsxs("div",{className:"flex items-center justify-between px-4 py-3 text-sm text-slate-600",children:[A.jsxs("span",{children:["共 ",h," 条记录"]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("select",{value:y,onChange:me=>x(Number(me.target.value)),className:"px-2 py-1 border border-slate-200 rounded",children:[10,20,50].map(me=>A.jsxs("option",{value:me,children:[me,"/页"]},me))}),A.jsx("button",{className:"px-2 py-1 border border-slate-200 rounded disabled:opacity-50",onClick:()=>g(me=>Math.max(1,me-1)),disabled:p<=1,children:"上一页"}),A.jsxs("span",{children:[p," / ",Ae||1]}),A.jsx("button",{className:"px-2 py-1 border border-slate-200 rounded disabled:opacity-50",onClick:()=>g(me=>Math.min(Ae||1,me+1)),disabled:p>=Ae,children:"下一页"})]})]})]})}),D&&A.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:A.jsxs("div",{className:"bg-white rounded-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto p-6",children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsx("h3",{className:"text-lg font-semibold text-slate-800",children:"添加私域模型"}),A.jsx("button",{onClick:kt,className:"p-1 hover:bg-slate-100 rounded",children:A.jsx(Tl,{className:"w-5 h-5 text-slate-400"})})]}),A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型名称 *"}),A.jsx("input",{type:"text",name:"name",value:E.name,onChange:Wt,placeholder:"请输入模型名称,如 glm5",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型分类 *"}),A.jsx("div",{className:"grid grid-cols-2 gap-2",children:ue.map(me=>A.jsxs("label",{className:"flex items-center gap-1.5 text-sm cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:(E.categories||[]).includes(me.value),onChange:at=>{const zt=E.categories||[];N(er=>({...er,categories:at.target.checked?[...zt,me.value]:zt.filter(Zt=>Zt!==me.value)}))},className:"rounded border-slate-300"}),me.label]},me.value))}),A.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"提示:选择正确的分类后,测试连接会使用对应的接口格式"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型提供商 *"}),A.jsx("input",{type:"text",name:"supplier",value:E.supplier,onChange:Wt,placeholder:"如:硅基流动、阿里云、OpenAI",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"API地址 *"}),A.jsx("input",{type:"text",name:"base_url",value:E.base_url,onChange:Wt,placeholder:"如:https://api.siliconflow.cn/v1",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"API Key(可选)"}),A.jsx("input",{type:"text",name:"api_key",value:E.api_key,onChange:Wt,placeholder:"请输入访问模型所需的API Key(如无则留空)",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{className:"border-t border-slate-200 pt-4",children:[A.jsx("button",{type:"button",onClick:Pr,disabled:I||!E.base_url,className:"flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg text-sm font-medium hover:bg-blue-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:I?A.jsxs(A.Fragment,{children:[A.jsx(Br,{className:"w-4 h-4 animate-spin"}),"测试中..."]}):A.jsxs(A.Fragment,{children:[A.jsx(Sv,{className:"w-4 h-4"}),"测试OpenAI兼容性"]})}),z&&A.jsx("div",{className:`mt-3 p-3 rounded-lg text-sm ${z.success?"bg-green-50 border border-green-200 text-green-700":"bg-red-50 border border-red-200 text-red-700"}`,children:A.jsxs("div",{className:"flex items-start gap-2",children:[z.success?A.jsx("svg",{className:"w-5 h-5 flex-shrink-0 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}):A.jsx("svg",{className:"w-5 h-5 flex-shrink-0 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),A.jsxs("div",{children:[A.jsx("p",{className:"font-medium",children:z.success?"连接成功":"连接失败"}),A.jsx("p",{className:"mt-1",children:z.message}),!z.success&&A.jsx("p",{className:"mt-2 text-xs",children:"提示:该接口不支持OpenAI兼容格式,无法添加到系统中"})]})]})})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"可见性"}),A.jsxs("select",{name:"visibility",value:E.visibility,onChange:Wt,className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent",children:[A.jsx("option",{value:"user",children:"仅创建者可见"}),A.jsx("option",{value:"global",children:"全局可见"})]})]})]}),A.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[A.jsx("button",{onClick:kt,className:"px-4 py-2 border border-slate-200 text-slate-600 rounded-lg text-sm font-medium hover:bg-slate-50 transition-colors cursor-pointer",children:"取消"}),A.jsx("button",{onClick:or,disabled:B,className:"px-4 py-2 bg-primary-500 text-white rounded-lg text-sm font-medium hover:bg-primary-600 disabled:opacity-50 transition-colors cursor-pointer",children:B?"保存中...":"保存"})]})]})}),G&&Y&&A.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:A.jsxs("div",{className:"bg-white rounded-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto p-6",children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsx("h3",{className:"text-lg font-semibold text-slate-800",children:"编辑私域模型"}),A.jsx("button",{onClick:ja,className:"p-1 hover:bg-slate-100 rounded",children:A.jsx(Tl,{className:"w-5 h-5 text-slate-400"})})]}),A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型名称 *"}),A.jsx("input",{type:"text",name:"name",value:X.name,onChange:ua,placeholder:"请输入模型名称,如 glm5",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型分类 *"}),A.jsx("div",{className:"grid grid-cols-2 gap-2",children:ue.map(me=>A.jsxs("label",{className:"flex items-center gap-1.5 text-sm cursor-pointer",children:[A.jsx("input",{type:"checkbox",checked:(X.categories||[]).includes(me.value),onChange:at=>{const zt=X.categories||[];te(er=>({...er,categories:at.target.checked?[...zt,me.value]:zt.filter(Zt=>Zt!==me.value)}))},className:"rounded border-slate-300"}),me.label]},me.value))}),A.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"提示:选择正确的分类后,测试连接会使用对应的接口格式"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"模型提供商 *"}),A.jsx("input",{type:"text",name:"supplier",value:X.supplier,onChange:ua,placeholder:"如:硅基流动、阿里云、OpenAI",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"API地址 *"}),A.jsx("input",{type:"text",name:"base_url",value:X.base_url,onChange:ua,placeholder:"如:https://api.siliconflow.cn/v1",className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"API Key(可选)"}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{type:j?"text":"password",name:"api_key",value:X.api_key,onChange:ua,placeholder:"留空表示不修改,填写则更新为新的API Key",className:"w-full px-4 py-2.5 pr-12 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"}),A.jsx("button",{type:"button",onClick:()=>U(!j),className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 hover:bg-slate-100 rounded",title:j?"隐藏API Key":"显示API Key",children:j?A.jsx(ty,{className:"w-4 h-4 text-slate-400"}):A.jsx(ry,{className:"w-4 h-4 text-slate-400"})})]}),A.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"提示:如不需要修改API Key,请留空"})]}),A.jsxs("div",{className:"border-t border-slate-200 pt-4",children:[A.jsx("button",{type:"button",onClick:oo,disabled:I||!X.base_url,className:"flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg text-sm font-medium hover:bg-blue-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:I?A.jsxs(A.Fragment,{children:[A.jsx(Br,{className:"w-4 h-4 animate-spin"}),"测试中..."]}):A.jsxs(A.Fragment,{children:[A.jsx(Sv,{className:"w-4 h-4"}),"测试OpenAI兼容性"]})}),z&&A.jsx("div",{className:`mt-3 p-3 rounded-lg text-sm ${z.success?"bg-green-50 border border-green-200 text-green-700":"bg-red-50 border border-red-200 text-red-700"}`,children:A.jsxs("div",{className:"flex items-start gap-2",children:[z.success?A.jsx("svg",{className:"w-5 h-5 flex-shrink-0 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}):A.jsx("svg",{className:"w-5 h-5 flex-shrink-0 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),A.jsxs("div",{children:[A.jsx("p",{className:"font-medium",children:z.success?"连接成功":"连接失败"}),A.jsx("p",{className:"mt-1",children:z.message}),!z.success&&A.jsx("p",{className:"mt-2 text-xs",children:"提示:该接口不支持OpenAI兼容格式,无法使用"})]})]})})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"可见性"}),A.jsxs("select",{name:"visibility",value:X.visibility,onChange:ua,className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent",children:[A.jsx("option",{value:"user",children:"仅创建者可见"}),A.jsx("option",{value:"global",children:"全局可见"})]})]})]}),A.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[A.jsx("button",{onClick:ja,className:"px-4 py-2 border border-slate-200 text-slate-600 rounded-lg text-sm font-medium hover:bg-slate-50 transition-colors cursor-pointer",children:"取消"}),A.jsx("button",{onClick:nu,disabled:B,className:"px-4 py-2 bg-primary-500 text-white rounded-lg text-sm font-medium hover:bg-primary-600 disabled:opacity-50 transition-colors cursor-pointer",children:B?"保存中...":"保存"})]})]})}),fe&&ee&&A.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:A.jsxs("div",{className:"bg-white rounded-xl w-full max-w-md p-6",children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsx("h3",{className:"text-lg font-semibold text-slate-800",children:"确认删除"}),A.jsx("button",{onClick:Pt,className:"p-1 hover:bg-slate-100 rounded",children:A.jsx(Tl,{className:"w-5 h-5 text-slate-400"})})]}),A.jsxs("p",{className:"text-slate-600 mb-6",children:["确认删除本地模型:",ee.title," 吗?"]}),A.jsxs("div",{className:"flex justify-end gap-3",children:[A.jsx("button",{onClick:Pt,className:"px-4 py-2 border border-slate-200 text-slate-600 rounded-lg text-sm font-medium hover:bg-slate-50 transition-colors cursor-pointer",children:"取消"}),A.jsx("button",{onClick:Lt,className:"px-4 py-2 bg-red-500 text-white rounded-lg text-sm font-medium hover:bg-red-600 transition-colors cursor-pointer",children:"确认删除"})]})]})})]})},e0e=()=>{const[r,t]=q.useState("30d"),[e,a]=q.useState(!1),[n,i]=q.useState({new_users:0,total_users:0,active_users:0,retention_rate:0}),[o,s]=q.useState([]),l=r==="7d"?7:r==="30d"?30:90,u=()=>{const v=new Date,p=new Date;return p.setDate(p.getDate()-l),{start:p.toISOString().split("T")[0],end:v.toISOString().split("T")[0]}},c=async()=>{a(!0);try{const{start:v,end:p}=u(),[g,y]=await Promise.all([Dc.getUserOverview(v,p),Dc.getUserGrowthTrend(v,p)]);i(g),s(y)}catch(v){console.error("加载用户统计失败:",v)}finally{a(!1)}};q.useEffect(()=>{c()},[r]);const h={tooltip:{trigger:"axis"},legend:{data:["新增用户","活跃用户"],right:10,top:0},grid:{left:"3%",right:"4%",bottom:"3%",top:"15%",containLabel:!0},xAxis:{type:"category",data:o.map(v=>v.date.slice(5)),axisLine:{lineStyle:{color:"#e2e8f0"}},axisLabel:{color:"#64748b",fontSize:11}},yAxis:[{type:"value",name:"新增",axisLine:{show:!1},splitLine:{lineStyle:{color:"#f1f5f9"}},axisLabel:{color:"#64748b"}},{type:"value",name:"活跃",axisLine:{show:!1},splitLine:{show:!1},axisLabel:{color:"#64748b"}}],series:[{name:"新增用户",type:"bar",data:o.map(v=>v.new_users),itemStyle:{color:"#3b82f6",borderRadius:[4,4,0,0]}},{name:"活跃用户",type:"line",yAxisIndex:1,data:o.map(v=>v.active_users),smooth:!0,lineStyle:{color:"#10b981"},itemStyle:{color:"#10b981"}}]};return A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"数据统计"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"用户增长数据分析"})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[e&&A.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[A.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary-500"}),A.jsx("span",{className:"text-sm",children:"加载中..."})]}),A.jsx("div",{className:"flex items-center gap-1 bg-white border border-slate-200 rounded-lg p-1",children:["7d","30d","90d"].map(v=>A.jsx("button",{onClick:()=>t(v),className:`px-3 py-1.5 text-sm font-medium rounded-md cursor-pointer ${r===v?"bg-primary-500 text-white":"text-slate-600 hover:bg-slate-50"}`,children:v==="7d"?"近7天":v==="30d"?"近30天":"近90天"},v))})]})]}),A.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"新增用户"}),A.jsx("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:n.new_users.toLocaleString()})]}),A.jsx("div",{className:"w-12 h-12 bg-primary-50 rounded-xl flex items-center justify-center",children:A.jsx(Tc,{className:"w-6 h-6 text-primary-600"})})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"总用户数"}),A.jsx("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:n.total_users.toLocaleString()})]}),A.jsx("div",{className:"w-12 h-12 bg-slate-100 rounded-xl flex items-center justify-center",children:A.jsx(Tc,{className:"w-6 h-6 text-slate-600"})})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"活跃用户"}),A.jsx("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:n.active_users.toLocaleString()})]}),A.jsx("div",{className:"w-12 h-12 bg-green-50 rounded-xl flex items-center justify-center",children:A.jsx(eI,{className:"w-6 h-6 text-green-600"})})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"留存率"}),A.jsxs("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:[n.retention_rate.toFixed(1),"%"]})]}),A.jsx("div",{className:"w-12 h-12 bg-amber-50 rounded-xl flex items-center justify-center",children:A.jsx(iI,{className:"w-6 h-6 text-amber-600"})})]})})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"用户增长趋势"}),A.jsx(Jv,{option:h,style:{height:350}})]})]})},t0e=()=>{const[r,t]=q.useState("30d"),[e,a]=q.useState([]),[n,i]=q.useState(!1),o=r==="7d"?7:r==="30d"?30:90,s=async()=>{i(!0);try{const v=new Date().toISOString().split("T")[0],p=new Date(Date.now()-o*24*60*60*1e3).toISOString().split("T")[0],g=await Dc.getModelUsageRanking(p,v,20);a(g)}catch(v){console.error("加载用量统计失败:",v)}finally{i(!1)}};q.useEffect(()=>{s()},[r]);const l={tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"vertical",right:10,top:"center",textStyle:{fontSize:12,color:"#64748b"}},series:[{type:"pie",radius:["45%","70%"],center:["35%","50%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:2},label:{show:!1},data:e.slice(0,8).map((v,p)=>({name:v.model_name||"未知",value:v.usage_count,itemStyle:{color:["#3b82f6","#06b6d4","#8b5cf6","#f59e0b","#10b981","#ef4444","#ec4899","#6366f1"][p]}}))}]},u=e.slice(0,10),c={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"12%",bottom:"3%",top:"3%",containLabel:!0},xAxis:{type:"value",axisLine:{show:!1},splitLine:{lineStyle:{color:"#f1f5f9"}},axisLabel:{color:"#64748b",fontSize:11}},yAxis:{type:"category",data:u.map(v=>v.model_name||"未知").reverse(),axisLine:{lineStyle:{color:"#e2e8f0"}},axisLabel:{color:"#64748b",fontSize:11}},series:[{data:u.map(v=>v.usage_count).reverse(),type:"bar",itemStyle:{color:"#3b82f6",borderRadius:[0,4,4,0]},label:{show:!0,position:"right",color:"#64748b",fontSize:11}}]},h=e.reduce((v,p)=>v+p.usage_count,0);return A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"用量统计"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"模型调用量与资源消耗分析"})]}),A.jsx("div",{className:"flex items-center gap-1 bg-white border border-slate-200 rounded-lg p-1",children:["7d","30d","90d"].map(v=>A.jsx("button",{onClick:()=>t(v),className:`px-3 py-1.5 text-sm font-medium rounded-md cursor-pointer transition-colors ${r===v?"bg-blue-600 text-white":"text-slate-600 hover:bg-slate-50"}`,children:v==="7d"?"近7天":v==="30d"?"近30天":"近90天"},v))})]}),A.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"总调用次数"}),A.jsx("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:h.toLocaleString()})]}),A.jsx("div",{className:"w-11 h-11 bg-blue-50 rounded-xl flex items-center justify-center",children:A.jsx(Qg,{className:"w-5 h-5 text-blue-600"})})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"活跃模型数"}),A.jsx("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:e.length})]}),A.jsx("div",{className:"w-11 h-11 bg-purple-50 rounded-xl flex items-center justify-center",children:A.jsx(rI,{className:"w-5 h-5 text-purple-600"})})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"日均调用"}),A.jsx("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:Math.round(h/o).toLocaleString()})]}),A.jsx("div",{className:"w-11 h-11 bg-cyan-50 rounded-xl flex items-center justify-center",children:A.jsx(BU,{className:"w-5 h-5 text-cyan-600"})})]})}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm text-slate-500",children:"统计周期"}),A.jsxs("p",{className:"text-2xl font-bold text-slate-800 mt-1",children:[o," 天"]})]}),A.jsx("div",{className:"w-11 h-11 bg-amber-50 rounded-xl flex items-center justify-center",children:A.jsx(eY,{className:"w-5 h-5 text-amber-600"})})]})})]}),A.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"模型使用分布"}),n?A.jsx("div",{className:"h-[300px] flex items-center justify-center text-slate-400",children:"加载中..."}):e.length===0?A.jsx("div",{className:"h-[300px] flex items-center justify-center text-slate-400",children:"暂无数据"}):A.jsx(Jv,{option:l,style:{height:300}})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"模型调用排行 Top10"}),n?A.jsx("div",{className:"h-[300px] flex items-center justify-center text-slate-400",children:"加载中..."}):e.length===0?A.jsx("div",{className:"h-[300px] flex items-center justify-center text-slate-400",children:"暂无数据"}):A.jsx(Jv,{option:c,style:{height:300}})]})]})]})},r0e=[{key:"cas_base_url",label:"CAS 服务器地址",description:"CAS 服务器基础地址,如 https://cas.example.com/cas"},{key:"app_public_base_url",label:"应用公网地址",description:"应用对外访问的基础地址"},{key:"frontend_base_url",label:"前端地址",description:"前端页面地址,用于构建登录回调 URL"},{key:"sso_service_path",label:"SSO 回调路径",description:"CAS 回调路径,默认 /api/sso/login"},{key:"sso_login_url",label:"CAS 登录地址",description:"前端跳转 CAS 登录的完整 URL"},{key:"sso_logout_url",label:"CAS 注销地址",description:"前端跳转 CAS 注销的完整 URL"}],a0e=({data:r,onChange:t})=>A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"flex items-center justify-between py-4 border-b border-slate-100",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-medium text-slate-800",children:"启用 SSO 登录"}),A.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"开启后将使用 CAS 单点登录"})]}),A.jsx("button",{onClick:()=>t("sso_enable_redirect",!r.sso_enable_redirect),className:`p-1 rounded-lg cursor-pointer ${r.sso_enable_redirect?"text-primary-500":"text-slate-400"}`,children:r.sso_enable_redirect?A.jsx(Sv,{className:"w-8 h-8"}):A.jsx(nI,{className:"w-8 h-8"})})]}),r.sso_enable_redirect&&r0e.map(e=>A.jsxs("div",{className:"py-4 border-b border-slate-100 last:border-0",children:[A.jsx("div",{className:"flex items-center justify-between mb-2",children:A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.label}),A.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:e.description})]})}),A.jsx("input",{type:"text",value:r[e.key],onChange:a=>t(e.key,a.target.value),className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]},e.key))]}),n0e=({value:r,onChange:t})=>{const[e,a]=q.useState(!1);return A.jsxs("div",{className:"py-4 border-b border-slate-100 last:border-0",children:[A.jsx("div",{className:"flex items-center justify-between mb-2",children:A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-medium text-slate-800",children:"Admin Api Key"}),A.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"用于管理员 API 鉴权的密钥,请妥善保管"})]})}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{type:e?"text":"password",value:r,onChange:n=>t(n.target.value),className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 pr-10",placeholder:"请输入 Admin API Key"}),A.jsx("button",{type:"button",onClick:()=>a(n=>!n),className:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 cursor-pointer",children:e?A.jsx(ty,{className:"w-4 h-4"}):A.jsx(ry,{className:"w-4 h-4"})})]})]})},i0e={sso_enable_redirect:!1,cas_base_url:"",app_public_base_url:"",frontend_base_url:"",sso_service_path:"/api/sso/login",sso_login_url:"",sso_logout_url:""},EB={...i0e,admin_api_key:""},$9=()=>{const[r,t]=q.useState(EB),[e,a]=q.useState(EB),[n,i]=q.useState(!1),[o,s]=q.useState(!1),[l,u]=q.useState(null),c=(y,x)=>{u({type:y,message:x}),setTimeout(()=>u(null),3e3)},h=async()=>{i(!0);try{const y=await gE.get(),x={...y.sso,admin_api_key:y.admin_api_key.admin_api_key};t(x),a(x)}catch(y){c("error",(y==null?void 0:y.message)||"加载配置失败")}finally{i(!1)}};q.useEffect(()=>{h()},[]);const v=(y,x)=>{t(_=>({..._,[y]:x}))},p=y=>{t(x=>({...x,admin_api_key:y}))},g=async()=>{const y={},x=Object.keys(r);for(const _ of x)if(r[_]!==e[_]){if(_==="admin_api_key"&&r[_]==="***")continue;y[_]=r[_]}if(Object.keys(y).length===0){c("success","没有需要保存的修改");return}s(!0);try{await gE.update(y),a({...r}),c("success","配置已保存")}catch(_){c("error",(_==null?void 0:_.message)||"保存失败")}finally{s(!1)}};return A.jsxs("div",{className:"space-y-4",children:[l&&A.jsx("div",{className:`px-4 py-3 rounded-lg text-sm font-medium ${l.type==="success"?"bg-green-50 text-green-700 border border-green-200":"bg-red-50 text-red-700 border border-red-200"}`,children:l.message}),n?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-primary-500"})}):A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-6",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"SSO 单点登录配置"}),A.jsx(a0e,{data:r,onChange:v})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-6",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"Admin API Key"}),A.jsx(n0e,{value:r.admin_api_key,onChange:p})]}),A.jsx("div",{className:"flex justify-end",children:A.jsxs("button",{onClick:g,disabled:o,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium cursor-pointer ${o?"bg-slate-100 text-slate-400 cursor-not-allowed":"bg-primary-500 text-white hover:bg-primary-600"}`,children:[o?A.jsx(Br,{className:"w-4 h-4 animate-spin"}):A.jsx(Jw,{className:"w-4 h-4"}),"保存配置"]})})]})]})},o0e={success:A.jsx($w,{className:"w-4 h-4 text-emerald-500 flex-shrink-0"}),error:A.jsx(Kw,{className:"w-4 h-4 text-red-500 flex-shrink-0"}),info:A.jsx(fY,{className:"w-4 h-4 text-blue-500 flex-shrink-0"})},s0e={success:"border-emerald-100 bg-emerald-50",error:"border-red-100 bg-red-50",info:"border-blue-100 bg-blue-50"};let l0e=0;const u0e=({onSaved:r})=>{const[t,e]=q.useState(""),[a,n]=q.useState(""),[i,o]=q.useState(""),[s,l]=q.useState(""),[u,c]=q.useState(!0),[h,v]=q.useState(!1),[p,g]=q.useState(!1),[y,x]=q.useState(null),_=q.useRef(null);q.useEffect(()=>{Oc.getAll().then(C=>{const D=(C==null?void 0:C.basic)||[],M=E=>{var N;return((N=D.find(B=>B.key===E))==null?void 0:N.value)||""};e(M("system_name")),n(M("system_logo")),o(M("icp_number")),l(M("contact_email"))}).catch(()=>{}).finally(()=>c(!1))},[]);const S=async C=>{var M;const D=(M=C.target.files)==null?void 0:M[0];if(D){if(!D.type.startsWith("image/")){x({ok:!1,text:"请选择图片文件"});return}if(D.size>2*1024*1024){x({ok:!1,text:"图片大小不能超过 2MB"});return}g(!0),x(null);try{const E=await QB.upload(D,"branding");n(E.url),x({ok:!0,text:"图片上传成功"})}catch(E){x({ok:!1,text:E.message||"上传失败"})}finally{g(!1),_.current&&(_.current.value="")}}},w=async()=>{v(!0),x(null);try{await Oc.update({system_name:t,system_logo:a,icp_number:i,contact_email:s}),x({ok:!0,text:"品牌配置已保存,刷新页面生效"}),r==null||r()}catch(C){x({ok:!1,text:C.message||"保存失败"})}finally{v(!1)}};return u?A.jsx("div",{className:"py-12 text-center text-slate-400 text-sm",children:"加载中..."}):A.jsxs("div",{children:[A.jsxs("div",{className:"flex items-center justify-between mb-1",children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"品牌配置"}),A.jsxs("button",{onClick:w,disabled:h,className:"flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg text-sm hover:bg-blue-600 disabled:opacity-50",children:[A.jsx(Jw,{className:"w-4 h-4"}),h?"保存中...":"保存"]})]}),A.jsx("p",{className:"text-xs text-slate-500 mb-6",children:"配置平台名称、Logo 及联系信息,修改后刷新页面生效。"}),y&&A.jsxs("div",{className:`flex items-center gap-2 px-4 py-2.5 rounded-lg mb-4 text-sm ${y.ok?"bg-green-50 text-green-700":"bg-red-50 text-red-600"}`,children:[y.ok?A.jsx($w,{className:"w-4 h-4"}):A.jsx(Kw,{className:"w-4 h-4"}),y.text]}),A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"平台名称"}),A.jsx("input",{value:t,onChange:C=>e(C.target.value),placeholder:"如:智创空间",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),A.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"显示在登录页、导航栏、浏览器标题等位置"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"Logo 图片"}),A.jsxs("div",{className:"flex gap-2",children:[A.jsx("input",{value:a,onChange:C=>n(C.target.value),placeholder:"https://example.com/logo.png",className:"flex-1 px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),A.jsxs("button",{type:"button",onClick:()=>{var C;return(C=_.current)==null?void 0:C.click()},disabled:p,className:"flex items-center gap-1.5 px-3 py-2 border border-slate-200 rounded-lg text-sm text-slate-600 hover:bg-slate-50 disabled:opacity-50 whitespace-nowrap",children:[p?A.jsx(Br,{className:"w-4 h-4 animate-spin"}):A.jsx(oW,{className:"w-4 h-4"}),p?"上传中...":"本地上传"]})]}),A.jsx("input",{ref:_,type:"file",accept:"image/*",className:"hidden",onChange:S}),A.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"建议尺寸 64×64px,支持 PNG/SVG,文件不超过 2MB"}),a&&A.jsxs("div",{className:"mt-3 flex items-center gap-3",children:[A.jsx("img",{src:a,alt:"logo预览",className:"w-12 h-12 rounded-lg object-contain border border-slate-200 bg-slate-50",onError:C=>{C.target.style.display="none"}}),A.jsx("span",{className:"text-xs text-slate-500",children:"Logo 预览"})]})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"ICP 备案号"}),A.jsx("input",{value:i,onChange:C=>o(C.target.value),placeholder:"如:粤ICP备XXXXXXXX号",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"联系邮箱"}),A.jsx("input",{value:s,onChange:C=>l(C.target.value),placeholder:"如:support@example.com",className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),A.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"显示在页面底部或帮助页面"})]}),A.jsxs("div",{className:"border border-slate-200 rounded-xl p-6 bg-gradient-to-br from-blue-50 via-white to-indigo-50",children:[A.jsx("p",{className:"text-xs text-slate-500 mb-4",children:"用户端登录页预览效果"}),A.jsxs("div",{className:"bg-white rounded-2xl shadow border border-gray-100 p-6 max-w-xs mx-auto",children:[A.jsxs("div",{className:"flex flex-col items-center gap-2 mb-4",children:[A.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl overflow-hidden",children:a?A.jsx("img",{src:a,alt:"logo",className:"w-full h-full object-contain",onError:C=>{C.target.style.display="none"}}):A.jsx("span",{className:"text-white text-2xl font-bold",children:(t==null?void 0:t[0])||"智"})}),A.jsxs("p",{className:"text-base font-bold text-gray-900",children:["欢迎登录",t||"平台名称"]}),A.jsxs("p",{className:"text-xs text-gray-400",children:[t||"平台名称"," AI模型服务平台"]})]}),A.jsxs("div",{className:"space-y-2",children:[A.jsx("div",{className:"h-8 bg-gray-50 border border-gray-200 rounded-lg"}),A.jsx("div",{className:"h-8 bg-gray-50 border border-gray-200 rounded-lg"}),A.jsx("div",{className:"h-8 bg-blue-600 rounded-lg"})]})]})]})]})]})},c0e=()=>{var w;const[r,t]=q.useState("branding"),[e,a]=q.useState([]),[n,i]=q.useState(!1),[o,s]=q.useState(!1),[l,u]=q.useState({}),[c,h]=q.useState([]),v=q.useCallback((C,D)=>{const M=++l0e;h(E=>[...E,{id:M,type:C,message:D}]),setTimeout(()=>h(E=>E.filter(N=>N.id!==M)),3e3)},[]),p=async()=>{s(!0);try{const D=await Oc.getAll(),M=[];Object.entries(D).forEach(([,N])=>{Array.isArray(N)&&N.forEach(B=>{M.push({key:B.key,label:B.key.split("_").map(R=>R.charAt(0).toUpperCase()+R.slice(1)).join(" "),value:B.type==="boolean"?B.value:B.type==="number"?Number(B.value):B.value,type:B.type==="boolean"?"boolean":B.type==="number"?"number":"string",description:B.description,sensitive:!1,category:B.category})})}),a(M);const E={};M.forEach(N=>{E[N.key]=N.value}),u(E)}catch{v("error","加载配置失败,请稍后重试")}finally{s(!1)}};q.useEffect(()=>{p()},[]);const g=(C,D)=>{a(M=>M.map(E=>E.key===C?{...E,value:D}:E)),i(!0)},y=async()=>{const C={};if(e.forEach(D=>{D.value!==l[D.key]&&(C[D.key]=D.type==="boolean"?!!D.value:String(D.value))}),Object.keys(C).length===0){v("info","没有需要保存的修改");return}try{await Oc.update(C),v("success","配置已保存"),i(!1),p()}catch(D){v("error","保存失败:"+(D instanceof Error?D.message:String(D)))}},x=C=>C.type==="boolean"?A.jsxs("div",{className:"flex items-center justify-between py-4 border-b border-slate-100 last:border-0",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-medium text-slate-800",children:C.label}),C.description&&A.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:C.description})]}),A.jsx("button",{onClick:()=>g(C.key,!C.value),className:`p-1 rounded-lg cursor-pointer ${C.value?"text-primary-500":"text-slate-400"}`,children:C.value?A.jsx(Sv,{className:"w-8 h-8"}):A.jsx(nI,{className:"w-8 h-8"})})]},C.key):A.jsxs("div",{className:"py-4 border-b border-slate-100 last:border-0",children:[A.jsxs("div",{className:"mb-2",children:[A.jsx("p",{className:"text-sm font-medium text-slate-800",children:C.label}),C.description&&A.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:C.description})]}),A.jsx("input",{type:C.type==="number"?"number":C.sensitive?"password":"text",value:C.value,onChange:D=>g(C.key,C.type==="number"?parseFloat(D.target.value)||0:D.target.value),className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]},C.key),_=[{key:"branding",label:"品牌配置",icon:uY},{key:"feature",label:"功能开关",icon:Sv},{key:"limit",label:"限制配置",icon:qY},{key:"third_party",label:"第三方配置",icon:vY},{key:"auth",label:"认证配置",icon:aI}],S=e.filter(C=>C.category===r);return A.jsxs("div",{className:"space-y-6",children:[A.jsx("div",{className:"fixed top-5 right-5 z-50 flex flex-col gap-2 pointer-events-none",children:c.map(C=>A.jsxs("div",{className:`flex items-center gap-2.5 px-4 py-3 rounded-xl border shadow-lg text-sm font-medium text-slate-700 animate-in slide-in-from-right-4 fade-in duration-200 ${s0e[C.type]}`,children:[o0e[C.type],C.message]},C.id))}),A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"系统配置"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"管理系统全局配置参数"})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsxs("button",{onClick:p,className:"flex items-center gap-2 px-4 py-2 border border-slate-200 text-slate-600 rounded-lg text-sm font-medium hover:bg-slate-50 cursor-pointer",children:[A.jsx(id,{className:"w-4 h-4"}),"刷新"]}),r!=="auth"&&r!=="branding"&&A.jsxs("button",{onClick:y,disabled:!n||o,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium cursor-pointer ${n&&!o?"bg-primary-500 text-white hover:bg-primary-600":"bg-slate-100 text-slate-400 cursor-not-allowed"}`,children:[A.jsx(Jw,{className:"w-4 h-4"}),"保存配置"]})]})]}),o?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-primary-500"})}):A.jsxs("div",{className:"flex gap-6",children:[A.jsx("div",{className:"w-48 flex-shrink-0",children:A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 p-2",children:_.map(C=>A.jsxs("button",{onClick:()=>t(C.key),className:`w-full flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium cursor-pointer ${r===C.key?"bg-primary-50 text-primary-600":"text-slate-600 hover:bg-slate-50"}`,children:[A.jsx(C.icon,{className:"w-4 h-4"}),C.label]},C.key))})}),A.jsx("div",{className:"flex-1 bg-white rounded-xl border border-slate-200 p-6",children:r==="auth"?A.jsx($9,{}):r==="branding"?A.jsx(u0e,{onSaved:p}):A.jsxs(A.Fragment,{children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:(w=_.find(C=>C.key===r))==null?void 0:w.label}),A.jsx("div",{children:S.length===0?A.jsx("p",{className:"text-sm text-slate-500 text-center py-8",children:"暂无配置项"}):S.map(C=>x(C))})]})})]})]})},f0e=()=>A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"安全设置"}),A.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"SSO 认证、API Key 等安全相关配置"})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-6",children:[A.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[A.jsx("div",{className:"w-10 h-10 bg-blue-50 rounded-lg flex items-center justify-center",children:A.jsx(YY,{className:"w-5 h-5 text-blue-600"})}),A.jsxs("div",{children:[A.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"认证与授权"}),A.jsx("p",{className:"text-sm text-slate-500",children:"配置 SSO 单点登录和管理员 API Key"})]})]}),A.jsx($9,{})]})]}),h0e=["开放平台","系统","用户管理","模型管理","系统配置","数据统计","模型广场","用户","其他"],v0e=()=>{const[r,t]=q.useState([]),[e,a]=q.useState(!1),[n,i]=q.useState(0),[o,s]=q.useState(1),[l,u]=q.useState(15),[c,h]=q.useState({username:"",phone:"",module:""}),[v,p]=q.useState({username:"",phone:"",module:""}),g=async()=>{a(!0);try{const D=await Zw.listApiLogs({page:o,size:l,username:c.username||void 0,phone:c.phone||void 0,module:c.module||void 0});t((D==null?void 0:D.items)||[]),i((D==null?void 0:D.total)||0)}catch(C){console.error("获取API日志失败:",C)}finally{a(!1)}},y=()=>{h(v),s(1)},x=()=>{p({username:"",phone:"",module:""}),h({username:"",phone:"",module:""}),s(1)},_=c.username||c.phone||c.module;q.useEffect(()=>{g()},[o,c,l]);const S=Math.ceil(n/l),w=C=>C>=200&&C<300?A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-green-100 text-green-700",children:C}):C>=400&&C<500?A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-yellow-100 text-yellow-700",children:C}):C>=500?A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-red-100 text-red-700",children:C}):A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-slate-100 text-slate-700",children:C});return A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-xl font-semibold text-slate-800",children:"API 调用日志"}),A.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:"平台接口调用记录与开放平台使用情况"})]}),A.jsxs("button",{onClick:g,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-slate-600 hover:text-slate-800 border border-slate-200 rounded-lg hover:bg-slate-50 cursor-pointer",children:[A.jsx(id,{className:"w-4 h-4"}),"刷新"]})]}),A.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 overflow-hidden",children:[A.jsx("div",{className:"p-4 border-b border-slate-200 bg-slate-50/50",children:A.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[A.jsx("input",{type:"text",value:v.username,onChange:C=>p({...v,username:C.target.value}),onKeyDown:C=>C.key==="Enter"&&y(),placeholder:"用户名称",className:"w-40 px-3 py-1.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),A.jsx("input",{type:"text",value:v.phone,onChange:C=>p({...v,phone:C.target.value}),onKeyDown:C=>C.key==="Enter"&&y(),placeholder:"电话号码",className:"w-40 px-3 py-1.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),A.jsxs("select",{value:v.module,onChange:C=>p({...v,module:C.target.value}),className:"px-3 py-1.5 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:[A.jsx("option",{value:"",children:"全部模块"}),h0e.map(C=>A.jsx("option",{value:C,children:C},C))]}),A.jsxs("button",{onClick:y,className:"flex items-center gap-1 px-3 py-1.5 bg-blue-600 text-white rounded-lg text-sm hover:bg-blue-700 cursor-pointer",children:[A.jsx(ay,{className:"w-4 h-4"}),"搜索"]}),_&&A.jsxs("button",{onClick:x,className:"flex items-center gap-1 px-3 py-1.5 text-slate-500 hover:text-slate-700 cursor-pointer",children:[A.jsx(Tl,{className:"w-4 h-4"}),"清除"]})]})}),e?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-blue-500"})}):A.jsxs(A.Fragment,{children:[A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{className:"bg-slate-50 border-b border-slate-200",children:A.jsxs("tr",{children:[A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"ID"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"用户名称"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"电话号码"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"调用模块"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:c.module==="开放平台"?"模型名称":"API路径"}),c.module==="开放平台"?A.jsxs(A.Fragment,{children:[A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"输入Token"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"输出Token"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"状态"})]}):A.jsxs(A.Fragment,{children:[A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"请求方法"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"响应状态"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"响应时间(ms)"})]}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"调用时间"})]})}),A.jsx("tbody",{className:"divide-y divide-slate-100",children:r.length===0?A.jsx("tr",{children:A.jsx("td",{colSpan:9,className:"py-12 text-center text-slate-400",children:"暂无API调用记录"})}):r.map(C=>A.jsxs("tr",{className:"hover:bg-slate-50",children:[A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.id}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.username||"-"}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.phone||"-"}),A.jsx("td",{className:"px-4 py-3",children:A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-blue-100 text-blue-700",children:C.module})}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600 font-mono max-w-xs truncate",title:c.module==="开放平台"?C.model_name:C.api_path,children:c.module==="开放平台"?C.model_name:C.api_path}),c.module==="开放平台"?A.jsxs(A.Fragment,{children:[A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.input_tokens||0}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.output_tokens||0}),A.jsx("td",{className:"px-4 py-3",children:C.status==="success"?A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-green-100 text-green-700",children:"成功"}):A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-red-100 text-red-700",children:"失败"})})]}):A.jsxs(A.Fragment,{children:[A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.request_method}),A.jsx("td",{className:"px-4 py-3",children:w(C.response_status)}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:C.response_time??"-"})]}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-500",children:new Date(C.created_at).toLocaleString()})]},C.id))})]}),A.jsxs("div",{className:"px-4 py-3 border-t border-slate-200 flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsxs("span",{className:"text-sm text-slate-500",children:["共 ",n," 条记录"]}),A.jsxs("select",{value:l,onChange:C=>{u(Number(C.target.value)),s(1)},className:"px-2 py-1 border border-slate-200 rounded text-sm cursor-pointer",children:[A.jsx("option",{value:10,children:"10条/页"}),A.jsx("option",{value:15,children:"15条/页"}),A.jsx("option",{value:20,children:"20条/页"}),A.jsx("option",{value:50,children:"50条/页"})]})]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("button",{onClick:()=>s(C=>Math.max(1,C-1)),disabled:o<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 cursor-pointer",children:A.jsx(ad,{className:"w-4 h-4"})}),A.jsxs("span",{className:"text-sm text-slate-600 px-2",children:[o," / ",S||1]}),A.jsx("button",{onClick:()=>s(C=>Math.min(S,C+1)),disabled:o>=S,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 cursor-pointer",children:A.jsx(nd,{className:"w-4 h-4"})})]})]})]})]})]})},d0e=()=>{const[r,t]=q.useState([]),[e,a]=q.useState(!1),[n,i]=q.useState(0),[o,s]=q.useState(1),l=15,u=async()=>{a(!0);try{const v=await Zw.listLoginLogs({page:o,size:l});t((v==null?void 0:v.items)||[]),i((v==null?void 0:v.total)||0)}catch(h){console.error("获取登录日志失败:",h)}finally{a(!1)}};q.useEffect(()=>{u()},[o,l]);const c=Math.ceil(n/l);return A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-xl font-semibold text-slate-800",children:"登录日志"}),A.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:"用户和管理员的登录记录"})]}),A.jsxs("button",{onClick:u,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-slate-600 hover:text-slate-800 border border-slate-200 rounded-lg hover:bg-slate-50 cursor-pointer",children:[A.jsx(id,{className:"w-4 h-4"}),"刷新"]})]}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 overflow-hidden",children:e?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-blue-500"})}):A.jsxs(A.Fragment,{children:[A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{className:"bg-slate-50 border-b border-slate-200",children:A.jsxs("tr",{children:[A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"ID"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"用户ID"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"用户类型"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"登录结果"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"失败原因"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"IP地址"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"登录时间"})]})}),A.jsx("tbody",{className:"divide-y divide-slate-100",children:r.length===0?A.jsx("tr",{children:A.jsx("td",{colSpan:7,className:"py-12 text-center text-slate-400",children:"暂无登录记录"})}):r.map(h=>A.jsxs("tr",{className:"hover:bg-slate-50",children:[A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:h.id}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600 font-mono",children:h.user_id}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:h.user_type==="admin"?"管理员":"普通用户"}),A.jsx("td",{className:"px-4 py-3",children:h.login_result==="success"?A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-green-100 text-green-700",children:"成功"}):A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-red-100 text-red-700",children:"失败"})}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:h.fail_reason||"-"}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-500 font-mono",children:h.ip_address||"-"}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-500",children:new Date(h.created_at).toLocaleString()})]},h.id))})]}),A.jsxs("div",{className:"px-4 py-3 border-t border-slate-200 flex items-center justify-between",children:[A.jsxs("span",{className:"text-sm text-slate-500",children:["共 ",n," 条记录"]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("button",{onClick:()=>s(h=>Math.max(1,h-1)),disabled:o<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 cursor-pointer",children:A.jsx(ad,{className:"w-4 h-4"})}),A.jsxs("span",{className:"text-sm text-slate-600",children:[o," / ",c||1]}),A.jsx("button",{onClick:()=>s(h=>Math.min(c,h+1)),disabled:o>=c,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 cursor-pointer",children:A.jsx(nd,{className:"w-4 h-4"})})]})]})]})})]})},LB=r=>{if(!r)return"-";try{const t=typeof r=="string"?JSON.parse(r):r,e=[];if(t.action){const a={update_status:"更新状态",reset_password:"重置密码",update_price:"更新价格"};e.push(a[t.action]||t.action)}return t.old!==void 0&&t.new!==void 0&&e.push(`${t.old} → ${t.new}`),t.amount&&e.push(`金额: ${t.amount}`),t.reason&&e.push(`原因: ${t.reason}`),t.new_status&&e.push(`新状态: ${t.new_status}`),t.field&&e.push(`字段: ${t.field}`),t.value!==void 0&&e.push(`值: ${t.value}`),t.title&&e.push(`标题: ${t.title}`),t.name&&e.push(`名称: ${t.name}`),e.length>0?e.join(", "):JSON.stringify(t)}catch{return String(r)}},p0e=()=>{const[r,t]=q.useState([]),[e,a]=q.useState(!1),[n,i]=q.useState(0),[o,s]=q.useState(1),[l]=q.useState(15),u=async()=>{a(!0);try{const v=await Zw.list({page:o,page_size:l});t(v.items),i(v.total)}catch(v){console.error("获取操作日志失败:",v)}finally{a(!1)}};q.useEffect(()=>{u()},[o]);const c=Math.ceil(n/l),h=v=>{const p={create:"bg-green-100 text-green-700",update:"bg-blue-100 text-blue-700",delete:"bg-red-100 text-red-700"},g={create:"创建",update:"修改",delete:"删除"};return A.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${p[v]||"bg-slate-100 text-slate-700"}`,children:g[v]||v})};return A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-xl font-semibold text-slate-800",children:"操作日志"}),A.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:"管理员操作记录追踪"})]}),A.jsxs("button",{onClick:u,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-slate-600 hover:text-slate-800 border border-slate-200 rounded-lg hover:bg-slate-50 cursor-pointer",children:[A.jsx(id,{className:"w-4 h-4"}),"刷新"]})]}),A.jsx("div",{className:"bg-white rounded-xl border border-slate-200 overflow-hidden",children:e?A.jsx("div",{className:"flex items-center justify-center py-20",children:A.jsx(Br,{className:"w-8 h-8 animate-spin text-blue-500"})}):A.jsxs(A.Fragment,{children:[A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{className:"bg-slate-50 border-b border-slate-200",children:A.jsxs("tr",{children:[A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"ID"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"操作人"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"操作类型"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"操作模块"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"目标ID"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"操作详情"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"IP地址"}),A.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-slate-500",children:"操作时间"})]})}),A.jsx("tbody",{className:"divide-y divide-slate-100",children:r.length===0?A.jsx("tr",{children:A.jsx("td",{colSpan:8,className:"py-12 text-center text-slate-400",children:"暂无操作记录"})}):r.map(v=>A.jsxs("tr",{className:"hover:bg-slate-50",children:[A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600",children:v.id}),A.jsxs("td",{className:"px-4 py-3 text-sm text-slate-800",children:["管理员",v.admin_id]}),A.jsx("td",{className:"px-4 py-3",children:h(v.operation_type)}),A.jsx("td",{className:"px-4 py-3",children:A.jsx("span",{className:"px-2 py-0.5 rounded text-xs bg-slate-100 text-slate-700",children:v.module})}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600 font-mono",children:v.target_id||"-"}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-600 max-w-xs truncate",title:LB(v.detail),children:LB(v.detail)}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-500 font-mono",children:v.ip_address||"-"}),A.jsx("td",{className:"px-4 py-3 text-sm text-slate-500",children:new Date(v.created_at).toLocaleString()})]},v.id))})]}),A.jsxs("div",{className:"px-4 py-3 border-t border-slate-200 flex items-center justify-between",children:[A.jsxs("span",{className:"text-sm text-slate-500",children:["共 ",n," 条记录"]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("button",{onClick:()=>s(v=>Math.max(1,v-1)),disabled:o<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 cursor-pointer",children:A.jsx(ad,{className:"w-4 h-4"})}),A.jsxs("span",{className:"text-sm text-slate-600",children:[o," / ",c||1]}),A.jsx("button",{onClick:()=>s(v=>Math.min(c,v+1)),disabled:o>=c,className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-50 disabled:opacity-50 cursor-pointer",children:A.jsx(nd,{className:"w-4 h-4"})})]})]})]})})]})},g0e=({children:r})=>rd(e=>e.isAuthenticated)?A.jsx(A.Fragment,{children:r}):A.jsx(YS,{to:"/login",replace:!0}),m0e=()=>{const r=rd(t=>t.isAuthenticated);return A.jsxs(L5,{children:[A.jsx(Hr,{path:"/login",element:r?A.jsx(YS,{to:"/",replace:!0}):A.jsx(_W,{})}),A.jsx(Hr,{path:"/*",element:A.jsx(g0e,{children:A.jsx(xW,{children:A.jsxs(L5,{children:[A.jsx(Hr,{path:"/",element:A.jsx(qde,{})}),A.jsx(Hr,{path:"/users",element:A.jsx(Xde,{})}),A.jsx(Hr,{path:"/users/:id",element:A.jsx(Zde,{})}),A.jsx(Hr,{path:"/models",element:A.jsx(Kde,{})}),A.jsx(Hr,{path:"/models/local",element:A.jsx(Jde,{})}),A.jsx(Hr,{path:"/stats",element:A.jsx(e0e,{})}),A.jsx(Hr,{path:"/stats/usage",element:A.jsx(t0e,{})}),A.jsx(Hr,{path:"/logs",element:A.jsx(v0e,{})}),A.jsx(Hr,{path:"/logs/login",element:A.jsx(d0e,{})}),A.jsx(Hr,{path:"/logs/operation",element:A.jsx(p0e,{})}),A.jsx(Hr,{path:"/system/config",element:A.jsx(c0e,{})}),A.jsx(Hr,{path:"/system/security",element:A.jsx(f0e,{})}),A.jsx(Hr,{path:"*",element:A.jsx(YS,{to:"/",replace:!0})})]})})})})]})};bV.createRoot(document.getElementById("root")).render(A.jsx(bc.StrictMode,{children:A.jsx(GH,{children:A.jsx(m0e,{})})}));