diff --git a/locust/webui/dist/assets/index-01afe4fa.js b/locust/webui/dist/assets/index-01afe4fa.js deleted file mode 100644 index 9eb4587080..0000000000 --- a/locust/webui/dist/assets/index-01afe4fa.js +++ /dev/null @@ -1,250 +0,0 @@ -function P7(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function av(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var QF={exports:{}},K0={},JF={exports:{}},lt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ov=Symbol.for("react.element"),R7=Symbol.for("react.portal"),L7=Symbol.for("react.fragment"),E7=Symbol.for("react.strict_mode"),O7=Symbol.for("react.profiler"),N7=Symbol.for("react.provider"),z7=Symbol.for("react.context"),B7=Symbol.for("react.forward_ref"),F7=Symbol.for("react.suspense"),$7=Symbol.for("react.memo"),V7=Symbol.for("react.lazy"),iP=Symbol.iterator;function G7(e){return e===null||typeof e!="object"?null:(e=iP&&e[iP]||e["@@iterator"],typeof e=="function"?e:null)}var e$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t$=Object.assign,r$={};function Rf(e,t,r){this.props=e,this.context=t,this.refs=r$,this.updater=r||e$}Rf.prototype.isReactComponent={};Rf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Rf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function n$(){}n$.prototype=Rf.prototype;function HA(e,t,r){this.props=e,this.context=t,this.refs=r$,this.updater=r||e$}var WA=HA.prototype=new n$;WA.constructor=HA;t$(WA,Rf.prototype);WA.isPureReactComponent=!0;var aP=Array.isArray,i$=Object.prototype.hasOwnProperty,UA={current:null},a$={key:!0,ref:!0,__self:!0,__source:!0};function o$(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)i$.call(t,n)&&!a$.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,U=N[G];if(0>>1;Gi(X,L))Wi(ee,X)?(N[G]=ee,N[W]=L,G=W):(N[G]=X,N[j]=L,G=j);else if(Wi(ee,L))N[G]=ee,N[W]=L,G=W;else break e}}return $}function i(N,$){var L=N.sortIndex-$.sortIndex;return L!==0?L:N.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(N){for(var $=r(u);$!==null;){if($.callback===null)n(u);else if($.startTime<=N)n(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var $=r(u);$!==null&&V(S,$.startTime-N)}}function _(N,$){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x($),f=r(l);f!==null&&(!(f.expirationTime>$)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=$);$=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x($)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&V(S,j.startTime-$),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=L,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,V(S,L-G))):(N.sortIndex=U,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var $=d;return function(){var L=d;d=$;try{return N.apply(this,arguments)}finally{d=L}}}})(c$);u$.exports=c$;var J7=u$.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var f$=O,Un=J7;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dw=Object.prototype.hasOwnProperty,eq=/^[: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]*$/,sP={},lP={};function tq(e){return Dw.call(lP,e)?!0:Dw.call(sP,e)?!1:eq.test(e)?lP[e]=!0:(sP[e]=!0,!1)}function rq(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nq(e,t,r,n){if(t===null||typeof t>"u"||rq(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new dn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var qA=/[\-:]([a-z])/g;function YA(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(qA,YA);Nr[t]=new dn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qA,YA);Nr[t]=new dn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qA,YA);Nr[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function XA(e,t,r,n){var i=Nr.hasOwnProperty(t)?Nr[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{eS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Kd(e):""}function iq(e){switch(e.tag){case 5:return Kd(e.type);case 16:return Kd("Lazy");case 13:return Kd("Suspense");case 19:return Kd("SuspenseList");case 0:case 2:case 15:return e=tS(e.type,!1),e;case 11:return e=tS(e.type.render,!1),e;case 1:return e=tS(e.type,!0),e;default:return""}}function Ow(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ic:return"Fragment";case kc:return"Portal";case Rw:return"Profiler";case ZA:return"StrictMode";case Lw:return"Suspense";case Ew:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p$:return(e.displayName||"Context")+".Consumer";case h$:return(e._context.displayName||"Context")+".Provider";case KA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case QA:return t=e.displayName||null,t!==null?t:Ow(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return Ow(e(t))}catch{}}return null}function aq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ow(t);case 8:return t===ZA?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oq(e){var t=g$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jv(e){e._valueTracker||(e._valueTracker=oq(e))}function m$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=g$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function cy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function cP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function y$(e,t){t=t.checked,t!=null&&XA(e,"checked",t,!1)}function zw(e,t){y$(e,t);var r=_s(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Bw(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Bw(e,t,r){(t!=="number"||cy(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Qd=Array.isArray;function Uc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=qv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function np(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Sh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sq=["Webkit","ms","Moz","O"];Object.keys(Sh).forEach(function(e){sq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sh[t]=Sh[e]})});function _$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Sh.hasOwnProperty(e)&&Sh[e]?(""+t).trim():t+"px"}function w$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=_$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var lq=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vw(e,t){if(t){if(lq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function Gw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hw=null;function JA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ww=null,jc=null,qc=null;function pP(e){if(e=uv(e)){if(typeof Ww!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=r1(t),Ww(e.stateNode,e.type,t))}}function C$(e){jc?qc?qc.push(e):qc=[e]:jc=e}function T$(){if(jc){var e=jc,t=qc;if(qc=jc=null,pP(e),t)for(e=0;e>>=0,e===0?32:31-(xq(e)/Sq|0)|0}var Yv=64,Xv=4194304;function Jd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function py(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Jd(s):(a&=o,a!==0&&(n=Jd(a)))}else o=r&~i,o!==0?n=Jd(o):a!==0&&(n=Jd(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function sv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gi(t),e[t]=r}function Cq(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=_h),wP=String.fromCharCode(32),CP=!1;function U$(e,t){switch(e){case"keyup":return Qq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pc=!1;function eY(e,t){switch(e){case"compositionend":return j$(t);case"keypress":return t.which!==32?null:(CP=!0,wP);case"textInput":return e=t.data,e===wP&&CP?null:e;default:return null}}function tY(e,t){if(Pc)return e==="compositionend"||!sM&&U$(e,t)?(e=H$(),Mm=iM=Ko=null,Pc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=kP(r)}}function Z$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function K$(){for(var e=window,t=cy();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=cy(e.document)}return t}function lM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cY(e){var t=K$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Z$(r.ownerDocument.documentElement,r)){if(n!==null&&lM(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=IP(r,a);var o=IP(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Dc=null,Zw=null,Ch=null,Kw=!1;function PP(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Kw||Dc==null||Dc!==cy(n)||(n=Dc,"selectionStart"in n&&lM(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ch&&up(Ch,n)||(Ch=n,n=my(Zw,"onSelect"),0Ec||(e.current=nC[Ec],nC[Ec]=null,Ec--)}function Ot(e,t){Ec++,nC[Ec]=e.current,e.current=t}var ws={},Xr=Fs(ws),wn=Fs(!1),fu=ws;function cf(e,t){var r=e.type.contextTypes;if(!r)return ws;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Cn(e){return e=e.childContextTypes,e!=null}function xy(){$t(wn),$t(Xr)}function zP(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(wn,r)}function o3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ae(108,aq(e)||"Unknown",i));return Kt({},r,n)}function Sy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,fu=Xr.current,Ot(Xr,e),Ot(wn,wn.current),!0}function BP(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=o3(e,t,fu),n.__reactInternalMemoizedMergedChildContext=e,$t(wn),$t(Xr),Ot(Xr,e)):$t(wn),Ot(wn,r)}var Qa=null,n1=!1,vS=!1;function s3(e){Qa===null?Qa=[e]:Qa.push(e)}function _Y(e){n1=!0,s3(e)}function $s(){if(!vS&&Qa!==null){vS=!0;var e=0,t=Ct;try{var r=Qa;for(Ct=1;e>=o,i-=o,Ja=1<<32-Gi(t)+i|r<C?(A=w,w=null):A=w.sibling;var T=d(m,w,x[C],S);if(T===null){w===null&&(w=A);break}e&&w&&T.alternate===null&&t(m,w),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T,w=A}if(C===x.length)return r(m,w),Wt&&yl(m,C),_;if(w===null){for(;CC?(A=w,w=null):A=w.sibling;var M=d(m,w,T.value,S);if(M===null){w===null&&(w=A);break}e&&w&&M.alternate===null&&t(m,w),y=a(M,y,C),b===null?_=M:b.sibling=M,b=M,w=A}if(T.done)return r(m,w),Wt&&yl(m,C),_;if(w===null){for(;!T.done;C++,T=x.next())T=f(m,T.value,S),T!==null&&(y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return Wt&&yl(m,C),_}for(w=n(m,w);!T.done;C++,T=x.next())T=h(w,m,C,T.value,S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return e&&w.forEach(function(k){return t(m,k)}),Wt&&yl(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Ic&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Uv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===Ic){if(b.tag===7){r(m,b.sibling),y=i(b,x.props.children),y.return=m,m=y;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Wo&&UP(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=cd(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===Ic?(y=Ql(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Om(x.type,x.key,x.props,null,m.mode,S),S.ref=cd(m,y,x),S.return=m,m=S)}return o(m);case kc:e:{for(b=x.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=wS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(Qd(x))return p(m,y,x,S);if(ad(x))return v(m,y,x,S);rg(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,x),y.return=m,m=y):(r(m,y),y=_S(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var df=v3(!0),g3=v3(!1),cv={},Aa=Fs(cv),hp=Fs(cv),pp=Fs(cv);function Bl(e){if(e===cv)throw Error(ae(174));return e}function mM(e,t){switch(Ot(pp,t),Ot(hp,e),Ot(Aa,cv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$w(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$w(t,e)}$t(Aa),Ot(Aa,t)}function hf(){$t(Aa),$t(hp),$t(pp)}function m3(e){Bl(pp.current);var t=Bl(Aa.current),r=$w(t,e.type);t!==r&&(Ot(hp,e),Ot(Aa,r))}function yM(e){hp.current===e&&($t(Aa),$t(hp))}var Yt=Fs(0);function Ay(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gS=[];function xM(){for(var e=0;er?r:4,e(!0);var n=mS.transition;mS.transition={};try{e(!1),t()}finally{Ct=r,mS.transition=n}}function L3(){return bi().memoizedState}function AY(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},E3(e))O3(t,r);else if(r=f3(e,t,r,n),r!==null){var i=on();Hi(r,e,n,i),N3(r,t,n)}}function MY(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(E3(e))O3(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,ji(s,o)){var l=t.interleaved;l===null?(i.next=i,vM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=f3(e,t,i,n),r!==null&&(i=on(),Hi(r,e,n,i),N3(r,t,n))}}function E3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function O3(e,t){Th=My=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function N3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,tM(e,r)}}var ky={readContext:Si,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},kY={readContext:Si,useCallback:function(e,t){return la().memoizedState=[e,t===void 0?null:t],e},useContext:Si,useEffect:qP,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dm(4194308,4,k3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dm(4,2,e,t)},useMemo:function(e,t){var r=la();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=la();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=AY.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=la();return e={current:e},t.memoizedState=e},useState:jP,useDebugValue:CM,useDeferredValue:function(e){return la().memoizedState=e},useTransition:function(){var e=jP(!1),t=e[0];return e=TY.bind(null,e[1]),la().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=la();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));hu&30||S3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,qP(_3.bind(null,n,a,e),[e]),n.flags|=2048,mp(9,b3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=la(),t=Ar.identifierPrefix;if(Wt){var r=eo,n=Ja;r=(n&~(1<<32-Gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=vp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ha]=t,e[dp]=n,U3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Gw(r,n),r){case"dialog":Bt("cancel",e),Bt("close",e),i=n;break;case"iframe":case"object":case"embed":Bt("load",e),i=n;break;case"video":case"audio":for(i=0;ivf&&(t.flags|=128,n=!0,fd(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ay(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),fd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>vf&&r!==1073741824&&(t.flags|=128,n=!0,fd(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ar(),t.sibling=null,r=Yt.current,Ot(Yt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return PM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?On&1073741824&&(Gr(t),t.subtreeFlags&6&&(t.flags|=8192)):Gr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function NY(e,t){switch(cM(t),t.tag){case 1:return Cn(t.type)&&xy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hf(),$t(wn),$t(Xr),xM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yM(t),null;case 13:if($t(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));ff()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(Yt),null;case 4:return hf(),null;case 10:return pM(t.type._context),null;case 22:case 23:return PM(),null;case 24:return null;default:return null}}var ig=!1,Yr=!1,zY=typeof WeakSet=="function"?WeakSet:Set,_e=null;function Bc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){er(e,t,n)}else r.current=null}function vC(e,t,r){try{r()}catch(n){er(e,t,n)}}var rD=!1;function BY(e,t){if(Qw=vy,e=K$(),lM(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jw={focusedElem:e,selectionRange:r},vy=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Oi(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){er(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return p=rD,rD=!1,p}function Ah(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&vC(t,r,a)}i=i.next}while(i!==n)}}function o1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function gC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Y3(e){var t=e.alternate;t!==null&&(e.alternate=null,Y3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ha],delete t[dp],delete t[rC],delete t[SY],delete t[bY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function X3(e){return e.tag===5||e.tag===3||e.tag===4}function nD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||X3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=yy));else if(n!==4&&(e=e.child,e!==null))for(mC(e,t,r),e=e.sibling;e!==null;)mC(e,t,r),e=e.sibling}function yC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(yC(e,t,r),e=e.sibling;e!==null;)yC(e,t,r),e=e.sibling}var Ir=null,zi=!1;function Io(e,t,r){for(r=r.child;r!==null;)Z3(e,t,r),r=r.sibling}function Z3(e,t,r){if(Ta&&typeof Ta.onCommitFiberUnmount=="function")try{Ta.onCommitFiberUnmount(Q0,r)}catch{}switch(r.tag){case 5:Yr||Bc(r,t);case 6:var n=Ir,i=zi;Ir=null,Io(e,t,r),Ir=n,zi=i,Ir!==null&&(zi?(e=Ir,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ir.removeChild(r.stateNode));break;case 18:Ir!==null&&(zi?(e=Ir,r=r.stateNode,e.nodeType===8?pS(e.parentNode,r):e.nodeType===1&&pS(e,r),sp(e)):pS(Ir,r.stateNode));break;case 4:n=Ir,i=zi,Ir=r.stateNode.containerInfo,zi=!0,Io(e,t,r),Ir=n,zi=i;break;case 0:case 11:case 14:case 15:if(!Yr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&vC(r,t,o),i=i.next}while(i!==n)}Io(e,t,r);break;case 1:if(!Yr&&(Bc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){er(r,t,s)}Io(e,t,r);break;case 21:Io(e,t,r);break;case 22:r.mode&1?(Yr=(n=Yr)||r.memoizedState!==null,Io(e,t,r),Yr=n):Io(e,t,r);break;default:Io(e,t,r)}}function iD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zY),t.forEach(function(n){var i=qY.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ii(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$Y(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,Dy=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,_e=e.current;_e!==null;){var a=_e,o=a.child;if(_e.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-kM?Kl(e,0):MM|=r),Tn(e,t)}function i4(e,t){t===0&&(e.mode&1?(t=Xv,Xv<<=1,!(Xv&130023424)&&(Xv=4194304)):t=1);var r=on();e=fo(e,t),e!==null&&(sv(e,t,r),Tn(e,r))}function jY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),i4(e,r)}function qY(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),i4(e,r)}var a4;a4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wn.current)_n=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _n=!1,EY(e,t,r);_n=!!(e.flags&131072)}else _n=!1,Wt&&t.flags&1048576&&l3(t,_y,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Rm(e,t),e=t.pendingProps;var i=cf(t,Xr.current);Xc(t,r),i=bM(null,t,n,e,i,r);var a=_M();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Cn(n)?(a=!0,Sy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gM(t),i.updater=i1,t.stateNode=i,i._reactInternals=t,lC(t,n,e,r),t=fC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&uM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Rm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=XY(n),e=Oi(n,e),i){case 0:t=cC(null,t,n,e,r);break e;case 1:t=JP(null,t,n,e,r);break e;case 11:t=KP(null,t,n,e,r);break e;case 14:t=QP(null,t,n,Oi(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),cC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),JP(e,t,n,i,r);case 3:e:{if(G3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,d3(e,t),Ty(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=pf(Error(ae(423)),t),t=eD(e,t,n,r,i);break e}else if(n!==i){i=pf(Error(ae(424)),t),t=eD(e,t,n,r,i);break e}else for(Fn=fs(t.stateNode.containerInfo.firstChild),Vn=t,Wt=!0,Bi=null,r=g3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ff(),n===i){t=ho(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return m3(t),e===null&&aC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,eC(n,i)?o=null:a!==null&&eC(n,a)&&(t.flags|=32),V3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&aC(t),null;case 13:return H3(e,t,r);case 4:return mM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=df(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),KP(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ot(wy,n._currentValue),n._currentValue=o,a!==null)if(ji(a.value,o)){if(a.children===i.children&&!wn.current){t=ho(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=no(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),oC(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ae(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),oC(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Xc(t,r),i=Si(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Oi(n,t.pendingProps),i=Oi(n.type,i),QP(e,t,n,i,r);case 15:return F3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Rm(e,t),t.tag=1,Cn(n)?(e=!0,Sy(t)):e=!1,Xc(t,r),p3(t,n,i),lC(t,n,i,r),fC(null,t,n,!0,e,r);case 19:return W3(e,t,r);case 22:return $3(e,t,r)}throw Error(ae(156,t.tag))};function o4(e,t){return R$(e,t)}function YY(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,r,n){return new YY(e,t,r,n)}function RM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XY(e){if(typeof e=="function")return RM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===KA)return 11;if(e===QA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=gi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Om(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")RM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ic:return Ql(r.children,i,a,t);case ZA:o=8,i|=8;break;case Rw:return e=gi(12,r,t,i|2),e.elementType=Rw,e.lanes=a,e;case Lw:return e=gi(13,r,t,i),e.elementType=Lw,e.lanes=a,e;case Ew:return e=gi(19,r,t,i),e.elementType=Ew,e.lanes=a,e;case v$:return l1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h$:o=10;break e;case p$:o=9;break e;case KA:o=11;break e;case QA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=gi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ql(e,t,r,n){return e=gi(7,e,n,t),e.lanes=r,e}function l1(e,t,r,n){return e=gi(22,e,n,t),e.elementType=v$,e.lanes=r,e.stateNode={isHidden:!1},e}function _S(e,t,r){return e=gi(6,e,null,t),e.lanes=r,e}function wS(e,t,r){return t=gi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZY(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nS(0),this.expirationTimes=nS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function LM(e,t,r,n,i,a,o,s,l){return e=new ZY(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},gM(a),e}function KY(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c4)}catch(e){console.error(e)}}c4(),l$.exports=Yn;var Of=l$.exports;const sg=av(Of);var dD=Of;Pw.createRoot=dD.createRoot,Pw.hydrateRoot=dD.hydrateRoot;var f4={exports:{}},d4={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var gf=O;function rX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nX=typeof Object.is=="function"?Object.is:rX,iX=gf.useState,aX=gf.useEffect,oX=gf.useLayoutEffect,sX=gf.useDebugValue;function lX(e,t){var r=t(),n=iX({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return oX(function(){i.value=r,i.getSnapshot=t,CS(i)&&a({inst:i})},[e,r,t]),aX(function(){return CS(i)&&a({inst:i}),e(function(){CS(i)&&a({inst:i})})},[e]),sX(r),r}function CS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!nX(e,r)}catch{return!0}}function uX(e,t){return t()}var cX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uX:lX;d4.useSyncExternalStore=gf.useSyncExternalStore!==void 0?gf.useSyncExternalStore:cX;f4.exports=d4;var h4=f4.exports,p4={exports:{}},v4={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var h1=O,fX=h4;function dX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hX=typeof Object.is=="function"?Object.is:dX,pX=fX.useSyncExternalStore,vX=h1.useRef,gX=h1.useEffect,mX=h1.useMemo,yX=h1.useDebugValue;v4.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=vX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=mX(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,hX(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=pX(e,a[0],a[1]);return gX(function(){o.hasValue=!0,o.value=s},[s]),yX(s),s};p4.exports=v4;var xX=p4.exports;function SX(e){e()}let g4=SX;const bX=e=>g4=e,_X=()=>g4,hD=Symbol.for("react-redux-context"),pD=typeof globalThis<"u"?globalThis:{};function wX(){var e;if(!O.createContext)return{};const t=(e=pD[hD])!=null?e:pD[hD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const po=wX();function zM(e=po){return function(){return O.useContext(e)}}const m4=zM(),y4=()=>{throw new Error("uSES not initialized!")};let x4=y4;const CX=e=>{x4=e},TX=(e,t)=>e===t;function AX(e=po){const t=e===po?m4:zM(e);return function(n,i={}){const{equalityFn:a=TX,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();O.useRef(!0);const h=O.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,o]),p=x4(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const S4=AX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var b4={exports:{}},At={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kr=typeof Symbol=="function"&&Symbol.for,BM=kr?Symbol.for("react.element"):60103,FM=kr?Symbol.for("react.portal"):60106,p1=kr?Symbol.for("react.fragment"):60107,v1=kr?Symbol.for("react.strict_mode"):60108,g1=kr?Symbol.for("react.profiler"):60114,m1=kr?Symbol.for("react.provider"):60109,y1=kr?Symbol.for("react.context"):60110,$M=kr?Symbol.for("react.async_mode"):60111,x1=kr?Symbol.for("react.concurrent_mode"):60111,S1=kr?Symbol.for("react.forward_ref"):60112,b1=kr?Symbol.for("react.suspense"):60113,MX=kr?Symbol.for("react.suspense_list"):60120,_1=kr?Symbol.for("react.memo"):60115,w1=kr?Symbol.for("react.lazy"):60116,kX=kr?Symbol.for("react.block"):60121,IX=kr?Symbol.for("react.fundamental"):60117,PX=kr?Symbol.for("react.responder"):60118,DX=kr?Symbol.for("react.scope"):60119;function Zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case BM:switch(e=e.type,e){case $M:case x1:case p1:case g1:case v1:case b1:return e;default:switch(e=e&&e.$$typeof,e){case y1:case S1:case w1:case _1:case m1:return e;default:return t}}case FM:return t}}}function _4(e){return Zn(e)===x1}At.AsyncMode=$M;At.ConcurrentMode=x1;At.ContextConsumer=y1;At.ContextProvider=m1;At.Element=BM;At.ForwardRef=S1;At.Fragment=p1;At.Lazy=w1;At.Memo=_1;At.Portal=FM;At.Profiler=g1;At.StrictMode=v1;At.Suspense=b1;At.isAsyncMode=function(e){return _4(e)||Zn(e)===$M};At.isConcurrentMode=_4;At.isContextConsumer=function(e){return Zn(e)===y1};At.isContextProvider=function(e){return Zn(e)===m1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===BM};At.isForwardRef=function(e){return Zn(e)===S1};At.isFragment=function(e){return Zn(e)===p1};At.isLazy=function(e){return Zn(e)===w1};At.isMemo=function(e){return Zn(e)===_1};At.isPortal=function(e){return Zn(e)===FM};At.isProfiler=function(e){return Zn(e)===g1};At.isStrictMode=function(e){return Zn(e)===v1};At.isSuspense=function(e){return Zn(e)===b1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===p1||e===x1||e===g1||e===v1||e===b1||e===MX||typeof e=="object"&&e!==null&&(e.$$typeof===w1||e.$$typeof===_1||e.$$typeof===m1||e.$$typeof===y1||e.$$typeof===S1||e.$$typeof===IX||e.$$typeof===PX||e.$$typeof===DX||e.$$typeof===kX)};At.typeOf=Zn;b4.exports=At;var RX=b4.exports,VM=RX,LX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},EX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},OX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},GM={};GM[VM.ForwardRef]=OX;GM[VM.Memo]=w4;function vD(e){return VM.isMemo(e)?w4:GM[e.$$typeof]||LX}var NX=Object.defineProperty,zX=Object.getOwnPropertyNames,gD=Object.getOwnPropertySymbols,BX=Object.getOwnPropertyDescriptor,FX=Object.getPrototypeOf,mD=Object.prototype;function C4(e,t,r){if(typeof t!="string"){if(mD){var n=FX(t);n&&n!==mD&&C4(e,n,r)}var i=zX(t);gD&&(i=i.concat(gD(t)));for(var a=vD(e),o=vD(t),s=0;st(i(...a)))}return r}function wC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function xD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function M4(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=xD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=xD(u),u=a(s,l)),u},a}}function UM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function YX(e){return e&&typeof e=="object"?wC(t=>qX(e,t)):e?typeof e=="function"?M4(e):UM(e,"mapDispatchToProps"):wC(t=>({dispatch:t}))}function XX(e){return e?typeof e=="function"?M4(e):UM(e,"mapStateToProps"):wC(()=>({}))}function ZX(e,t,r){return F({},r,e,t)}function KX(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function QX(e){return e?typeof e=="function"?KX(e):UM(e,"mergeProps"):()=>ZX}function JX(){const e=_X();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const SD={notify(){},get:()=>[]};function k4(e,t){let r,n=SD;function i(f){return l(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=JX())}function u(){r&&(r(),r=void 0,n.clear(),n=SD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const eZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ey=eZ?O.useLayoutEffect:O.useEffect;function bD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Jl(e,t){if(bD(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{I4=e},nZ=[null,null];function iZ(e,t,r){Ey(()=>e(...t),r)}function aZ(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function oZ(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,m;try{g=n(v,i.current)}catch(y){m=y,d=y}m||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function sZ(e,t){return e===t}function Kn(e,t,r,{pure:n,areStatesEqual:i=sZ,areOwnPropsEqual:a=Jl,areStatePropsEqual:o=Jl,areMergedPropsEqual:s=Jl,forwardRef:l=!1,context:u=po}={}){const c=u,f=XX(e),d=YX(t),h=QX(r),p=!!e;return g=>{const m=g.displayName||g.name||"Component",y=`Connect(${m})`,x={shouldHandleStateChanges:p,displayName:y,wrappedComponentName:m,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,A,T]=O.useMemo(()=>{const{reactReduxForwardedRef:J}=w,fe=me(w,tZ);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&HX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),k=O.useContext(M),I=!!w.store&&!!w.store.getState&&!!w.store.dispatch,P=!!k&&!!k.store,R=I?w.store:k.store,z=P?k.getServerState:R.getState,V=O.useMemo(()=>jX(R.dispatch,x),[R]),[N,$]=O.useMemo(()=>{if(!p)return nZ;const J=k4(R,I?void 0:k.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,I,k]),L=O.useMemo(()=>I?k:F({},k,{subscription:N}),[I,k,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Ey(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:V(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?oZ(p,R,N,V,U,G,j,X,B,$,fe):()=>{},[N]);iZ(aZ,[U,G,j,T,B,$]);let ie;try{ie=I4(te,ee,z?()=>V(z(),T):ee)}catch(J){throw W.current&&(J.message+=` -The error may be correlated with this previous error: -${W.current.stack} - -`),J}Ey(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}const b=O.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=O.forwardRef(function(T,M){return O.createElement(b,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,yD(C,g)}return yD(b,g)}}function lZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=k4(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=O.useMemo(()=>e.getState(),[e]);Ey(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||po;return O.createElement(l.Provider,{value:o},r)}function P4(e=po){const t=e===po?m4:zM(e);return function(){const{store:n}=t();return n}}const D4=P4();function uZ(e=po){const t=e===po?D4:P4(e);return function(){return t().dispatch}}const R4=uZ();CX(xX.useSyncExternalStoreWithSelector);rZ(h4.useSyncExternalStore);bX(Of.unstable_batchedUpdates);function Pl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function L4(e){if(!Pl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=L4(e[r])}),t}function An(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Pl(e)&&Pl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Pl(t[i])&&i in e&&Pl(e[i])?n[i]=An(e[i],t[i],r):r.clone?n[i]=Pl(t[i])?L4(t[i]):t[i]:n[i]=t[i])}),n}function Cs(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function fv(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function cZ(e,t){return()=>null}function Ih(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function sn(e){return e&&e.ownerDocument||document}function Ra(e){return sn(e).defaultView||window}function fZ(e,t){return()=>null}function Oy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const dZ=typeof window<"u"?O.useLayoutEffect:O.useEffect,vo=dZ;let _D=0;function hZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(_D+=1,r(`mui-${_D}`))},[t]),n}const wD=Iw["useId".toString()];function E4(e){if(wD!==void 0){const t=wD();return e??t}return hZ(e)}function pZ(e,t,r,n,i){return null}function xp({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=O.useRef(e!==void 0),[a,o]=O.useState(t),s=i?e:a,l=O.useCallback(u=>{i||o(u)},[]);return[s,l]}function xa(e){const t=O.useRef(e);return vo(()=>{t.current=e}),O.useCallback((...r)=>(0,t.current)(...r),[])}function Mr(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Oy(r,t)})},e)}let E1=!0,TC=!1,CD;const vZ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function gZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&vZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function mZ(e){e.metaKey||e.altKey||e.ctrlKey||(E1=!0)}function TS(){E1=!1}function yZ(){this.visibilityState==="hidden"&&TC&&(E1=!0)}function xZ(e){e.addEventListener("keydown",mZ,!0),e.addEventListener("mousedown",TS,!0),e.addEventListener("pointerdown",TS,!0),e.addEventListener("touchstart",TS,!0),e.addEventListener("visibilitychange",yZ,!0)}function SZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return E1||gZ(t)}function jM(){const e=O.useCallback(i=>{i!=null&&xZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(TC=!0,window.clearTimeout(CD),CD=window.setTimeout(()=>{TC=!1},100),t.current=!1,!0):!1}function n(i){return SZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function O4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Wu;function N4(){if(Wu)return Wu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Wu="reverse",e.scrollLeft>0?Wu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Wu="negative")),document.body.removeChild(e),Wu}function bZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(N4()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qM(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=qM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function We(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const TD=e=>e,_Z=()=>{let e=TD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=TD}}},wZ=_Z(),YM=wZ,CZ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ge(e,t,r="Mui"){const n=CZ[t];return n?`${r}-${n}`:`${YM.generate(e)}-${t}`}function Ue(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ge(e,i,r)}),n}function z4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var TZ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AZ=z4(function(e){return TZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function MZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(Nf,--In):0,mf--,cr===10&&(mf=1,N1--),cr}function Gn(){return cr=In2||bp(cr)>3?"":" "}function $Z(e,t){for(;--t&&Gn()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return dv(e,Nm()+(t<6&&Ma()==32&&Gn()==32))}function MC(e){for(;Gn();)switch(cr){case e:return In;case 34:case 39:e!==34&&e!==39&&MC(cr);break;case 40:e===41&&MC(e);break;case 92:Gn();break}return In}function VZ(e,t){for(;Gn()&&e+cr!==47+10;)if(e+cr===42+42&&Ma()===47)break;return"/*"+dv(t,In-1)+"*"+O1(e===47?e:Gn())}function GZ(e){for(;!bp(Ma());)Gn();return dv(e,In)}function HZ(e){return H4(Bm("",null,null,null,[""],e=G4(e),0,[0],e))}function Bm(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,_=a,b=n,w=x;g;)switch(p=y,y=Gn()){case 40:if(p!=108&&Dr(w,f-1)==58){AC(w+=vt(zm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=zm(y);break;case 9:case 10:case 13:case 32:w+=FZ(p);break;case 92:w+=$Z(Nm()-1,7);continue;case 47:switch(Ma()){case 42:case 47:lg(WZ(VZ(Gn(),Nm()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=fa(w)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:m==-1&&(w=vt(w,/\f/g,"")),h>0&&fa(w)-f&&lg(h>32?MD(w+";",n,r,f-1):MD(vt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(lg(b=AD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)Bm(w,t,b,b,S,a,f,s,_);else switch(d===99&&Dr(w,3)===110?100:d){case 100:case 108:case 109:case 115:Bm(e,b,b,n&&lg(AD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:Bm(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+fa(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&BZ()==125)continue}switch(w+=O1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(fa(w)-1)*m,m=1;break;case 64:Ma()===45&&(w+=zm(Gn())),d=Ma(),c=f=fa(x=w+=GZ(Nm())),y++;break;case 45:p===45&&fa(w)==2&&(v=0)}}return a}function AD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=KM(d),p=0,v=0,g=0;p0?d[m]+" "+y:vt(y,/&\f/g,d[m])))&&(l[g++]=x);return z1(e,t,r,i===0?XM:s,l,u,c)}function WZ(e,t,r){return z1(e,t,r,B4,O1(zZ()),Sp(e,2,-2),0)}function MD(e,t,r,n){return z1(e,t,r,ZM,Sp(e,0,n),Sp(e,n+1,-1),n)}function Kc(e,t){for(var r="",n=KM(e),i=0;i6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return vt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Ny+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~AC(e,"stretch")?W4(vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,fa(e)-3-(~AC(e,"!important")&&10))){case 107:return vt(e,":",":"+pt)+e;case 101:return vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(Dr(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return pt+e+Ur+vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+Ur+vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+Ur+vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+Ur+e+e}return e}var JZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ZM:t.return=W4(t.value,t.length);break;case F4:return Kc([hd(t,{value:vt(t.value,"@","@"+pt)})],i);case XM:if(t.length)return NZ(t.props,function(a){switch(OZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kc([hd(t,{props:[vt(a,/:(read-\w+)/,":"+Ny+"$1")]})],i);case"::placeholder":return Kc([hd(t,{props:[vt(a,/:(plac\w+)/,":"+pt+"input-$1")]}),hd(t,{props:[vt(a,/:(plac\w+)/,":"+Ny+"$1")]}),hd(t,{props:[vt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},eK=[JZ],tK=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||eK,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),m=1;m=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oK=/[A-Z]|^ms/g,sK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q4=function(t){return t.charCodeAt(1)===45},ID=function(t){return t!=null&&typeof t!="boolean"},AS=z4(function(e){return q4(e)?e:e.replace(oK,"-$&").toLowerCase()}),PD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sK,function(n,i,a){return da={name:i,styles:a,next:da},i})}return aK[t]!==1&&!q4(t)&&typeof r=="number"&&r!==0?r+"px":r};function _p(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return da={name:r.name,styles:r.styles,next:da},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)da={name:n.name,styles:n.styles,next:da},n=n.next;var i=r.styles+";";return i}return lK(e,t,r)}case"function":{if(e!==void 0){var a=da,o=r(e);return da=a,_p(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function lK(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?hK:pK},ED=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},vK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return U4(r,n,i),cK(function(){return j4(r,n,i)}),null},gK=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=ED(t,r,n),l=s||LD(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(yK(i)?r:i):t;return E.jsx(fK,{styles:n})}/** - * @mui/styled-engine v5.14.10 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function K4(e,t){return kC(e,t)}const SK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},bK=["values","unit","step"],_K=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>F({},r,{[n.key]:n.val}),{})};function wK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=me(e,bK),a=_K(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${e2[e]}px)`};function qi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||OD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||OD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||e2).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function Q4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function J4(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function AK(e,...t){const r=Q4(e),n=[r,...t].reduce((i,a)=>An(i,a),{});return J4(Object.keys(r),n)}function MK(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a{e[i]!=null&&(r[i]=!0)}),r}function MS({values:e,breakpoints:t,base:r}){const n=r||MK(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function yf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function zy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=yf(e,r)||n,t&&(i=t(i,n,e)),i}function St(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=yf(l,n)||{};return qi(o,s,f=>{let d=zy(u,i,f);return f===d&&typeof f=="string"&&(d=zy(u,i,`${t}${f==="default"?"":Te(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function kK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const IK={m:"margin",p:"padding"},PK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ND={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},DK=kK(e=>{if(e.length>2)if(ND[e])e=ND[e];else return[e];const[t,r]=e.split(""),n=IK[t],i=PK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),t2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],r2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...t2,...r2];function hv(e,t,r,n){var i;const a=(i=yf(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function n2(e){return hv(e,"spacing",8)}function gu(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function RK(e,t){return r=>e.reduce((n,i)=>(n[i]=gu(t,r),n),{})}function LK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=DK(r),a=RK(i,n),o=e[r];return qi(e,o,a)}function eV(e,t){const r=n2(e.theme);return Object.keys(e).map(n=>LK(e,t,n,r)).reduce(Ph,{})}function Qt(e){return eV(e,t2)}Qt.propTypes={};Qt.filterProps=t2;function Jt(e){return eV(e,r2)}Jt.propTypes={};Jt.filterProps=r2;function EK(e=8){if(e.mui)return e;const t=n2({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function F1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Ph(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function pa(e){return typeof e!="number"?e:`${e}px solid`}const OK=St({prop:"border",themeKey:"borders",transform:pa}),NK=St({prop:"borderTop",themeKey:"borders",transform:pa}),zK=St({prop:"borderRight",themeKey:"borders",transform:pa}),BK=St({prop:"borderBottom",themeKey:"borders",transform:pa}),FK=St({prop:"borderLeft",themeKey:"borders",transform:pa}),$K=St({prop:"borderColor",themeKey:"palette"}),VK=St({prop:"borderTopColor",themeKey:"palette"}),GK=St({prop:"borderRightColor",themeKey:"palette"}),HK=St({prop:"borderBottomColor",themeKey:"palette"}),WK=St({prop:"borderLeftColor",themeKey:"palette"}),$1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:gu(t,n)});return qi(e,e.borderRadius,r)}return null};$1.propTypes={};$1.filterProps=["borderRadius"];F1(OK,NK,zK,BK,FK,$K,VK,GK,HK,WK,$1);const V1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hv(e.theme,"spacing",8),r=n=>({gap:gu(t,n)});return qi(e,e.gap,r)}return null};V1.propTypes={};V1.filterProps=["gap"];const G1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hv(e.theme,"spacing",8),r=n=>({columnGap:gu(t,n)});return qi(e,e.columnGap,r)}return null};G1.propTypes={};G1.filterProps=["columnGap"];const H1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hv(e.theme,"spacing",8),r=n=>({rowGap:gu(t,n)});return qi(e,e.rowGap,r)}return null};H1.propTypes={};H1.filterProps=["rowGap"];const UK=St({prop:"gridColumn"}),jK=St({prop:"gridRow"}),qK=St({prop:"gridAutoFlow"}),YK=St({prop:"gridAutoColumns"}),XK=St({prop:"gridAutoRows"}),ZK=St({prop:"gridTemplateColumns"}),KK=St({prop:"gridTemplateRows"}),QK=St({prop:"gridTemplateAreas"}),JK=St({prop:"gridArea"});F1(V1,G1,H1,UK,jK,qK,YK,XK,ZK,KK,QK,JK);function Qc(e,t){return t==="grey"?t:e}const eQ=St({prop:"color",themeKey:"palette",transform:Qc}),tQ=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qc}),rQ=St({prop:"backgroundColor",themeKey:"palette",transform:Qc});F1(eQ,tQ,rQ);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const nQ=St({prop:"width",transform:zn}),i2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||e2[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:zn(r)}};return qi(e,e.maxWidth,t)}return null};i2.filterProps=["maxWidth"];const iQ=St({prop:"minWidth",transform:zn}),aQ=St({prop:"height",transform:zn}),oQ=St({prop:"maxHeight",transform:zn}),sQ=St({prop:"minHeight",transform:zn});St({prop:"size",cssProperty:"width",transform:zn});St({prop:"size",cssProperty:"height",transform:zn});const lQ=St({prop:"boxSizing"});F1(nQ,i2,iQ,aQ,oQ,sQ,lQ);const uQ={border:{themeKey:"borders",transform:pa},borderTop:{themeKey:"borders",transform:pa},borderRight:{themeKey:"borders",transform:pa},borderBottom:{themeKey:"borders",transform:pa},borderLeft:{themeKey:"borders",transform:pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$1},color:{themeKey:"palette",transform:Qc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qc},backgroundColor:{themeKey:"palette",transform:Qc},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:V1},rowGap:{style:H1},columnGap:{style:G1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:i2},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},W1=uQ;function cQ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function fQ(e,t){return typeof e=="function"?e(t):e}function dQ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=yf(i,u)||{};return f?f(o):qi(o,n,p=>{let v=zy(d,c,p);return p===v&&typeof p=="string"&&(v=zy(d,c,`${r}${p==="default"?"":Te(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:W1;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=Q4(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=fQ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Ph(d,e(h,p,a,o));else{const v=qi({theme:a},p,g=>({[h]:g}));cQ(v,p)?d[h]=t({sx:p,theme:a}):d=Ph(d,v)}else d=Ph(d,e(h,p,a,o))}),J4(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const tV=dQ();tV.filterProps=["sx"];const U1=tV,hQ=["breakpoints","palette","spacing","shape"];function pv(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=me(e,hQ),s=wK(r),l=EK(i);let u=An({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},TK,a)},o);return u=t.reduce((c,f)=>An(c,f),u),u.unstable_sxConfig=F({},W1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return U1({sx:f,theme:this})},u}function pQ(e){return Object.keys(e).length===0}function rV(e=null){const t=O.useContext(B1);return!t||pQ(t)?e:t}const vQ=pv();function j1(e=vQ){return rV(e)}function gQ({styles:e,themeId:t,defaultTheme:r={}}){const n=j1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(xK,{styles:i})}const mQ=["sx"],yQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:W1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function a2(e){const{sx:t}=e,r=me(e,mQ),{systemProps:n,otherProps:i}=yQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Pl(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function nV(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(U1);return O.forwardRef(function(l,u){const c=j1(r),f=a2(l),{className:d,component:h="div"}=f,p=me(f,xQ);return E.jsx(a,F({as:h,ref:u,className:xe(d,i?i(n):n),theme:t&&c[t]||c},p))})}const bQ=["variant"];function zD(e){return e.length===0}function iV(e){const{variant:t}=e,r=me(e,bQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=zD(n)?e[i]:Te(e[i]):n+=`${zD(n)?i:Te(i)}${Te(e[i].toString())}`}),n}const _Q=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wQ(e){return Object.keys(e).length===0}function CQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const TQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,AQ=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=iV(i.props);n[a]=i.style}),n},MQ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[iV(l.props)])}),o};function Dh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kQ=pv(),IQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function pd({defaultTheme:e,theme:t,themeId:r}){return wQ(t)?e:t[r]||t}function PQ(e){return e?(t,r)=>r[e]:null}function aV(e={}){const{themeId:t,defaultTheme:r=kQ,rootShouldForwardProp:n=Dh,slotShouldForwardProp:i=Dh}=e,a=o=>U1(F({},o,{theme:pd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{SK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=PQ(IQ(u))}=s,h=me(s,_Q),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Dh;u==="Root"||u==="root"?m=n:u?m=i:CQ(o)&&(m=void 0);const y=K4(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:pd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=pd(F({},T,{defaultTheme:r,themeId:t})),k=TQ(l,M);if(k){const I={};return Object.entries(k).forEach(([P,R])=>{I[P]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,I)}return null}),l&&!p&&b.push(T=>{const M=pd(F({},T,{defaultTheme:r,themeId:t}));return MQ(T,AQ(l,M),M,l)}),v||b.push(a);const C=b.length-_.length;if(Array.isArray(S)&&C>0){const T=new Array(C).fill("");w=[...S,...T],w.raw=[...S.raw,...T]}else typeof S=="function"&&S.__emotion_real!==S&&(w=T=>S(F({},T,{theme:pd(F({},T,{defaultTheme:r,themeId:t}))})));const A=y(w,...b);return o.muiName&&(A.muiName=o.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const DQ=aV(),oV=DQ;function RQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:qM(t.components[r].defaultProps,n)}function o2({props:e,name:t,defaultTheme:r,themeId:n}){let i=j1(r);return n&&(i=i[n]||i),RQ({theme:i,name:t,props:e})}function s2(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function LQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function mu(e){if(e.type)return e;if(e.charAt(0)==="#")return mu(LQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function q1(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function EQ(e){e=mu(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),q1({type:s,values:l})}function BD(e){e=mu(e);let t=e.type==="hsl"||e.type==="hsla"?mu(EQ(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function OQ(e,t){const r=BD(e),n=BD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function mr(e,t){return e=mu(e),t=s2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,q1(e)}function sV(e,t){if(e=mu(e),t=s2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return q1(e)}function lV(e,t){if(e=mu(e),t=s2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return q1(e)}const NQ=O.createContext(null),uV=NQ;function cV(){return O.useContext(uV)}const zQ=typeof Symbol=="function"&&Symbol.for,BQ=zQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function FQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function $Q(e){const{children:t,theme:r}=e,n=cV(),i=O.useMemo(()=>{const a=n===null?r:FQ(n,r);return a!=null&&(a[BQ]=n!==null),a},[r,n]);return E.jsx(uV.Provider,{value:i,children:t})}const FD={};function $D(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function VQ(e){const{children:t,theme:r,themeId:n}=e,i=rV(FD),a=cV()||FD,o=$D(n,i,r),s=$D(n,a,r,!0);return E.jsx($Q,{theme:s,children:E.jsx(B1.Provider,{value:o,children:t})})}const GQ=["className","component","disableGutters","fixed","maxWidth","classes"],HQ=pv(),WQ=oV("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Te(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),UQ=e=>o2({props:e,name:"MuiContainer",defaultTheme:HQ}),jQ=(e,t)=>{const r=l=>Ge(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Te(String(o))}`,i&&"fixed",a&&"disableGutters"]};return We(s,r,n)};function qQ(e={}){const{createStyledComponent:t=WQ,useThemeProps:r=UQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>F({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return O.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=me(u,GQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=jQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:xe(m.root,c),ref:l},v))})}const YQ=["component","direction","spacing","divider","children","className","useFlexGap"],XQ=pv(),ZQ=oV("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function KQ(e){return o2({props:e,name:"MuiStack",defaultTheme:XQ})}function QQ(e,t){const r=O.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],eJ=({ownerState:e,theme:t})=>{let r=F({display:"flex",flexDirection:"column"},qi({theme:t},MS({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=n2(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=MS({values:e.direction,base:i}),o=MS({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=An(r,qi({theme:t},o,(l,u)=>e.useFlexGap?{gap:gu(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${JQ(u?a[u]:e.direction)}`]:gu(n,l)}}))}return r=AK(t.breakpoints,r),r};function tJ(e={}){const{createStyledComponent:t=ZQ,useThemeProps:r=KQ,componentName:n="MuiStack"}=e,i=()=>We({root:["root"]},l=>Ge(n,l),{}),a=t(eJ);return O.forwardRef(function(l,u){const c=r(l),f=a2(c),{component:d="div",direction:h="column",spacing:p=0,divider:v,children:g,className:m,useFlexGap:y=!1}=f,x=me(f,YQ),S={direction:h,spacing:p,useFlexGap:y},_=i();return E.jsx(a,F({as:d,ownerState:S,ref:u,className:xe(_.root,m)},x,{children:v?QQ(g,v):g}))})}function rJ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const nJ={black:"#000",white:"#fff"},wp=nJ,iJ={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},aJ=iJ,oJ={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Uu=oJ,sJ={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ju=sJ,lJ={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},vd=lJ,uJ={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qu=uJ,cJ={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yu=cJ,fJ={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xu=fJ,dJ=["mode","contrastThreshold","tonalOffset"],VD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:wp.white,default:wp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kS={text:{primary:wp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:wp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function GD(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=lV(e.main,i):t==="dark"&&(e.dark=sV(e.main,a)))}function hJ(e="light"){return e==="dark"?{main:qu[200],light:qu[50],dark:qu[400]}:{main:qu[700],light:qu[400],dark:qu[800]}}function pJ(e="light"){return e==="dark"?{main:Uu[200],light:Uu[50],dark:Uu[400]}:{main:Uu[500],light:Uu[300],dark:Uu[700]}}function vJ(e="light"){return e==="dark"?{main:ju[500],light:ju[300],dark:ju[700]}:{main:ju[700],light:ju[400],dark:ju[800]}}function gJ(e="light"){return e==="dark"?{main:Yu[400],light:Yu[300],dark:Yu[700]}:{main:Yu[700],light:Yu[500],dark:Yu[900]}}function mJ(e="light"){return e==="dark"?{main:Xu[400],light:Xu[300],dark:Xu[700]}:{main:Xu[800],light:Xu[500],dark:Xu[900]}}function yJ(e="light"){return e==="dark"?{main:vd[400],light:vd[300],dark:vd[700]}:{main:"#ed6c02",light:vd[500],dark:vd[900]}}function xJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=me(e,dJ),a=e.primary||hJ(t),o=e.secondary||pJ(t),s=e.error||vJ(t),l=e.info||gJ(t),u=e.success||mJ(t),c=e.warning||yJ(t);function f(v){return OQ(v,kS.text.primary)>=r?kS.text.primary:VD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return GD(v,"light",y,n),GD(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:kS,light:VD};return An(F({common:F({},wp),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:aJ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const SJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function bJ(e){return Math.round(e*1e5)/1e5}const HD={textTransform:"uppercase"},WD='"Roboto", "Helvetica", "Arial", sans-serif';function _J(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=WD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=me(r,SJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===WD?{letterSpacing:`${bJ(S/y)}em`}:{},_,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,HD),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,HD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const wJ=.2,CJ=.14,TJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${CJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${TJ})`].join(",")}const AJ=["none",Gt(0,2,1,-1,0,1,1,0,0,1,3,0),Gt(0,3,1,-2,0,2,2,0,0,1,5,0),Gt(0,3,3,-2,0,3,4,0,0,1,8,0),Gt(0,2,4,-1,0,4,5,0,0,1,10,0),Gt(0,3,5,-1,0,5,8,0,0,1,14,0),Gt(0,3,5,-1,0,6,10,0,0,1,18,0),Gt(0,4,5,-2,0,7,10,1,0,2,16,1),Gt(0,5,5,-3,0,8,10,1,0,3,14,2),Gt(0,5,6,-3,0,9,12,1,0,3,16,2),Gt(0,6,6,-3,0,10,14,1,0,4,18,3),Gt(0,6,7,-4,0,11,15,1,0,4,20,3),Gt(0,7,8,-4,0,12,17,2,0,5,22,4),Gt(0,7,8,-4,0,13,19,2,0,5,24,4),Gt(0,7,9,-4,0,14,21,2,0,5,26,4),Gt(0,8,9,-5,0,15,22,2,0,6,28,5),Gt(0,8,10,-5,0,16,24,2,0,6,30,5),Gt(0,8,11,-5,0,17,26,2,0,6,32,5),Gt(0,9,11,-5,0,18,28,2,0,7,34,6),Gt(0,9,12,-6,0,19,29,2,0,7,36,6),Gt(0,10,13,-6,0,20,31,3,0,8,38,7),Gt(0,10,13,-6,0,21,33,3,0,8,40,7),Gt(0,10,14,-6,0,22,35,3,0,8,42,7),Gt(0,11,14,-7,0,23,36,3,0,9,44,8),Gt(0,11,15,-7,0,24,38,3,0,9,46,8)],MJ=AJ,kJ=["duration","easing","delay"],IJ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function UD(e){return`${Math.round(e)}ms`}function PJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function DJ(e){const t=F({},IJ,e.easing),r=F({},fV,e.duration);return F({getAutoHeightDuration:PJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return me(a,kJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:UD(o)} ${s} ${typeof l=="string"?l:UD(l)}`).join(",")}},e,{easing:t,duration:r})}const RJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},LJ=RJ,EJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function l2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=me(e,EJ);if(e.vars)throw new Error(Cs(18));const s=xJ(n),l=pv(e);let u=An(l,{mixins:rJ(l.breakpoints,r),palette:s,shadows:MJ.slice(),typography:_J(s,a),transitions:DJ(i),zIndex:F({},LJ)});return u=An(u,o),u=t.reduce((c,f)=>An(c,f),u),u.unstable_sxConfig=F({},W1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return U1({sx:f,theme:this})},u}const OJ=l2(),Y1=OJ,yu="$$material";function je({props:e,name:t}){return o2({props:e,name:t,defaultTheme:Y1,themeId:yu})}function dV(e){return E.jsx(gQ,F({},e,{defaultTheme:Y1,themeId:yu}))}const NJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),zJ=e=>F({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),BJ=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=F({html:NJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},zJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function hV(e){const t=je({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(dV,{styles:i=>BJ(i,n)}),r]})}function zf(){const e=j1(Y1);return e[yu]||e}const Ga=e=>Dh(e)&&e!=="classes",FJ=Dh,$J=aV({themeId:yu,defaultTheme:Y1,rootShouldForwardProp:Ga}),pe=$J,VJ=["theme"];function pV(e){let{theme:t}=e,r=me(e,VJ);const n=t[yu];return E.jsx(VQ,F({},r,{themeId:n?yu:void 0,theme:n||t}))}const GJ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},jD=GJ;function HJ(e){return Ge("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const WJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],UJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(r)}`]};return We(i,HJ,n)},jJ=pe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Te(r.color)}`],t[`fontSize${Te(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),vV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=me(n,WJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=UJ(v);return E.jsxs(jJ,F({as:s,className:xe(m.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?E.jsx("title",{children:f}):null]}))});vV.muiName="SvgIcon";const qD=vV;function ku(e,t){function r(n,i){return E.jsx(qD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=qD.muiName,O.memo(O.forwardRef(r))}const qJ={configure:e=>{YM.configure(e)}},YJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Te,createChainedFunction:CC,createSvgIcon:ku,debounce:fv,deprecatedPropType:cZ,isMuiElement:Ih,ownerDocument:sn,ownerWindow:Ra,requirePropFactory:fZ,setRef:Oy,unstable_ClassNameGenerator:qJ,unstable_useEnhancedEffect:vo,unstable_useId:E4,unsupportedProp:pZ,useControlled:xp,useEventCallback:xa,useForkRef:Mr,useIsFocusVisible:jM},Symbol.toStringTag,{value:"Module"}));function IC(e,t){return IC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},IC(e,t)}function gV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,IC(e,t)}const YD={disabled:!1},By=ya.createContext(null);var XJ=function(t){return t.scrollTop},th="unmounted",Sl="exited",bl="entering",Sc="entered",PC="exiting",Co=function(e){gV(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=Sl,a.appearStatus=bl):l=Sc:n.unmountOnExit||n.mountOnEnter?l=th:l=Sl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===th?{status:Sl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==bl&&o!==Sc&&(a=bl):(o===bl||o===Sc)&&(a=PC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:sg.findDOMNode(this);o&&XJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sl&&this.setState({status:th})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[sg.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||YD.disabled){this.safeSetState({status:Sc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:bl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Sc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:sg.findDOMNode(this);if(!a||YD.disabled){this.safeSetState({status:Sl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:PC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Sl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:sg.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===th)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=me(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ya.createElement(By.Provider,{value:null},typeof o=="function"?o(i,s):ya.cloneElement(ya.Children.only(o),s))},t}(ya.Component);Co.contextType=By;Co.propTypes={};function Zu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zu,onEntering:Zu,onEntered:Zu,onExit:Zu,onExiting:Zu,onExited:Zu};Co.UNMOUNTED=th;Co.EXITED=Sl;Co.ENTERING=bl;Co.ENTERED=Sc;Co.EXITING=PC;const u2=Co;function ZJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c2(e,t){var r=function(a){return t&&O.isValidElement(a)?t(a):a},n=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function KJ(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;oe.scrollTop;function xf(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function nee(e){return Ge("MuiCollapse",e)}Ue("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const iee=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],aee=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return We(n,nee,r)},oee=pe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),see=pe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),lee=pe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),yV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:m="vertical",style:y,timeout:x=fV.standard,TransitionComponent:S=u2}=n,_=me(n,iee),b=F({},n,{orientation:m,collapsedSize:s}),w=aee(b),C=zf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),k=typeof s=="number"?`${s}px`:s,I=m==="horizontal",P=I?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),V=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[I?"clientWidth":"clientHeight"]:0,$=V((W,ee)=>{T.current&&I&&(T.current.style.position="absolute"),W.style[P]=k,f&&f(W,ee)}),L=V((W,ee)=>{const te=N();T.current&&I&&(T.current.style.position="");const{duration:ie,easing:re}=xf({style:y,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=C.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${Q}ms`,M.current=Q}else W.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;W.style[P]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=V((W,ee)=>{W.style[P]="auto",d&&d(W,ee)}),U=V(W=>{W.style[P]=`${N()}px`,p&&p(W)}),B=V(v),j=V(W=>{const ee=N(),{duration:te,easing:ie}=xf({style:y,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const re=C.transitions.getAutoHeightDuration(ee);W.style.transitionDuration=`${re}ms`,M.current=re}else W.style.transitionDuration=typeof te=="string"?te:`${te}ms`;W.style[P]=k,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:$,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx(oee,F({as:l,className:xe(w.root,o,{entered:w.entered,exited:!c&&k==="0px"&&w.hidden}[W]),style:F({[I?"minWidth":"minHeight"]:k},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(see,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(lee,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});yV.muiSupportAuto=!0;const uee=yV;function cee(e){return Ge("MuiPaper",e)}Ue("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const fee=["className","component","elevation","square","variant"],dee=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return We(a,cee,i)},hee=pe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mr("#fff",jD(t.elevation))}, ${mr("#fff",jD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),pee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=me(n,fee),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=dee(c);return E.jsx(hee,F({as:a,ownerState:c,className:xe(f.root,i),ref:r},u))}),X1=pee,vee=O.createContext({}),xV=vee;function gee(e){return Ge("MuiAccordion",e)}const mee=Ue("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),ug=mee,yee=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],xee=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return We({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},gee,t)},See=pe(X1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ug.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${ug.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${ug.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${ug.expanded}`]:{margin:"16px 0"}})),bee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=uee,TransitionProps:h}=n,p=me(n,yee),[v,g]=xp({controlled:u,default:o,name:"Accordion",state:"expanded"}),m=O.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[y,...x]=O.Children.toArray(i),S=O.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:m}),[v,s,l,m]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=xee(_);return E.jsxs(See,F({className:xe(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(xV.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),SV=bee;function _ee(e){return Ge("MuiAccordionDetails",e)}Ue("MuiAccordionDetails",["root"]);const wee=["className"],Cee=e=>{const{classes:t}=e;return We({root:["root"]},_ee,t)},Tee=pe("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),Aee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=me(n,wee),o=n,s=Cee(o);return E.jsx(Tee,F({className:xe(s.root,i),ref:r,ownerState:o},a))}),bV=Aee;function Mee(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=O.useState(!1),d=xe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=xe(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),O.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const kee=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),si=kee,Iee=["center","classes","className"];let Z1=e=>e,XD,ZD,KD,QD;const DC=550,Pee=80,Dee=JM(XD||(XD=Z1` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Ree=JM(ZD||(ZD=Z1` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),Lee=JM(KD||(KD=Z1` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Eee=pe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Oee=pe(Mee,{name:"MuiTouchRipple",slot:"Ripple"})(QD||(QD=Z1` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),si.rippleVisible,Dee,DC,({theme:e})=>e.transitions.easing.easeInOut,si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,si.child,si.childLeaving,Ree,DC,({theme:e})=>e.transitions.easing.easeInOut,si.childPulsate,Lee,({theme:e})=>e.transitions.easing.easeInOut),Nee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=me(n,Iee),[l,u]=O.useState([]),c=O.useRef(0),f=O.useRef(null);O.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=O.useRef(!1),h=O.useRef(0),p=O.useRef(null),v=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=O.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:A}=S;u(T=>[...T,E.jsx(Oee,{classes:{ripple:xe(a.ripple,si.ripple),rippleVisible:xe(a.rippleVisible,si.rippleVisible),ripplePulsate:xe(a.ripplePulsate,si.ripplePulsate),child:xe(a.child,si.child),childLeaving:xe(a.childLeaving,si.childLeaving),childPulsate:xe(a.childPulsate,si.childPulsate)},timeout:DC,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=A},[a]),m=O.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:A=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const T=A?null:v.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,P;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(R-M.left),I=Math.round(z-M.top)}if(C)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-k),k)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;P=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},Pee)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:b})},[i,g]),y=O.useCallback(()=>{m({},{pulsate:!0})},[m]),x=O.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return O.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),E.jsx(Eee,F({className:xe(si.root,a.root,o),ref:v},s,{children:E.jsx(ree,{component:null,exit:!0,children:l})}))}),zee=Nee;function Bee(e){return Ge("MuiButtonBase",e)}const Fee=Ue("MuiButtonBase",["root","disabled","focusVisible"]),$ee=Fee,Vee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Gee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=We({root:["root",t&&"disabled",r&&"focusVisible"]},Bee,i);return r&&n&&(o.root+=` ${n}`),o},Hee=pe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$ee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:A,onTouchMove:T,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:P,type:R}=n,z=me(n,Vee),V=O.useRef(null),N=O.useRef(null),$=Mr(N,P),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=jM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),V.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,br=f){return xa(Ae=>(Vt&&Vt(Ae),!br&&N.current&&N.current[he](Ae),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),Pe=ie("start",M),Ye=ie("stop",A),He=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=xa(he=>{V.current||(V.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),kt=()=>{const he=V.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),It=xa(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&kt()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&kt()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),qt=xa(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&kt()&&he.key===" "&&!he.defaultPrevented&&v(he)});let Pt=l;Pt==="button"&&(z.href||z.to)&&(Pt=h);const K={};Pt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,V),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:j}),we=Gee(Re);return E.jsxs(Hee,F({as:Pt,className:xe(we.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:It,onKeyUp:qt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:Ye,onTouchMove:He,onTouchStart:Pe,ref:le,tabIndex:u?-1:k,type:R},K,z,{children:[o,te?E.jsx(zee,F({ref:$,center:a},I)):null]}))}),Iu=Wee;function Uee(e){return Ge("MuiAccordionSummary",e)}const jee=Ue("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$c=jee,qee=["children","className","expandIcon","focusVisibleClassName","onClick"],Yee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return We({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Uee,t)},Xee=pe(Iu,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${$c.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$c.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$c.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${$c.expanded}`]:{minHeight:64}})}),Zee=pe("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$c.expanded}`]:{margin:"20px 0"}})),Kee=pe("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$c.expanded}`]:{transform:"rotate(180deg)"}})),Qee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=me(n,qee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(xV),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Yee(v);return E.jsxs(Xee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:xe(g.root,a),focusVisibleClassName:xe(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(Zee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Kee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),_V=Qee;function Jee(e){return Ge("MuiIconButton",e)}const ete=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tte=ete,rte=["edge","children","className","color","disabled","disableFocusRipple","size"],nte=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Te(n)}`,i&&`edge${Te(i)}`,`size${Te(a)}`]};return We(o,Jee,t)},ite=pe(Iu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Te(r.color)}`],r.edge&&t[`edge${Te(r.edge)}`],t[`size${Te(r.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${tte.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ate=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=me(n,rte),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=nte(d);return E.jsx(ite,F({className:xe(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),wV=ate;function ote(e){return Ge("MuiTypography",e)}Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ste=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lte=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Te(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return We(s,ote,o)},ute=pe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Te(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),JD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cte={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fte=e=>cte[e]||e,dte=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTypography"}),i=fte(n.color),a=a2(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=JD}=a,p=me(a,ste),v=F({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||JD[d])||"span",m=lte(v);return E.jsx(ute,F({as:g,ref:r,ownerState:v,className:xe(m.root,s)},p))}),Ze=dte;function hte(e){return Ge("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const pte=["className","color","enableColorOnDark","position"],vte=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Te(t)}`,`position${Te(r)}`]};return We(i,hte,n)},cg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,gte=pe(X1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Te(r.position)}`],t[`color${Te(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&F({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:cg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:cg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:cg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:cg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),mte=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=me(n,pte),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=vte(u);return E.jsx(gte,F({square:!0,component:"header",ownerState:u,elevation:4,className:xe(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),yte=mte;function Sf(e){return typeof e=="string"}function xte(e,t,r){return e===void 0||Sf(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function CV(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Ste(e,t,r){return typeof e=="function"?e(t,r):e}function eR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function bte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=xe(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=CV(F({},i,n)),s=eR(n),l=eR(i),u=t(o),c=xe(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=F({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=F({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const _te=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function La(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=me(e,_te),s=a?{}:Ste(n,i),{props:l,internalRef:u}=bte(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return xte(r,F({},l,{ref:c}),i)}const wte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cte(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Tte(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Ate(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Tte(e))}function Mte(e){const t=[],r=[];return Array.from(e.querySelectorAll(wte)).forEach((n,i)=>{const a=Cte(n);a===-1||!Ate(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function kte(){return!0}function Ite(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Mte,isEnabled:o=kte,open:s}=e,l=O.useRef(!1),u=O.useRef(null),c=O.useRef(null),f=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),p=O.useRef(null),v=Mr(t.ref,p),g=O.useRef(null);O.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!p.current)return;const x=sn(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),O.useEffect(()=>{if(!s||!p.current)return;const x=sn(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var A,T;const M=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function Pte(e){return typeof e=="function"?e():e}const Dte=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=O.useState(null),l=Mr(O.isValidElement(n)?n.ref:null,r);if(vo(()=>{a||s(Pte(i)||document.body)},[i,a]),vo(()=>{if(o&&!a)return Oy(r,o),()=>{Oy(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&Of.createPortal(n,o)})});function Rte(e){const t=sn(e);return t.body===e?Ra(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Rh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tR(e){return parseInt(Ra(e).getComputedStyle(e).paddingRight,10)||0}function Lte(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function rR(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Lte(o);s&&l&&Rh(o,i)})}function IS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Ete(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Rte(n)){const o=O4(sn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${tR(n)+o}px`;const s=sn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${tR(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=sn(n).body;else{const o=n.parentElement,s=Ra(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function Ote(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Nte{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Rh(t.modalRef,!1);const i=Ote(r);rR(r,t.mount,t.modalRef,i,!0);const a=IS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=IS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Ete(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=IS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Rh(t.modalRef,r),rR(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Rh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function zte(e){return typeof e=="function"?e():e}function Bte(e){return e?e.props.hasOwnProperty("in"):!1}const Fte=new Nte;function $te(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Fte,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=O.useRef({}),h=O.useRef(null),p=O.useRef(null),v=Mr(p,f),[g,m]=O.useState(!c),y=Bte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>sn(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=xa(()=>{const z=zte(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=xa(z=>{h.current=z,z&&(c&&C()?b():p.current&&Rh(p.current,x))}),T=O.useCallback(()=>{i.remove(_(),x)},[x,i]);O.useEffect(()=>()=>{T()},[T]),O.useEffect(()=>{c?w():(!y||!a)&&T()},[c,T,y,a,w]);const M=z=>V=>{var N;(N=z.onKeyDown)==null||N.call(z,V),!(V.key!=="Escape"||!C())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},k=z=>V=>{var N;(N=z.onClick)==null||N.call(z,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(z={})=>{const V=CV(e);delete V.onTransitionEnter,delete V.onTransitionExited;const N=F({},V,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const V=z;return F({"aria-hidden":!0},V,{onClick:k(V),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},V=()=>{m(!0),s&&s(),a&&T()};return{onEnter:CC(z,l==null?void 0:l.props.onEnter),onExited:CC(V,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const Vte=["onChange","maxRows","minRows","style","value"];function fg(e){return parseInt(e,10)||0}const Gte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function nR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Hte=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=me(t,Vte),{current:u}=O.useRef(s!=null),c=O.useRef(null),f=Mr(r,c),d=O.useRef(null),h=O.useRef(0),[p,v]=O.useState({outerHeightStyle:0}),g=O.useCallback(()=>{const _=c.current,w=Ra(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const A=w.boxSizing,T=fg(w.paddingBottom)+fg(w.paddingTop),M=fg(w.borderBottomWidth)+fg(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let P=k;a&&(P=Math.max(Number(a)*I,P)),i&&(P=Math.min(Number(i)*I,P)),P=Math.max(P,I);const R=P+(A==="border-box"?T+M:0),z=Math.abs(P-k)<=1;return{outerHeightStyle:R,overflow:z}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=O.useCallback(()=>{const _=g();nR(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();nR(_)||Of.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=fv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Ra(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),vo(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},Gte.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Pu({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Wte=O.createContext(void 0),d2=Wte;function Vs(){return O.useContext(d2)}function iR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fy(e,t=!1){return e&&(iR(e.value)&&e.value!==""||t&&iR(e.defaultValue)&&e.defaultValue!=="")}function Ute(e){return e.startAdornment}function jte(e){return Ge("MuiInputBase",e)}const qte=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),bf=qte,Yte=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],K1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Te(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Q1=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Xte=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${Te(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Te(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return We(v,jte,t)},J1=pe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:K1})(({theme:e,ownerState:t})=>F({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${bf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ex=pe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return F({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${bf.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${bf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Zte=E.jsx(dV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kte=O.forwardRef(function(t,r){var n;const i=je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:P,readOnly:R,renderSuffix:z,rows:V,slotProps:N={},slots:$={},startAdornment:L,type:G="text",value:U}=i,B=me(i,Yte),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(we=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Vs(),J=Pu({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,O.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,Pe=O.useCallback(we=>{Fy(we)?fe&&fe():de&&de()},[fe,de]);vo(()=>{X&&Pe({value:j})},[j,Pe,X]);const Ye=we=>{if(J.disabled){we.stopPropagation();return}M&&M(we),y.onFocus&&y.onFocus(we),Q&&Q.onFocus?Q.onFocus(we):re(!0)},He=we=>{C&&C(we),y.onBlur&&y.onBlur(we),Q&&Q.onBlur?Q.onBlur(we):re(!1)},at=(we,...he)=>{if(!X){const Vt=we.target||W.current;if(Vt==null)throw new Error(Cs(1));Pe({value:Vt.value})}y.onChange&&y.onChange(we,...he),A&&A(we,...he)};O.useEffect(()=>{Pe(W.current)},[]);const ot=we=>{W.current&&we.currentTarget===we.target&&W.current.focus(),T&&T(we)};let kt=m,Be=y;b&&kt==="input"&&(V?Be=F({type:void 0,minRows:V,maxRows:V},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),kt=Hte);const It=we=>{Pe(we.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const qt=F({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:L,type:G}),Pt=Xte(qt),K=$.root||u.Root||J1,le=N.root||c.root||{},Re=$.input||u.Input||ex;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&Zte,E.jsxs(K,F({},le,!Sf(K)&&{ownerState:F({},qt,le.ownerState)},{ref:r,onClick:ot},B,{className:xe(Pt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(d2.Provider,{value:null,children:E.jsx(Re,F({ownerState:qt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:It,name:w,placeholder:P,readOnly:R,required:J.required,rows:V,value:j,onKeyDown:k,onKeyUp:I,type:G},Be,!Sf(Re)&&{as:kt,ownerState:F({},qt,Be.ownerState)},{ref:te,className:xe(Pt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:He,onChange:at,onFocus:Ye}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),h2=Kte;function Qte(e){return Ge("MuiInput",e)}const Jte=F({},bf,Ue("MuiInput",["root","underline","input"])),gd=Jte;function ere(e){return Ge("MuiOutlinedInput",e)}const tre=F({},bf,Ue("MuiOutlinedInput",["root","notchedOutline","input"])),Po=tre;function rre(e){return Ge("MuiFilledInput",e)}const nre=F({},bf,Ue("MuiFilledInput",["root","underline","input"])),js=nre,ire=ku(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),are=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ore={entering:{opacity:1},entered:{opacity:1}},sre=O.forwardRef(function(t,r){const n=zf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=u2}=t,x=me(t,are),S=O.useRef(null),_=Mr(S,s.ref,r),b=P=>R=>{if(P){const z=S.current;R===void 0?P(z):P(z,R)}},w=b(d),C=b((P,R)=>{mV(P);const z=xf({style:g,timeout:m,easing:l},{mode:"enter"});P.style.webkitTransition=n.transitions.create("opacity",z),P.style.transition=n.transitions.create("opacity",z),c&&c(P,R)}),A=b(f),T=b(v),M=b(P=>{const R=xf({style:g,timeout:m,easing:l},{mode:"exit"});P.style.webkitTransition=n.transitions.create("opacity",R),P.style.transition=n.transitions.create("opacity",R),h&&h(P)}),k=b(p),I=P=>{a&&a(S.current,P)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:k,onExiting:T,addEndListener:I,timeout:m},x,{children:(P,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},ore[P],g,s.props.style),ref:_},R))}))}),lre=sre;function ure(e){return Ge("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const cre=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fre=e=>{const{classes:t,invisible:r}=e;return We({root:["root",r&&"invisible"]},ure,t)},dre=pe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),hre=O.forwardRef(function(t,r){var n,i,a;const o=je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=lre,transitionDuration:m}=o,y=me(o,cre),x=F({},o,{component:u,invisible:d}),S=fre(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(dre,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:xe(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),pre=hre,vre=l2(),gre=SQ({themeId:yu,defaultTheme:vre,defaultClassName:"MuiBox-root",generateClassName:YM.generate}),xt=gre;function mre(e){return Ge("MuiButton",e)}const yre=Ue("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),dg=yre,xre=O.createContext({}),Sre=xre,bre=O.createContext(void 0),_re=bre,wre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cre=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Te(t)}`,`size${Te(i)}`,`${a}Size${Te(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Te(i)}`],endIcon:["endIcon",`iconSize${Te(i)}`]},l=We(s,mre,o);return F({},o,l)},TV=e=>F({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Tre=pe(Iu,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Te(r.color)}`],t[`size${Te(r.size)}`],t[`${r.variant}Size${Te(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return F({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${dg.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dg.disabled}`]:F({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${dg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dg.disabled}`]:{boxShadow:"none"}}),Are=pe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Te(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},TV(e))),Mre=pe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Te(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},TV(e))),kre=O.forwardRef(function(t,r){const n=O.useContext(Sre),i=O.useContext(_re),a=qM(n,t),o=je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=me(o,wre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=Cre(b),C=y&&E.jsx(Are,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(Mre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(Tre,F({ownerState:b,className:xe(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:xe(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Du=kre;function Ire(e){return Ge("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Pre=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Dre=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${Te(i)}`],input:["input"]};return We(a,Ire,t)},Rre=pe(Iu)(({ownerState:e})=>F({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Lre=pe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ere=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:_,type:b,value:w}=t,C=me(t,Pre),[A,T]=xp({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=Vs(),k=$=>{y&&y($),M&&M.onFocus&&M.onFocus($)},I=$=>{g&&g($),M&&M.onBlur&&M.onBlur($)},P=$=>{if($.nativeEvent.defaultPrevented)return;const L=$.target.checked;T(L),m&&m($,L)};let R=l;M&&typeof R>"u"&&(R=M.disabled);const z=b==="checkbox"||b==="radio",V=F({},t,{checked:A,disabled:R,disableFocusRipple:u,edge:c}),N=Dre(V);return E.jsxs(Rre,F({component:"span",className:xe(N.root,o),centerRipple:!0,focusRipple:!u,disabled:R,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:V,ref:r},C,{children:[E.jsx(Lre,F({autoFocus:n,checked:i,defaultChecked:s,className:N.input,disabled:R,id:z?d:void 0,name:v,onChange:P,readOnly:x,ref:p,required:S,ownerState:V,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),A?a:f]}))}),Ore=Ere,Nre=ku(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),zre=ku(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Bre=ku(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Fre(e){return Ge("MuiCheckbox",e)}const $re=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),PS=$re,Vre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Gre=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${Te(n)}`,`size${Te(i)}`]},o=We(a,Fre,t);return F({},t,o)},Hre=pe(Ore,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${Te(r.color)}`]]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${PS.checked}, &.${PS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${PS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Wre=E.jsx(zre,{}),Ure=E.jsx(Nre,{}),jre=E.jsx(Bre,{}),qre=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Wre,color:s="primary",icon:l=Ure,indeterminate:u=!1,indeterminateIcon:c=jre,inputProps:f,size:d="medium",className:h}=a,p=me(a,Vre),v=u?c:l,g=u?c:o,m=F({},a,{color:s,indeterminate:u,size:d}),y=Gre(m);return E.jsx(Hre,F({type:"checkbox",inputProps:F({"data-indeterminate":u},f),icon:O.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:O.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:xe(y.root,h)},p,{classes:y}))}),Yre=qre,Xre=qQ({createStyledComponent:pe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Te(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>je({props:e,name:"MuiContainer"})}),Bf=Xre;function Zre(e){return Ge("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const Kre=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Qre=e=>{const{open:t,exited:r,classes:n}=e;return We({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Zre,n)},Jre=pe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ene=pe(pre,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tne=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=je({name:"MuiModal",props:t}),{BackdropComponent:c=ene,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:k,slotProps:I,slots:P}=u,R=me(u,Kre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:V,getBackdropProps:N,getTransitionProps:$,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=$te(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=Qre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=$();W.onEnter=fe,W.onExited=de}const ee=(n=(i=P==null?void 0:P.root)!=null?i:m.Root)!=null?n:Jre,te=(a=(o=P==null?void 0:P.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=I==null?void 0:I.root)!=null?s:y.root,re=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,Q=La({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:V,additionalProps:{ref:r,as:g},ownerState:j,className:xe(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=La({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:xe(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!k&&(!B||U)?null:E.jsx(Dte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(Ite,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,W)})]}))})}),AV=tne;function rne(e){return Ge("MuiDivider",e)}Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const nne=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ine=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return We({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},rne,n)},ane=pe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>F({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mr(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),one=pe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),MV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=me(n,nne),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=ine(v);return E.jsx(ane,F({as:s,className:xe(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(one,{className:g.wrapper,ownerState:v,children:a}):null}))});MV.muiSkipListHighlight=!0;const md=MV,sne=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lne=e=>{const{classes:t,disableUnderline:r}=e,i=We({root:["root",!r&&"underline"],input:["input"]},rre,t);return F({},t,i)},une=pe(J1,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...K1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return F({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${js.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${js.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${js.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${js.disabled}, .${js.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${js.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),cne=pe(ex,{name:"MuiFilledInput",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>F({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),kV=O.forwardRef(function(t,r){var n,i,a,o;const s=je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=me(s,sne),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=lne(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?An(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:une,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:cne;return E.jsx(h2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});kV.muiName="Input";const IV=kV;function fne(e){return Ge("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const dne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],hne=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Te(r)}`,n&&"fullWidth"]};return We(i,fne,t)},pne=pe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),vne=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=me(n,dne),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=hne(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{if(!Ih(P,["Input","Select"]))return;const R=Ih(P,["Select"])?P.props.input:P;R&&Ute(R.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{Ih(P,["Input","Select"])&&(Fy(P.props,!0)||Fy(P.props.inputProps,!0))&&(I=!0)}),I}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return E.jsx(d2.Provider,{value:k,children:E.jsx(pne,F({as:s,ownerState:y,className:xe(x.root,a),ref:r},m,{children:i}))})}),PV=vne,gne=tJ({createStyledComponent:pe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),mne=gne;function yne(e){return Ge("MuiFormControlLabel",e)}const xne=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),rh=xne,Sne=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],bne=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${Te(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return We(o,yne,t)},_ne=pe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${rh.label}`]:t.label},t.root,t[`labelPlacement${Te(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>F({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${rh.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${rh.label}`]:{[`&.${rh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),wne=pe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rh.error}`]:{color:(e.vars||e).palette.error.main}})),Cne=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=me(a,Sne),g=Vs(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof l.props[A]>"u"&&typeof a[A]<"u"&&(x[A]=a[A])});const S=Pu({props:a,muiFormControl:g,states:["error"]}),_=F({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=bne(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==Ze&&!c&&(C=E.jsx(Ze,F({component:"span"},w,{className:xe(b.label,w==null?void 0:w.className),children:C}))),E.jsxs(_ne,F({className:xe(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?E.jsxs(mne,{direction:"row",alignItems:"center",children:[C,E.jsxs(wne,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))}),Tne=Cne;function Ane(e){return Ge("MuiFormHelperText",e)}const Mne=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),aR=Mne;var oR;const kne=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Ine=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${Te(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return We(u,Ane,t)},Pne=pe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Te(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${aR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Dne=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=me(n,kne),l=Vs(),u=Pu({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Ine(c);return E.jsx(Pne,F({as:o,ownerState:c,className:xe(f.root,a),ref:r},s,{children:i===" "?oR||(oR=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Rne=Dne;function Lne(e){return Ge("MuiFormLabel",e)}const Ene=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Lh=Ene,One=["children","className","color","component","disabled","error","filled","focused","required"],Nne=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Te(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return We(l,Lne,t)},zne=pe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Lh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),Bne=pe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),Fne=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=me(n,One),l=Vs(),u=Pu({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Nne(c);return E.jsxs(zne,F({as:o,ownerState:c,className:xe(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Bne,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),$ne=Fne,Vne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function RC(e){return`scale(${e}, ${e**2})`}const Gne={entering:{opacity:1,transform:RC(1)},entered:{opacity:1,transform:"none"}},DS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),DV=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=u2}=t,m=me(t,Vne),y=O.useRef(),x=O.useRef(),S=zf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const V=_.current;z===void 0?R(V):R(V,z)}},C=w(c),A=w((R,z)=>{mV(R);const{duration:V,delay:N,easing:$}=xf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=V,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:DS?L:L*.666,delay:N,easing:$})].join(","),l&&l(R,z)}),T=w(u),M=w(h),k=w(R=>{const{duration:z,delay:V,easing:N}=xf({style:p,timeout:v,easing:o},{mode:"exit"});let $;v==="auto"?($=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=$):$=z,R.style.transition=[S.transitions.create("opacity",{duration:$,delay:V}),S.transitions.create("transform",{duration:DS?$:$*.666,delay:DS?V:V||$*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=RC(.75),f&&f(R)}),I=w(d),P=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:P,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:RC(.75),visibility:R==="exited"&&!s?"hidden":void 0},Gne[R],p,a.props.style),ref:b},z))}))});DV.muiSupportAuto=!0;const Hne=DV,Wne=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Une=e=>{const{classes:t,disableUnderline:r}=e,i=We({root:["root",!r&&"underline"],input:["input"]},Qte,t);return F({},t,i)},jne=pe(J1,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...K1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),F({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${gd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gd.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gd.disabled}, .${gd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${gd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),qne=pe(ex,{name:"MuiInput",slot:"Input",overridesResolver:Q1})({}),RV=O.forwardRef(function(t,r){var n,i,a,o;const s=je({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=me(s,Wne),y=Une(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?An(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:jne,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:qne;return E.jsx(h2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});RV.muiName="Input";const LV=RV;function Yne(e){return Ge("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Xne=["disableAnimation","margin","shrink","variant","className"],Zne=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${Te(n)}`,o],asterisk:[s&&"asterisk"]},u=We(l,Yne,t);return F({},t,u)},Kne=pe($ne,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lh.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>F({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&F({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&F({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&F({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Qne=O.forwardRef(function(t,r){const n=je({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=me(n,Xne),l=Vs();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Pu({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Zne(f);return E.jsx(Kne,F({"data-shrink":u,ownerState:f,ref:r,className:xe(d.root,o)},s,{classes:d}))}),EV=Qne;function Jne(e){return Ge("MuiLink",e)}const eie=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tie=eie,OV={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rie=e=>OV[e]||e,nie=({theme:e,ownerState:t})=>{const r=rie(t.color),n=yf(e,`palette.${r}`,!1)||t.color,i=yf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:mr(n,.4)},iie=nie,aie=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oie=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Te(i)}`,r==="button"&&"button",n&&"focusVisible"]};return We(a,Jne,t)},sie=pe(Ze,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Te(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:iie({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tie.focusVisible}`]:{outline:"auto"}})),lie=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=me(n,aie),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=jM(),[y,x]=O.useState(!1),S=Mr(r,m),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=oie(w);return E.jsx(sie,F({color:a,className:xe(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(OV).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),an=lie,uie=O.createContext({}),Eh=uie;function cie(e){return Ge("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const fie=["children","className","component","dense","disablePadding","subheader"],die=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return We({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},cie,t)},hie=pe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pie=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=me(n,fie),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=die(d);return E.jsx(Eh.Provider,{value:f,children:E.jsxs(hie,F({as:o,className:xe(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),NV=pie;function vie(e){return Ge("MuiListItem",e)}const gie=Ue("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),bc=gie,mie=Ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),yie=mie;function xie(e){return Ge("MuiListItemSecondaryAction",e)}Ue("MuiListItemSecondaryAction",["root","disableGutters"]);const Sie=["className"],bie=e=>{const{disableGutters:t,classes:r}=e;return We({root:["root",t&&"disableGutters"]},xie,r)},_ie=pe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),zV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=me(n,Sie),o=O.useContext(Eh),s=F({},n,{disableGutters:o.disableGutters}),l=bie(s);return E.jsx(_ie,F({className:xe(l.root,i),ownerState:s,ref:r},a))});zV.muiName="ListItemSecondaryAction";const wie=zV,Cie=["className"],Tie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Aie=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Mie=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return We({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},vie,n)},kie=pe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Aie})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${yie.root}`]:{paddingRight:48}},{[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Iie=pe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Pie=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=me(n.ContainerProps,Cie),A=me(n,Tie),T=O.useContext(Eh),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),k=O.useRef(null);vo(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),P=I.length&&Ih(I[I.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:P,selected:_}),z=Mie(R),V=Mr(k,r),N=w.root||c.Root||kie,$=b.root||f.root||{},L=F({className:xe(z.root,$.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=xe(bc.focusVisible,x),G=Iu),P?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Eh.Provider,{value:M,children:E.jsxs(Iie,F({as:d,className:xe(z.container,h),ref:V,ownerState:R},C,{children:[E.jsx(N,F({},$,!Sf(N)&&{as:G,ownerState:F({},R,$.ownerState)},L,{children:I})),I.pop()]}))})):E.jsx(Eh.Provider,{value:M,children:E.jsxs(N,F({},$,{as:G,ref:V},!Sf(N)&&{ownerState:F({},R,$.ownerState)},L,{children:[I,S&&E.jsx(wie,{children:S})]}))})}),Ku=Pie,Die=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function RS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function sR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function BV(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function yd(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!BV(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Rie=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=me(t,Die),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vo(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=sn(S).activeElement;if(_==="ArrowDown")x.preventDefault(),yd(S,b,u,l,RS);else if(_==="ArrowUp")x.preventDefault(),yd(S,b,u,l,sR);else if(_==="Home")x.preventDefault(),yd(S,null,u,l,RS);else if(_==="End")x.preventDefault(),yd(S,null,u,l,sR);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&BV(b,w);w.previousKeyMatched&&(T||yd(S,b,!1,l,RS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Mr(h,r);let m=-1;O.Children.forEach(o,(x,S)=>{if(!O.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=O.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),O.cloneElement(x,_)}return x});return E.jsx(NV,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),Lie=Rie;function Eie(e){return Ge("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);const Oie=["onEntering"],Nie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zie=["slotProps"];function lR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function uR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function cR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function LS(e){return typeof e=="function"?e():e}const Bie=e=>{const{classes:t}=e;return We({root:["root"],paper:["paper"]},Eie,t)},Fie=pe(AV,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FV=pe(X1,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$ie=O.forwardRef(function(t,r){var n,i,a;const o=je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Hne,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=me(o.TransitionProps,Oie),M=me(o,Nie),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),P=Mr(I,k.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Bie(R),V=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=LS(l),Pe=(fe&&fe.nodeType===1?fe:sn(I.current).body).getBoundingClientRect();return{top:Pe.top+lR(Pe,u.vertical),left:Pe.left+uR(Pe,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:lR(fe,_.vertical),horizontal:uR(fe,_.horizontal)}),[_.horizontal,_.vertical]),$=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},Pe=N(de);if(f==="none")return{top:null,left:null,transformOrigin:cR(Pe)};const Ye=V();let He=Ye.top-Pe.vertical,at=Ye.left-Pe.horizontal;const ot=He+de.height,kt=at+de.width,Be=Ra(LS(l)),It=Be.innerHeight-g,qt=Be.innerWidth-g;if(g!==null&&HeIt){const Pt=ot-It;He-=Pt,Pe.vertical+=Pt}if(g!==null&&atqt){const Pt=kt-qt;at-=Pt,Pe.horizontal+=Pt}return{top:`${Math.round(He)}px`,left:`${Math.round(at)}px`,transformOrigin:cR(Pe)}},[l,f,V,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=I.current;if(!fe)return;const de=$(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[$]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=fv(()=>{U()}),de=Ra(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?sn(LS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Fie,te=(a=x==null?void 0:x.paper)!=null?a:FV,ie=La({elementType:te,externalSlotProps:F({},k,{style:L?k.style:F({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:P},ownerState:R,className:xe(z.paper,k==null?void 0:k.className)}),re=La({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:xe(z.root,h)}),{slotProps:Q}=re,J=me(re,zie);return E.jsx(ee,F({},J,!Sf(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Vie=$ie;function Gie(e){return Ge("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const Hie=["onEntering"],Wie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Uie={vertical:"top",horizontal:"right"},jie={vertical:"top",horizontal:"left"},qie=e=>{const{classes:t}=e;return We({root:["root"],paper:["paper"],list:["list"]},Gie,t)},Yie=pe(Vie,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xie=pe(FV,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Zie=pe(Lie,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kie=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=me(a.TransitionProps,Hie),_=me(a,Wie),b=zf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=qie(C),T=o&&!u&&d,M=O.useRef(null),k=($,L)=>{M.current&&M.current.adjustStyleForScrollbar($,b),g&&g($,L)},I=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let P=-1;O.Children.map(s,($,L)=>{O.isValidElement($)&&($.props.disabled||(m==="selectedMenu"&&$.props.selected||P===-1)&&(P=L))});const R=(n=y.paper)!=null?n:Xie,z=(i=x.paper)!=null?i:h,V=La({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=La({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(Yie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Uie:jie,slots:{paper:R,root:y.root},slotProps:{root:V,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:k},S),ownerState:C},_,{classes:p,children:E.jsx(Zie,F({onKeyDown:I,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:T,variant:m},c,{className:xe(A.list,c.className),children:s}))}))}),Qie=Kie;function Jie(e){return Ge("MuiNativeSelect",e)}const eae=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),p2=eae,tae=["className","disabled","error","IconComponent","inputRef","variant"],rae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Te(r)}`,a&&"iconOpen",n&&"disabled"]};return We(s,Jie,t)},$V=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${p2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),nae=pe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ga,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${p2.multiple}`]:t.multiple}]}})($V),VV=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${p2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iae=pe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})(VV),aae=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=me(t,tae),c=F({},t,{disabled:i,variant:l,error:a}),f=rae(c);return E.jsxs(O.Fragment,{children:[E.jsx(nae,F({ownerState:c,className:xe(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(iae,{as:o,ownerState:c,className:f.icon})]})}),oae=aae;var fR;const sae=["children","classes","className","label","notched"],lae=pe("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),uae=pe("legend")(({ownerState:e,theme:t})=>F({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&F({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function cae(e){const{className:t,label:r,notched:n}=e,i=me(e,sae),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(lae,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(uae,{ownerState:o,children:a?E.jsx("span",{children:r}):fR||(fR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const fae=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dae=e=>{const{classes:t}=e,n=We({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ere,t);return F({},t,n)},hae=pe(J1,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:K1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Po.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Po.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Po.focused} .${Po.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Po.error} .${Po.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Po.disabled} .${Po.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),pae=pe(cae,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),vae=pe(ex,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>F({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),GV=O.forwardRef(function(t,r){var n,i,a,o,s;const l=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=me(l,fae),y=dae(l),x=Vs(),S=Pu({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:hae,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:vae;return E.jsx(h2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(pae,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.jsxs(O.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:F({},y,{notchedOutline:null})}))});GV.muiName="Input";const HV=GV;function gae(e){return Ge("MuiSelect",e)}const mae=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xd=mae;var dR;const yae=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xae=pe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${xd.select}`]:t.select},{[`&.${xd.select}`]:t[r.variant]},{[`&.${xd.error}`]:t.error},{[`&.${xd.multiple}`]:t.multiple}]}})($V,{[`&.${xd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sae=pe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})(VV),bae=pe("input",{shouldForwardProp:e=>FJ(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function hR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _ae(e){return e==null||typeof e=="string"&&!e.trim()}const wae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Te(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return We(s,gae,t)},Cae=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:P,value:R,variant:z="standard"}=t,V=me(t,yae),[N,$]=xp({controlled:R,default:f,name:"Select"}),[L,G]=xp({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Ae=>{B.current=Ae,Ae&&X(Ae)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Ae=sn(B.current).getElementById(m);if(Ae){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Ae.addEventListener("click",ut),()=>{Ae.removeEventListener("click",ut)}}},[m]);const J=(Ae,ut)=>{Ae?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Ae))},fe=Ae=>{Ae.button===0&&(Ae.preventDefault(),B.current.focus(),J(!0,Ae))},de=Ae=>{J(!1,Ae)},Pe=O.Children.toArray(l),Ye=Ae=>{const ut=Pe.find(Rt=>Rt.props.value===Ae.target.value);ut!==void 0&&($(ut.props.value),b&&b(Ae,ut))},He=Ae=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const ve=N.indexOf(Ae.props.value);ve===-1?Rt.push(Ae.props.value):Rt.splice(ve,1)}else Rt=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ut),N!==Rt&&($(Rt),b)){const ve=ut.nativeEvent||ut,De=new ve.constructor(ve.type,ve);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Ae)}x||J(!1,ut)}},at=Ae=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),J(!0,Ae))},ot=j!==null&&L,kt=Ae=>{!ot&&_&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:N,name:S}}),_(Ae))};delete V["aria-invalid"];let Be,It;const qt=[];let Pt=!1;(Fy({value:N})||h)&&(k?Be=k(N):Pt=!0);const K=Pe.map(Ae=>{if(!O.isValidElement(Ae))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>hR(Rt,Ae.props.value)),ut&&Pt&&qt.push(Ae.props.children)}else ut=hR(N,Ae.props.value),ut&&Pt&&(It=Ae.props.children);return O.cloneElement(Ae,{"aria-selected":ut?"true":"false",onClick:He(Ae),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Ae.props.value})});Pt&&(x?qt.length===0?Be=null:Be=qt.reduce((Ae,ut,Rt)=>(Ae.push(ut),Rt{const{classes:t}=e;return t},v2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ga(e)&&e!=="variant",slot:"Root"},Iae=pe(LV,v2)(""),Pae=pe(HV,v2)(""),Dae=pe(IV,v2)(""),WV=O.forwardRef(function(t,r){const n=je({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=ire,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=me(n,Aae),T=y?oae:Tae,M=Vs(),k=Pu({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,P=F({},n,{variant:I,classes:o}),R=kae(P),z=me(R,Mae),V=d||{standard:E.jsx(Iae,{ownerState:P}),outlined:E.jsx(Pae,{label:p,ownerState:P}),filled:E.jsx(Dae,{ownerState:P})}[I],N=Mr(r,V.ref);return E.jsx(O.Fragment,{children:O.cloneElement(V,F({inputComponent:T,inputProps:F({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:F({id:f},w)},h,{classes:h?An(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:N,className:xe(V.props.className,s,R.root)},!d&&{variant:I},A))})});WV.muiName="Select";const UV=WV;function Rae(e){return Ge("MuiTab",e)}const Lae=Ue("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),qs=Lae,Eae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Oae=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${Te(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return We(u,Rae,t)},Nae=pe(Iu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Te(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${qs.iconWrapper}`]:F({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${qs.selected}`]:{opacity:1},[`&.${qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${qs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${qs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),zae=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=me(n,Eae),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Oae(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:xe(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,y),h&&h(T)},A=T=>{g&&!v&&d&&d(T,y),p&&p(T)};return E.jsxs(Nae,F({focusRipple:!o,className:xe(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Bae=zae,Fae=O.createContext(),jV=Fae;function $ae(e){return Ge("MuiTable",e)}Ue("MuiTable",["root","stickyHeader"]);const Vae=["className","component","padding","size","stickyHeader"],Gae=e=>{const{classes:t,stickyHeader:r}=e;return We({root:["root",r&&"stickyHeader"]},$ae,t)},Hae=pe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),pR="table",Wae=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTable"}),{className:i,component:a=pR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=me(n,Vae),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Gae(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(jV.Provider,{value:d,children:E.jsx(Hae,F({as:a,role:a===pR?null:"table",ref:r,className:xe(f.root,i),ownerState:c},u))})}),Uae=Wae,jae=O.createContext(),tx=jae;function qae(e){return Ge("MuiTableBody",e)}Ue("MuiTableBody",["root"]);const Yae=["className","component"],Xae=e=>{const{classes:t}=e;return We({root:["root"]},qae,t)},Zae=pe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Kae={variant:"body"},vR="tbody",Qae=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableBody"}),{className:i,component:a=vR}=n,o=me(n,Yae),s=F({},n,{component:a}),l=Xae(s);return E.jsx(tx.Provider,{value:Kae,children:E.jsx(Zae,F({className:xe(l.root,i),as:a,ref:r,role:a===vR?null:"rowgroup",ownerState:s},o))})}),Jae=Qae;function eoe(e){return Ge("MuiTableCell",e)}const toe=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),roe=toe,noe=["align","className","component","padding","scope","size","sortDirection","variant"],ioe=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Te(n)}`,i!=="normal"&&`padding${Te(i)}`,`size${Te(a)}`]};return We(s,eoe,t)},aoe=pe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Te(r.size)}`],r.padding!=="normal"&&t[`padding${Te(r.padding)}`],r.align!=="inherit"&&t[`align${Te(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?lV(mr(e.palette.divider,1),.88):sV(mr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${roe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ooe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=me(n,noe),h=O.useContext(jV),p=O.useContext(tx),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=F({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=ioe(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(aoe,F({as:g,ref:r,className:xe(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),gR=ooe;function soe(e){return Ge("MuiTableContainer",e)}Ue("MuiTableContainer",["root"]);const loe=["className","component"],uoe=e=>{const{classes:t}=e;return We({root:["root"]},soe,t)},coe=pe("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),foe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=me(n,loe),s=F({},n,{component:a}),l=uoe(s);return E.jsx(coe,F({ref:r,as:a,className:xe(l.root,i),ownerState:s},o))}),doe=foe;function hoe(e){return Ge("MuiTableHead",e)}Ue("MuiTableHead",["root"]);const poe=["className","component"],voe=e=>{const{classes:t}=e;return We({root:["root"]},hoe,t)},goe=pe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),moe={variant:"head"},mR="thead",yoe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableHead"}),{className:i,component:a=mR}=n,o=me(n,poe),s=F({},n,{component:a}),l=voe(s);return E.jsx(tx.Provider,{value:moe,children:E.jsx(goe,F({as:a,className:xe(l.root,i),ref:r,role:a===mR?null:"rowgroup",ownerState:s},o))})}),xoe=yoe;function Soe(e){return Ge("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const boe=["className","component","disableGutters","variant"],_oe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return We({root:["root",!r&&"gutters",n]},Soe,t)},woe=pe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>F({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Coe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=me(n,boe),u=F({},n,{component:a,disableGutters:o,variant:s}),c=_oe(u);return E.jsx(woe,F({as:a,className:xe(c.root,i),ref:r,ownerState:u},l))}),Toe=Coe,Aoe=ku(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Moe=ku(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function koe(e){return Ge("MuiTableRow",e)}const Ioe=Ue("MuiTableRow",["root","selected","hover","head","footer"]),yR=Ioe,Poe=["className","component","hover","selected"],Doe=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return We({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},koe,t)},Roe=pe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${yR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${yR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),xR="tr",Loe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableRow"}),{className:i,component:a=xR,hover:o=!1,selected:s=!1}=n,l=me(n,Poe),u=O.useContext(tx),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Doe(c);return E.jsx(Roe,F({as:a,ref:r,className:xe(f.root,i),role:a===xR?null:"row",ownerState:c},l))}),SR=Loe;function Eoe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Ooe(e,t,r,n={},i=()=>{}){const{ease:a=Eoe,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Noe=["onChange"],zoe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Boe(e){const{onChange:t}=e,r=me(e,Noe),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return vo(()=>{const o=fv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Ra(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:zoe,ref:i},r))}function Foe(e){return Ge("MuiTabScrollButton",e)}const $oe=Ue("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Voe=$oe,Goe=["className","slots","slotProps","direction","orientation","disabled"],Hoe=e=>{const{classes:t,orientation:r,disabled:n}=e;return We({root:["root",r,n&&"disabled"]},Foe,t)},Woe=pe(Iu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Voe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Uoe=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=me(a,Goe),d=zf().direction==="rtl",h=F({isRtl:d},a),p=Hoe(h),v=(n=s.StartScrollButtonIcon)!=null?n:Aoe,g=(i=s.EndScrollButtonIcon)!=null?i:Moe,m=La({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=La({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(Woe,F({component:"div",className:xe(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),joe=Uoe;function qoe(e){return Ge("MuiTabs",e)}const Yoe=Ue("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ES=Yoe,Xoe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],bR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,_R=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,hg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},Zoe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return We({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},qoe,l)},Koe=pe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ES.scrollButtons}`]:t.scrollButtons},{[`& .${ES.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${ES.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Qoe=pe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Joe=pe("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ese=pe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),tse=pe(Boe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),wR={},rse=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTabs"}),i=zf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=joe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,k=me(n,Xoe),I=T==="scrollable",P=g==="vertical",R=P?"scrollTop":"scrollLeft",z=P?"top":"left",V=P?"bottom":"right",N=P?"clientHeight":"clientWidth",$=P?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:P,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!P,scrollableY:I&&P,centered:u&&!I,scrollButtonsHideMobile:!h}),G=Zoe(L),U=La({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=La({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(wR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,Pe]=O.useState({overflow:"hidden",scrollbarWidth:0}),Ye=new Map,He=O.useRef(null),at=O.useRef(null),ot=()=>{const ve=He.current;let De;if(ve){const mt=ve.getBoundingClientRect();De={clientWidth:ve.clientWidth,scrollLeft:ve.scrollLeft,scrollTop:ve.scrollTop,scrollLeftNormalized:bZ(ve,i.direction),scrollWidth:ve.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let Xe;if(ve&&A!==!1){const mt=at.current.children;if(mt.length>0){const $r=mt[Ye.get(A)];Xe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:Xe}},kt=xa(()=>{const{tabsMeta:ve,tabMeta:De}=ot();let Xe=0,mt;if(P)mt="top",De&&ve&&(Xe=De.top-ve.top+ve.scrollTop);else if(mt=a?"right":"left",De&&ve){const ko=a?ve.scrollLeftNormalized+ve.clientWidth-ve.scrollWidth:ve.scrollLeft;Xe=(a?-1:1)*(De[mt]-ve[mt]+ko)}const $r={[mt]:Xe,[$]:De?De[$]:0};if(isNaN(W[mt])||isNaN(W[$]))ee($r);else{const ko=Math.abs(W[mt]-$r[mt]),Hv=Math.abs(W[$]-$r[$]);(ko>=1||Hv>=1)&&ee($r)}}),Be=(ve,{animation:De=!0}={})=>{De?Ooe(R,He.current,ve,{duration:i.transitions.duration.standard}):He.current[R]=ve},It=ve=>{let De=He.current[R];P?De+=ve:(De+=ve*(a?-1:1),De*=a&&N4()==="reverse"?-1:1),Be(De)},qt=()=>{const ve=He.current[N];let De=0;const Xe=Array.from(at.current.children);for(let mt=0;mtve){mt===0&&(De=ve);break}De+=$r[N]}return De},Pt=()=>{It(-1*qt())},K=()=>{It(qt())},le=O.useCallback(ve=>{Pe({overflow:null,scrollbarWidth:ve})},[]),Re=()=>{const ve={};ve.scrollbarSizeListener=I?E.jsx(tse,{onChange:le,className:xe(G.scrollableX,G.hideScrollbar)}):null;const Xe=I&&(y==="auto"&&(te||re)||y===!0);return ve.scrollButtonStart=Xe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:Pt,disabled:!te},w,{className:xe(G.scrollButtons,w.className)})):null,ve.scrollButtonEnd=Xe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:xe(G.scrollButtons,w.className)})):null,ve},we=xa(ve=>{const{tabsMeta:De,tabMeta:Xe}=ot();if(!(!Xe||!De)){if(Xe[z]De[V]){const mt=De[R]+(Xe[V]-De[V]);Be(mt,{animation:ve})}}}),he=xa(()=>{I&&y!==!1&&fe(!J)});O.useEffect(()=>{const ve=fv(()=>{He.current&&kt()}),De=Ra(He.current);De.addEventListener("resize",ve);let Xe;return typeof ResizeObserver<"u"&&(Xe=new ResizeObserver(ve),Array.from(at.current.children).forEach(mt=>{Xe.observe(mt)})),()=>{ve.clear(),De.removeEventListener("resize",ve),Xe&&Xe.disconnect()}},[kt]),O.useEffect(()=>{const ve=Array.from(at.current.children),De=ve.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const Xe=ve[0],mt=ve[De-1],$r={root:He.current,threshold:.99},ko=Kx=>{ie(!Kx[0].isIntersecting)},Hv=new IntersectionObserver(ko,$r);Hv.observe(Xe);const I7=Kx=>{Q(!Kx[0].isIntersecting)},nP=new IntersectionObserver(I7,$r);return nP.observe(mt),()=>{Hv.disconnect(),nP.disconnect()}}},[I,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{kt()}),O.useEffect(()=>{we(wR!==W)},[we,W]),O.useImperativeHandle(l,()=>({updateIndicator:kt,updateScrollButtons:he}),[kt,he]);const Vt=E.jsx(ese,F({},b,{className:xe(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let br=0;const Ae=O.Children.map(c,ve=>{if(!O.isValidElement(ve))return null;const De=ve.props.value===void 0?br:ve.props.value;Ye.set(De,br);const Xe=De===A;return br+=1,O.cloneElement(ve,F({fullWidth:T==="fullWidth",indicator:Xe&&!j&&Vt,selected:Xe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},br===1&&A===!1&&!ve.props.tabIndex?{tabIndex:0}:{}))}),ut=ve=>{const De=at.current,Xe=sn(De).activeElement;if(Xe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",ko=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",ko="ArrowLeft"),ve.key){case $r:ve.preventDefault(),hg(De,Xe,_R);break;case ko:ve.preventDefault(),hg(De,Xe,bR);break;case"Home":ve.preventDefault(),hg(De,null,bR);break;case"End":ve.preventDefault(),hg(De,null,_R);break}},Rt=Re();return E.jsxs(Koe,F({className:xe(G.root,f),ownerState:L,ref:r,as:d},k,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(Qoe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[P?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:He,children:[E.jsx(Joe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Ae}),j&&Vt]}),Rt.scrollButtonEnd]}))}),nse=rse;function ise(e){return Ge("MuiTextField",e)}Ue("MuiTextField",["root"]);const ase=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ose={standard:LV,filled:IV,outlined:HV},sse=e=>{const{classes:t}=e;return We({root:["root"]},ise,t)},lse=pe(PV,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),use=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:k,required:I=!1,rows:P,select:R=!1,SelectProps:z,type:V,value:N,variant:$="outlined"}=n,L=me(n,ase),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:R,variant:$}),U=sse(G),B={};$==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=E4(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=ose[$],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:P,maxRows:_,minRows:b,type:V,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:k,inputProps:m},B,y));return E.jsxs(lse,F({className:xe(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:$,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(EV,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(UV,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Rne,F({id:X},d,{children:p}))]}))}),$l=use;var g2={},qV={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(qV);var vv=qV.exports,OS={};const cse=D7(YJ);var CR;function gv(){return CR||(CR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=cse}(OS)),OS}var fse=vv;Object.defineProperty(g2,"__esModule",{value:!0});var YV=g2.default=void 0,dse=fse(gv()),hse=E,pse=(0,dse.default)((0,hse.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");YV=g2.default=pse;function m2({open:e,onClose:t,children:r}){return E.jsx(AV,{onClose:t,open:e,children:E.jsxs(xt,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[E.jsx(wV,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(YV,{})}),r]})})}const Gs=S4,vse=R4;function Vl(e){const t=vse();return O.useCallback(r=>{t(e(r))},[e,t])}function gse(){const[e,t]=O.useState(!1),r=Gs(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(xt,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Du,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(m2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Ze,{component:"h2",mb:1,variant:"h4",children:"About"}),E.jsxs(Ze,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the ",E.jsx(an,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),E.jsxs(Ze,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and ",E.jsx(an,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",E.jsx(an,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),E.jsxs(Ze,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful ",E.jsx(an,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),E.jsxs("div",{children:[E.jsx(Ze,{component:"h2",mb:1,variant:"h4",children:"Version"}),E.jsx(an,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Ze,{component:"h2",mb:1,variant:"h4",children:"Links"}),E.jsx(Ze,{component:"p",variant:"subtitle1",children:E.jsx(an,{href:"https://github.com/locustio/locust",children:"GitHub"})}),E.jsx(Ze,{component:"p",variant:"subtitle1",children:E.jsx(an,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function mse(){return E.jsx(xt,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Bf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(gse,{})})})}var y2={},yse=vv;Object.defineProperty(y2,"__esModule",{value:!0});var XV=y2.default=void 0,xse=yse(gv()),Sse=E,bse=(0,xse.default)((0,Sse.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");XV=y2.default=bse;var x2={},_se=vv;Object.defineProperty(x2,"__esModule",{value:!0});var ZV=x2.default=void 0,wse=_se(gv()),Cse=E,Tse=(0,wse.default)((0,Cse.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");ZV=x2.default=Tse;const ka={DARK:"dark",LIGHT:"light"},KV=localStorage.theme===ka.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?ka.DARK:ka.LIGHT;function Rr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:rx(e)?2:nx(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fm(e,t){return As(e)===2?e.get(t):e[t]}function QV(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function JV(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rx(e){return Rse&&e instanceof Map}function nx(e){return Lse&&e instanceof Set}function _l(e){return e.o||e.t}function S2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tG(e);delete t[Ft];for(var r=Jc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Mse),Object.freeze(e),t&&Ts(e,function(r,n){return b2(n,!0)},!0)),e}function Mse(){Rr(2)}function _2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=NC[e];return t||Rr(18,e),t}function eG(e,t){NC[e]||(NC[e]=t)}function LC(){return Cp}function NS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function $y(e){EC(e),e.p.forEach(kse),e.p=null}function EC(e){e===Cp&&(Cp=e.l)}function TR(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kse(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function zS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&($y(t),Rr(4)),Xi(e)&&(e=Vy(t,e),t.l||Gy(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=Vy(t,r,[]),$y(t),t.u&&t.v(t.u,t.s),e!==C2?e:void 0}function Vy(e,t,r){if(_2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return AR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Gy(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=S2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return AR(e,n,i,s,l,r,o)}),Gy(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function AR(e,t,r,n,i,a,o){if(Yi(i)){var s=Vy(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(QV(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(Xi(i)&&!_2(i)){if(!e.h.D&&e._<1)return;Vy(e,i),t&&t.A.l||Gy(e,i)}}function Gy(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&b2(t,r)}function BS(e,t){var r=e[Ft];return(r?_l(r):e)[t]}function MR(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function FS(e){e.o||(e.o=S2(e.t))}function OC(e,t,r){var n=rx(t)?Ia("MapSet").F(t,r):nx(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:LC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=Tp;o&&(l=[s],u=nh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:LC()).p.push(n),n}function Ise(e){return Yi(e)||Rr(22,e),function t(r){if(!Xi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=kR(r,a),i.I=!1}else n=kR(r,a);return Ts(n,function(o,s){i&&Fm(i.t,o)===s||QV(n,o,t(s))}),a===3?new Set(n):n}(e)}function kR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return S2(e)}function Pse(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Ft];return Tp.get(l,a)},set:function(l){var u=this[Ft];Tp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=Jc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!JV(d,f))return!0}}var p=!!o[Ft];return l.length!==Jc(o).length+(p?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),x=1;x1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),jn=new Ose,mv=jn.produce,rG=jn.produceWithPatches.bind(jn);jn.setAutoFreeze.bind(jn);jn.setUseProxies.bind(jn);var DR=jn.applyPatches.bind(jn);jn.createDraft.bind(jn);jn.finishDraft.bind(jn);function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function Nse(e,t){if(Ap(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ap(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zse(e){var t=Nse(e,"string");return Ap(t)==="symbol"?t:String(t)}function Bse(e,t,r){return t=zse(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(nG)(e,t)}if(typeof e!="function")throw new Error(jr(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Fse(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:Hy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function T2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Wy(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var u=r[l];return l>0&&(r.splice(l,1),r.unshift(u)),u.value}return Uy}function i(s,l){n(s)===Uy&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Wse=function(t,r){return t===r};function Use(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]-1;return r&&n}function yv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function A2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),xle=cG.actions,Sle=cG.reducer;function ble(){const e=Gs(({theme:{isDarkMode:n}})=>n),t=Vl(xle.setIsDarkMode);O.useEffect(()=>{t(KV===ka.DARK)},[]);const r=()=>{localStorage.theme=e?ka.LIGHT:ka.DARK,t(!e)};return E.jsx(wV,{color:"inherit",onClick:r,children:e?E.jsx(ZV,{}):E.jsx(XV,{})})}function fG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>fG(e,n,r)):typeof t=="object"?k2(t,r):t)}const k2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:fG(e,i,t)}),{}),dG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),_le=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),ah=e=>k2(e,dG),wle=e=>k2(e,_le),Cle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Tle=e=>Object.fromEntries(new URLSearchParams(e).entries()),Ale=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},Nn={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},eu=ah(window.templateArgs);function Mle({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(xt,{sx:{display:"flex",columnGap:2},children:[E.jsxs(xt,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ze,{variant:"button",children:"Host"}),E.jsx(Ze,{children:r})]}),E.jsx(md,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ze,{variant:"button",children:"Status"}),E.jsx(Ze,{variant:"button",children:t})]}),t===Nn.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(md,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"Users"}),E.jsx(Ze,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(md,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"Workers"}),E.jsx(Ze,{variant:"button",children:o})]})]}),E.jsx(md,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"RPS"}),E.jsx(Ze,{variant:"button",children:n})]}),E.jsx(md,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"Failures"}),E.jsx(Ze,{variant:"button",children:`${i}%`})]})]})}const kle=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Ile=Kn(kle)(Mle),Ple="input, select, textarea",Dle=e=>e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function hG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(Ple)].reduce((o,s)=>({...o,[s.name]:Dle(s)}),{});t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var jy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,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(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function Vle(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var WR=Ms;function gG(e,t){if(e===t||!(WR(e)&&WR(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},Hle=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function jR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===UR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Xy(t,null,function(){var _,b,w,C,A,T,M,k,I,P,R,z,V,N,$,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,Pe,Ye,He,at,ot,kt;return jy(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,P=k.headers,R=P===void 0?new Headers(m.headers):P,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,$=N===void 0?v??"json":N,L=k.validateStatus,G=L===void 0?g??Gle:L,U=k.timeout,B=U===void 0?p:U,j=GR(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(Sa(ir({},m),{signal:_}),j),R=new Headers(jR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(It){return typeof It=="object"&&(Ms(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(jR(V)),I+=te+ie),I=Fle(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return Pe=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:Ye=J.clone(),M.response=Ye,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,$).then(function(It){return He=It},function(It){return ot=It}),Ye.text().then(function(It){return at=It},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return kt=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(kt)},meta:M}];case 10:return[2,G(J,He)?{data:He,meta:M}:{error:{status:J.status,data:He},meta:M}]}})})};function y(x,S){return Xy(this,null,function(){var _;return jy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var qR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),I2=Mn("__rtkq/focused"),mG=Mn("__rtkq/unfocused"),P2=Mn("__rtkq/online"),yG=Mn("__rtkq/offline"),Ea;(function(e){e.query="query",e.mutation="mutation"})(Ea||(Ea={}));function xG(e){return e.type===Ea.query}function Ule(e){return e.type===Ea.mutation}function SG(e,t,r,n,i,a){return jle(e)?e(t,r,n,i).map($C).map(a):Array.isArray(e)?e.map($C).map(a):[]}function jle(e){return typeof e=="function"}function $C(e){return typeof e=="string"?{type:e}:e}function WS(e){return e!=null}var kp=Symbol("forceQueryFn"),VC=function(e){return typeof e[kp]=="function"};function qle(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. - Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. - See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return qy(qy([],S(o)),S(s)).filter(WS)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(WS)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(WS)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=kp,R=A[P];return function(z,V){var N,$,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:L},N[kp]=R,N)),U=i.endpoints[S].select(w),B=z(G),j=U(V()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=($=o.get(z))==null?void 0:$[L],ie=function(){return U(V())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:L,abort:W,unwrap:function(){return Xy(this,null,function(){var J;return jy(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),R=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),$=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(N,{arg:P.arg,requestId:R,abort:z,unwrap:V,unsubscribe:$,reset:$}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function YR(e){return e}function Yle(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Ht.uninitialized)return M;if("data"in T)if(Xi(T.data)){var k=rG(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[kp]=function(){return{data:_}},w)))}},c=function(x,S){return Xy(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,R,z,V,N,$,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return jy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=YR,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[kp]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new qR(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[ih]=!0,B)])];case 8:if(N=J.sent(),$=N,!($ instanceof qR))return[3,12];L=YR,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L($.value,$.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:$.meta},j[ih]=!0,j)])];case 11:return U=J.sent(),$=U,[3,12];case 12:throw typeof process<"u",console.error($),$;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=FR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ih]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return VC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||xG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=FR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ih]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:zh(A2(x),m(S)),matchFulfilled:zh(Ru(x),m(S)),matchRejected:zh(Mp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function bG(e,t,r,n){return SG(r[e.meta.arg.endpointName][t],Ru(e)?e.payload:void 0,ax(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function pg(e,t,r){var n=e[t];n&&r(n)}function Ip(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function XR(e,t,r){var n=e[Ip(t)];n&&r(n)}var Sd={};function Xle(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Mn(t+"/resetApiState"),d=ci({name:t+"/queries",initialState:Sd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:HS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;pg(_,C,function(T){T.data=DR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=VC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),pg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;pg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!VC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,R=C.baseQueryMeta,z=C.requestId,V=mv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?gG(Yi(T.data)?Ase(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;pg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Ht.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Mue=e=>_c(e)===0;function kue(e,t){return{...e,...t}}const Iue=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},ox=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),GC=Aue({baseQuery:Wle(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:ah}),getTasks:e.query({query:()=>"tasks",transformResponse:ah}),getExceptions:e.query({query:()=>"exceptions",transformResponse:ah}),getLogs:e.query({query:()=>"logs",transformResponse:ah}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Iue(wle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Pue,useGetTasksQuery:Due,useGetExceptionsQuery:Rue,useGetLogsQuery:Lue,useStartSwarmMutation:wG}=GC;function Eue({onSubmit:e,spawnRate:t,userCount:r}){const[n]=wG(),i=a=>{e(),n(a)};return E.jsxs(Bf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Ze,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(hG,{onSubmit:i,children:E.jsxs(xt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx($l,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx($l,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Du,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Oue=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Nue=Kn(Oue)(Eue);function zue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Du,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(m2,{onClose:()=>t(!1),open:e,children:E.jsx(Nue,{onSubmit:()=>t(!1)})})]})}var D2={},Bue=vv;Object.defineProperty(D2,"__esModule",{value:!0});var R2=D2.default=void 0,Fue=Bue(gv()),$ue=E,Vue=(0,Fue.default)((0,$ue.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");R2=D2.default=Vue;function HC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(PV,{sx:a,children:[E.jsx(EV,{htmlFor:t,shrink:!0,children:e}),E.jsx(UV,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function Gue({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=Cle(e),o=n?`${a} (${n})`:a;return r?E.jsx(HC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?E.jsx(Tne,{control:E.jsx(Yre,{defaultChecked:t}),label:o,name:e}):E.jsx($l,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Hue({extraOptions:e}){return E.jsxs(SV,{children:[E.jsx(_V,{expandIcon:E.jsx(R2,{}),children:E.jsx(Ze,{children:"Custom parameters"})}),E.jsx(bV,{children:E.jsx(xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>E.jsx(Gue,{label:t,...r},`valid-parameter-${n}`))})})]})}function xv(e,{payload:t}){return kue(e,t)}const Wue=eu,CG=ci({name:"swarm",initialState:Wue,reducers:{setSwarm:xv}}),TG=CG.actions,Uue=CG.reducer;function jue({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=wG(),d=h=>{l({state:Nn.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Bf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Ze,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(hG,{onSubmit:d,children:E.jsxs(xt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(HC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(HC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx($l,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx($l,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx($l,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(SV,{children:[E.jsx(_V,{expandIcon:E.jsx(R2,{}),children:E.jsx(Ze,{children:"Advanced options"})}),E.jsx(bV,{children:E.jsx($l,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Mue(n)&&E.jsx(Hue,{extraOptions:n}),E.jsx(Du,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const que=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Yue={setSwarm:TG.setSwarm},AG=Kn(que,Yue)(jue);function Xue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Du,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(m2,{onClose:()=>t(!1),open:e,children:E.jsx(AG,{})})]})}function Zue(){const e=()=>{fetch("stats/reset")};return E.jsx(Du,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Kue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Du,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Que(){const e=Gs(({swarm:t})=>t.state);return e===Nn.READY?null:e===Nn.STOPPED?E.jsx(Xue,{}):E.jsxs(xt,{sx:{display:"flex",columnGap:2},children:[E.jsx(zue,{}),E.jsx(Kue,{}),E.jsx(Zue,{})]})}function Jue(){return E.jsx(yte,{position:"static",children:E.jsx(Bf,{maxWidth:"xl",children:E.jsxs(Toe,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(an,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Ze,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(xt,{sx:{display:"flex",columnGap:6},children:[E.jsx(Ile,{}),E.jsx(Que,{}),E.jsx(ble,{})]})]})})})}function ece({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(Jue,{}),E.jsx("main",{children:e}),E.jsx(mse,{})]})}function oh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const tce={},MG=ci({name:"notification",initialState:tce,reducers:{setNotification:xv}}),kG=MG.actions,rce=MG.reducer;function nce(e,{key:t,shouldNotify:r}){const n=Vl(kG.setNotification),i=Gs(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{_c(e)>0&&_c(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=_c(e))},[e])}const ice={logs:[]},IG=ci({name:"logViewer",initialState:ice,reducers:{setLogs:xv}}),ace=IG.actions,oce=IG.reducer,sce=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function lce(){const e=Gs(({swarm:o})=>o),t=Vl(ace.setLogs),{data:r,refetch:n}=Lue(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(sce),[i]);return oh(n,5e3,{shouldRunInterval:e.state===Nn.SPAWNING||e.state==Nn.RUNNING}),nce(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var L2={},uce=vv;Object.defineProperty(L2,"__esModule",{value:!0});var PG=L2.default=void 0,cce=uce(gv()),aL=E,fce=(0,cce.default)([(0,aL.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,aL.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");PG=L2.default=fce;function dce(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const hce=/[ \t\n\f\r]/g;function pce(e){return typeof e=="object"?e.type==="text"?oL(e.value):!1:oL(e)}function oL(e){return e.replace(hce,"")===""}class Sv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Sv.prototype.property={};Sv.prototype.normal={};Sv.prototype.space=null;function DG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&xce.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(lL,wce);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!lL.test(a)){let o=a.replace(Sce,_ce);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=E2}return new i(n,t)}function _ce(e){return"-"+e.toLowerCase()}function wce(e){return e.charAt(1).toUpperCase()}const Cce={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Tce=DG([EG,LG,zG,BG,mce],"html"),FG=DG([EG,LG,zG,BG,yce],"svg");function Ace(e){return e.join(" ").trim()}var O2={exports:{}},uL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Mce=/\n/g,kce=/^\s*/,Ice=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Pce=/^:\s*/,Dce=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Rce=/^[;\s]*/,Lce=/^\s+|\s+$/g,Ece=` -`,cL="/",fL="*",Dl="",Oce="comment",Nce="declaration",zce=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(Mce);v&&(r+=v.length);var g=p.lastIndexOf(Ece);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(kce)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(cL!=e.charAt(0)||fL!=e.charAt(1))){for(var v=2;Dl!=e.charAt(v)&&(fL!=e.charAt(v)||cL!=e.charAt(v+1));)++v;if(v+=2,Dl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:Oce,comment:g})}}function d(){var p=a(),v=l(Ice);if(v){if(f(),!l(Pce))return s("property missing ':'");var g=l(Dce),m=p({type:Nce,property:dL(v[0].replace(uL,Dl)),value:g?dL(g[0].replace(uL,Dl)):Dl});return l(Rce),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function dL(e){return e?e.replace(Lce,Dl):Dl}var Bce=zce;function $G(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Bce(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Vce(e){const t=N2(e),r=VG(e);if(t&&r)return{start:t,end:r}}function Bh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hL(e.position):"start"in e||"end"in e?hL(e):"line"in e||"column"in e?jC(e):""}function jC(e){return pL(e&&e.line)+":"+pL(e&&e.column)}function hL(e){return jC(e&&e.start)+"-"+jC(e&&e.end)}function pL(e){return e&&typeof e=="number"?e:1}class hn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Bh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}hn.prototype.file="";hn.prototype.name="";hn.prototype.reason="";hn.prototype.message="";hn.prototype.stack="";hn.prototype.column=void 0;hn.prototype.line=void 0;hn.prototype.ancestors=void 0;hn.prototype.cause=void 0;hn.prototype.fatal=void 0;hn.prototype.place=void 0;hn.prototype.ruleId=void 0;hn.prototype.source=void 0;const z2={}.hasOwnProperty,Gce=new Map,Hce=/[A-Z]/g,Wce=/-([a-z])/g,Uce=new Set(["table","tbody","thead","tfoot","tr"]),jce=new Set(["td","th"]);function qce(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Xce(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Yce(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?FG:Tce,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=HG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function HG(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=FG,e.schema=i),e.ancestors.push(t);let a=Zce(e,t);const o=Kce(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Uce.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!pce(l):!0})),z2.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Yce(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Xce(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=N2(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Zce(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Gce;for(;++n-1&&e.test(String.fromCharCode(r))}}const ufe={'"':"quot","&":"amp","<":"lt",">":"gt"};function cfe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+ufe[r]+";"}}function ffe(e,t){const r=cfe(Eu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Eu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const dfe={};function hfe(e,t){const r=t||dfe,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return UG(e,n,i)}function UG(e,t,r){if(pfe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vL(e.children,t,r)}return Array.isArray(e)?vL(e,t,r):""}function vL(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?(Oa(e,e.length,0,t),e):t}const mL={}.hasOwnProperty;function vfe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function tf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return gt(l)?(e.enter(r),s(l)):t(l)}function s(l){return gt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function _fe(e,t,r){return Nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xL(e){if(e===null||kn(e)||lfe(e))return 1;if(sfe(e))return 2}function F2(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);SL(f,-l),SL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=fi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=fi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=fi(u,F2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=fi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=fi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Oa(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&>(b)?Nt(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||Ve(b)?e.check(bL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),gt(R)?Nt(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):k(R)}function k(R){return R===s?(b.enter("codeFencedFenceSequence"),I(R)):C(R)}function I(R){return R===s?(A++,b.consume(R),I):A>=o?(b.exit("codeFencedFenceSequence"),gt(R)?Nt(b,P,"whitespace")(R):P(R)):C(R)}function P(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Efe(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const ZS={name:"codeIndented",tokenize:Nfe},Ofe={tokenize:zfe,partial:!0};function Nfe(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Nt(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Ve(u)?e.attempt(Ofe,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function zfe(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ve(o)?i(o):r(o)}}const Bfe={name:"codeText",tokenize:Vfe,resolve:Ffe,previous:$fe};function Ffe(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function KG(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||qC(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||Ve(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||kn(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Ve(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Ve(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!gt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function JG(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):Ve(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Ve(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Fh(e,t){let r;return n;function n(i){return Ve(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):gt(i)?Nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Yfe={name:"definition",tokenize:Zfe},Xfe={tokenize:Kfe,partial:!0};function Zfe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return QG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=tf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return kn(h)?Fh(e,u)(h):u(h)}function u(h){return KG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Xfe,f,f)(h)}function f(h){return gt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Kfe(e,t,r){return n;function n(s){return kn(s)?Fh(e,i)(s):r(s)}function i(s){return JG(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return gt(s)?Nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ve(s)?t(s):r(s)}}const Qfe={name:"hardBreakEscape",tokenize:Jfe};function Jfe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ede={name:"headingAtx",tokenize:rde,resolve:tde};function tde(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Oa(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function rde(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||kn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(c)?(e.exit("atxHeading"),t(c)):gt(c)?Nt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||kn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const nde=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wL=["pre","script","style","textarea"],ide={name:"htmlFlow",tokenize:lde,resolveTo:sde,concrete:!0},ade={tokenize:cde,partial:!0},ode={tokenize:ude,partial:!0};function sde(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function lde(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:L):va(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):va(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:k:p):r(B)}function v(B){return va(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||kn(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&wL.includes(X)?(i=1,n.interrupt?t(B):k(B)):nde.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||$n(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return gt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||va(B)?(e.consume(B),S):gt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||$n(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):gt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):gt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||Ve(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||kn(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||gt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||Ve(B)?k(B):gt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),V):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),$):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ade,U,I)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(ode,P,U)(B)}function P(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),L):k(B)}function V(B){return B===47?(e.consume(B),o="",N):k(B)}function N(B){if(B===62){const j=o.toLowerCase();return wL.includes(j)?(e.consume(B),G):k(B)}return va(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):k(B)}function $(B){return B===93?(e.consume(B),L):k(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):k(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function ude(e,t,r){const n=this;return i;function i(o){return Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function cde(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(sx,t,r)}}const fde={name:"htmlText",tokenize:dde};function dde(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):va(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):va(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,V(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,V(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,V(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,V(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return va(L)?(e.consume(L),b):r(L)}function b(L){return L===45||$n(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,V(L)):gt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||$n(L)?(e.consume(L),C):L===47||L===62||kn(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||va(L)?(e.consume(L),T):Ve(L)?(o=A,V(L)):gt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||$n(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),k):Ve(L)?(o=M,V(L)):gt(L)?(e.consume(L),M):A(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,I):Ve(L)?(o=k,V(L)):gt(L)?(e.consume(L),k):(e.consume(L),P)}function I(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=I,V(L)):(e.consume(L),I)}function P(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||kn(L)?A(L):(e.consume(L),P)}function R(L){return L===47||L===62||kn(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function V(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return gt(L)?Nt(e,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):$(L)}function $(L){return e.enter("htmlTextData"),o(L)}}const $2={name:"labelEnd",tokenize:yde,resolveTo:mde,resolveAll:gde},hde={tokenize:xde},pde={tokenize:Sde},vde={tokenize:bde};function gde(e){let t=-1;for(;++t=3&&(u===null||Ve(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),gt(u)?Nt(e,s,"whitespace")(u):s(u))}}const gn={name:"list",tokenize:Pde,continuation:{tokenize:Dde},exit:Lde},kde={tokenize:Ede,partial:!0},Ide={tokenize:Rde,partial:!0};function Pde(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:YC(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Vm,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return YC(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(sx,n.interrupt?r:c,e.attempt(kde,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return gt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Dde(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(sx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!gt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ide,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(gn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Rde(e,t,r){const n=this;return Nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Lde(e){e.exit(this.containerState.type)}function Ede(e,t,r){const n=this;return Nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!gt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const CL={name:"setextUnderline",tokenize:Nde,resolveTo:Ode};function Ode(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function Nde(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),gt(u)?Nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const zde={tokenize:Bde};function Bde(e){const t=this,r=e.attempt(sx,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Hfe,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Fde={resolveAll:tH()},$de=eH("string"),Vde=eH("text");function eH(e){return{tokenize:t,resolveAll:tH(e==="text"?Gde:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ude(e,t){let r=-1;const n=[];let i;for(;++r0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||AL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function yhe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xhe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function iH(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function She(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return iH(e,t);const i={src:Eu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function bhe(e,t){const r={src:Eu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function _he(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function whe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return iH(e,t);const i={href:Eu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Che(e,t){const r={href:Eu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function The(e,t,r){const n=e.all(t),i=r?Ahe(r):aH(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function Mhe(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=N2(t.children[1]),l=VG(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Rhe(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(IL(t.slice(i),i>0,!1)),a.join("")}function IL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===ML||a===kL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===ML||a===kL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Ohe(e,t){const r={type:"text",value:Ehe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Nhe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const zhe={blockquote:dhe,break:hhe,code:phe,delete:vhe,emphasis:ghe,footnoteReference:mhe,heading:yhe,html:xhe,imageReference:She,image:bhe,inlineCode:_he,linkReference:whe,link:Che,listItem:The,list:Mhe,paragraph:khe,root:Ihe,strong:Phe,table:Dhe,tableCell:Lhe,tableRow:Rhe,text:Ohe,thematicBreak:Nhe,toml:yg,yaml:yg,definition:yg,footnoteDefinition:yg};function yg(){}const oH=-1,lx=0,Ky=1,Qy=2,V2=3,G2=4,H2=5,W2=6,sH=7,lH=8,PL=typeof self=="object"?self:globalThis,Bhe=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case lx:case oH:return r(o,i);case Ky:{const s=r([],i);for(const l of o)s.push(n(l));return s}case Qy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case V2:return r(new Date(o),i);case G2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case H2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case W2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case sH:{const{name:s,message:l}=o;return r(new PL[s](l),i)}case lH:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new PL[a](o),i)};return n},DL=e=>Bhe(new Map,e)(0),Qu="",{toString:Fhe}={},{keys:$he}=Object,bd=e=>{const t=typeof e;if(t!=="object"||!e)return[lx,t];const r=Fhe.call(e).slice(8,-1);switch(r){case"Array":return[Ky,Qu];case"Object":return[Qy,Qu];case"Date":return[V2,Qu];case"RegExp":return[G2,Qu];case"Map":return[H2,Qu];case"Set":return[W2,Qu]}return r.includes("Array")?[Ky,r]:r.includes("Error")?[sH,r]:[Qy,r]},xg=([e,t])=>e===lx&&(t==="function"||t==="symbol"),Vhe=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=bd(o);switch(s){case lx:{let c=o;switch(l){case"bigint":s=lH,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([oH],o)}return i([s,c],o)}case Ky:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case Qy:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of $he(o))(e||!xg(bd(o[d])))&&c.push([a(d),a(o[d])]);return f}case V2:return i([s,o.toISOString()],o);case G2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case H2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(xg(bd(d))||xg(bd(h))))&&c.push([a(d),a(h)]);return f}case W2:{const c=[],f=i([s,c],o);for(const d of o)(e||!xg(bd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},RL=(e,{json:t,lossy:r}={})=>{const n=[];return Vhe(!(t||r),!!t,new Map,n)(e),n},Jy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?DL(RL(e,t)):structuredClone(e):(e,t)=>DL(RL(e,t));function Ghe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Hhe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Whe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ghe,n=e.options.footnoteBackLabel||Hhe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Jy(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const uH=function(e){if(e==null)return Yhe;if(typeof e=="function")return ux(e);if(typeof e=="object")return Array.isArray(e)?Uhe(e):jhe(e);if(typeof e=="string")return qhe(e);throw new Error("Expected function, string, or object as test")};function Uhe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=cH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Jhe(r(l,c)),h[0]===LL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Khe)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function EL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function OL(e,t){const r=tpe(e,t),n=r.one(e,void 0),i=Whe(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function ope(e,t){return e&&"run"in e?async function(r,n){const i=OL(r,t);await e.run(i,n)}:function(r){return OL(r,t||e)}}function NL(e){if(e)throw e}var Gm=Object.prototype.hasOwnProperty,dH=Object.prototype.toString,zL=Object.defineProperty,BL=Object.getOwnPropertyDescriptor,FL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):dH.call(t)==="[object Array]"},$L=function(t){if(!t||dH.call(t)!=="[object Object]")return!1;var r=Gm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Gm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Gm.call(t,i)},VL=function(t,r){zL&&r.name==="__proto__"?zL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},GL=function(t,r){if(r==="__proto__")if(Gm.call(t,r)){if(BL)return BL(t,r).value}else return;return t[r]},spe=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const ua={basename:cpe,dirname:fpe,extname:dpe,join:hpe,sep:"/"};function cpe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bv(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function fpe(e){if(bv(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function dpe(e){bv(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function hpe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function vpe(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function bv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gpe={cwd:mpe};function mpe(){return"/"}function QC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ype(e){if(typeof e=="string")e=new URL(e);else if(!QC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return xpe(e)}function xpe(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=c;const v=n[d][1];KC(v)&&KC(h)&&(h=QS(!0,v,h)),n[d]=[u,h,...p]}}}}const wpe=new U2().freeze();function rb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ib(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function WL(e){if(!KC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function UL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Sg(e){return Cpe(e)?e:new hH(e)}function Cpe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Tpe(e){return typeof e=="string"||Ape(e)}function Ape(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jL={}.hasOwnProperty,Mpe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qL=[],YL={allowDangerousHtml:!0},kpe=/^(https?|ircs?|mailto|xmpp)$/i,Ipe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ppe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||qL,l=e.remarkPlugins||qL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...YL}:YL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Dpe,h=wpe().use(fhe).use(l).use(ope,u).use(s),p=new hH;typeof n=="string"&&(p.value=n);for(const y of Ipe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Mpe+y.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),fH(g,m),qce(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(y,x,S){if(y.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let _;for(_ in XS)if(jL.call(XS,_)&&jL.call(y.properties,_)){const b=y.properties[_],w=XS[_];(w===null||w.includes(y.tagName))&&(y.properties[_]=d(String(b||""),_,y))}}if(y.type==="element"){let _=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&r&&typeof x=="number"&&(_=!r(y,x,S)),_&&S&&typeof x=="number")return f&&y.children?S.children.splice(x,1,...y.children):S.children.splice(x,1),x}}}function Dpe(e){return ffe(e,kpe)}const sh=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Rpe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?sh(e,r):n?E.jsx(Ppe,{skipHtml:!1,children:e}):e}function Vf({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(doe,{component:X1,children:E.jsxs(Uae,{children:[E.jsx(xoe,{children:E.jsx(SR,{children:t.map(({title:i,key:a})=>E.jsx(gR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(Jae,{children:e.map((i,a)=>E.jsx(SR,{children:t.map(({key:o,...s},l)=>E.jsx(gR,{children:E.jsx(Rpe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Lpe({rows:e,tableStructure:t}){return t?E.jsx(Vf,{rows:e,structure:t}):null}const Epe=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:dG(a),...o})):null,rows:i?i.data:[]}},Ope=Kn(Epe)(Lpe),Npe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function pH({exceptions:e}){return E.jsx(Vf,{rows:e,structure:Npe})}const zpe=({ui:{exceptions:e}})=>({exceptions:e}),Bpe=Kn(zpe)(pH);function Fpe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function j2(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=O.useState(e),[a,o]=O.useState(!1),s=O.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(Fpe(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=O.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,i(e);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return O.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedStats:n,currentSortField:s.current}}const $pe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function vH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=j2(e);return E.jsx(Vf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:$pe})}const Vpe=({ui:{errors:e}})=>({errors:e}),Gpe=Kn(Vpe)(vH);function Hpe(){const e=Gs(({logViewer:{logs:t}})=>t);return E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function Wpe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Gs(({theme:{isDarkMode:n}})=>n);return E.jsxs(NV,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ku,{children:E.jsx(an,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(Ku,{children:E.jsx(an,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(Ku,{children:E.jsx(an,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(Ku,{children:E.jsx(an,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(Ku,{children:E.jsx(an,{href:`/stats/report?theme=${r?ka.DARK:ka.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(Ku,{children:E.jsx(an,{href:n,children:i})},`extended-csv-${a}`))]})}const Upe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),jpe=Kn(Upe)(Wpe),qpe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function gH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=j2(e,{hasTotalRow:!0});return E.jsx(Vf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:qpe})}const Ype=({ui:{stats:e}})=>({stats:e}),Xpe=Kn(Ype)(gH);/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var JC=function(e,t){return JC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},JC(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");JC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Zpe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Kpe=function(){function e(){this.browser=new Zpe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),wl=new Kpe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(wl.wxa=!0,wl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?wl.worker=!0:typeof navigator>"u"?(wl.node=!0,wl.svgSupported=!0):Qpe(navigator.userAgent,wl);function Qpe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=wl;var q2=12,mH="sans-serif",ks=q2+"px "+mH,Jpe=20,eve=100,tve="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function rve(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Tve(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?QL(s,o):QL(o,s))}function CH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ave=/([&<>"'])/g,Mve={"&":"&","<":"<",">":">",'"':""","'":"'"};function yn(e){return e==null?"":(e+"").replace(Ave,function(t,r){return Mve[r]})}var kve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ob=[],Ive=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function sT(e,t,r,n){return r=r||{},n?eE(e,t,r):Ive&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):eE(e,t,r),r}function eE(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(CH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(oT(ob,e,n,i)){r.zrX=ob[0],r.zrY=ob[1];return}}r.zrX=r.zrY=0}function ek(e){return e||window.event}function ni(e,t,r){if(t=ek(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&sT(e,o,t,r)}else{sT(e,t,t,r);var a=Pve(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kve.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Pve(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function lT(e,t,r,n){e.addEventListener(t,r,n)}function Dve(e,t,r,n){e.removeEventListener(t,r,n)}var go=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function tE(e){return e.which===2||e.which===3}var Rve=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=rE(n)/rE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Lve(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _i(){return[1,0,0,1,0,0]}function hx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function tk(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ao(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function za(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Nu(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function rk(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Wf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Eve(e){var t=_i();return tk(t,e),t}var Ove=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Le=Ove;var _g=Math.min,wg=Math.max,Ys=new Le,Xs=new Le,Zs=new Le,Ks=new Le,_d=new Le,wd=new Le,Nve=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=_g(t.x,this.x),n=_g(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=wg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=_i();return za(a,a,[-r.x,-r.y]),rk(a,a,[n,i]),za(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ap&&(p=x,vp&&(p=S,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ys.x=Zs.x=r.x,Ys.y=Ks.y=r.y,Xs.x=Ks.x=r.x+r.width,Xs.y=Zs.y=r.y+r.height,Ys.transform(n),Ks.transform(n),Xs.transform(n),Zs.transform(n),t.x=_g(Ys.x,Xs.x,Zs.x,Ks.x),t.y=_g(Ys.y,Xs.y,Zs.y,Ks.y);var l=wg(Ys.x,Xs.x,Zs.x,Ks.x),u=wg(Ys.y,Xs.y,Zs.y,Ks.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Nve;var TH="silent";function zve(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Bve}}function Bve(){go(this.event)}var Fve=function(e){Dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ai),Cd=function(){function e(t,r){this.x=t,this.y=r}return e}(),$ve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],lb=new Ne(0,0,0,0),AH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Cd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Fve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Sve(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D($ve,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=MH(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Cd(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Cd(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=zve(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Cd(r,n);if(nE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(lb.copy(d.getBoundingRect()),d.transform&&lb.applyTransform(d.transform),lb.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Vve(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?TH:!0}return!1}function nE(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Vve(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==TH)){t.target=o;break}}}function MH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Gve=AH;var kH=32,Td=7;function Hve(e){for(var t=0;e>=kH;)t|=e&1,e>>=1;return e+t}function iE(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Wve(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function ub(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function cb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function Uve(e,t){var r=Td,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Td||w>=Td);if(C)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(m=0;m=0;m--)e[b+m]=e[_+m];e[S]=o[x];return}for(var w=r;;){var C=0,A=0,T=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],C++,A=0,--p===0){T=!0;break}}else if(e[S--]=o[x--],A++,C=0,--g===1){T=!0;break}while((C|A)=0;m--)e[b+m]=e[_+m];if(p===0){T=!0;break}}if(e[S--]=o[x--],--g===1){T=!0;break}if(A=g-ub(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,b=S+1,_=x+1,m=0;m=Td||A>=Td);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,y-=p,b=S+1,_=y+1,m=p-1;m>=0;m--)e[b+m]=e[_+m];e[S]=o[x]}else{if(g===0)throw new Error;for(_=S-(g-1),m=0;ms&&(l=s),aE(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Bn=1,lh=2,wc=4,oE=!1;function fb(){oE||(oE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var jve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(fb(),c.z=0),isNaN(c.z2)&&(fb(),c.z2=0),isNaN(c.zlevel)&&(fb(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const qve=jve;var IH;IH=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const uT=IH;var qm={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-qm.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?qm.bounceIn(e*2)*.5:qm.bounceOut(e*2-1)*.5+.5}};const PH=qm;var Cg=Math.pow,ys=Math.sqrt,r0=1e-8,DH=1e-4,lE=ys(3),Tg=1/3,ga=Ou(),di=Ou(),rf=Ou();function rs(e){return e>-r0&&er0||e<-r0}function vr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function uE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function n0(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(rs(c)&&rs(f))if(rs(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(rs(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m)}else if(v>0){var y=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-Cg(-x,Tg):x=Cg(x,Tg),S<0?S=-Cg(-S,Tg):S=Cg(S,Tg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+lE*Math.sin(b)))/(3*o),A=(-s+w*(C-lE*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m),A>=0&&A<=1&&(a[h++]=A)}}return h}function LH(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(rs(o)){if(RH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Ps(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function EH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;ga[0]=l,ga[1]=u;for(var y=0;y<1;y+=.05)di[0]=vr(e,r,i,o,y),di[1]=vr(t,n,a,s,y),g=tu(ga,di),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function OH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Rp(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function NH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;ga[0]=o,ga[1]=s;for(var d=0;d<1;d+=.05){di[0]=wr(e,r,i,d),di[1]=wr(t,n,a,d);var h=tu(ga,di);h=0&&h=1?1:n0(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var Qve=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rr,this.ondestroy=t.ondestroy||rr,this.onrestart=t.onrestart||rr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ye(t)?t:PH[t]||nk(t)},e}();const Jve=Qve;var zH=function(){function e(t){this.value=t}return e}(),ege=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new zH(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),tge=function(){function e(t){this._list=new ege,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new zH(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const _v=tge;var cE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function rge(e){return e=Math.round(e),e<0?0:e>360?360:e}function Lp(e){return e<0?0:e>1?1:e}function db(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function ru(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Lp(parseFloat(t)/100):Lp(parseFloat(t))}function hb(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ns(e,t,r){return e+(t-e)*r}function ri(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function fT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var BH=new _v(20),Ag=null;function ec(e,t){Ag&&fT(Ag,t),Ag=BH.put(e,Ag||t.slice())}function Hn(e,t){if(e){t=t||[];var r=BH.get(e);if(r)return fT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in cE)return fT(t,cE[n]),ec(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ri(t,0,0,0,1);return}return ri(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ec(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ri(t,0,0,0,1);return}return ri(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ec(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ri(t,+u[0],+u[1],+u[2],1):ri(t,0,0,0,1);c=ru(u.pop());case"rgb":if(u.length>=3)return ri(t,db(u[0]),db(u[1]),db(u[2]),u.length===3?c:ru(u[3])),ec(e,t),t;ri(t,0,0,0,1);return;case"hsla":if(u.length!==4){ri(t,0,0,0,1);return}return u[3]=ru(u[3]),dT(u,t),ec(e,t),t;case"hsl":if(u.length!==3){ri(t,0,0,0,1);return}return dT(u,t),ec(e,t),t;default:return}}ri(t,0,0,0,1)}}function dT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=ru(e[1]),i=ru(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ri(t,Wi(hb(o,a,r+1/3)*255),Wi(hb(o,a,r)*255),Wi(hb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function nge(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function hT(e,t){var r=Hn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return oo(r,r.length===4?"rgba":"rgb")}}function pb(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Lp(ns(o[3],s[3],l)),r}}function ige(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Hn(t[i]),s=Hn(t[a]),l=n-i,u=oo([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Lp(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Vh(e,t,r,n){var i=Hn(e);if(e)return i=nge(i),t!=null&&(i[0]=rge(t)),r!=null&&(i[1]=ru(r)),n!=null&&(i[2]=ru(n)),oo(dT(i),"rgba")}function i0(e,t){var r=Hn(e);if(r&&t!=null)return r[3]=Lp(t),oo(r,"rgba")}function oo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function a0(e,t){var r=Hn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var o0=Math.round;function Ep(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Hn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var fE=1e-4;function is(e){return e-fE}function Mg(e){return o0(e*1e3)/1e3}function pT(e){return o0(e*1e4)/1e4}function age(e){return"matrix("+Mg(e[0])+","+Mg(e[1])+","+Mg(e[2])+","+Mg(e[3])+","+pT(e[4])+","+pT(e[5])+")"}var oge={left:"start",right:"end",center:"middle",middle:"middle"};function sge(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function lge(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function uge(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function FH(e){return e&&!!e.image}function cge(e){return e&&!!e.svgElement}function ik(e){return FH(e)||cge(e)}function $H(e){return e.type==="linear"}function VH(e){return e.type==="radial"}function GH(e){return e&&(e.type==="linear"||e.type==="radial")}function px(e){return"url(#"+e+")"}function HH(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function WH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Hm,i=Ee(e.scaleX,1),a=Ee(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+o0(o*Hm)+"deg, "+o0(s*Hm)+"deg)"),l.join(" ")}var fge=function(){return tt.hasGlobalWindow&&ye(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),vT=Array.prototype.slice;function Za(e,t,r){return(t-e)*r+e}function vb(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=hE,l=r;if(Zr(r)){var u=vge(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Dp(r))s=Ig;else if(oe(r))if(!isNaN(+r))s=Ig;else{var c=Hn(r);c&&(l=c,s=uh)}else if(fx(r)){var f=q({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Hn(h.color)}}),$H(r)?s=gT:VH(r)&&(s=mT),l=f}a===0?this.valType=s:(s!==this.valType||s===hE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ye(n)?n:PH[n]||nk(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Pg(i),u=pE(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?Ad:t[l];if((Pg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Pg(a))a===Xm?vb(y,h[i],p[i],m):dge(y,h[i],p[i],m);else if(pE(a)){var x=h[i],S=p[i],_=a===gT;t[l]={type:_?"linear":"radial",x:Za(x.x,S.x,m),y:Za(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:Za(w.offset,A.offset,m),color:Ym(vb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=Za(x.x2,S.x2,m),t[l].y2=Za(x.y2,S.y2,m)):t[l].r=Za(x.r,S.r,m)}else if(u)vb(y,h[i],p[i],m),n||(t[l]=Ym(y));else{var b=Za(h[i],p[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ig?t[n]=t[n]+i:r===uh?(Hn(t[n],Ad),kg(Ad,Ad,i,1),t[n]=Ym(Ad)):r===Xm?kg(t[n],t[n],i,1):r===UH&&dE(t[n],t[n],i,1)},e}(),ak=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Z2("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,qe(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Gh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Gh(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Vc(){return new Date().getTime()}var mge=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Vc()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(uT(n),!r._paused&&r.update())}uT(n)},t.prototype.start=function(){this._running||(this._time=Vc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Vc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Vc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new ak(r,n.loop);return this.addAnimator(i),i},t}(Ai);const yge=mge;var xge=300,gb=tt.domSupported,mb=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),vE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gE=!1;function yT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Sge(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function yb(e){e&&(e.zrByTouch=!0)}function bge(e,t){return ni(e.dom,new _ge(e,t),!0)}function jH(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var _ge=function(){function e(t,r){this.stopPropagation=rr,this.stopImmediatePropagation=rr,this.preventDefault=rr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Li={mousedown:function(e){e=ni(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ni(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ni(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ni(this.dom,e);var t=e.toElement||e.relatedTarget;jH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){gE=!0,e=ni(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){gE||(e=ni(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ni(this.dom,e),yb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Li.mousemove.call(this,e),Li.mousedown.call(this,e)},touchmove:function(e){e=ni(this.dom,e),yb(e),this.handler.processGesture(e,"change"),Li.mousemove.call(this,e)},touchend:function(e){e=ni(this.dom,e),yb(e),this.handler.processGesture(e,"end"),Li.mouseup.call(this,e),+new Date-+this.__lastTouchMomentxE||e<-xE}var Js=[],tc=[],Sb=_i(),bb=Math.abs,kge=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Qs(this.rotation)||Qs(this.x)||Qs(this.y)||Qs(this.scaleX-1)||Qs(this.scaleY-1)||Qs(this.skewX)||Qs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(yE(n),this.invTransform=null);return}n=n||_i(),r?this.getLocalTransform(n):yE(n),t&&(r?ao(n,t,n):tk(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Js);var n=Js[0]<0?-1:1,i=Js[1]<0?-1:1,a=((Js[0]-n)*r+n)/Js[0]||0,o=((Js[1]-i)*r+i)/Js[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_i(),Wf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(ao(tc,t.invTransform,r),r=tc);var n=this.originX,i=this.originY;(n||i)&&(Sb[4]=n,Sb[5]=i,ao(tc,r,Sb),tc[4]-=n,tc[5]-=i,r=tc),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Er(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Er(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&bb(t[0]-1)>1e-10&&bb(t[3]-1)>1e-10?Math.sqrt(bb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){YH(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Nu(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ba=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function YH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function l0(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Zi(n[0],r.width),u+=Zi(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var _b="__zr_normal__",wb=Ba.concat(["ignore"]),Ige=Na(Ba,function(e,t){return e[t]=!0,e},{ignore:!1}),rc={},Pge=new Ne(0,0,0,0),ok=function(){function e(t){this.id=SH(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Pge;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(rc,n,c):l0(rc,n,c),a.x=rc.x,a.y=rc.y,o=rc.align,s=rc.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Zi(f[0],c.width),h=Zi(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Bn,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?_T:bT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Hn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,oo(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},q(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(be(t))for(var n=t,i=qe(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(_b,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===_b,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Z2("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Bn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Bn)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d0||i.force&&!o.length){var C=void 0,A=void 0,T=void 0;if(s){A={},d&&(C={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ze(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function ne(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return oe(e)?Fge(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Xt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),JH),e=(+e).toFixed(t),r?e:+e}function mi(e){return e.sort(function(t,r){return t-r}),e}function ba(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return $ge(e)}function $ge(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function e6(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Vge(e,t){var r=Na(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Z(i,function(h){return Math.floor(h)}),s=Na(o,function(h,p){return h+p},0),l=Z(i,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Z(o,function(h){return h/n})}function Gge(e,t){var r=Math.max(ba(e),ba(t)),n=e+t;return r>JH?n:Xt(n,r)}var CE=9007199254740991;function t6(e){var t=Math.PI*2;return(e%t+t)%t}function u0(e){return e>-wE&&e=10&&t++,t}function r6(e,t){var r=sk(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Ab(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function TE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var pme=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vme=bu(pme),gme=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return vme(this,t,r)},e}(),CT=new _v(50);function mme(e){if(typeof e=="string"){var t=CT.get(e);return t&&t.image}else return e}function fk(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=CT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!mx(t)&&a.pending.push(o)):(t=Is.loadImage(e,IE,IE),t.__zrImageSrc=e,CT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function IE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Wn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function v6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Wn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?xme(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Wn(e,n)}return e===""&&(e=t.placeholder),e}function xme(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=p6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&kb(r,e.substring(s,u),t,o),kb(r,l[2],t,o,l[1]),s=Mb.lastIndex}si){_>0?(y.tokens=y.tokens.slice(0,_),g(y,S,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var k=w.width,I=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")b.percentWidth=k,c.push(b),b.contentWidth=Wn(b.text,T);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=mme(R),mx(R)&&(b.width=Math.max(b.width,R.width*M/R.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` -`),u=!0),n.accumWidth=p}else{var v=g6(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` -`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Tme=Na(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Ame(e){return Cme(e)?!!Tme[e]:!0}function g6(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var TT="__zr_style_"+Math.round(Math.random()*10),nu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},yx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nu[TT]=!0;var DE=["z","z2","invisible"],Mme=["invisible"],kme=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=qe(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Dg[0]=Rb(i)*r+e,Dg[1]=Db(i)*n+t,Rg[0]=Rb(a)*r+e,Rg[1]=Db(a)*n+t,u(s,Dg,Rg),c(l,Dg,Rg),i=i%tl,i<0&&(i=i+tl),a=a%tl,a<0&&(a=a+tl),i>a&&!o?a+=tl:ii&&(Lg[0]=Rb(h)*r+e,Lg[1]=Db(h)*n+t,u(s,Lg,s),c(l,Lg,l))}var yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rl=[],nl=[],ta=[],Lo=[],ra=[],na=[],Lb=Math.min,Eb=Math.max,il=Math.cos,al=Math.sin,Ua=Math.abs,AT=Math.PI,Go=AT*2,Ob=typeof Float32Array<"u",Md=[];function Nb(e){var t=Math.round(e/AT*1e8)/1e8;return t%2*AT}function m6(e,t){var r=Nb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Nb(r-i)):t&&r0&&(this._ux=Ua(n/s0/t)||0,this._uy=Ua(n/s0/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(yt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Ua(t-this._xi),i=Ua(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(yt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(yt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(yt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Md[0]=i,Md[1]=a,m6(Md,o),i=Md[0],a=Md[1];var s=a-i;return this.addData(yt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=il(a)*n+t,this._yi=al(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(yt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(yt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Ob&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ta[0]=ta[1]=ra[0]=ra[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=na[0]=na[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ua(x)>i||d===r-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case yt.C:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++],b=t[d++],w=t[d++];v=Yve(a,o,S,_,g,m,b,w,10),a=b,o=w;break}case yt.Q:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++];v=Zve(a,o,S,_,g,m,10),a=g,o=m;break}case yt.A:var C=t[d++],A=t[d++],T=t[d++],M=t[d++],k=t[d++],I=t[d++],P=I+k;d+=1,t[d++],p&&(s=il(k)*T+C,l=al(k)*M+A),v=Eb(T,M)*Lb(Go,Math.abs(I)),a=il(P)*T+C,o=al(P)*M+A;break;case yt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*2+z*2;break}case yt.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,m=0,y,x=0,S,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b0&&(t.lineTo(S,_),x=0),w){case yt.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case yt.L:{f=n[b++],d=n[b++];var A=Ua(f-u),T=Ua(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var I=A*A+T*T;I>x&&(S=f,_=d,x=I)}break}case yt.C:{var P=n[b++],R=n[b++],z=n[b++],V=n[b++],N=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Ps(u,P,z,N,k,rl),Ps(c,R,V,$,k,nl),t.bezierCurveTo(rl[1],nl[1],rl[2],nl[2],rl[3],nl[3]);break e}g+=M}t.bezierCurveTo(P,R,z,V,N,$),u=N,c=$;break}case yt.Q:{var P=n[b++],R=n[b++],z=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Rp(u,P,z,k,rl),Rp(c,R,V,k,nl),t.quadraticCurveTo(rl[1],nl[1],rl[2],nl[2]);break e}g+=M}t.quadraticCurveTo(P,R,z,V),u=z,c=V;break}case yt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ua(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=il(j)*U+L,l=al(j)*B+G),u=il(re)*U+L,c=al(re)*B+G;break;case yt.R:s=u=n[b],l=c=n[b+1],f=n[b++],d=n[b++];var J=n[b++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Lb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Lb(de,fe)),de-=fe,de>0&&t.lineTo(f+Eb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+Eb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case yt.Z:if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=yt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const $a=Lme;function jo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=kd);var d=Math.atan2(l,s);return d<0&&(d+=kd),d>=n&&d<=i||d+kd>=n&&d+kd<=i}function Ka(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=$a.CMD,ol=Math.PI*2,Nme=1e-4;function zme(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Bme(),h=vr(t,n,a,s,ai[0]),d>1&&(p=vr(t,n,a,s,ai[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=wr(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ol-1e-4){n=0,i=ol;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=ol,i+=ol);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=ol+v),(v>=n&&v<=i||v+ol>=n&&v+ol<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Ka(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Ka(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Eme(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Fme(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.Q:if(r){if(y6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=$me(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.A:var m=a[p++],y=a[p++],x=a[p++],S=a[p++],_=a[p++],b=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(_)*x+m,h=Math.sin(_)*S+y,g?(c=d,f=h):s+=Ka(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Ome(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Vme(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.R:c=l=a[p++],f=u=a[p++];var A=a[p++],T=a[p++];if(d=c+A,h=f+T,r){if(jo(c,f,d,f,t,n,i)||jo(d,f,d,h,t,n,i)||jo(d,h,c,h,t,n,i)||jo(c,h,c,f,t,n,i))return!0}else s+=Ka(d,f,d,h,n,i),s+=Ka(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Ka(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!zme(u,f)&&(s+=Ka(l,u,c,f,n,i)||0),s!==0}function Gme(e,t,r){return x6(e,0,!1,t,r)}function Hme(e,t,r,n){return x6(e,t,!0,r,n)}var c0=Se({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nu),Wme={style:Se({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},yx.style)},zb=Ba.concat(["invisible","culling","z","z2","zlevel","parent"]),Ume=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?bT:n>.2?Mge:_T}else if(r)return _T}return bT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=a0(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Hme(s,l/u,r,n)))return!0}if(this.hasFill())return Gme(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:q(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wc)},t.prototype.createStyle=function(r){return dx(c0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=q({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=q({},i.shape),q(u,n.shape)):(u=q({},a?this.shape:i.shape),q(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=q({},this.shape);for(var c={},f=qe(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return dx(jme,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=wv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(wi);S6.prototype.type="tspan";const Np=S6;var qme=Se({x:0,y:0},nu),Yme={style:Se({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},yx.style)};function Xme(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var b6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return dx(qme,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Xme(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Yme},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(wi);b6.prototype.type="image";const Fr=b6;function Zme(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Gc=Math.round;function _6(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Gc(n*2)===Gc(i*2)&&(e.x1=e.x2=Wl(n,s,!0)),Gc(a*2)===Gc(o*2)&&(e.y1=e.y2=Wl(a,s,!0))),e}}function w6(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Wl(n,s,!0),e.y=Wl(i,s,!0),e.width=Math.max(Wl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wl(e,t,r){if(!t)return e;var n=Gc(e*2);return(n+Gc(t))%2===0?n/2:(n+(r?1:-1))/2}var Kme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Qme={},C6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Kme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=w6(Qme,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Zme(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);C6.prototype.type="rect";const Qe=C6;var NE={fill:"#000"},zE=2,Jme={style:Se({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},yx.style)},T6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=NE,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,k=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=b[I],P.align==="right");)this._placeToken(P,r,C,m,k,"right",x),A-=P.width,k-=P.width,I--;for(M+=(a-(M-g)-(y-k)-A)/2;T<=I;)P=b[T],this._placeToken(P,r,C,m,M+P.width/2,"center",x),M+=P.width,T++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Bb(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=HE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Np),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=GE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=VE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=zE,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||ks,g.opacity=Pa(u.opacity,n.opacity,1),FE(g,u),_&&(g.lineWidth=Pa(u.lineWidth,n.lineWidth,x),g.lineDash=Ee(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(ch(g.x,w,g.textAlign),Cc(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(Qe),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=Ee(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Fr),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ee(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return M6(r)&&(n=[r.fontStyle,r.fontWeight,A6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(wi),eye={left:!0,right:1,center:1},tye={top:1,bottom:1,middle:1},BE=["fontStyle","fontWeight","fontSize","fontFamily"];function A6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?q2+"px":e+"px"}function FE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=k6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(nc(s)||nc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=q({},n),u=q({},u),u.fill=s):!nc(u.fill)&&nc(s)?(a=!0,n=q({},n),u=q({},u),u.fill=YE(s)):!nc(u.stroke)&&nc(l)&&(a||(n=q({},n),u=q({},u)),u.stroke=YE(l)),n.style=u}}if(n&&n.z2==null){a||(n=q({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??jf)}return n}function lye(e,t,r){if(r&&r.z2==null){r=q({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??nye)}return r}function uye(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:oye(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=q({},r),o=q({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Fb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return sye(this,e,t,r);if(e==="blur")return uye(this,e,r);if(e==="select")return lye(this,e,r)}return r}function _u(e){e.stateProxy=Fb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Fb),r&&(r.stateProxy=Fb)}function ZE(e,t){!O6(e,t)&&!e.__highByOuter&&To(e,I6)}function KE(e,t){!O6(e,t)&&!e.__highByOuter&&To(e,P6)}function yo(e,t){e.__highByOuter|=1<<(t||0),To(e,I6)}function xo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,P6)}function R6(e){To(e,pk)}function vk(e){To(e,D6)}function L6(e){To(e,iye)}function E6(e){To(e,aye)}function O6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function N6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=dk(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){D6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function kT(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function au(e,t,r){Ul(e,!0),To(e,_u),PT(e,t,r)}function vye(e){Ul(e,!1)}function Ut(e,t,r,n){n?vye(e):au(e,t,r)}function PT(e,t,r){var n=ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var JE=["emphasis","blur","select"],gye={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=$b(p),s*=$b(p));var v=(i===a?-1:1)*$b((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+r)/2+Og(f)*g-Eg(f)*m,x=(t+n)/2+Eg(f)*g+Og(f)*m,S=nO([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=nO(_,b);if(RT(_,b)<=-1&&(w=Id),RT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Id*1e6)/1e6;w=Id*2+C%2*Id}c.addData(u,y,x,o,s,S,w,f,a)}var _ye=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wye=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cye(e){var t=new $a;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=$a.CMD,l=e.match(_ye);if(!l)return t;for(var u=0;uP*P+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Dye(e){var t;if(Y(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Rye(e,t){var r,n=fh(t.r,0),i=fh(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=aO(u-l),p=h>Vb&&h%Vb;if(p>Ri&&(h=p),!(n>Ri))e.moveTo(c,f);else if(h>Vb-Ri)e.moveTo(c+n*ac(l),f+n*sl(l)),e.arc(c,f,n,l,u,!d),i>Ri&&(e.moveTo(c+i*ac(u),f+i*sl(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0,w=void 0,C=void 0,A=void 0,T=void 0,M=void 0,k=void 0,I=void 0,P=void 0,R=n*ac(l),z=n*sl(l),V=i*ac(u),N=i*sl(u),$=h>Ri;if($){var L=t.cornerRadius;L&&(r=Dye(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=aO(n-i)/2;if(x=ia(G,m),S=ia(G,y),_=ia(G,v),b=ia(G,g),A=w=fh(x,S),T=C=fh(_,b),(w>Ri||C>Ri)&&(M=n*ac(u),k=n*sl(u),I=i*ac(l),P=i*sl(l),hRi){var ie=ia(m,A),re=ia(y,A),Q=Ng(I,P,R,z,n,ie,d),J=Ng(M,k,V,N,n,re,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),A0&&e.arc(c+Q.cx,f+Q.cy,ie,Hr(Q.y0,Q.x0),Hr(Q.y1,Q.x1),!d),e.arc(c,f,n,Hr(Q.cy+Q.y1,Q.cx+Q.x1),Hr(J.cy+J.y1,J.cx+J.x1),!d),re>0&&e.arc(c+J.cx,f+J.cy,re,Hr(J.y1,J.x1),Hr(J.y0,J.x0),!d))}else e.moveTo(c+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ri)||!$)e.lineTo(c+V,f+N);else if(T>Ri){var ie=ia(v,T),re=ia(g,T),Q=Ng(V,N,M,k,i,-re,d),J=Ng(R,z,I,P,i,-ie,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,re,Hr(Q.y0,Q.x0),Hr(Q.y1,Q.x1),!d),e.arc(c,f,i,Hr(Q.cy+Q.y1,Q.cx+Q.x1),Hr(J.cy+J.y1,J.cx+J.x1),d),ie>0&&e.arc(c+J.cx,f+J.cy,ie,Hr(J.y1,J.x1),Hr(J.y0,J.x0),!d))}else e.lineTo(c+V,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Lye=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),U6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Lye},t.prototype.buildPath=function(r,n){Rye(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);U6.prototype.type="sector";const Pn=U6;var Eye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),j6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Eye},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}($e);j6.prototype.type="ring";const _x=j6;function Oye(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=Oye(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sul[1]){if(s=!1,a)return s;var c=Math.abs(ul[0]-ll[1]),f=Math.abs(ll[0]-ul[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function it(e,t,r,n,i,a){bk("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){bk("enter",e,t,r,n,i,a)}function nf(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function lO(e){return!e.isGroup}function t0e(e){return e.shape!=null}function Mv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){lO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return t0e(o)&&(s.shape=q({},o.shape)),s}var a=n(e);t.traverse(function(o){if(lO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,ke(o).dataIndex)}}})}function aW(e,t){return Z(e,function(r){var n=r[0];n=h0(n,t.x),n=p0(n,t.x+t.width);var i=r[1];return i=h0(i,t.y),i=p0(i,t.y+t.height),[n,i]})}function r0e(e,t){var r=h0(e.x,t.x),n=p0(e.x+e.width,t.x+t.width),i=h0(e.y,t.y),a=p0(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function kv(e,t,r){var n=q({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Se(i,r),new Fr(n)):Tx(e.replace("path://",""),n,r,"center")}function dh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Gb(h,p,c,f)/d;return!(g<0||g>1)}function Gb(e,t,r,n){return e*n-r*t}function n0e(e){return e<=1e-6&&e>=-1e-6}function Yf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=oe(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(qe(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Se({content:n,formatterParams:s},i)}}function uO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ws(e,t){if(e)if(Y(e))for(var r=0;r=0&&s.push(l)}),s}}function Us(e,t){return Oe(Oe({},e,!0),t,!0)}const g0e={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"}},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:". "}}}},m0e={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:"旭日图"}},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 g0="ZH",wk="EN",$p=wk,ty={},Ck={},hW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(g0)>-1?g0:$p}():$p;function pW(e,t){e=e.toUpperCase(),Ck[e]=new wt(t),ty[e]=t}function y0e(e){if(oe(e)){var t=ty[e.toUpperCase()]||{};return e===g0||e===wk?Ce(t):Oe(Ce(t),Ce(ty[$p]),!1)}else return Oe(Ce(e),Ce(ty[$p]),!1)}function OT(e){return Ck[e]}function x0e(){return Ck[$p]}pW(wk,g0e);pW(g0,m0e);var Tk=1e3,Ak=Tk*60,Yh=Ak*60,vi=Yh*24,pO=vi*365,hh={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}"},Fg="{yyyy}-{MM}-{dd}",vO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Fg,hour:Fg+" "+hh.hour,minute:Fg+" "+hh.minute,second:Fg+" "+hh.second,millisecond:hh.none},Ub=["year","month","day","hour","minute","second","millisecond"],vW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function af(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function S0e(e){return e===af(e)}function b0e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function kx(e,t,r,n){var i=Fa(e),a=i[Mk(r)](),o=i[of(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Ix(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Vp(r)](),f=(c-1)%12+1,d=i[Px(r)](),h=i[Dx(r)](),p=i[Rx(r)](),v=n instanceof wt?n:OT(n||hW)||x0e(),g=v.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function _0e(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(ye(r))a=r(e.value,t,{level:e.level});else{var o=q({},hh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return kx(new Date(e.value),a,i,n)}function gW(e,t){var r=Fa(e),n=r[of(t)]()+1,i=r[Ix(t)](),a=r[Vp(t)](),o=r[Px(t)](),s=r[Dx(t)](),l=r[Rx(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function gO(e,t,r){var n=nt(e)?Fa(e):e;switch(t=t||gW(e,r),t){case"year":return n[Mk(r)]();case"half-year":return n[of(r)]()>=6?1:0;case"quarter":return Math.floor((n[of(r)]()+1)/4);case"month":return n[of(r)]();case"day":return n[Ix(r)]();case"half-day":return n[Vp(r)]()/24;case"hour":return n[Vp(r)]();case"minute":return n[Px(r)]();case"second":return n[Dx(r)]();case"millisecond":return n[Rx(r)]()}}function Mk(e){return e?"getUTCFullYear":"getFullYear"}function of(e){return e?"getUTCMonth":"getMonth"}function Ix(e){return e?"getUTCDate":"getDate"}function Vp(e){return e?"getUTCHours":"getHours"}function Px(e){return e?"getUTCMinutes":"getMinutes"}function Dx(e){return e?"getUTCSeconds":"getSeconds"}function Rx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function w0e(e){return e?"setUTCFullYear":"setFullYear"}function mW(e){return e?"setUTCMonth":"setMonth"}function yW(e){return e?"setUTCDate":"setDate"}function xW(e){return e?"setUTCHours":"setHours"}function SW(e){return e?"setUTCMinutes":"setMinutes"}function bW(e){return e?"setUTCSeconds":"setSeconds"}function _W(e){return e?"setUTCMilliseconds":"setMilliseconds"}function wW(e){if(!n6(e))return oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function CW(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Kf=J2;function NT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Fa(e):e;if(isNaN(+l)){if(s)return"-"}else return kx(l,n,r)}if(t==="ordinal")return eT(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=mo(e);return a(u)?wW(u):eT(e)?i(e):typeof e=="boolean"?e+"":"-"}var mO=["a","b","c","d","e","f","g"],jb=function(e,t){return"{"+e+(t??"")+"}"};function TW(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function wu(e,t){return t=t||"transparent",oe(e)?e:be(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function m0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ry=D,AW=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function kk(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var su=kk;Ie(kk,"vertical");Ie(kk,"horizontal");function A0e(e,t,r){var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Kf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Kf(r||0);var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i),u=ne(e.width,n),c=ne(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function Lx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=hr(Se({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function M0e(e,t){return e[jl[t][0]]!=null||e[jl[t][1]]!=null&&e[jl[t][2]]!=null}function Gp(e){var t=e.layoutMode||e.constructor.layoutMode;return be(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],e,i),u(jl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(ry(c,function(x){p[x]=e[x]}),ry(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Cv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(wt);h6(Jf,wt);gx(Jf);p0e(Jf);v0e(Jf,I0e);function I0e(e){var t=[];return D(Jf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return _a(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Jf;var kW="";typeof navigator<"u"&&(kW=navigator.platform||"");var oc="rgba(0, 0, 0, 0.2)";const P0e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:oc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:oc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:oc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:oc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:oc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:oc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kW.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 IW=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mi="original",Kr="arrayRows",ki="objectRows",Ha="keyedColumns",xs="typedArray",PW="unknown",Da="column",ed="row",Pr={Must:1,Might:2,Not:3},DW=Je();function D0e(e){DW(e).datasetMap=ge()}function RW(e,t,r){var n={},i=Pk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=DW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=be(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});D(e,function(v,g){var m=v.name,y=p(v);if(c==null){var x=d.valueWayDim;h(n[m],x,y),h(o,x,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var x=d.categoryWayDim;h(n[m],x,y),h(o,x,y),d.categoryWayDim+=y}});function h(v,g,m){for(var y=0;yt)return e[n];return e[r-1]}function OW(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:N0e(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function z0e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var $g,Pd,xO,SO="\0_ec_inner",B0e=1,NW=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=wO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,wO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?xO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=n&&n.replaceMergeMainTypeMap;D0e(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ce(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){et.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),et.topologicalTravel(s,et.getAllClassMainTypes(),c,this);function c(f){var d=E0e(this,f,ht(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=l6(h,d,p);Jge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(v,function(S,_){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=et.getClass(f,S.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var T=q({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),q(b,T),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&$g(this)}this._seriesIndices||$g(this)},t.prototype.getOption=function(){var r=Ce(this.option);return D(r,function(n,i){if(et.hasClass(i)){for(var a=ht(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Op(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[SO],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function X0e(e,t){return e.join(",")===t.join(",")}const Z0e=U0e;var Pi=D,Hp=be,CO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Yb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=CO.length;r=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=Gge(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Ex=function(){function e(t){this.data=t.data||(t.sourceFormat===Ha?{}:[]),this.sourceFormat=t.sourceFormat||PW,this.seriesLayoutBy=t.seriesLayoutBy||Da,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nv&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};DO=(t={},t[Kr+"_"+Da]={pure:!0,appendData:a},t[Kr+"_"+ed]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ki]={pure:!0,appendData:a},t[Ha]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Mi]={appendData:a},t[xs]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return Cf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function OO(e){var t,r;return be(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Xh(e){return new h1e(e)}var h1e=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},v1e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=YW[t],this._rvalFloat=mo(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(mo(t),this._rvalFloat)},e}(),XW=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=nt(t)?t:mo(t),i=nt(r)?r:mo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),g1e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=mo(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=mo(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function m1e(e,t){return e==="eq"||e==="ne"?new g1e(e==="eq",t):ce(YW,e)?new v1e(e,t):null}var y1e=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ss(t,r)},e}();function x1e(e,t){var r=new y1e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Da&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?M1e:k1e}function sc(){return[1/0,-1/0]}function I1e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function BO(e,t,r,n,i){var a=QW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Rd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Ss(r[a],this._dimensions[a])}Kb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),JW=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Vg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=qn(s)?xs:Mi,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ee(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ee(f.sourceHeader,d.sourceHeader),v=Ee(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[FT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[FT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&$O(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&$O(f),s.push(c),l.push(u._getVersionSign())}),n?o=T1e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[o1e(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=nU(i);a>=t&&(t=a+ +(n&&(!a||VT(i)&&!i.noHeader)))}),t}return 0}function R1e(e,t,r,n){var i=t.noHeader,a=E1e(nU(t)),o=[],s=t.blocks||[];un(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new XW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=rU(p)(g?q(q({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):GT(o.join(""),i?r:a.html);if(i)return f;var d=NT(t.header,"ordinal",e.useUTC),h=tU(n,e.renderMode).nameStyle;return e.renderMode==="richText"?iU(e,d,h)+a.richText+f:GT('
'+yn(d)+"
"+f,r)}function L1e(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(_,b){return NT(_,Y(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":NT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=tU(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":iU(e,d,y))+(o?"":z1e(e,p,v,g,x)):GT((s?"":f)+(a?"":O1e(d,!s,y))+(o?"":N1e(p,v,g,x)),r)}}function VO(e,t,r,n,i,a){if(e){var o=rU(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function E1e(e){return{html:P1e[e],richText:D1e[e]}}function GT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function O1e(e,t,r){var n=t?"margin-left:2px":"";return''+yn(e)+""}function N1e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Y(e)?e:[e],''+Z(e,function(o){return yn(o)}).join("  ")+""}function iU(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function z1e(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function aU(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return wu(n)}function oU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Qb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=i6()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=T0e({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?D(r,function(a){return q(n,a)}):q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function sU(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Y(s),u=aU(t,r),c,f,d,h;if(o>1||l&&!o){var p=B1e(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=Cf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=lk(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return Sr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Sr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function B1e(e,t,r,n,i){var a=t.getData(),o=Na(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(Cf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Sr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var No=Je();function Gg(e,t){return e.getName(t)||e.getId(t)}var ny="__universalTransitionEnabled",Nx=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Xh({count:$1e,reset:V1e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new JW(this);a.prepareSource();var o=this.getInitialData(r,i);HO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,GO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Gp(this),a=i?Qf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),xu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Gp(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);HO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,GO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!qn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Dk.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Gg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ny])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){be(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return et.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(et);lr(Nx,Ok);lr(Nx,Dk);h6(Nx,et);function GO(e){var t=e.name;lk(e)||(e.name=F1e(e)||t)}function F1e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function $1e(e){return e.model.getRawData().count()}function V1e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),G1e}function G1e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function HO(e,t){D(t0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ie(H1e,t))})}function H1e(e,t){var r=HT(e);return r&&r.setOutputEnd((t||this).count()),t}function HT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const zt=Nx;var zk=function(){function e(){this.group=new Me,this.uid=Zf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();ck(zk);gx(zk);const jt=zk;function td(){var e=Je();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var lU=Je(),W1e=td(),Bk=function(){function e(){this.group=new Me,this.uid=Zf("viewChart"),this.renderTask=Xh({plan:U1e,reset:j1e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&UO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&UO(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Ws(this.group,t)},e.markUpdateMethod=function(t,r){lU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function WO(e,t,r){e&&Bp(e)&&(t==="emphasis"?yo:xo)(e,r)}function UO(e,t,r){var n=Su(e,t),i=t&&t.highlightKey!=null?yye(t.highlightKey):null;n!=null?D(ht(n),function(a){WO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){WO(a,r,i)})}ck(Bk);gx(Bk);function U1e(e){return W1e(e.model)}function j1e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&lU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),q1e[l]}var q1e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Tt=Bk;var y0="\0__throttleOriginMethod",jO="\0__throttleRate",qO="\0__throttleType";function Fk(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function rd(e,t,r,n){var i=e[t];if(i){var a=i[y0]||i,o=i[qO],s=i[jO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Fk(a,r,n==="debounce"),i[y0]=a,i[qO]=n,i[jO]=r}return i}}function Wp(e,t){var r=e[t];r&&r[y0]&&(r.clear&&r.clear(),e[t]=r[y0])}var YO=Je(),XO={itemStyle:bu(dW,!0),lineStyle:bu(fW,!0)},Y1e={lineStyle:"stroke",itemStyle:"fill"};function uU(e,t){var r=e.visualStyleMapper||XO[t];return r||(console.warn("Unknown style type '"+t+"'."),XO.itemStyle)}function cU(e,t){var r=e.visualDrawType||Y1e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var X1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=uU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=cU(e,n),u=o[l],c=ye(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ye(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ye(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=q({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Ld=new wt,Z1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=uU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ld.option=l[n];var u=i(Ld),c=o.ensureUniqueItemVisual(s,"style");q(c,u),Ld.option.decal&&(o.setItemVisual(s,"decal",Ld.option.decal),Ld.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},K1e={performRawSeries:!0,overallReset:function(e){var t=ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),YO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=YO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=cU(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},Hg=Math.PI;function Q1e(e,t){t=t||{},Se(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,n=new Qe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Qe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new xk({shape:{startAngle:-Hg/2,endAngle:-Hg/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:Hg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Hg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var J1e=function(){function e(t,r,n,i){this._stageTaskMap=ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";un(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Xh({plan:ixe,reset:axe,count:sxe}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Xh({reset:exe});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";un(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Xh({reset:txe,onDirty:nxe})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return ye(t)&&(t={overallReset:t,seriesType:lxe(t)}),t.uid=Zf("stageHandler"),r&&(t.visualType=r),t},e}();function exe(e){e.overallReset(e.ecModel,e.api,e.payload)}function txe(e){return e.overallProgress&&rxe}function rxe(){this.agent.dirty(),this.getDownstream().dirty()}function nxe(){this.agent&&this.agent.dirty()}function ixe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function axe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ht(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return fU(n)}):oxe}var oxe=fU(0);function fU(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),WT=["symbol","symbolSize","symbolRotate","symbolOffset"],JO=WT.concat(["symbolKeepAspect"]),dxe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Yl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function UT(e,t,r){for(var n=t.type==="radial"?kxe(e,t,r):Mxe(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:Y(e)?e:null}function Vk(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Pxe(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var Dxe=new $a(!0);function b0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function eN(e){return typeof e=="string"&&e!=="none"}function _0(e){var t=e.fill;return t!=null&&t!=="none"}function tN(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function rN(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function jT(e,t,r){var n=fk(t.image,t.__image,r);if(mx(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Hm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Rxe(e,t,r,n){var i,a=b0(r),o=_0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Dxe,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=f?UT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?UT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?jT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?jT(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=Vk(t),C=i[0],A=i[1]);var T=!0;(u||f&wc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&rN(e,r),o&&tN(e,r)):(o&&tN(e,r),a&&rN(e,r))),C&&e.setLineDash([])}function Lxe(e,t,r){var n=t.__image=fk(r.image,t.__image,t,t.onload);if(!(!n||!mx(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Exe(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||ks,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Vk(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(b0(r)&&e.strokeText(i,r.x,r.y),_0(r)&&e.fillText(i,r.x,r.y)):(_0(r)&&e.fillText(i,r.x,r.y),b0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var nN=["shadowBlur","shadowOffsetX","shadowOffsetY"],iN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){bn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?nu.opacity:o}(n||t.blend!==r.blend)&&(a||(bn(e,i),a=!0),e.globalCompositeOperation=t.blend||nu.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Wr]){if(this._disposed){this.id;return}var a,o,s;if(be(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wr]=!0,!this._model||n){var l=new Z0e(this._api),u=this._theme,c=this._model=new zW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},YT);var f={seriesTransition:s,optionChanged:!0};if(i)this[vn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{uc(this),zo.update.call(this,null,f)}catch(d){throw this[vn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[vn]=null,this[Wr]=!1,Ed.call(this,a),Od.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(ZT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(sf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Ce(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Is.createCanvas(),m=_E(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(d,function(x){var S=x.left-l,_=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qe({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(d,function(x){var S=new Fr({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return n_(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return n_(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Wh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Wh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?$k(s,l,n):Dv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(oSe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ql(s,function(p){var v=ke(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=q({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Zh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),pxe(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&c6(this.getDom(),Wk,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete sf[n.id]},t.prototype.resize=function(r){if(!this[Wr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[vn]&&(a==null&&(a=this[vn].silent),i=!0,this[vn]=null),this[Wr]=!0;try{i&&uc(this),zo.update.call(this,{type:"resize",animation:q({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Ed.call(this,a),Od.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(be(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!XT[r]){var i=XT[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=q({},r);return n.type=Zh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(be(n)||(n={silent:!!n}),!!C0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;a_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Ed.call(this,i),Od.call(this,i)}},t.prototype.updateLabelLayout=function(){Ei.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){uc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),r_(f,!0),r_(f,!1),d.plan()},r_=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;xd.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(nf(m))return;if(m instanceof $e&&xye(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}mN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){yo(p,v),Qn(f)},h.prototype.leaveEmphasis=function(p,v){xo(p,v),Qn(f)},h.prototype.enterBlur=function(p){R6(p),Qn(f)},h.prototype.leaveBlur=function(p){vk(p),Qn(f)},h.prototype.enterSelect=function(p){L6(p),Qn(f)},h.prototype.leaveSelect=function(p){E6(p),Qn(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(BW))(f)},LU=function(f){function d(h,p){for(var v=0;v=0)){xN.push(r);var a=pU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function BU(e,t){XT[e]=t}function gSe(e,t,r){var n=Uxe("registerMap");n&&n(e,t,r)}var mSe=C1e;Fu(Gk,X1e);Fu(zx,Z1e);Fu(zx,K1e);Fu(Gk,dxe);Fu(zx,hxe);Fu(MU,Gxe);NU($W);zU(Yxe,i1e);BU("default",Q1e);Wa({type:iu,event:iu,update:iu},rr);Wa({type:Qm,event:Qm,update:Qm},rr);Wa({type:Uh,event:Uh,update:Uh},rr);Wa({type:Jm,event:Jm,update:Jm},rr);Wa({type:jh,event:jh,update:jh},rr);Uk("light",uxe);Uk("dark",cxe);var SN=[],ySe={registerPreprocessor:NU,registerProcessor:zU,registerPostInit:dSe,registerPostUpdate:hSe,registerUpdateLifecycle:jk,registerAction:Wa,registerCoordinateSystem:pSe,registerLayout:vSe,registerVisual:Fu,registerTransform:mSe,registerLoading:BU,registerMap:gSe,registerImpl:Wxe,PRIORITY:nSe,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.registerClass(e)},registerSeriesModel:function(e){zt.registerClass(e)},registerChartView:function(e){Tt.registerClass(e)},registerSubTypeDefaulter:function(e,t){et.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Bge(e,t)}};function Fe(e){if(Y(e)){D(e,function(t){Fe(t)});return}ze(SN,e)>=0||(SN.push(e),ye(e)&&(e={install:e}),e.install(ySe))}function Nd(e){return e==null?0:e.length||1}function bN(e){return e}var xSe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||bN,this._newKeyGetter=i||bN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var zd=be,Bo=Z,ASe=typeof Int32Array>"u"?Array:Int32Array,MSe="e\0\0",_N=-1,kSe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ISe=["_approximateExtent"],wN,Yg,Bd,Fd,l_,Xg,u_,PSe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;$U(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Mi;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Y(a)?a=a.slice():zd(a)&&(a=q({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,zd(r)?q(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){zd(t)?q(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?q(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;MT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),l_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ye(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Q2(arguments)))})},e.internalField=function(){wN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new ASe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const ln=PSe;function Rv(e,t){Rk(e)||(e=Lk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ge(),a=[],o=RSe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&HU(o),l=n===e.dimensionsDefine,u=l?GU(e):VU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ge(c),d=new KW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function RSe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;be(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function LSe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var ESe=function(){function e(t){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=t}return e}();function OSe(e){var t=e.get("coordinateSystem"),r=new ESe(t),n=NSe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var NSe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),cc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),cc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),cc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),cc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),cc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),cc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function cc(e){return e.get("type")==="category"}function zSe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;BSe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(a,function(y,x){oe(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function BSe(e){return!$U(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function WU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function FSe(e,t){var r=e.get("coordinateSystem"),n=Pv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=A0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function $Se(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Lk(e)):(i=n.getSource(),a=i.sourceFormat===Mi);var o=OSe(t),s=FSe(t,o),l=r.useEncodeDefaulter,u=ye(l)?l:l?Ie(RW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Rv(i,c),d=$Se(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=zSe(t,{schema:f,store:h}),v=new ln(f,t);v.setCalculationInfo(p);var g=d!=null&&VSe(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function VSe(e){if(e.sourceFormat===Mi){var t=GSe(e.data||[]);return!Y(Uf(t))}}function GSe(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();gx(UU);const Mo=UU;var HSe=0,WSe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++HSe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,USe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},e}();function USe(e){return be(e)&&e.value!=null?e.value:e+""}const KT=WSe;function QT(e){return e.type==="interval"||e.type==="log"}function jSe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=r6(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=jU(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return qSe(l,e),i}function c_(e){var t=Math.pow(10,sk(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function jU(e){return ba(e)+2}function CN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function qSe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),CN(e,0,t),CN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Bx(e,t){return e>=t[0]&&e<=t[1]}function Fx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function $x(e,t){return e*(t[1]-t[0])+t[0]}var qU=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new KT({})),Y(i)&&(i=new KT({categories:Z(i,function(a){return be(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Bx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Fx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round($x(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Mo);Mo.registerClass(qU);const Yk=qU;var hl=Xt,YU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Bx(r,this._extent)},t.prototype.normalize=function(r){return Fx(r,this._extent)},t.prototype.scale=function(r){return $x(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=jU(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:hl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function KU(e){var t=ZSe(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(rj(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Zk(a),stackId:Xk(n)})}),QU(r)}function QU(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=qe(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),D(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&yS&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;D(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function KSe(e,t,r){if(e&&t){var n=e[Zk(t)];return n!=null&&r!=null?n[Xk(r)]:n}}function JU(e,t){var r=ZU(e,t),n=KU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Xk(i),u=n[Zk(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function ej(e){return{seriesType:e,plan:td(),reset:function(t){if(tj(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=QSe(i,a),p=rj(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&wa(_*3),w=p&&l&&wa(_*3),C=p&&wa(_),A=n.master.getRect(),T=d?A.width:A.height,M,k=S.getStore(),I=0;(M=x.next())!=null;){var P=k.get(f?g:o,M),R=k.get(s,M),z=h,V=void 0;f&&(V=+P-k.get(o,M));var N=void 0,$=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([P,R]);if(f){var B=n.dataToPoint([V,R]);z=B[0]}N=z,$=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Zg.length,l=Math.min(JSe(Zg,this._approxInterval,0,s),s-1);this._interval=Zg[l][1],this._minLevelUnit=Zg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Fa(r)},t.prototype.contain=function(r){return Bx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Fx(this.parse(r),this._extent)},t.prototype.scale=function(r){return $x(r,this._extent)},t.type="time",t}(Es),Zg=[["second",Tk],["minute",Ak],["hour",Yh],["quarter-day",Yh*6],["half-day",Yh*12],["day",vi*1.2],["half-week",vi*3.5],["week",vi*7],["month",vi*31],["quarter",vi*95],["half-year",pO/2],["year",pO]];function ebe(e,t,r,n){var i=Fa(t),a=Fa(r),o=function(p){return gO(i,p,n)===gO(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function tbe(e,t){return e/=vi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function rbe(e){var t=30*vi;return e/=t,e>6?6:e>3?3:e>2?2:1}function nbe(e){return e/=Yh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function TN(e,t){return e/=t?Ak:Tk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ibe(e){return r6(e,!0)}function abe(e,t,r){var n=new Date(e);switch(af(t)){case"year":case"month":n[mW(r)](0);case"day":n[yW(r)](1);case"hour":n[xW(r)](0);case"minute":n[SW(r)](0);case"second":n[bW(r)](0),n[_W(r)](0)}return n.getTime()}function obe(e,t,r,n){var i=1e4,a=vW,o=0;function s(T,M,k,I,P,R,z){for(var V=new Date(M),N=M,$=V[I]();N1&&R===0&&k.unshift({value:k[0].value-N})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=ft(Z(u,function(T){return ft(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[Xt(ube(n[0]/a)*a),Xt(lbe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Kh.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Di(r)/Di(this.base),Bx(r,this._extent)},t.prototype.normalize=function(r){return r=Di(r)/Di(this.base),Fx(r,this._extent)},t.prototype.scale=function(r){return r=$x(r,this._extent),Kg(this.base,r)},t.type="log",t}(Mo),aj=Kk.prototype;aj.getMinorTicks=Kh.getMinorTicks;aj.getLabel=Kh.getLabel;function Qg(e,t){return sbe(e,ba(t))}Mo.registerClass(Kk);const cbe=Kk;var fbe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[hbe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=dbe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),dbe={min:"_determinedMin",max:"_determinedMax"},hbe={min:"_dataMin",max:"_dataMax"};function oj(e,t,r){var n=e.rawExtentInfo;return n||(n=new fbe(e,t,r),e.rawExtentInfo=n,n)}function Jg(e,t){return t==null?null:Dp(t)?NaN:e.parse(t)}function sj(e,t){var r=e.type,n=oj(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=ZU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=KU(s),c=pbe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function pbe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=KSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Af(e,t){var r=t,n=sj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof cbe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Vx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Yk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new ij({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function vbe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Lv(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):oe(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):ye(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Qk(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Qk(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function gbe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Yk?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Lv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Ev=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),xbe=1e-8;function MN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return bbe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?kN(s.exterior,i,a,r):D(s.points,function(l){kN(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Cbe(e,t){return e=wbe(e),Z(ft(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new IN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new IN(l[0],l.slice(1)))});break;case"LineString":a.push(new PN([i.coordinates]));break;case"MultiLineString":a.push(new PN(i.coordinates))}var s=new cj(n[t||"name"],a,n.cp);return s.properties=n,s})}var qp=Je();function Tbe(e){return e.type==="category"?Mbe(e):Ibe(e)}function Abe(e,t){return e.type==="category"?kbe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function Mbe(e){var t=e.getLabelModel(),r=dj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function dj(e,t){var r=hj(e,"labels"),n=Jk(t),i=pj(r,n);if(i)return i;var a,o;return ye(n)?a=mj(e,n):(o=n==="auto"?Pbe(e):n,a=gj(e,o)),vj(r,n,{labels:a,labelCategoryInterval:o})}function kbe(e,t){var r=hj(e,"ticks"),n=Jk(t),i=pj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ye(n))a=mj(e,n,!0);else if(n==="auto"){var s=dj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=gj(e,o,!0);return vj(r,n,{ticks:a,tickCategoryInterval:o})}function Ibe(e){var t=e.scale.getTicks(),r=Lv(e);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function hj(e,t){return qp(e)[t]||(qp(e)[t]=[])}function pj(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=wv(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),S=qp(e.model),_=e.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&S.axisExtent0===_[0]&&S.axisExtent1===_[1]?x=b:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=_[0],S.axisExtent1=_[1]),x}function Rbe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function gj(e,t,r){var n=Lv(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=lj(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function mj(e,t,r){var n=e.scale,i=Lv(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var DN=[0,1],Lbe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return e6(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),RN(n,i.count())),ct(t,DN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),RN(n,i.count()));var a=ct(t,n,DN,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Abe(this,r),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Ebe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Tbe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Dbe(this)},e}();function RN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Ebe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=Xt(h),p=Xt(p),f?h>p:hi&&(i+=$d);var h=Math.atan2(s,o);if(h<0&&(h+=$d),h>=n&&h<=i||h+$d>=n&&h+$d<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y0){t=t/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(Ca,Vi,bt),Le.sub(ma,tr,bt);var r=Ca.len(),n=ma.len();if(!(r<.001||n<.001)){Ca.scale(1/r),ma.scale(1/n);var i=Ca.dot(ma),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function $be(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(Ca,bt,Vi),Le.sub(ma,tr,bt);var n=Ca.len(),i=ma.len();if(!(n<.001||i<.001)){Ca.scale(1/n),ma.scale(1/i);var a=Ca.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ma,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function EN(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Vbe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Jo(n[0],n[1]),a=Jo(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Um([],n[1],n[0],o/i),l=Um([],n[1],n[2],o/a),u=Um([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&_(-c/o,0,o);var v=e[0],g=e[o-1],m,y;x(),m<0&&b(-m,.8),y<0&&b(y,.8),x(),S(m,y,1),S(y,m,-1),x(),m<0&&w(-m),y<0&&w(y);function x(){m=v.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function S(C,A,T){if(C<0){var M=Math.min(A,-C);if(M>0){_(M*T,0,o);var k=M+C;k<0&&b(-k*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var k=0;k0;k--){var z=T[k-1]*R;_(-z,k,o)}}}function w(C){var A=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(o-1)),M=0;M0?_(T,0,M+1):_(-T,o-M-1,o),C-=T,C<=0)return}return u}function Gbe(e,t,r,n){return bj(e,"x","width",t,r,n)}function _j(e,t,r,n){return bj(e,"y","height",t,r,n)}function wj(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),it(n,u,r,l)}else if(n.attr(u),!Xf(n).valueAnimation){var f=Ee(n.style.opacity,1);n.style.opacity=0,Lt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};em(h,u,tm),em(h,n.states.select,tm)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};em(p,u,tm),em(p,n.states.emphasis,tm)}cW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Ube(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const qbe=jbe;var p_=Je();function Ybe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=p_(r).labelManager;i||(i=p_(r).labelManager=new qbe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=p_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var v_=Math.sin,g_=Math.cos,Cj=Math.PI,vl=Math.PI*2,Xbe=180/Cj,Zbe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=is(f-vl)||(c?u>=vl:-u>=vl),h=u>0?u%vl:u%vl+vl,p=!1;d?p=!0:is(f)?p=!1:p=h>=Cj==!!c;var v=t+n*g_(o),g=r+i*v_(o);this._start&&this._add("M",v,g);var m=Math.round(a*Xbe);if(d){var y=1/this._p,x=(c?1:-1)*(vl-y);this._add("A",n,i,m,1,+c,t+n*g_(o+x),r+i*v_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*g_(s),_=r+i*v_(s);this._add("A",n,i,m,+p,+c,S,_)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function a_e(e){return""}function rI(e,t){t=t||{};var r=t.newline?` -`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return i_e(o,s)+(o!=="style"?yn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+a_e(o)}return n(e)}function o_e(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(qe(e),function(l){return l+i+Z(qe(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(qe(t),function(l){return"@keyframes "+l+i+Z(qe(t[l]),function(u){return u+i+Z(qe(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function tA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function NN(e,t,r,n){return yr("svg","root",{width:e,height:t,xmlns:Aj,"xmlns:xlink":Mj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var zN={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"},Cl="transform-origin";function s_e(e,t,r){var n=q({},e.shape);q(n,t),e.buildPath(r,n);var i=new Tj;return i.reset(HH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function l_e(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Cl]=r+"px "+n+"px")}var u_e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ij(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function c_e(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=tA(r.zrId);u.animation=!0,Gx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=qe(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=Ij(i,r);return a.replace(o,s)}}function BN(e){return oe(e)?zN[e]?"cubic-bezier("+zN[e]+")":nk(e)?e:"":""}function Gx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof Sk){var s=c_e(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ee=Ij(w,r);return ee+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Yp=Math.round;function Pj(e){return e&&oe(e.src)}function Dj(e){return e&&ye(e.toDataURL)}function nI(e,t,r,n){t_e(function(i,a){var o=i==="fill"||i==="stroke";o&&GH(a)?Lj(t,e,i,n):o&&ik(a)?Ej(r,e,i,n):e[i]=a},t,r,!1),m_e(r,e,n)}function FN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function f_e(e){return is(e[4])&&is(e[5])}function iI(e,t,r){if(t&&!(f_e(t)&&FN(t))){var n=r?10:1e4;e.transform=FN(t)?"translate("+Yp(t[4]*n)/n+" "+Yp(t[5]*n)/n+")":age(t)}}function $N(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";un(d,g),un(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var k=T.elm,I=d||M.width,P=h||M.height;T.tag==="pattern"&&(u?(P=1,I/=a.width):c&&(I=1,P/=a.height)),T.attrs.width=I,T.attrs.height=P,k&&(k.setAttribute("width",I),k.setAttribute("height",P))}},y=fk(p,null,e,function(T){l||m(b,T),m(f,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=yr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=Ce(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var _=WH(i);_&&(o.patternTransform=_);var b=yr("pattern","",o,[f]),w=rI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=yr("pattern",A,o,[f])),t[r]=px(A)}}function y_e(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=yr("clipPath",a,o,[Rj(e,r)])}t["clip-path"]=px(a)}function HN(e){return document.createTextNode(e)}function Ll(e,t,r){e.insertBefore(t,r)}function WN(e,t){e.removeChild(t)}function UN(e,t){e.appendChild(t)}function Oj(e){return e.parentNode}function Nj(e){return e.nextSibling}function m_(e,t){e.textContent=t}var jN=58,x_e=120,S_e=yr("","");function rA(e){return e===void 0}function ca(e){return e!==void 0}function b_e(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function vh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Xp(e){var t,r=e.children,n=e.tag;if(ca(n)){var i=e.elm=kj(n);if(aI(S_e,e),Y(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,zj(e,p,r,i,l)):P0(e,t,n,a))}function Tc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(aI(e,t),rA(t.text)?ca(n)&&ca(i)?n!==i&&__e(r,n,i):ca(i)?(ca(e.text)&&m_(r,""),zj(r,null,i,0,i.length-1)):ca(n)?P0(r,n,0,n.length-1):ca(e.text)&&m_(r,""):e.text!==t.text&&(ca(n)&&P0(r,n,0,n.length-1),m_(r,t.text)))}function w_e(e,t){if(vh(e,t))Tc(e,t);else{var r=e.elm,n=Oj(r);Xp(t),n!==null&&(Ll(n,t.elm,Nj(r)),P0(n,[e],0,0))}return t}var C_e=0,T_e=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=qN(),this.configLayer=qN(),this.storage=r,this._opts=n=q({},n),this.root=t,this._id="zr"+C_e++,this._oldVNode=NN(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=kj("svg");aI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",w_e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return GN(t,tA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=tA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=A_e(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=yr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(qe(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(yr("defs","defs",{},u)),t.animation){var c=o_e(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=yr("style","stl",{},[],c);o.push(f)}}return NN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},rI(this.renderToVNode({animation:Ee(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ee(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m=s)}}for(var f=this.__startIndex;f15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var T=h.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?rm:0),this._needsManuallyCompositing),c.__builtin__||Z2("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Bn&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(zt);const z_e=N_e;function Mf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Cf(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var B_e=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=F_e,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){yo(this.childAt(0))},t.prototype.downplay=function(){xo(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):it(d,h,s,n),Ki(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Lt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=xr(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var _=Bu(r.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var b=r.getItemVisual(n,"style"),w=b.fill;if(s instanceof Fr){var C=s.style;s.useStyle(q({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(q({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),T=this._z2;A!=null?T==null&&(this._z2=s.z2,s.z2+=A):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;Br(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:w,defaultOpacity:b.opacity});function k(R){return M?r.getName(R):Mf(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Ut(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return nd(r.getItemVisual(n,"symbolSize"))},t}(Me);function F_e(e,t){this.parent.drift(e,t)}const Ov=B_e;function x_(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function ZN(e){return e!=null&&!be(e)&&(e={isIgnore:e}),e||{}}function KN(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:xr(t),cursorStyle:t.get("cursor")}}var $_e=function(){function e(t){this.group=new Me,this._SymbolCtor=t||Ov}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=ZN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=KN(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(x_(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!x_(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):it(h,m,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=KN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=ZN(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function $j(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function G_e(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function H_e(e,t,r,n,i,a,o,s){for(var l=G_e(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Fj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(lu(m,y)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var x=m-u,S=y-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],w=t[_*2+1];b===m&&w===y&&g=n||lu(b,w))h=m,p=y;else{T=b-u,M=w-c;var P=m-u,R=b-m,z=y-c,V=w-y,N=void 0,$=void 0;if(s==="x"){N=Math.abs(P),$=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,k=m+L*$*o,I=y}else if(s==="y"){N=Math.abs(z),$=Math.abs(V);var G=M>0?1:-1;h=m,p=y-G*N*o,k=m,I=y+G*$*o}else N=Math.sqrt(P*P+z*z),$=Math.sqrt(R*R+V*V),A=$/($+N),h=m-T*o*(1-A),p=y-M*o*(1-A),k=m+T*o*A,I=y+M*o*A,k=Fo(k,$o(b,m)),I=Fo(I,$o(w,y)),k=$o(k,Fo(b,m)),I=$o(I,Fo(w,y)),T=k-m,M=I-y,h=m-T*N/$,p=y-M*N/$,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,k=m+T*$/N,I=y+M*$/N}e.bezierCurveTo(f,d,h,p,m,y),f=k,d=I}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Vj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),W_e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&lu(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var _=u?n0(s,h,v,m,r,c):n0(l,p,g,y,r,c);if(_>0)for(var b=0;b<_;b++){var w=c[b];if(w<=1&&w>=0){var S=u?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),U_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Vj),Gj=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new U_e},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&lu(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function Y_e(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=q_e(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";D(d,function(x){x.offset=(x.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new Av(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function X_e(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Z_e(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Z_e(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function K_e(e,t){return isNaN(e)||isNaN(t)}function Q_e(e){for(var t=e.length/2;t>0&&K_e(e[t*2-2],e[t*2-1]);t--);return t-1}function rz(e,t){return[e[t*2],e[t*2+1]]}function J_e(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Uj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}ke(v).seriesIndex=r.seriesIndex,Ut(v,V,N,$);var G=tz(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(Se(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=tz(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),ke(g).seriesIndex=r.seriesIndex,Ut(g,V,N,$)}var X=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Su(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Ov(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Su(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Tt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;f0(this._polyline,r),n&&f0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new W_e({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Gj({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ye(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ye(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var S=i,_=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,x=-_[1]/180*Math.PI):(m=S.r0,y=S.r,x=_[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,x=h.x):(m=b.y+b.height,y=b.y,x=h.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=ye(f)?f(p):c*w+d,A=v.getSymbolPath(),T=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Uj(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Q_e(l);c>=0&&(Br(s,xr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Bj(o,h):Mf(o,f)},enableTextSetter:!0},ewe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,S=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?v:0)*(y?-1:1),b=(m?0:-v)*(y?-1:1),w=m?"x":"y",C=J_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var k=rz(f,A[0]);u.attr({x:k[0]+_,y:k[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var k=c.getPointOn(S,w);k&&u.attr({x:k[0]+_,y:k[1]+b});var I=d.getRawValue(A[0]),P=d.getRawValue(A[1]);o&&(M=f6(i,p,I,P,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,k=rz(f,R);o&&(M=d.getRawValue(R)),u.attr({x:k[0]+_,y:k[1]+b})}if(o){var z=Xf(u);typeof z.setLabelText=="function"&&z.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=H_e(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),ez(h,v)>3e3||c&&ez(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=d.status,S=0;St&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;oe(a)?p=nwe[a]:ye(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,iwe))}}}}}function awe(e){e.registerChartView(rwe),e.registerSeriesModel(z_e),e.registerLayout(zv("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,jj("line"))}var qj=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Ao(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,x=1,S=0;Sv){y=(_+m)/2;break}S===1&&(x=b-p[0].tickValue)}y==null&&(m?m&&(y=p[p.length-1].coord):y=p[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(zt);zt.registerClass(qj);const D0=qj;var owe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Ao(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Us(D0.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}(D0);const swe=owe;var lwe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),uwe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new lwe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Fp(a,r,ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Tt),nz={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=b_(t.x,e.x),s=__(t.x+t.width,i),l=b_(t.y,e.y),u=__(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=__(t.r,e.r),a=b_(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},iz={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:q({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?R0:Pn,c=new u({shape:n,z2:1});c.name="item";var f=Yj(i);if(c.calculateTextPosition=cwe(f,{isRoundCap:u===R0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function pwe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function az(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function oz(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function mwe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Yj(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function lz(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Zl(n.getModel("itemStyle"),c,!0);q(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=xr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Mf(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,fwe(e,g==="outside"?h:g,Yj(o),n.get(["label","rotate"]))}uW(v,p,a.getRawValue(r),function(y){return Bj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),mwe(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function ywe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var xwe=function(){function e(){}return e}(),uz=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new xwe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Swe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Xj(e,t,r){if($u(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function bwe(e,t,r){var n=e.type==="polar"?Pn:Qe;return new n({shape:Xj(t,r,e),silent:!0,z2:0})}const _we=hwe;function wwe(e){e.registerChartView(_we),e.registerSeriesModel(swe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(JU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ej("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,jj("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var om=Math.PI*2,dz=Math.PI/180;function Zj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Kj(e,t){var r=Zj(e,t),n=e.get("center"),i=e.get("radius");Y(i)||(i=[0,i]);var a=ne(r.width,t.getWidth()),o=ne(r.height,t.getHeight()),s=Math.min(a,o),l=ne(i[0],s/2),u=ne(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Y(n)||(n=[n,n]),c=ne(n[0],a)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Cwe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Zj(n,r),s=Kj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*dz,h=n.get("minAngle")*dz,p=0;i.each(a,function(T){!isNaN(T)&&p++});var v=i.getSum(a),g=Math.PI/(v||p)*2,m=n.get("clockwise"),y=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var _=om,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var k;if(isNaN(T)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?k=v===0&&x?g:T*g:k=om/p,kr?m:g,_=Math.abs(x.label.y-r);if(_>=S.maxY){var b=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function w_(e){return e.position==="center"}function Mwe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*Twe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),T=w.getTextGuideLine(),M=t.getItemModel(b),k=M.getModel("label"),I=k.get("position")||M.get(["emphasis","label","position"]),P=k.get("distanceToLabelLine"),R=k.get("alignTo"),z=ne(k.get("edgeDistance"),u),V=k.get("bleedMargin"),N=M.getModel("labelLine"),$=N.get("length");$=ne($,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var Pe=Math.PI,Ye=0,He=k.get("rotate");if(nt(He))Ye=He*(Pe/180);else if(I==="center")Ye=0;else if(He==="radial"||He===!0){var at=U<0?-G+Pe:-G;Ye=at}else if(He==="tangential"&&I!=="outside"&&I!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=Pe*2+ot);var kt=B>0;kt&&(ot=Pe+ot),Ye=ot-Pe}if(a=!!Ye,A.x=j,A.y=X,A.rotation=Ye,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var qt=A.states.select;qt&&(qt.x+=A.x,qt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var It=(A.style.margin||0)+2.1;Be.y-=It/2,Be.height+=It,r.push({label:A,labelLine:T,position:I,len:$,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:P,labelAlignTo:R,edgeDistance:z,bleedMargin:V,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&Awe(r,n,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Tt);const Pwe=Iwe;function id(e,t,r){t=Y(t)&&{coordDimensions:t}||q({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Rv(n,t).dimensions,a=new ln(i,e);return a.initData(n,r),a}var Dwe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const Fv=Dwe;var Rwe=Je(),Lwe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Fv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return id(this,{coordDimensions:["value"],encodeDefaulter:Ie(Ik,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=Rwe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Vge(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){xu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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}(zt);const Ewe=Lwe;function Owe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function Nwe(e){e.registerChartView(Pwe),e.registerSeriesModel(Ewe),mU("pie",e.registerAction),e.registerLayout(Ie(Cwe,"pie")),e.registerProcessor(Bv("pie")),e.registerProcessor(Owe("pie"))}var zwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Ao(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(zt);const Bwe=zwe;var Jj=4,Fwe=function(){function e(){}return e}(),$we=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Fwe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Gwe=Vwe;var Hwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=zv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Gwe:new Nv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Tt);const Wwe=Hwe;var Uwe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(et);const jwe=Uwe;var iA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(iA,Ev);var e8={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},qwe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},e8),oI=Oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},e8),Ywe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},oI),Xwe=Se({logBase:10},oI);const t8={category:qwe,value:oI,time:Ywe,log:Xwe};var Zwe={value:1,category:1,time:1,log:1};function kf(e,t,r,n){D(Zwe,function(i,a){var o=Oe(Oe({},t8[a],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Gp(this),h=d?Qf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=pz(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=KT.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",pz)}function pz(e){return e.type||(e.data?"category":"value")}var Kwe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const Qwe=Kwe;var aA=["x","y"];function vz(e){return e.type==="interval"||e.type==="time"}var Jwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=aA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!vz(r)||!vz(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Wf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Er(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Er(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ne(i,a,o,s)},t}(Qwe),eCe=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ji);const tCe=eCe;function oA(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Cr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function gz(e){return e.get("coordinateSystem")==="cartesian2d"}function mz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var C_=Math.log;function r8(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=sj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=C_(e.base);u=[C_(u[0])/d,C_(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=c_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=c_(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=Xt(g-y),v<0&&u[0]>=0?(v=0,g=Xt(y)):g>0&&u[1]<=0&&(g=0,v=-Xt(y))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var rCe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=aA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=qe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;QT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Af(v,p),QT(v)&&(s=h))}c.length&&(s||(s=c.pop(),Af(s.scale,s.model)),D(c,function(g){r8(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){yz(n,"y",o,a)}),D(n.y,function(o){yz(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=gbe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),nCe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}be(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):u0(i-as)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),Sz={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Er(s,s,o),Er(l,l,o));var c=q({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});wf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);oe(d)&&(d=[d,d]),(oe(h)||nt(h))&&(h=[h,h]);var p=Bu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var x=sr(d[y],-v/2,-g/2,v,g,c.stroke,!0),S=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+S*Math.cos(e.rotation),y:_[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=sCe(r,n,t,e),a=uCe(r,n,t,e);if(oCe(t,a,i),lCe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Sj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));wj(o)}},axisName:function(e,t,r,n){var i=Cr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,_z(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;_z(a)?d=uu.innerTextLayout(e.rotation,h??e.rotation,o):(d=aCe(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Cr(e.nameTruncateMaxWidth,g.maxWidth,p),x=new rt({x:f[0],y:f[1],rotation:d.rotation,silent:uu.isLabelSilent(t),style:_t(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Yf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=uu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ke(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function aCe(e,t,r,n){var i=t6(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return u0(i-as/2)?(o=l?"bottom":"top",a="center"):u0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function oCe(e,t,r){if(!lj(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Jn(a),Jn(u)):bz(a,o)&&(n?(Jn(o),Jn(c)):(Jn(a),Jn(u))),i===!1?(Jn(s),Jn(f)):bz(l,s)&&(i?(Jn(l),Jn(d)):(Jn(s),Jn(f)))}}function Jn(e){e&&(e.ignore=!0)}function bz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=hx([]);return Nu(i,i,-e.rotation),r.applyTransform(ao([],i,e.getLocalTransform())),n.applyTransform(ao([],i,t.getLocalTransform())),r.intersect(n)}}function _z(e){return e==="middle"||e==="center"}function n8(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function vCe(e){var t=sI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=sA(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Se({color:p.color},l));var g=Oe(Ce(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(oe(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ye(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Ev.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},Vd.axisLine),axisLabel:sm(Vd.axisLabel,!1),axisTick:sm(Vd.axisTick,!1),splitLine:sm(Vd.splitLine,!0),splitArea:sm(Vd.splitArea,!0),indicator:[]},t}(et);const DCe=PCe;var RCe=["axisLine","axisTickLabel","axisName"],LCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new bo(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(RCe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Y(d)?d:[d],v=Y(h)?h:[h],g=[],m=[];function y(R,z,V){var N=V%z.length;return R[N]=R[N]||[],N}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,_=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;M_(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);M_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!kz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;M_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ai);function M_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(go(n.event),u8(e,t,r,n,i))}function u8(e,t,r,n,i){i.isAvailableBehavior=ue(ay,null,r,n),e.trigger(t,i)}function ay(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const $v=HCe;function uI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function cI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var WCe={axisPointer:1,tooltip:1,brush:1};function Wx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!WCe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function c8(e){if(oe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var k_,L0={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"},Iz=qe(L0),E0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Pz=qe(E0),UCe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=c8(t);this._defsUsePending=[];var i=new Me;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ln(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;YCe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Ux(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=d8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Me,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Qe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=k_[s];if(c&&ce(k_,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=Dz[s];if(h&&ce(Dz,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Np({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),jCe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){k_={g:function(t,r){var n=new Me;return ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Va;return ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Tr;return ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new yk;return ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Ez(n));var a=new Dn({shape:{points:i||[]},silent:!0});return ei(r,a),Ln(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Ez(n));var a=new Rn({shape:{points:i||[]},silent:!0});return ei(r,a),Ln(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return ei(r,n),Ln(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Me;return ei(r,s),Ln(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Me;return ei(r,s),Ln(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=V6(n);return ei(r,i),Ln(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Dz={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Av(t,r,n,i);return Rz(e,a),Lz(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new eW(t,r,n);return Rz(e,i),Lz(e,i),i}};function Rz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Lz(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};f8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function ei(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Se(t.__inheritedStyle,e.__inheritedStyle))}function Ez(e){for(var t=Ux(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Ux(o);switch(i=i||_i(),s){case"translate":za(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":rk(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Nu(i,i,-parseFloat(l[0])*I_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*I_);ao(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*I_);ao(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var Nz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function f8(e,t,r){var n=e.getAttribute("style");if(n){Nz.lastIndex=0;for(var i;(i=Nz.exec(n))!=null;){var a=i[1],o=ce(L0,a)?L0[a]:null;o&&(t[o]=i[2]);var s=ce(E0,a)?E0[a]:null;s&&(r[s]=i[2])}}}function QCe(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ge(),n=ge(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Br(t,xr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(h8(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Vz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Gz(e,t,r,n,i){e.data||Yf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Hz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&mye(t,i,r),o}function Wz(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(zt);const STe=xTe;function bTe(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var _=e.getBoxLayoutParams();_.aspect=g,S=hr(_,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function ATe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var MTe=function(){function e(){this.dimensions=v8}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Yz(l+s,l,q({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Yz(s,s,q({nameMap:K2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Xz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,ATe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ge(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function NTe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){FTe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=$Te(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function zTe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Kz(e){return arguments.length?e:HTe}function gh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function BTe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function FTe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function $Te(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=P_(s),a=D_(a),s&&a;){i=P_(i),o=D_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(GTe(VTe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!P_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!D_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function P_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function D_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function VTe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function GTe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function HTe(e,t){return e.parentNode===t.parentNode?1:2}var WTe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),UTe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new WTe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ne(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;py.x,_||(S=S-Math.PI));var w=_?"left":"right",C=s.getModel("label"),A=C.get("rotate"),T=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-S:T,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),I=k==="relative"?t0(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;I&&(ke(r).focus=I),qTe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Tv||f0(r.__edge,P)}})}function qTe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new Cx({shape:cA(c,f,d,i,i)})),it(v,{shape:cA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;yr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(oe(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function _8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function vI(e,t){var r=_8(e);return ze(r,t)>=0}function jx(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var iAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new wt(i,this,this.ecModel),o=pI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Sr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=jx(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(zt);const aAe=iAe;function oAe(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function sAe(e,t){e.eachSeriesByType("tree",function(r){lAe(r,t)})}function lAe(e,t){var r=BTe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=Kz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Kz());var s=e.getData().tree.root,l=s.children[0];if(l){OTe(s),oAe(l,NTe,o),s.hierNode.modifier=-l.hierNode.prelim,Hd(l,zTe);var u=l,c=l,f=l;Hd(l,function(x){var S=x.getLayout().x;Sc.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Hd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=gh(g,m);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Hd(l,function(x){m=(x.getLayout().x+h)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Hd(l,function(x){g=(x.getLayout().x+h)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function uAe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");q(s,o)})})}function cAe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=dI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function fAe(e){e.registerChartView(YTe),e.registerSeriesModel(aAe),e.registerLayout(sAe),e.registerVisual(uAe),cAe(e)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function dAe(e){for(var t=0;t1;)a=a.parentNode;var o=BT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var hAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};C8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=pAe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=pI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Sr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=jx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},q(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ge(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){w8(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,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}(zt);function C8(e){var t=0;D(e.children,function(n){C8(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function pAe(e,t){var r=ht(t.get("color")),n=ht(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(e,function(s){var l=new wt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}const vAe=hAe;var gAe=8,nB=8,R_=5,mAe=function(){function e(t){this.group=new Me,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),Lx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+gAe*2,r.emptyItemWidth);r.totalWidth+=s+nB,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=A0e(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,y=g.width,x=g.text;d>f.width&&(d-=y-u,y=u,x=null);var S=new Dn({shape:{points:yAe(l,0,y,c,v===h.length-1,v===0)},style:Se(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:jf*1e4,onclick:Ie(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),xAe(S,t,m),l+=y+nB}},e.prototype.remove=function(){this.group.removeAll()},e}();function yAe(e,t,r,n,i,a){var o=[[i?e:e-R_,t],[e+r,t],[e+r,t+n],[i?e:e-R_,t+n]];return!a&&o.splice(2,0,[e+r+R_,t+n/2]),!i&&o.push([e,t+n/2]),o}function xAe(e,t,r){ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&jx(r,t)}}const SAe=mAe;var bAe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;iaB||Math.abs(r.dy)>aB)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ne(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=_i();za(u,u,[-n,-i]),rk(u,u,[r.scale,r.scale]),za(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&m0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new SAe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(vI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Wd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Tt);function Wd(){return{nodeGroup:[],background:[],content:[]}}function MAe(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,_=x&&x.length,b=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,M=j("nodeGroup",fA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),O0(M).nodeWidth=h,O0(M).nodeHeight=p,c.isAboveViewRoot)return M;var k=j("background",iB,u,CAe);k&&$(M,k,_&&c.upperLabelHeight);var I=d.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),z=I.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)Bp(M)&&Ul(M,!1),k&&(Ul(k,!z),f.setItemGraphicEl(o.dataIndex,k),PT(k,V,R));else{var N=j("content",iB,u,TAe);N&&L(M,N),k.disableMorphing=!0,k&&Bp(k)&&Ul(k,!1),Ul(M,!z),f.setItemGraphicEl(o.dataIndex,M),PT(M,V,R)}return M;function $(ee,te,ie){var re=ke(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:p,r:T}),g)G(te);else{te.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,fe=lB(b);fe.fill=J;var de=Al(w);de.fill=w.get("borderColor");var Pe=Al(C);Pe.fill=C.get("borderColor");var Ye=Al(A);if(Ye.fill=A.get("borderColor"),ie){var He=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:He,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=Pe,te.ensureState("select").style=Ye,_u(te)}ee.add(te)}function L(ee,te){var ie=ke(te);ie.dataIndex=o.dataIndex,ie.seriesIndex=e.seriesIndex;var re=Math.max(h-2*v,0),Q=Math.max(p-2*v,0);if(te.culling=!0,te.setShape({x:v,y:v,width:re,height:Q,r:T}),g)G(te);else{te.invisible=!1;var J=o.getVisual("style"),fe=J.fill,de=lB(b);de.fill=fe,de.decal=J.decal;var Pe=Al(w),Ye=Al(C),He=Al(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=Pe,te.ensureState("blur").style=Ye,te.ensureState("select").style=He,_u(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?sB:oB),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,xr(d,re?sB:oB),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var Pe=de.style,Ye=J2(Pe.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-Ye[1]-Ye[3],0),ot=Math.max((re?re.height:ee.shape.height)-Ye[0]-Ye[2],0);(Pe.width!==at||Pe.height!==ot)&&de.setStyle({width:at,height:ot})},Pe.truncateMinChar=2,Pe.lineOverflow="truncate",B(Pe,re,c);var He=de.getState("emphasis");B(He?He.style:null,re,c)}}function B(ee,te,ie){var re=ee?ee.text:null;if(!te&&ie.isLeafRoot&&re!=null){var Q=e.get("drillDownIcon",!0);ee.text=Q?Q+" "+re:re}}function j(ee,te,ie,re){var Q=y!=null&&r[ee][y],J=i[ee];return Q?(r[ee][y]=null,X(J,Q)):g||(Q=new te,Q instanceof wi&&(Q.z2=kAe(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof fA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=q({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Me;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function kAe(e,t){return e*wAe+t}const IAe=AAe;var Qp=D,PAe=be,N0=-1,gI=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Ce(t);this.type=n,this.mappingMethod=r,this._normalizeData=LAe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(L_(i),DAe(i)):r==="category"?i.categories?RAe(i):L_(i,!0):(un(r!=="linear"||i.dataExtent),L_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return qe(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){be(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Y(t)?[]:be(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Qp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(PAe(t)){var r=[];Qp(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function L_(e,t){var r=e.visual,n=[];be(r)?Qp(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),T8(e,n)}function um(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:dA([0,1])}}function uB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Ud(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function mh(e){var t=this.option.visual;return t[this.option.loop&&e!==N0?e%t.length:e]}function Ml(){return this.option.visual[0]}function dA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:mh,piecewise:function(t,r){var n=hA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Ml}}function hA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=gI.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function T8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Hn(r);return n||[0,0,0,1]})),t}var LAe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=gI.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??N0},fixed:rr};function cm(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=FAe(i,l,v,g,p,n);M8(v,m,r,n)}})}}}function NAe(e,t,r){var n=q({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function cB(e){var t=E_(e,"color");if(t){var r=E_(e,"colorAlpha"),n=E_(e,"colorSaturation");return n&&(t=Vh(t,null,null,n)),r&&(t=i0(t,r)),t}}function zAe(e,t){return t!=null?Vh(t,null,null,e):null}function E_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function BAe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=O_(t,"color")||i.color!=null&&i.color!=="none"&&(O_(t,"colorAlpha")||O_(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Or(f);return A8(d).drColorMappingBy=c,d}}}function O_(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function FAe(e,t,r,n,i,a){var o=q({},t);if(i){var s=i.type,l=s==="color"&&A8(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Jp=Math.max,z0=Math.min,fB=Cr,mI=D,k8=["itemStyle","borderWidth"],$Ae=["itemStyle","gapWidth"],VAe=["upperLabel","show"],GAe=["upperLabel","height"];const HAe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(fB(s.width,l[0]),i),c=ne(fB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Kp(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=_8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?XAe(e,h,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(S),I8(v,x,!1,0),S=v.getLayout(),mI(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(q({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(ZAe(s,p,h),!0),e.setLayoutInfo(s),P8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function I8(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(k8),u=s.get($Ae)/2,c=D8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Jp(i-2*d,0),a=Jp(a-d-h,0);var p=i*a,v=WAe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=z0(i,a),y=1/0,x=[];x.area=0;for(var S=0,_=v.length;S<_;){var b=v[S];x.push(b),x.area+=b.getLayout().area;var w=YAe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,dB(x,m,g,u,!1),m=z0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&dB(x,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function YAe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Jp(u*n/l,l/(u*i)):1/0}function dB(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;fCE&&(u=CE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*w+c[0],a.y=c[1]+A,p=S[0]<0?"right":"left",a.originX=-m*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,p="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*w+f[0],a.y=f[1]+A,p=S[0]>=0?"right":"left",a.originX=m*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Me);const bI=vMe;var gMe=function(){function e(t){this.group=new Me,this._LineCtor=t||bI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=yB(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!mMe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function yB(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:xr(t)}}function xB(e){return isNaN(e[0])||isNaN(e[1])}function $_(e){return e&&!xB(e[0])&&!xB(e[1])}const _I=gMe;var V_=[],G_=[],H_=[],hc=wr,W_=tu,SB=Math.abs;function bB(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){V_[0]=hc(n[0],i[0],a[0],c),V_[1]=hc(n[1],i[1],a[1],c);var f=SB(W_(V_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function U_(e,t){var r=[],n=Rp,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[io(u[0]),io(u[1])],u[2]&&u.__original.push(io(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=xh(s.node1),p=bB(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=xh(s.node2),p=bB(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Hl(o,a[1],a[0]),Hf(o,o),c&&c!=="none"){var h=xh(s.node1);rT(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=xh(s.node2);rT(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function _B(e){return e.type==="view"}var yMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new Nv,a=new _I,o=this.group;this._controller=new $v(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(_B(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}U_(r.getGraph(),yh(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[_.x,_.y]);break;case"circular":f.setItemLayout(S,[_.x,_.y]),x.setLayout({fixed:!0},!0),SI(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),xI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),_.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ke(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(ke(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){O8(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Wx(u,i,r)}),!_B(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){uI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){cI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),U_(r.getGraph(),yh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=yh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){U_(r.getGraph(),yh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Tt);const xMe=yMe;function pc(e){return"_EC_"+e}var SMe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[pc(t)]){var i=new kl(t,r);return i.hostGraph=this,this.nodes.push(i),n[pc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[pc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof kl||(t=i[pc(t)]),r instanceof kl||(r=i[pc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new z8(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof kl&&(t=t.id),r instanceof kl&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof kl||(r=this._nodesMap[pc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}lr(kl,B8("hostGraph","data"));lr(z8,B8("hostGraph","edgeData"));const bMe=SMe;function F8(e,t,r,n,i){for(var a=new bMe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Pv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Rv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new ln(m,r),p.initData(e)}var y=new ln(["value"],r);return y.initData(l,s),i&&i(p,y),S8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var _Me=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Fv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),xu(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){nMe(this);var s=F8(a,i,this,!0,l);return D(s.edges,function(u){iMe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=wt.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Sr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=sU({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Z(this.option.categories||[],function(i){return i.value!=null?i:q({value:0},i)}),n=new ln(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const wMe=_Me;var CMe={type:"graphRoam",event:"graphRoam",update:"none"};function TMe(e){e.registerChartView(xMe),e.registerSeriesModel(wMe),e.registerProcessor(QAe),e.registerVisual(JAe),e.registerVisual(eMe),e.registerLayout(aMe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,sMe),e.registerLayout(uMe),e.registerCoordinateSystem("graphView",{dimensions:Vv.dimensions,create:fMe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(CMe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=dI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var AMe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),MMe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new AMe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}($e);const kMe=MMe;function IMe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=ne(r[0],t.getWidth()),s=ne(r[1],t.getHeight()),l=ne(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function dm(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):ye(t)&&(r=t(e))),r}var PMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=IMe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?R0:Pn,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];m6(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,S=[],_=0;p&&_=A&&(T===0?0:a[T-1][0])Math.PI/2&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:$,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:$,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var V=y.get("distance");V=V?V+c:c;for(var X=0;X<=_;X++){P=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:P*(p-V)+d,y1:R*(p-V)+h,x2:P*(p-w-V)+d,y2:R*(p-w-V)+h},silent:!0,style:k});k.stroke==="auto"&&W.setStyle({stroke:a((z+X/_)/S)}),f.add(W),C+=T}C-=T}else C+=A}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),x=y.mapDimension("value"),S=+r.get("min"),_=+r.get("max"),b=[S,_],w=[s,l];function C(T,M){var k=y.getItemModel(T),I=k.getModel("pointer"),P=ne(I.get("width"),o.r),R=ne(I.get("length"),o.r),z=r.get(["pointer","icon"]),V=I.get("offsetCenter"),N=ne(V[0],o.r),$=ne(V[1],o.r),L=I.get("keepAspect"),G;return z?G=sr(z,N-P/2,$-R,P,R,null,L):G=new kMe({shape:{angle:-Math.PI/2,width:P,r:R,x:N,y:$}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var k=g.get("roundCap"),I=k?R0:Pn,P=g.get("overlap"),R=P?g.get("width"):c/y.count(),z=P?o.r-R:o.r-(T+1)*R,V=P?o.r:o.r-T*R,N=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:V}});return P&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var k=C(T,s);Lt(k,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(k),y.setItemGraphicEl(T,k)}if(m){var I=A(T,s),P=g.get("clip");Lt(I,{shape:{endAngle:ct(M,b,w,P)}},r),f.add(I),MT(r.seriesIndex,y.dataType,T,I),p[T]=I}}).update(function(T,M){var k=y.get(x,T);if(v){var I=d.getItemGraphicEl(M),P=I?I.rotation:s,R=C(T,P);R.rotation=P,it(R,{rotation:-((isNaN(+k)?w[0]:ct(k,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],V=z?z.shape.endAngle:s,N=A(T,V),$=g.get("clip");it(N,{shape:{endAngle:ct(k,b,w,$)}},r),f.add(N),MT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),k=M.getModel("emphasis"),I=k.get("focus"),P=k.get("blurScope"),R=k.get("disabled");if(v){var z=y.getItemGraphicEl(T),V=y.getItemVisual(T,"style"),N=V.fill;if(z instanceof Fr){var $=z.style;z.useStyle(q({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},V))}else z.useStyle(V),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,I,P,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,I,P,R)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=sr(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Me,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new rt({silent:!0}),p[m]=new rt({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),S=new Me,_=a(ct(x,[c,f],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+ne(w[0],o.r),A=o.cy+ne(w[1],o.r),T=h[m];T.attr({z2:g?0:2,style:_t(b,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),S.add(T)}var M=y.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),I=o.cx+ne(k[0],o.r),P=o.cy+ne(k[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),V=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,T=p[m],N=M.get("formatter");T.attr({z2:g?0:2,style:_t(M,{x:I,y:P,text:dm(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:V})}),uW(T,{normal:M},x,function(L){return dm(L,N)}),v&&cW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return dm(X?X.interpolatedValue:x,N)}}),S.add(T)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Tt);const DMe=PMe;var RMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return id(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}(zt);const LMe=RMe;function EMe(e){e.registerChartView(DMe),e.registerSeriesModel(LMe)}var OMe=["itemStyle","opacity"],NMe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Rn,s=new rt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(OMe);c=c??1,i||Ki(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Lt(a,{style:{opacity:c}},o,n)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Br(o,xr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),eI(i,tI(l),{stroke:d})},t}(Dn),zMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new NMe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Fp(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Tt);const BMe=zMe;var FMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Fv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return id(this,{coordDimensions:["value"],encodeDefaulter:Ie(Ik,this)})},t.prototype._defaultLabelLine=function(r){xu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const $Me=FMe;function VMe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function GMe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();os2e)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!q_(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function q_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const c2e=l2e;var f2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(et);const d2e=f2e;var h2e=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ji);const p2e=h2e;function Gu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=vc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=vc(s,[0,o]),i=a=vc(s,[i,a]),n=0}t[0]=vc(t[0],r),t[1]=vc(t[1],r);var l=Y_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=vc(t[n],c);var f;return f=Y_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function Y_(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function vc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var X_=D,V8=Math.min,G8=Math.max,TB=Math.floor,v2e=Math.ceil,AB=Xt,g2e=Math.PI,m2e=function(){function e(t,r,n){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;X_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new p2e(o,Vx(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();X_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Af(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=hm(t.get("axisExpandWidth"),l),f=hm(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=hm(h[1]-h[0],l),h[1]=h[0]+p;else{p=hm(c*(f-1),l);var v=t.get("axisExpandCenter")||TB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[TB(AB(h[0]/c,1))+1,v2e(AB(h[1]/c,1))-1],y=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),X_(n,function(o,s){var l=(i.axisExpandable?x2e:y2e)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:g2e/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=_i();Nu(h,h,d),za(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Gu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[G8(0,p-h/2)],i[1]=V8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function hm(e,t){return V8(G8(e,t[0]),t[1])}function y2e(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function x2e(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)mi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aA2e}function X8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Z8(e,t,r,n){var i=new Me;return i.add(new Qe({name:"main",style:AI(r),silent:!0,draggable:!0,cursor:"move",drift:Ie(PB,e,t,i,["n","s","w","e"]),ondragend:Ie(Tu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ie(PB,e,t,i,a),ondragend:Ie(Tu,t,{isEnd:!0})}))}),i}function K8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=If(i,M2e),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,m=v+i;qa(e,t,"main",o,s,p,v),n.transformable&&(qa(e,t,"w",l,u,a,m),qa(e,t,"e",d,u,a,m),qa(e,t,"n",l,u,g,a),qa(e,t,"s",l,h,g,a),qa(e,t,"nw",l,u,a,a),qa(e,t,"ne",d,u,a,a),qa(e,t,"sw",l,h,a,a),qa(e,t,"se",d,h,a,a))}function yA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(AI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?xA(e,a[0]):E2e(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?I2e[s]+"-resize":null})})}function qa(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(N2e(MI(e,t,[[n,i],[n+a,i+o]])))}function AI(e){return Se({strokeNoScale:!0},e.brushStyle)}function Q8(e,t,r,n){var i=[tv(e,r),tv(t,n)],a=[If(e,r),If(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function L2e(e){return ou(e.group)}function xA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Ax(r[t],L2e(e));return n[i]}function E2e(e,t){var r=[xA(e,t[0]),xA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function PB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=J8(t,i,a);D(n,function(u){var c=k2e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(Q8(s[0][0],s[1][0],s[0][1],s[1][1])),wI(t,r),Tu(t,{isEnd:!1})}function O2e(e,t,r,n){var i=t.__brushOption.range,a=J8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),wI(e,t),Tu(e,{isEnd:!1})}function J8(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function MI(e,t,r){var n=Y8(e,t);return n&&n!==Cu?n.clipPath(r,e._transform):Ce(r)}function N2e(e){var t=tv(e[0][0],e[1][0]),r=tv(e[0][1],e[1][1]),n=If(e[0][0],e[1][0]),i=If(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function z2e(e,t,r){if(!(!e._brushType||F2e(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=TI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Yx={lineX:LB(0),lineY:LB(1),rect:{createCover:function(e,t){function r(n){return n}return Z8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=X8(e);return Q8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){K8(e,t,r,n)},updateCommon:yA,contain:bA},polygon:{createCover:function(e,t){var r=new Me;return r.add(new Rn({name:"main",style:AI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Dn({name:"main",draggable:!0,drift:Ie(O2e,e,t),ondragend:Ie(Tu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:MI(e,t,r)})},updateCommon:yA,contain:bA}};function LB(e){return{createCover:function(t,r){return Z8({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=X8(t),n=tv(r[0][e],r[1][e]),i=If(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=Y8(t,r);if(o!==Cu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),K8(t,r,l,i)},updateCommon:yA,contain:bA}}const kI=D2e;function t9(e){return e=II(e),function(t){return aW(t,e)}}function r9(e,t){return e=II(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function n9(e,t,r){var n=II(e);return function(i,a){return n.contain(a[0],a[1])&&!Wx(i,t,r)}}function II(e){return Ne.create(e)}var $2e=["axisLine","axisTickLabel","axisName"],V2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new kI(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!G2e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!r.get("show")){var s=W2e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=q({strokeContainThreshold:c},d),p=new bo(r,h);D($2e,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Mv(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:t9(f),isTargetByCursor:n9(f,s,a),getLinearBrushOtherExtent:r9(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(H2e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(jt);function G2e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function H2e(e){var t=e.axis;return Z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function W2e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const U2e=V2e;var j2e={type:"axisAreaSelect",event:"axisAreaSelected"};function q2e(e){e.registerAction(j2e,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var Y2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function i9(e){e.registerComponentView(c2e),e.registerComponentModel(d2e),e.registerCoordinateSystem("parallel",w2e),e.registerPreprocessor(i2e),e.registerComponentModel(MB),e.registerComponentView(U2e),kf(e,"parallel",MB,Y2e),q2e(e)}function X2e(e){Fe(i9),e.registerChartView(ZMe),e.registerSeriesModel(e2e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,n2e)}var Z2e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),K2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Z2e},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){yo(this)},t.prototype.downplay=function(){xo(this)},t}($e),Q2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new K2e,g=ke(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),S=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),T=A.get("localX"),M=A.get("localY"),k=p.getLayout(),I,P,R,z,V,N,$,L;v.shape.extent=Math.max(1,k.dy),v.shape.orient=h,h==="vertical"?(I=(b!=null?b*u:S.x)+k.sy,P=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+k.ty,z=M!=null?M*c:C.y,V=I,N=P*(1-x)+z*x,$=R,L=P*x+z*(1-x)):(I=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*c:S.y)+k.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+k.ty,V=I*(1-x)+R*x,N=P,$=I*x+R*(1-x),L=z),v.setShape({x1:I,y1:P,x2:R,y2:z,cpx1:V,cpy1:N,cpx2:$,cpy2:L}),v.useStyle(y.getItemStyle()),EB(v.style,h,p);var G=""+m.get("value"),U=xr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.normal.get("formatter"),G),re)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var B=m.getModel("emphasis");zr(v,m,"lineStyle",function(X){var W=X.getItemStyle();return EB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,B.get("blurScope"),B.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),S=new Qe({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Br(S,xr(g),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(b,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),zr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),ke(S).dataType="node";var _=x.get("focus");Ut(S,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(J2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function EB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");oe(n)&&oe(i)&&(e.fill=new Av(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function J2e(e,t,r){var n=new Qe({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Lt(n,{shape:{width:e.width+20}},t,r),n}const eke=Q2e;var tke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new wt(o[l],this,n));if(a&&i){var u=F8(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Sr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return Sr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(zt);const rke=tke;function nke(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=ike(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;oke(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");ake(u,c,n,i,o,s,d,h,p)})}function ike(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ake(e,t,r,n,i,a,o,s,l){ske(e,t,r,i,a,s,l),fke(e,t,a,i,n,o,s),Ske(e,s)}function oke(e){D(e,function(t){var r=bs(t.outEdges,B0),n=bs(t.inEdges,B0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function ske(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var y=0;yf-1?h:f-1;o&&o!=="left"&&lke(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;cke(e,C,a)}function a9(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function lke(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,pke(s,l,o),Z_(s,i,r,n,o),xke(s,l,o),Z_(s,i,r,n,o)}function dke(e,t){var r=[],n=t==="vertical"?"y":"x",i=wT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function hke(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function pke(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,vke,r)/bs(i.outEdges,B0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,gke,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function vke(e,t){return Os(e.node2,t)*e.getValue()}function gke(e,t){return Os(e.node2,t)}function mke(e,t){return Os(e.node1,t)*e.getValue()}function yke(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function B0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(n,function(s){var l=new Or({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function _ke(e){e.registerChartView(eke),e.registerSeriesModel(rke),e.registerLayout(nke),e.registerVisual(bke),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var o9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,_){var b;Y(S)?(b=S.slice(),S.unshift(_)):Y(S.value)?(b=q({},S),b.value=b.value.slice(),S.value.unshift(_)):b=S,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:A0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:A0(v),dimsDef:y.slice()}];return id(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Ie(RW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),s9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(zt);lr(s9,o9,!0);const wke=s9;var Cke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=OB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(Ki(f),l9(d,f,a,u)):f=OB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Tt),Tke=function(){function e(){}return e}(),Ake=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Tke},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();av){var S=[m,x];n.push(S)}}}return{boxData:r,outliers:n}}var Eke={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=Lke(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Oke(e){e.registerSeriesModel(wke),e.registerChartView(kke),e.registerLayout(Ike),e.registerTransform(Eke)}var Nke=["color","borderColor"],zke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Ws(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&NB(u,f))return;var d=K_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),Q_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&NB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Ki(d)):d=K_(h),Q_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),zB(r,this.group);var n=r.get("clip",!0)?Hx(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=K_(s);Q_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){zB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Tt),Bke=function(){function e(){}return e}(),Fke=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Bke},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}($e);function K_(e,t,r){var n=e.ends;return new Fke({shape:{points:r?$ke(n,e):n},z2:100})}function NB(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(Nke);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const Gke=zke;var u9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(zt);lr(u9,o9,!0);const Hke=u9;function Wke(e){!e||!Y(e.series)||D(e.series,function(t){be(t)&&t.type==="k"&&(t.type="candlestick")})}var Uke=["itemStyle","borderColor"],jke=["itemStyle","borderColor0"],qke=["itemStyle","borderColorDoji"],Yke=["itemStyle","color"],Xke=["itemStyle","color0"],Zke={seriesType:"candlestick",plan:td(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?Yke:Xke)}function n(a,o){return o.get(a===0?qke:a>0?Uke:jke)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");q(f,c)}}}}}};const Kke=Zke;var Qke={seriesType:"candlestick",plan:td(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=Jke(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Z(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),S=y.get(u,m),_=y.get(c,m),b=y.get(f,m),w=y.get(d,m),C=Math.min(S,_),A=Math.max(S,_),T=V(C,x),M=V(A,x),k=V(b,x),I=V(w,x),P=[];N(P,M,0),N(P,T,1),P.push(L(I),L(M),L(k),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:BB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:P,brushRect:$(b,w,x)})}function V(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=ey(j[i]+n/2,1,!1),X[i]=ey(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function $(G,U,B){var j=V(G,B),X=V(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=ey(G[i],1),G}}function p(v,g){for(var m=wa(v.count*4),y=0,x,S=[],_=[],b,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var A=w.get(s,b),T=w.get(u,b),M=w.get(c,b),k=w.get(f,b),I=w.get(d,b);if(isNaN(A)||isNaN(k)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=BB(w,b,T,M,c,C),S[i]=A,S[a]=k,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function BB(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function Jke(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ne(Ee(e.get("barMaxWidth"),i),i),o=ne(Ee(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?ne(s,i):Math.max(Math.min(i/2,a),o)}const eIe=Qke;function tIe(e){e.registerChartView(Gke),e.registerSeriesModel(Hke),e.registerPreprocessor(Wke),e.registerVisual(Kke),e.registerLayout(eIe)}function FB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var rIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Ov(r,n),o=new Me;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;ye(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Jo(r.__p1,r.__cp1)+Jo(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=wr,c=cT;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(c9);const dIe=fIe;var hIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),pIe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hIe},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],d=a[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(y6(f,d,g,m,p,v,s,r,n))return l}else if(jo(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const gIe=vIe;var mIe={seriesType:"lines",plan:td(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&Hx(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=d9.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new gIe:new _I(o?a?dIe:f9:a?c9:bI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Tt);const xIe=yIe;var SIe=typeof Uint32Array>"u"?Array:Uint32Array,bIe=typeof Float64Array>"u"?Array:Float64Array;function $B(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),K2([i,r[0],r[1]])}))}var _Ie=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],$B(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if($B(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=t0(this._flatCoords,n.flatCoords),this._flatCoordsOffset=t0(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(zt);const wIe=_Ie;function pm(e){return e instanceof Array||(e=[e,e]),e}var CIe={seriesType:"lines",reset:function(e){var t=pm(e.get("symbol")),r=pm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=pm(s.getShallow("symbol",!0)),u=pm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const TIe=CIe;function AIe(e){e.registerChartView(xIe),e.registerSeriesModel(wIe),e.registerLayout(d9),e.registerVisual(TIe)}var MIe=256,kIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Is.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p0){var k=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=k[M],_[b++]=k[M+1],_[b++]=k[M+2],_[b++]=k[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Is.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();const IIe=kIe;function PIe(e,t,r){var n=e[1]-e[0];t=Z(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function VB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var RIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):VB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(VB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Ws(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=$u(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),_=xr(r),b=r.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),T=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mf[1]||Rd[1])continue;var z=s.dataToPoint([P,R]);k=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:I})}else{if(isNaN(g.get(T[1],M)))continue;k=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:I})}if(g.hasItemOption){var V=g.getItemModel(M),N=V.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=V.getModel(["blur","itemStyle"]).getItemStyle(),x=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=xr(V)}k.shape.r=S;var $=r.getRawValue(M),L="-";$&&$[2]!=null&&(L=$[2]+""),Br(k,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:L}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=y,k.ensureState("select").style=x,Ut(k,w,C,A),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new IIe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,m=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var T=r.dataToPoint([w,C]);return T[0]-=d,T[1]-=h,T.push(A),T}),S=i.getExtent(),_=i.type==="visualMap.continuous"?DIe(S,i.option.range):PIe(S,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const LIe=RIe;var EIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Pv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const OIe=EIe;function NIe(e){e.registerChartView(LIe),e.registerSeriesModel(OIe)}var zIe=["itemStyle","borderWidth"],GB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],tw=new Va,BIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:GB[+c],categoryDim:GB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),v=HB(o,h,p,d),g=UB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),qB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=WB(o,h),m=HB(o,h,g,d),y=y9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?UIe(v,d,m):v=UB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),qB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&jB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){jB(a,ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function HB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};FIe(r,a,i,n,d),$Ie(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),VIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Bu(r.get("symbolOffset"),h);return GIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function FIe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Y(o)){var f=[rw(s,o[0])-l,rw(s,o[1])-l];f[1]0?1:-1}function rw(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function $Ie(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;Y(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=ne(p[f.index],d),p[c.index]=ne(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function VIe(e,t,r,n,i){var a=e.get(zIe)||0;a&&(tw.attr({scaleX:t[0],scaleY:t[1],rotation:r}),tw.updateTransform(),a/=tw.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function GIe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var m=Math.abs(l),y=Cr(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var S=ne(y,t[h.index]),_=Math.max(v+S*2,0),b=x?0:S*2,w=n6(n),C=w?n:YB((m+b)/_),A=m-C*v;S=A/2/(x?C:Math.max(C-1,1)),_=v+S*2,b=x?0:S*2,!w&&n!=="fixed"&&(C=u?YB((Math.abs(u)+b)/_):0),g=C*_-b,f.repeatTimes=C,f.symbolMargin=S}var T=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?T:o==="end"?l-T:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[d.index]=r[d.xy],k[h.index]=r[h.xy];var I=f.barRectShape=q({},r);I[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),I[d.wh]=r[d.wh];var P=f.clipShape={};P[d.xy]=-r[d.xy],P[d.wh]=c.ecSize[d.wh],P[h.xy]=0,P[h.wh]=r[h.wh]}function h9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function p9(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(PI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-v),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function v9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?lf(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=h9(r),i.add(a),lf(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function g9(e,t,r){var n=q({},t.barRectShape),i=e.__pictorialBarRect;i?lf(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Qe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function m9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=q({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(i,{shape:a},s,l);else{a[o.wh]=0,i=new Qe({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Iv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function WB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=HIe,r.isAnimationEnabled=WIe,r}function HIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function WIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function UB(e,t,r,n){var i=new Me,a=new Me;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?p9(i,t,r):v9(i,t,r),g9(i,r,n),m9(i,t,r,n),i.__pictorialShapeStr=y9(e,r),i.__pictorialSymbolMeta=r,i}function UIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?p9(e,t,r,!0):v9(e,t,r,!0),g9(e,r,!0),m9(e,t,r,!0)}function jB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];PI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function y9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function PI(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function lf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Iv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function qB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");PI(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(q({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;Br(p,xr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Mf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function YB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const jIe=BIe;var qIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Us(D0.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(D0);const YIe=qIe;function XIe(e){e.registerChartView(jIe),e.registerSeriesModel(YIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(JU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ej("pictorialBar"))}var ZIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new So(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var S=[],_=[],b,w=l[m].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function nPe(e){e.registerChartView(QIe),e.registerSeriesModel(ePe),e.registerLayout(tPe),e.registerProcessor(Bv("themeRiver"))}var iPe=2,aPe=4,oPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=iPe,o.textConfig={inside:!0},ke(o).seriesIndex=n.seriesIndex;var s=new rt({z2:aPe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=q({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Tf(h,o));var p=Zl(l.getModel("itemStyle"),f,!0);q(f,p),D(cn,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Zl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Ki(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Ut(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,k="center"):k==="left"?(T=o.r0+M,l>Math.PI/2&&(k="right")):k==="right"&&(T=o.r-M,l>Math.PI/2&&(k="left")),S.style.align=k,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var I=g(y,"rotate"),P=0;I==="radial"?(P=$i(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):nt(I)&&(P=I*Math.PI/180),S.rotation=$i(P)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(Pn);const ZB=oPe;var _A="sunburstRootToNode",KB="sunburstHighlight",sPe="sunburstUnhighlight";function lPe(e){e.registerAction({type:_A,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Kp(t,[_A],i);if(o){var s=i.getViewRoot();s&&(t.direction=vI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:KB,update:"none"},function(t,r,n){t=q({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Kp(t,[KB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(q(t,{type:"highlight"}))}),e.registerAction({type:sPe,update:"updateView"},function(t,r,n){t=q({},t),n.dispatchAction(q(t,{type:"downplay"}))})}var uPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(y,x){if(y.length===0&&x.length===0)return;new So(x,y,S,S).add(_).update(_).remove(Ie(_,null)).execute();function S(b){return b.getId()}function _(b,w){var C=b==null?null:y[b],A=w==null?null:x[w];v(C,A)}}function v(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,r,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var S=new ZB(y,r,n,i);c.add(S),s.setItemGraphicEl(y.dataIndex,S)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,i):(o.virtualPiece=new ZB(y,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";m0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_A,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Tt);const cPe=uPe;var fPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};x9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=pI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=jx(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){w8(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}(zt);function x9(e){var t=0;D(e.children,function(n){x9(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}const dPe=fPe;var QB=Math.PI/180;function hPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(i[0],o),c=ne(i[1],s),f=ne(a[0],l/2),d=ne(a[1],l/2),h=-n.get("startAngle")*QB,p=n.get("minAngle")*QB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&S9(g,y);var x=0;D(g.children,function(z){!isNaN(z.getValue())&&x++});var S=g.getValue(),_=Math.PI/(S||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(d-f)/(w||1),A=n.get("clockwise"),T=n.get("stillShowZeroSum"),M=A?1:-1,k=function(z,V){if(z){var N=V;if(z!==v){var $=z.getValue(),L=S===0&&T?_:$*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=hT(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");q(u,l)})})}function gPe(e){e.registerChartView(cPe),e.registerSeriesModel(dPe),e.registerLayout(Ie(hPe,"sunburst")),e.registerProcessor(Ie(Bv,"sunburst")),e.registerVisual(vPe),lPe(e)}var JB={color:"fill",borderColor:"stroke"},mPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},so=Je(),yPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=so(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(zt);const xPe=yPe;function SPe(e,t){return t=t||[0,0],Z(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function bPe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(SPe,e)}}}function _Pe(e,t){return t=t||[0,0],Z([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function wPe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ue(_Pe,e)}}}function CPe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function TPe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(CPe,e)}}}function APe(e,t){return t=t||[0,0],Z(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function MPe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ue(APe,e)}}}function kPe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function b9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function _9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return e5(o,e),D(o.rich,function(l){e5(l,l)}),{textConfig:i,textContent:a}}function e5(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function t5(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";r5(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){r5(s,s)}),n}function r5(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var w9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},n5=qe(w9);Na(Ba,function(e,t){return e[t]=1,e},{});Ba.join(", ");var F0=["","style","shape","extra"],Pf=Je();function DI(e,t,r,n,i){var a=e+"Animation",o=qf(e,n,i)||{},s=Pf(t).userDuring;return o.duration>0&&(o.during=s?ue(LPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),q(o,r[a]),o}function oy(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Pf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(OPe(e,t,f),a5("shape",t,f),a5("extra",t,f),!a&&s&&(EPe(e,t,c),i5("shape",e,t,c),i5("extra",e,t,c),NPe(e,t,u,c)),f.style=u,IPe(e,f,o),DPe(e,t),s)if(a){var d={};D(F0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),q(p?d[p]:d,v.enterFrom))});var h=DI("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else PPe(e,t,i||0,r,c);C9(e,t),u?e.dirty():e.markRedraw()}function C9(e,t){for(var r=Pf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function DPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof wi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var oa={},RPe={setTransform:function(e,t){return oa.el[e]=t,this},getTransform:function(e){return oa.el[e]},setShape:function(e,t){var r=oa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=oa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=oa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=oa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=oa.el.extra||(oa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=oa.el.extra;if(t)return t[e]}};function LPe(){var e=this,t=e.el;if(t){var r=Pf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}oa.el=t,n(RPe)}}function i5(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),cu(l))q(o,a);else for(var u=ht(l),c=0;c=0){!o&&(o=n[e]={});for(var h=qe(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=qe(r),u=0;u=0?t.getStore().get(V,R):void 0}var N=t.get(z.name,R),$=z&&z.ordinalMeta;return $?$.categories[N]:N}function b(P,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),V=z&&z.fill,N=z&&z.opacity,$=y(R,os).getItemStyle();V!=null&&($.fill=V),N!=null&&($.opacity=N);var L={inheritColor:oe(V)?V:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),Mf(t,R)):null;var B=v0(G,L,!1);return A(P,$),$=t5($,U,B),P&&C($,P),$.legacy=!0,$}function w(P,R){R==null&&(R=u);var z=y(R,lo).getItemStyle(),V=x(R,lo),N=_t(V,null,null,!0,!0);N.text=V.getShallow("show")?Pa(e.getFormattedLabel(R,lo),e.getFormattedLabel(R,os),Mf(t,R)):null;var $=v0(V,null,!0);return A(P,z),z=t5(z,N,$),P&&C(z,P),z.legacy=!0,z}function C(P,R){for(var z in R)ce(R,z)&&(P[z]=R[z])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function T(P,R){if(R==null&&(R=u),ce(JB,P)){var z=t.getItemVisual(R,"style");return z?z[JB[P]]:null}if(ce(mPe,P))return t.getItemVisual(R,P)}function M(P){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return XSe(Se({axis:R},P))}}function k(){return r.getCurrentSeriesIndices()}function I(P){return lW(P,r)}}function qPe(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function ow(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=NI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function NI(e,t,r,n,i,a){var o=-1,s=t;t&&k9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=EI(n),s&&GPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ti.normal.cfg=ti.normal.conOpt=ti.emphasis.cfg=ti.emphasis.conOpt=ti.blur.cfg=ti.blur.conOpt=ti.select.cfg=ti.select.conOpt=null,ti.isLegacy=!1,XPe(u,r,n,i,l,ti),YPe(u,r,n,i,l),OI(e,u,r,n,ti,i,l),ce(n,"info")&&(so(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function k9(e,t,r){var n=so(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&eDe(a)&&I9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function YPe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&k9(o,a,n)&&(o=null),o||(o=EI(a),e.setClipPath(o)),OI(null,o,t,a,null,n,i)}}function XPe(e,t,r,n,i,a){if(!e.isGroup){s5(r,null,a),s5(r,lo,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=EI(o),e.setTextContent(c)),OI(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);KPe(t,p,i)}}}function KPe(e,t,r){t&&Xx(t,so(e).option,r)}function QPe(e){new So(e.oldChildren,e.newChildren,l5,l5,e).add(u5).update(u5).remove(JPe).execute()}function l5(e,t){var r=e&&e.name;return r??$Pe+t}function u5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;NI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function JPe(e){var t=this.context,r=t.oldChildren[e];r&&Xx(r,so(r).option,t.seriesModel)}function I9(e){return e&&(e.pathData||e.d)}function eDe(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function tDe(e){e.registerChartView(WPe),e.registerSeriesModel(xPe)}var El=Je(),c5=Ce,sw=ue,rDe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Ie(f5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}h5(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=sI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=El(t).pointerEl=new Iv[a.type](c5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=El(t).labelEl=new rt(c5(r.label));t.add(a),d5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=El(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=El(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),d5(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=kv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){go(u.event)},onmousedown:sw(this._onHandleDragMove,this,0,0),drift:sw(this._onHandleDragMove,this),ondragend:sw(this._onHandleDragEnd,this)}),n.add(i)),h5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,rd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){f5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,lw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(lw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(lw(i)),El(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Wp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function f5(e,t,r,n){P9(El(r).lastProp,n)||(El(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function P9(e,t){if(be(e)&&be(t)){var r=!0;return D(t,function(n,i){r=r&&P9(e[i],n)}),!!r}else return e===t}function d5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function lw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function h5(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const BI=rDe;function FI(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function D9(e,t,r,n,i){var a=r.get("value"),o=R9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Kf(s.get("padding")||0),u=s.getFont(),c=wv(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),nDe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:_t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function nDe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function R9(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Qk(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),oe(o)?a=o.replace("{value}",a):ye(o)&&(a=o(s))}return a}function $I(e,t,r){var n=_i();return Nu(n,n,r.rotation),za(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function L9(e,t,r,n,i,a){var o=bo.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),D9(t,n,i,a,{position:$I(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function VI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function E9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function p5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var iDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=v5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=FI(a),h=aDe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=oA(l.model,i);L9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=oA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=$I(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=v5(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(BI);function v5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var aDe={line:function(e,t,r){var n=VI([t,r[0]],[t,r[1]],g5(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:E9([t-n/2,r[0]],[n,i],g5(e))}}};function g5(e){return e.dim==="x"?0:1}const oDe=iDe;var sDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.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}(et);const lDe=sDe;var ro=Je(),uDe=D;function O9(e,t,r){if(!tt.node){var n=t.getZr();ro(n).records||(ro(n).records={}),cDe(n,t);var i=ro(n).records[e]||(ro(n).records[e]={});i.handler=r}}function cDe(e,t){if(ro(e).initialized)return;ro(e).initialized=!0,r("click",Ie(m5,"click")),r("mousemove",Ie(m5,"mousemove")),r("globalout",dDe);function r(n,i){e.on(n,function(a){var o=hDe(t);uDe(ro(e).records,function(s){s&&i(s,a,o.dispatchAction)}),fDe(o.pendings,t)})}}function fDe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function dDe(e,t,r){e.handler("leave",null,r)}function m5(e,t,r,n){t.handler(e,r,n)}function hDe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function TA(e,t){if(!tt.node){var r=t.getZr(),n=(ro(r).records||{})[e];n&&(ro(r).records[e]=null)}}var pDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";O9("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){TA("axisPointer",n)},t.prototype.dispose=function(r,n){TA("axisPointer",n)},t.type="axisPointer",t}(jt);const vDe=pDe;function N9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Su(a,e);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var y5=Je();function gDe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){sy(i)&&(i=N9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=sy(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||sy(i),d={},h={},p={list:[],map:{}},v={showPointer:Ie(yDe,h),showTooltip:Ie(xDe,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=wDe(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&x5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(x.axesInfo,function(S,_){var b=h[_];if(S!==m&&b){var w=b.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,S5(S),S5(m)))),g[m.key]=w}})}),D(g,function(m,y){x5(c[y],m,v,!0,d)}),SDe(h,c,d),bDe(p,i,e,o),_De(c,o,r),d}}function x5(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=mDe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&q(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function mDe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function yDe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function xDe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Zp(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function SDe(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function bDe(e,t,r,n){if(sy(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function _De(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=y5(n)[i]||{},o=y5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wDe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function S5(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function sy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Gv(e){Vu.registerAxisPointerClass("CartesianAxisPointer",oDe),e.registerComponentModel(lDe),e.registerComponentView(vDe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=cCe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gDe)}function CDe(e){Fe(l8),Fe(Gv)}var TDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=FI(a),p=MDe[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=ADe(n,i,a,l,v);D9(r,i,a,o,g)},t}(BI);function ADe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=_i();Nu(d,d,s),za(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=bo.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var MDe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:VI(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:p5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:p5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const kDe=TDe;var IDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(et);const PDe=IDe;var GI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",or).models[0]},t.type="polarAxis",t}(et);lr(GI,Ev);var DDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(GI),RDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(GI),HI=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ji);HI.prototype.dataToRadius=Ji.prototype.dataToCoord;HI.prototype.radiusToData=Ji.prototype.coordToData;const LDe=HI;var EDe=Je(),WI=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=wv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=EDe(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(Ji);WI.prototype.dataToAngle=Ji.prototype.dataToCoord;WI.prototype.angleToData=Ji.prototype.coordToData;const ODe=WI;var z9=["radius","angle"],NDe=function(){function e(t){this.dimensions=z9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new LDe,this._angleAxis=new ODe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=b5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=b5(r);return i===this?this.pointToData(n):null},e}();function b5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const zDe=NDe;function BDe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=ne(n[0],i),e.cy=ne(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function FDe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(M0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(M0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Af(n.scale,n.model),Af(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function $De(e){return e.mainType==="angleAxis"}function _5(e,t){if(e.type=t.get("type"),e.scale=Vx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),$De(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var VDe={dimensions:z9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new zDe(i+"");a.update=FDe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");_5(o,l),_5(s,u),BDe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const GDe=VDe;var HDe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function gm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function w5(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var WDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(c){c=Ce(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});w5(u),w5(s),D(HDe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&UDe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Vu),UDe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=gm(r),l=s?0:1,u;a[l]===0?u=new Va({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new _x({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[gm(r)],u=Z(n,function(c){return new Tr({shape:vm(r,[l,l+s],c.coord)})});e.add(pi(u,{style:Se(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[gm(r)],c=[],f=0;fm?"left":"right",S=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var _=s[p];be(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:bo.isLabelSilent(t),style:_t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(b),c){var w=bo.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,ke(b).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",I=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),I=n[c][M][k]);var P=void 0,R=void 0,z=void 0,V=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,$=l.dataToCoord(M);Math.abs(N)=V})}}})}function eRe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=F9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=B9(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=ne(n.get("barWidth"),c),v=ne(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),D(a,function(v,g){var m=v.maxWidth;m&&m=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=C5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=C5(r);return i===this?this.pointToData(n):null},e}();function C5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function hRe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new dRe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var pRe={create:hRe,dimensions:V9};const vRe=pRe;var T5=["x","y"],gRe=["width","height"],mRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=cw(l,1-G0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=FI(a),h=yRe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=AA(i);L9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=AA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=$I(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=G0(o),u=cw(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=cw(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(BI),yRe={line:function(e,t,r){var n=VI([t,r[0]],[t,r[1]],G0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:E9([t-n/2,r[0]],[n,i],G0(e))}}};function G0(e){return e.isHorizontal()?0:1}function cw(e,t){var r=e.getRect();return[r[T5[t]],r[T5[t]]+r[gRe[t]]]}const xRe=mRe;var SRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(jt);function bRe(e){Fe(Gv),Vu.registerAxisPointerClass("SingleAxisPointer",xRe),e.registerComponentView(SRe),e.registerComponentView(uRe),e.registerComponentModel(uw),kf(e,"single",uw,uw.defaultOption),e.registerCoordinateSystem("single",vRe)}var _Re=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=Qf(r);e.prototype.init.apply(this,arguments),A5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),A5(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(et);function A5(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return M0e(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const wRe=_Re;var CRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Qe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Rn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return oe(r)&&r?C0e(r,n):ye(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new rt({z2:30,style:_t(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||oe(s))&&(s&&(n=OT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/fw)-Math.floor(r[0].time/fw)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function M5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const MRe=ARe;function kRe(e){e.registerComponentModel(wRe),e.registerComponentView(TRe),e.registerCoordinateSystem("calendar",MRe)}function IRe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function k5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function PRe(e,t,r){var n=q({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),MW(r,i),mm(r,i),mm(r,i,"shape"),mm(r,i,"style"),mm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var G9=["transition","enterFrom","leaveTo"],DRe=G9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function mm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?G9:DRe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=oi(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Lx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!oi(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){ly(i,oi(i).option,n,r._lastGraphicModel)}),this._elMap=ge()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function MA(e){var t=ce(I5,e)?I5[e]:_k(e),r=new t({});return oi(r).type=e,r}function P5(e,t,r,n){var i=MA(r);return t.add(i),n.set(e,i),oi(i).id=e,oi(i).isNew=!0,i}function ly(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){ly(a,t,r,n)}),Xx(e,t,n),r.removeKey(oi(e).id))}function D5(e,t,r,n){e.isGroup||D([["cursor",wi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(qe(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=ye(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function ORe(e){return e=q({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(AW),function(t){delete e[t]}),e}function NRe(e,t,r){var n=ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function zRe(e){e.registerComponentModel(LRe),e.registerComponentView(ERe),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var R5=["x","y","radius","angle","single"],BRe=["cartesian2d","polar","singleAxis"];function FRe(e){var t=e.get("coordinateSystem");return ze(BRe,t)>=0}function ss(e){return e+"Axis"}function $Re(e,t){var r=ge(),n=[],i=ge();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function H9(e){var t=e.ecModel,r={infoList:[],infoMap:ge()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var dw=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),VRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=L5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=L5(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ge(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(R5,function(i){var a=this.getReferringComponents(ss(i),nme);if(a.specified){n=!0;var o=new dw;D(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new dw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(R5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new dw;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(x&&!S&&!_)return!0;x&&(g=!0),S&&(p=!0),_&&(v=!0)}return g&&p&&v})}else Ac(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});Ac(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Ac(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=e6(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function YRe(e,t,r){var n=[1/0,-1/0];Ac(r,function(o){ybe(n,o.getData(),t)});var i=e.getAxisModel(),a=oj(i.axis.scale,i,n).calculate();return[a.min,a.max]}const XRe=qRe;var ZRe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new XRe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ge();return D(r,function(i){D(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const KRe=ZRe;function QRe(e){e.registerAction("dataZoom",function(t,r){var n=$Re(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var O5=!1;function jI(e){O5||(O5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,KRe),QRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function JRe(e){e.registerComponentModel(HRe),e.registerComponentView(jRe),jI(e)}var hi=function(){function e(){}return e}(),W9={};function Mc(e,t){W9[e]=t}function U9(e){return W9[e]}var eLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,i){var a=U9(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(et);const tLe=eLe;function rLe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);su(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Lx(e,n,a,i)}function j9(e,t){var r=Kf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Qe({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var nLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];D(u,function(p,v){f.push(v)}),new So(this._featureNames||[],f).add(d).update(d).remove(Ie(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],y=u[g],x=new wt(y,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(iLe(g))S={onclick:x.option.onclick,featureName:g};else{var _=U9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=Zf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof hi;if(!g&&m){b&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var A=this.option,T=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,T[w]&&(C==="emphasis"?yo:xo)(T[w])},S instanceof hi&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof hi&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},_,b;oe(x)?(_={},_[g]=x):_=x,oe(S)?(b={},b[g]=S):b=S;var w=p.iconPaths={};D(_,function(C,A){var T=kv(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(m.getItemStyle());var M=T.ensureState("emphasis");M.style=y.getItemStyle();var k=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(k),Yf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var I=y.getItemStyle(),P=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||P}),k.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",A])==="emphasis"?yo:xo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}rLe(o,r,i),o.add(j9(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!ye(x)&&v){var S=x.style||(x.style={}),_=wv(v,rt.makeFont(S)),b=p.x+o.x,w=p.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(m.position="top",C=!0);var A=C?-5-_.height:s+10;b+_.width/2>i.getWidth()?(m.position=["100%",A],S.align="right"):b-_.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){D(this._features,function(o){o instanceof hi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof hi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof hi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function iLe(e){return e.indexOf("my")===0}const aLe=nLe;var oLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=tt.browser;if(ye(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,_=S.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),S.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(hi);const sLe=oLe;var N5="__ec_magicType_stack__",lLe=[["line","bar"],["stack"]],uLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return D(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(z5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=z5[i](d,h,f,a);p&&(Se(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,or).models[0],S=x.componentIndex;s[y]=s[y]||[];for(var _=0;_<=S;_++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};D(lLe,function(f){ze(f,i)>=0&&D(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(hi),z5={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===N5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":N5},n.get(["option","stack"])||{},!0)}};Wa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const cLe=uLe;var Zx=new Array(60).join("-"),Df=" ";function fLe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function dLe(e){var t=[];return D(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Z(r.series,function(h){return h.name})),l=[i.model.getCategories()];D(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Df)],c=0;c=0)return!0}var kA=new RegExp("["+Df+"]+","g");function gLe(e){for(var t=e.split(/\n+/g),r=H0(t.shift()).split(kA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function wLe(e){var t=qI(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return q9(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function CLe(e){Y9(e).snapshots=null}function TLe(e){return qI(e).length}function qI(e){var t=Y9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var ALe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){CLe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(hi);Wa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const MLe=ALe;var kLe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ILe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=B5(r,t);D(PLe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=hw[n.brushType](0,a,i);n.__rangeOffset={offset:G5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=hw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=hw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?G5[n.brushType](a.values,o.offset,DLe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:t9(i),isTargetByCursor:n9(i,t,n.coordSysModel),getLinearBrushOtherExtent:r9(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=B5(r,t),a=0;ae[1]&&e.reverse(),e}function B5(e,t){return Wh(e,t,{includeMainTypes:kLe})}var PLe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ge(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:$5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:$5.geo})})}},F5=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],$5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(ou(e)),t}},hw={lineX:Ie(V5,0),lineY:Ie(V5,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[IA([i[0],a[0]]),IA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function V5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=IA(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var G5={lineX:Ie(H5,0),lineY:Ie(H5,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Z(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function H5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function DLe(e,t){var r=W5(e),n=W5(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function W5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const YI=ILe;var PA=D,RLe=Qge("toolbox-dataZoom_"),LLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new kI(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),NLe(r,n,this,a,i),OLe(r,n)},t.prototype.onclick=function(r,n,i){ELe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new YI(XI(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),_Le(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Gu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];PA(r,function(i,a){n.push(Ce(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(hi),ELe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(wLe(this.ecModel))}};function XI(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function OLe(e,t){e.setIconStatus("back",TLe(t)>1?"emphasis":"normal")}function NLe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new YI(XI(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}L0e("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=XI(n),o=Wh(e,a);PA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),PA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:RLe+u+f};d[c]=f,i.push(d)}return i});const zLe=LLe;function BLe(e){e.registerComponentModel(tLe),e.registerComponentView(aLe),Mc("saveAsImage",sLe),Mc("magicType",cLe),Mc("dataView",bLe),Mc("dataZoom",zLe),Mc("restore",MLe),Fe(JRe)}var FLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(et);const $Le=FLe;function X9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Z9(e){if(tt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function qLe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=tt.transformSupported?","+ZI+n:",left"+n+",top"+n),HLe+":"+i}function U5(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+ZI+":"+o+";":[["top",0],["left",0],[K9,o]]}function YLe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function XLe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=oU(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(qLe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=CW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(YLe(c)),f!=null&&n.push("padding:"+Kf(f).join("px ")+"px"),n.join(";")+";"}function j5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&wve(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ZLe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;j5(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();ni(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=GLe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=WLe+XLe(t,!this._firstShow,this._longHide)+U5(a[0],a[1],!0)+("border-color:"+wu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(oe(a)&&n.get("trigger")==="item"&&!X9(n)&&(s=jLe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=X5(a,i);this._ticket="";var s=a.dataByCoordSys,l=aEe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=eEe;c.x=a.x,c.y=a.y,c.update(),ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=N9(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(X5(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=jd([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;ql(i,function(u){if(ke(u).dataIndex!=null)return s=u,!0;if(ke(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ue(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=jd([n.tooltipOption],a),l=this._renderMode,u=[],c=Sr("section",{blocks:[],noHeader:!0}),f=[],d=new Qb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=R9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=Sr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,M=A.getDataParams(T);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Qk(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",wu(M.color),l);var k=OO(A.formatTooltip(T,!0,null)),I=k.frag;if(I){var P=jd([A],a).get("valueFormatter");w.blocks.push(P?q({valueFormatter:P},I):I)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=VO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` - -`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=jd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Qb;m.marker=y.makeTooltipMarker("item",wu(m.color),h);var x=OO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?VO(_?q({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ke(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=jd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new Qb;this._showOrMove(d,function(){var g=Ce(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=kx(m.axisValue,h,g)),h=TW(h,i,!0)}else if(ye(d)){var x=ue(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ye(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Y(n))i=ne(n[0],u),a=ne(n[1],c);else if(be(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=iEe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=rEe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=Z5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=Z5(h)?f[1]/2:h==="bottom"?f[1]:0),X9(r)){var m=nEe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){tt.node||!n.getDom()||(Wp(this,"_updatePosition"),this._tooltipContent.dispose(),TA("itemTooltip",n))},t.type="tooltip",t}(jt);function jd(e,t,r){var n=t.ecModel,i;r?(i=new wt(r,n,n),i=new wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function X5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function rEe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function nEe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function iEe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function Z5(e){return e==="center"||e==="middle"}function aEe(e,t,r){var n=uk(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Cv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const oEe=tEe;function sEe(e){Fe(Gv),e.registerComponentModel($Le),e.registerComponentView(oEe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var lEe=["rect","polygon","keep","clear"];function uEe(e,t){var r=ht(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),cEe(s),t&&!s.length&&s.push.apply(s,lEe)}}function cEe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var K5=D;function Q5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function DA(e,t,r){var n={};return K5(t,function(a){var o=n[a]=i();K5(e[a],function(s,l){if(Or.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Or(u),l==="opacity"&&(u=Ce(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Or(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function J9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&Q5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&Q5(t[i])?e[i]=Ce(t[i]):delete e[i]})}function fEe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return $k(r,s,f)}function u(f,d){gU(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;mt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&nF(t)}};function nF(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var xEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new kI(n.getZr())).on("brush",ue(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){e7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ce(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ce(i),$from:n})},t.type="brush",t}(jt);const SEe=xEe;var bEe="#ddd",_Ee=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&J9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:bEe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return iF(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=iF(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(et);function iF(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new wt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const wEe=_Ee;var CEe=["rect","polygon","lineX","lineY","keep","clear"],TEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:CEe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(hi);const AEe=TEe;function MEe(e){e.registerComponentView(SEe),e.registerComponentModel(wEe),e.registerPreprocessor(uEe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,pEe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rr),Mc("brush",AEe)}var kEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(et),IEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ee(r.get("textBaseline"),r.get("textVerticalAlign")),c=new rt({style:_t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new rt({style:_t(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){m0(p,"_"+r.get("target"))}),v&&h.on("click",function(){m0(v,"_"+r.get("subtarget"))}),ke(c).eventData=ke(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=hr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Qe({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(jt);function PEe(e){e.registerComponentModel(kEe),e.registerComponentView(IEe)}var DEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=dr(Uf(u),""),d;be(u)?(d=Ce(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new ln([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(et);const aF=DEe;var t7=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Us(aF.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}(aF);lr(t7,Ok.prototype);const REe=t7;var LEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(jt);const EEe=LEe;var OEe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ji);const NEe=OEe;var vw=Math.PI,oF=Je(),zEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Sr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=FEe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:vw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*vw/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(y=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=_i(),l=o.x,u=o.y+o.height;za(s,s,[-l,-u]),Nu(s,s,-vw/2),za(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=BEe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new NEe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Me;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Tr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:q({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Tr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Se({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ue(o._changeTimeline,o,u.value)},g=sF(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),au(g);var m=ke(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new rt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ue(o._changeTimeline,o,f),silent:!1,style:_t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=_t(p),m.ensureState("progress").style=_t(v),n.add(m),au(m),oF(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Zi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=$Ee(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),au(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),lF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){lF(f,u._progressLine,s,i,a)}};this._currentPointer=sF(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=mi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var gw={min:Ie(Sm,"min"),max:Ie(Sm,"max"),average:Ie(Sm,"average"),median:Ie(Sm,"median")};function nv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!YEe(t)&&!Y(t.coord)&&Y(i)){var a=n7(t,r,n,e);if(t=Ce(t),t.type&&gw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=gw[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)gw[u[c]]&&(u[c]=QI(r,r.mapDimension(i[c]),u[c]));return t}}function n7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(XEe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function XEe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function iv(e,t){return e&&e.containData&&t.coord&&!LA(t)?e.containData(t.coord):!0}function ZEe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!LA(t)&&!LA(r)?e.containZone(t.coord,r.coord):!0}function i7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function QI(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var mw=Je(),KEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ge()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){mw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!mw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){mw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?R6(l):vk(l))})}})},t.type="marker",t}(jt);const JI=KEe;function cF(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var QEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=zs.getMarkerModelFromSeries(a,"markPoint");o&&(cF(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Nv),f=JEe(o,r,n);n.setData(f),cF(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(ye(p)||ye(v)||ye(g)||ye(m)){var x=n.getRawValue(d),S=n.getDataParams(d);ye(p)&&(p=p(x,S)),ye(v)&&(v=v(x,S)),ye(g)&&(g=g(x,S)),ye(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=Dv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ke(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(JI);function JEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return q(q({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new ln(n,r),a=Z(r.get("data"),Ie(nv,t));e&&(a=ft(a,Ie(iv,e)));var o=i7(!!e,n);return i.initData(a,null,o),i}const eOe=QEe;function tOe(e){e.registerComponentModel(qEe),e.registerComponentView(eOe),e.registerPreprocessor(function(t){KI(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var rOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(zs);const nOe=rOe;var bm=Je(),iOe=function(e,t,r,n){var i=e.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Cr(n.yAxis,n.xAxis);else{var u=n7(n,i,t,e);s=u.valueAxis;var c=WU(i,u.valueDataDim);l=QI(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Ce(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&nt(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[nv(e,a[0]),nv(e,a[1]),q({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function W0(e){return!isNaN(e)&&!isFinite(e)}function fF(e,t,r,n){var i=1-e,a=n.dimensions[e];return W0(t[i])&&W0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function aOe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(fF(1,r,n,e)||fF(0,r,n,e)))return!0}return iv(e,t[0])&&iv(e,t[1])}function yw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if($u(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;W0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):W0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var oOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=bm(o).from,u=bm(o).to;l.each(function(c){yw(l,c,!0,a,i),yw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new _I);this.group.add(c.group);var f=sOe(o,r,n),d=f.from,h=f.to,p=f.line;bm(n).from=d,bm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Y(v)||(v=[v,v]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ke(S).dataModel=n,S.traverse(function(_){ke(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);yw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Dv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ee(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Ee(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Ee(w.get("symbolSize"),g[b?0:1]),symbol:Ee(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(JI);function sOe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return q(q({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new ln(n,r),a=new ln(n,r),o=new ln([],r),s=Z(r.get("data"),Ie(iOe,t,e,r));e&&(s=ft(s,Ie(aOe,e)));var l=i7(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const lOe=oOe;function uOe(e){e.registerComponentModel(nOe),e.registerComponentView(lOe),e.registerPreprocessor(function(t){KI(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var cOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(zs);const fOe=cOe;var _m=Je(),dOe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=nv(e,i),s=nv(e,a),l=o.coord,u=s.coord;l[0]=Cr(l[0],-1/0),l[1]=Cr(l[1],-1/0),u[0]=Cr(u[0],1/0),u[1]=Cr(u[1],1/0);var c=K2([{},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 U0(e){return!isNaN(e)&&!isFinite(e)}function dF(e,t,r,n){var i=1-e;return U0(t[i])&&U0(r[i])}function hOe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return $u(e,"cartesian2d")?r&&n&&(dF(1,r,n)||dF(0,r,n))?!0:ZEe(e,i,a):iv(e,i)||iv(e,a)}function hF(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if($u(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);U0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):U0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var pF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],pOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(pF,function(f){return hF(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var f=vOe(o,r,n);n.setData(f),f.each(function(d){var h=Z(pF,function(C){return hF(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];mi(y),mi(x);var S=!(g[0]>y[1]||g[1]x[1]||m[1]=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}(et);const EA=xOe;var gc=Ie,OA=D,wm=Me,SOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new wm),this.group.add(this._selectorGroup=new wm),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(Se({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=j9(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ge(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),OA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new wm;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",gc(vF,v,null,a,d)).on("mouseover",gc(NA,m.name,null,a,d)).on("mouseout",gc(zA,m.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),k=Hn(T.fill);k&&k[3]===0&&(k[3]=.2,T=q(q({},T),{fill:oo(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},T,M,f,a);I.on("click",gc(vF,null,v,a,d)).on("mouseover",gc(NA,null,v,a,d)).on("mouseout",gc(zA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();OA(r,function(u){var c=u.type,f=new rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:d,emphasis:h},{defaultText:u.title}),au(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=bOe(c,a,l,u,h,g,d),_=new wm,b=a.getModel("textStyle");if(ye(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(_Oe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):ye(T)&&(M=T(n));var k=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:k,align:A,verticalAlign:"middle"},{inheritColor:k})}));var I=new Qe({shape:_.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&Yf({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),_.add(I),_.eachChild(function(R){R.silent=!0}),I.silent=!f,this.getContentGroup().add(_),au(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();su(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){su("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(jt);function bOe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),OA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Tf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function _Oe(e){var t=e.icon||"roundRect",r=sr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function vF(e,t,r,n){zA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),NA(e,t,r,n)}function a7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Qe({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&it(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=xw[o],l=Sw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(o7);const kOe=MOe;function IOe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function POe(e){Fe(s7),e.registerComponentModel(AOe),e.registerComponentView(kOe),IOe(e)}function DOe(e){Fe(s7),Fe(POe)}var ROe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Us(rv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(rv);const LOe=ROe;var eP=Je();function EOe(e,t,r){eP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function OOe(e,t){for(var r=eP(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function $Oe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=eP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ge());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=H9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,NOe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){l7(i,a);return}var c=FOe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),rd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var VOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),EOe(i,r,{pan:ue(bw.pan,this),zoom:ue(bw.zoom,this),scrollMove:ue(bw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){OOe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(UI),bw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=_w[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Gu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:yF(function(e,t,r,n,i,a){var o=_w[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:yF(function(e,t,r,n,i,a){var o=_w[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function yF(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Gu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var _w={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const GOe=VOe;function u7(e){jI(e),e.registerComponentModel(LOe),e.registerComponentView(GOe),$Oe(e)}var HOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Us(rv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(rv);const WOe=HOe;var Xd=Qe,xF=7,UOe=1,ww=30,jOe=7,Zd="horizontal",SF="vertical",qOe=5,YOe=["line","bar","candlestick","scatter"],XOe={easing:"cubicOut",duration:100,delay:0},ZOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),rd(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Wp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?jOe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Zd?{right:s.width-o.x-o.width,top:s.height-ww-xF-a,width:o.width,height:ww}:{right:xF,top:o.y,width:ww,height:o.height},u=Qf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Zd&&!o?{scaleY:l?1:-1,scaleX:1}:i===Zd&&o?{scaleY:l?1:-1,scaleX:-1}:i===SF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Xd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Xd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",k=M?0:ct(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Me,k=new Dn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Rn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&ze(YOe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=KOe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Xd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Xd({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:UOe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!S0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:bF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),au(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new rt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=sr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:bF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Gu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=mi([ct(a[0],o,l,!0),ct(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=mi(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=mi([ct(i.x,o,s,!0),ct(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(go(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Xd({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?XOe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=H9(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(UI);function KOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function bF(e){return e==="vertical"?"ns-resize":"ew-resize"}const QOe=ZOe;function c7(e){e.registerComponentModel(WOe),e.registerComponentView(QOe),jI(e)}function JOe(e){Fe(u7),Fe(c7)}var eNe={get:function(e,t,r){var n=Ce((tNe[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},tNe={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]}};const f7=eNe;var _F=Or.mapVisual,rNe=Or.eachVisual,nNe=Y,wF=D,iNe=mi,aNe=ct,oNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&J9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=DA(this.option.controller,n,r),this.targetVisuals=DA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=ht(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ye(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=iNe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){nNe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},wF(p,function(g,m){if(Or.isValidType(m)){var y=f7.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";wF(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Ce(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Ce(h)||(s?y[0]:[y[0],y[0]])),x.symbol=_F(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;rNe(S,function(b){b>_&&(_=b)}),x.symbolSize=_F(S,function(b){return aNe(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(et);const j0=oNe;var CF=[20,140],sNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=CF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=CF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=mi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=TF(this,"outOfRange",this.getExtent()),i=TF(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();cNe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=sa(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Ui(i.handleLabelPoints[c],ou(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=sa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,ou(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;Mo[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||IF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=tme(d,h);this._dispatchHighDown("downplay",uy(p[0],i)),this._dispatchHighDown("highlight",uy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(ql(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function xNe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:Dv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(gNe,mNe),D(yNe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(SNe))}function v7(e){e.registerComponentModel(lNe),e.registerComponentView(vNe),p7(e)}var bNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],_Ne[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ce(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Ce(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=f7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ce(r)},t.prototype.getValueState=function(r){var n=Or.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Or.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Us(j0.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}(j0),_Ne={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function LF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const wNe=bNe;var CNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Cr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ue(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new rt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),su(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:uy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return h7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new rt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(sr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ce(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(d7);const TNe=CNe;function g7(e){e.registerComponentModel(wNe),e.registerComponentView(TNe),p7(e)}function ANe(e){Fe(v7),Fe(g7)}var MNe={label:{enabled:!0},decal:{show:!1}},EF=Je(),kNe={};function INe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ce(MNe);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ge();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),EF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ye(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=BT(d.ecModel,d.name,kNe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=EF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=BT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?q(q({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=Se(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A1?c.get(["series","multiple",k]):c.get(["series","single",k]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var P=c.get(["data","partialData"]);T+=o(P,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),V=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RNe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):dve(t)?t:null;if(r==null){var n="";st(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):nt(r)?this._condVal.test(t+""):!1},e}(),LNe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ENe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[I,P]}function c(I,P,R,z){Wc(I,R)&&Wc(P,z)||i.push(I,P,R,z,R,z)}function f(I,P,R,z,V,N){var $=Math.abs(P-I),L=Math.tan($/4)*4/3,G=PC:M2&&n.push(i),n}function FA(e,t,r,n,i,a,o,s,l,u){if(Wc(e,r)&&Wc(t,n)&&Wc(i,o)&&Wc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],T=[];Ps(e,r,i,o,.5,A),Ps(t,n,a,s,.5,T),FA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),FA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function YNe(e,t){var r=BA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=y7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=y7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d1?null:new Le(v*l+e,v*u+t)}function KNe(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function yc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function QNe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),QNe(t,u,c)}function q0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);q0(e,a[0],i,n),q0(e,a[1],r-i,n)}return n}function JNe(e,t){for(var r=[],n=0;n0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Z0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:lze(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function b7(e){return rze(e.path,e.count)}function $A(){return{fromIndividuals:[],toIndividuals:[],count:0}}function uze(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];Y0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return $A();var o=r.dividePath||b7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),$A();n=Z0(n),s=Z0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new to,d=0;d=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var fze={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;HF(e)&&(u=e,c=t),HF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(Y0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?Se({delay:s(x,S)},l):l;rP(C,A,T),a(C,A,C,A,T)}}else for(var M=Se({dividePath:fze[r],individualDelay:s&&function(V,N,$,L){return s(V+x,S)}},l),k=y?uze(b,w,M):cze(w,b,M),I=k.fromIndividuals,P=k.toIndividuals,R=I.length,z=0;zt.length,h=u?WF(c,u):WF(d?t:e,[d?e:t]),p=0,v=0;v_7))for(var i=n.getIndices(),a=hze(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function jF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function qF(e){return Y(e)?e.sort().join(","):e}function qo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function gze(e,t){var r=ge(),n=ge(),i=ge();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=jF(a),c=qF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=jF(a),u=qF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:qo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:qo(s),data:s}]});else if(Y(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:qo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:qo(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:qo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:qo(s)})}}}}),r}function YF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:qo(t.oldData[s]),dim:o.dimension})}),D(ht(e.to),function(o){var s=YF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:qo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&w7(i,a,n)}function yze(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(ht(n.seriesTransition),function(i){D(ht(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:tp,textStyle:{color:tp}},title:{text:t,x:10,y:10},tooltip:{trigger:"axis",formatter:i=>i&&Array.isArray(i)&&i.length>0&&i.some(a=>!!a.value)?i.reduce((a,{axisValue:o,color:s,seriesName:l,value:u},c)=>` - ${c===0?o:""} - ${a} -
- - ${l}: ${u} - - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:tp,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:VA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:VA}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),Sze=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),bze=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:VA},data:(e.markers||[]).map(t=>({xAxis:t}))});function _ze({charts:e,title:t,lines:r,colors:n}){const[i,a]=O.useState(null),o=O.useRef(null);return O.useEffect(()=>{if(!o.current)return;const s=uSe(o.current,"locust");s.setOption(xze({charts:e,title:t,seriesData:Sze({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",cSe("swarmCharts"),a(s),()=>{fSe(s),window.removeEventListener("resize",l)}},[o]),O.useEffect(()=>{const s=r.every(({key:l})=>!!e[l]);i&&s&&i.setOption({xAxis:{data:e.time},series:r.map(({key:l},u)=>({data:e[l],...u===0?{markLine:bze(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const wze=eu.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})),Cze=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[...wze,{name:"Average Response Time",key:"totalAvgResponseTime"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function C7({charts:e}){return E.jsx("div",{children:Cze.map((t,r)=>E.jsx(_ze,{...t,charts:e},`swarm-chart-${r}`))})}const Tze=({ui:{charts:e}})=>({charts:e}),Aze=Kn(Tze)(C7);function Mze(e){return(e*100).toFixed(1)+"%"}function GA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${Mze(r)} ${t}`,n&&E.jsx(GA,{classRatio:n})]},`nested-ratio-${t}`))})}function T7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(GA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(GA,{classRatio:t})]})]})}const kze=({ui:{ratios:e}})=>({ratios:e}),Ize=Kn(kze)(T7),Pze=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Ale}];function Dze({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=j2(e,{defaultSortKey:"worker"});return E.jsx(Vf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Pze})}const Rze=({ui:{workers:e}})=>({workers:e}),Lze=Kn(Rze)(Dze),Eze=[{component:Xpe,key:"stats",title:"Statistics"},{component:Aze,key:"charts",title:"Charts"},{component:Gpe,key:"failures",title:"Failures"},{component:Bpe,key:"exceptions",title:"Exceptions"},{component:Ize,key:"ratios",title:"Current Ratio"},{component:jpe,key:"reports",title:"Download Data"},{component:Hpe,key:"logViewer",title:"Logs"}],Oze=[{component:Lze,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],Nze=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},zze=()=>window.location.search?Tle(window.location.search):null,Bze={query:zze()},A7=ci({name:"url",initialState:Bze,reducers:{setUrl:xv}}),Fze=A7.actions,$ze=A7.reducer;function Vze({hasNotification:e,title:t}){return E.jsxs(xt,{sx:{display:"flex",alignItems:"center"},children:[e&&E.jsx(PG,{color:"secondary"}),E.jsx("span",{children:t})]})}function Gze({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),Nze({tab:c}),n({query:{tab:c}}),o(u)};return E.jsxs(Bf,{maxWidth:"xl",children:[E.jsx(xt,{sx:{mb:2},children:E.jsx(nse,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>E.jsx(Bae,{label:E.jsx(Vze,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Ope},u)=>a===u&&E.jsx(l,{},`tabpabel-${u}`))]})}const Hze=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=Oze.filter(({shouldDisplayTab:o})=>o(e)),a=[...Eze,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},Wze={setNotification:kG.setNotification,setUrl:Fze.setUrl},Uze=Kn(Hze,Wze)(Gze),jze={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:eu.history.reduce(ox,{}),ratios:{},userCount:0},qze=eu.percentilesToChart.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),Yze=e=>ox(e,{...qze,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),M7=ci({name:"ui",initialState:jze,reducers:{setUi:xv,updateCharts:(e,{payload:t})=>({...e,charts:ox(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...Yze(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),kw=M7.actions,Xze=M7.reducer,ZF=2e3;function Zze(){const e=Vl(TG.setSwarm),t=Vl(kw.setUi),r=Vl(kw.updateCharts),n=Vl(kw.updateChartMarkers),i=Gs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Pue(),{data:f,refetch:d}=Due(),{data:h,refetch:p}=Rue(),v=i.state===Nn.SPAWNING||i.state==Nn.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:_,totalFailPerSec:b,failRatio:w,workers:C,userCount:A,totalAvgResponseTime:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const k=sh(_,2),I=sh(b,2),P=sh(w*100),R={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:sh(T,2),userCount:A,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:P,workers:C,userCount:A}),r(R)};O.useEffect(()=>{u&&(u.state===Nn.STOPPED||u.state===Nn.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),oh(g,ZF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),oh(c,ZF,{shouldRunInterval:v}),oh(d,5e3,{shouldRunInterval:v}),oh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===Nn.RUNNING&&a.current===Nn.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const k7=e=>l2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function Kze({isDarkMode:e,swarmState:t}){Zze(),lce();const r=O.useMemo(()=>k7(e?ka.DARK:ka.LIGHT),[e]);return E.jsxs(pV,{theme:r,children:[E.jsx(hV,{}),E.jsx(ece,{children:t===Nn.READY?E.jsx(AG,{}):E.jsx(Uze,{})})]})}const Qze=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),Jze=Kn(Qze)(Kze),eBe=T2({[GC.reducerPath]:GC.reducer,logViewer:oce,notification:rce,swarm:Uue,theme:Sle,ui:Xze,url:$ze}),tBe=lle({reducer:eBe}),rBe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function nBe({responseTimes:e}){const t=O.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return E.jsx(Vf,{rows:e,structure:[...rBe,...t]})}const iBe=k7(window.theme||KV);function aBe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(pV,{theme:iBe,children:[E.jsx(hV,{}),E.jsxs(Bf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(xt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Ze,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(an,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(xt,{sx:{my:2},children:[E.jsxs(xt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ze,{fontWeight:600,children:"During:"}),E.jsxs(Ze,{children:[r," - ",n]})]}),E.jsxs(xt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ze,{fontWeight:600,children:"Target Host:"}),E.jsx(Ze,{children:a||"None"})]}),E.jsxs(xt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ze,{fontWeight:600,children:"Script:"}),E.jsx(Ze,{children:e})]})]}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(gH,{stats:s})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(nBe,{responseTimes:u})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(vH,{errors:l})]}),!!o.length&&E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(pH,{exceptions:o})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(C7,{charts:i})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(T7,{ratios:c})]})]})]})]})}const KF=Pw.createRoot(document.getElementById("root"));if(eu.isReport){const e={...eu,charts:eu.history.reduce((t,{currentResponseTimePercentiles:r,...n})=>ox(t,{...r,...n}),{})};KF.render(E.jsx(aBe,{...e}))}else KF.render(E.jsx(lZ,{store:tBe,children:E.jsx(Jze,{})})); diff --git a/locust/webui/dist/assets/index-d4b87b54.js b/locust/webui/dist/assets/index-d4b87b54.js new file mode 100644 index 0000000000..097c44b8c7 --- /dev/null +++ b/locust/webui/dist/assets/index-d4b87b54.js @@ -0,0 +1,237 @@ +function k7(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function iv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ZF={exports:{}},Z0={},KF={exports:{}},lt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var av=Symbol.for("react.element"),P7=Symbol.for("react.portal"),D7=Symbol.for("react.fragment"),R7=Symbol.for("react.strict_mode"),L7=Symbol.for("react.profiler"),E7=Symbol.for("react.provider"),O7=Symbol.for("react.context"),N7=Symbol.for("react.forward_ref"),z7=Symbol.for("react.suspense"),B7=Symbol.for("react.memo"),F7=Symbol.for("react.lazy"),rP=Symbol.iterator;function $7(e){return e===null||typeof e!="object"?null:(e=rP&&e[rP]||e["@@iterator"],typeof e=="function"?e:null)}var QF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JF=Object.assign,e$={};function Df(e,t,r){this.props=e,this.context=t,this.refs=e$,this.updater=r||QF}Df.prototype.isReactComponent={};Df.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Df.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function t$(){}t$.prototype=Df.prototype;function VA(e,t,r){this.props=e,this.context=t,this.refs=e$,this.updater=r||QF}var GA=VA.prototype=new t$;GA.constructor=VA;JF(GA,Df.prototype);GA.isPureReactComponent=!0;var nP=Array.isArray,r$=Object.prototype.hasOwnProperty,HA={current:null},n$={key:!0,ref:!0,__self:!0,__source:!0};function i$(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)r$.call(t,n)&&!n$.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,U=N[G];if(0>>1;Gi(X,L))Wi(ee,X)?(N[G]=ee,N[W]=L,G=W):(N[G]=X,N[j]=L,G=j);else if(Wi(ee,L))N[G]=ee,N[W]=L,G=W;else break e}}return $}function i(N,$){var L=N.sortIndex-$.sortIndex;return L!==0?L:N.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(N){for(var $=r(u);$!==null;){if($.callback===null)n(u);else if($.startTime<=N)n(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var $=r(u);$!==null&&V(S,$.startTime-N)}}function _(N,$){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x($),f=r(l);f!==null&&(!(f.expirationTime>$)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=$);$=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x($)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&V(S,j.startTime-$),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=L,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,V(S,L-G))):(N.sortIndex=U,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var $=d;return function(){var L=d;d=$;try{return N.apply(this,arguments)}finally{d=L}}}})(l$);s$.exports=l$;var K7=s$.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var u$=O,Wn=K7;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pw=Object.prototype.hasOwnProperty,Q7=/^[: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]*$/,aP={},oP={};function J7(e){return Pw.call(oP,e)?!0:Pw.call(aP,e)?!1:Q7.test(e)?oP[e]=!0:(aP[e]=!0,!1)}function eq(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tq(e,t,r,n){if(t===null||typeof t>"u"||eq(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Or[e]=new fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Or[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Or[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Or[e]=new fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Or[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Or[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Or[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Or[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Or[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var UA=/[\-:]([a-z])/g;function jA(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(UA,jA);Or[t]=new fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(UA,jA);Or[t]=new fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(UA,jA);Or[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Or[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Or.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Or[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function qA(e,t,r,n){var i=Or.hasOwnProperty(t)?Or[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Jx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zd(e):""}function rq(e){switch(e.tag){case 5:return Zd(e.type);case 16:return Zd("Lazy");case 13:return Zd("Suspense");case 19:return Zd("SuspenseList");case 0:case 2:case 15:return e=eS(e.type,!1),e;case 11:return e=eS(e.type.render,!1),e;case 1:return e=eS(e.type,!0),e;default:return""}}function Ew(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kc:return"Fragment";case Mc:return"Portal";case Dw:return"Profiler";case YA:return"StrictMode";case Rw:return"Suspense";case Lw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d$:return(e.displayName||"Context")+".Consumer";case f$:return(e._context.displayName||"Context")+".Provider";case XA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZA:return t=e.displayName||null,t!==null?t:Ew(e.type)||"Memo";case Ho:t=e._payload,e=e._init;try{return Ew(e(t))}catch{}}return null}function nq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ew(t);case 8:return t===YA?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function p$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iq(e){var t=p$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uv(e){e._valueTracker||(e._valueTracker=iq(e))}function v$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=p$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function uy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ow(e,t){var r=t.checked;return Zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=bs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function g$(e,t){t=t.checked,t!=null&&qA(e,"checked",t,!1)}function Nw(e,t){g$(e,t);var r=bs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zw(e,t.type,r):t.hasOwnProperty("defaultValue")&&zw(e,t.type,bs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zw(e,t,r){(t!=="number"||uy(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Kd=Array.isArray;function Wc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=jv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aq=["Webkit","ms","Moz","O"];Object.keys(xh).forEach(function(e){aq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xh[t]=xh[e]})});function S$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||xh.hasOwnProperty(e)&&xh[e]?(""+t).trim():t+"px"}function b$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=S$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var oq=Zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $w(e,t){if(t){if(oq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function Vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gw=null;function KA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hw=null,Uc=null,jc=null;function dP(e){if(e=lv(e)){if(typeof Hw!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=t1(t),Hw(e.stateNode,e.type,t))}}function _$(e){Uc?jc?jc.push(e):jc=[e]:Uc=e}function w$(){if(Uc){var e=Uc,t=jc;if(jc=Uc=null,dP(e),t)for(e=0;e>>=0,e===0?32:31-(mq(e)/yq|0)|0}var qv=64,Yv=4194304;function Qd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Qd(s):(a&=o,a!==0&&(n=Qd(a)))}else o=r&~i,o!==0?n=Qd(o):a!==0&&(n=Qd(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ov(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vi(t),e[t]=r}function _q(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bh),bP=String.fromCharCode(32),_P=!1;function H$(e,t){switch(e){case"keyup":return Zq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ic=!1;function Qq(e,t){switch(e){case"compositionend":return W$(t);case"keypress":return t.which!==32?null:(_P=!0,bP);case"textInput":return e=t.data,e===bP&&_P?null:e;default:return null}}function Jq(e,t){if(Ic)return e==="compositionend"||!aM&&H$(e,t)?(e=V$(),Am=rM=Zo=null,Ic=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AP(r)}}function Y$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Y$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function X$(){for(var e=window,t=uy();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=uy(e.document)}return t}function oM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lY(e){var t=X$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Y$(r.ownerDocument.documentElement,r)){if(n!==null&&oM(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=MP(r,a);var o=MP(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Pc=null,Xw=null,wh=null,Zw=!1;function kP(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zw||Pc==null||Pc!==uy(n)||(n=Pc,"selectionStart"in n&&oM(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wh&&lp(wh,n)||(wh=n,n=gy(Xw,"onSelect"),0Lc||(e.current=rC[Lc],rC[Lc]=null,Lc--)}function Et(e,t){Lc++,rC[Lc]=e.current,e.current=t}var _s={},Yr=Bs(_s),_n=Bs(!1),cu=_s;function uf(e,t){var r=e.type.contextTypes;if(!r)return _s;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wn(e){return e=e.childContextTypes,e!=null}function yy(){Ft(_n),Ft(Yr)}function OP(e,t,r){if(Yr.current!==_s)throw Error(ae(168));Et(Yr,t),Et(_n,r)}function i3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ae(108,nq(e)||"Unknown",i));return Zt({},r,n)}function xy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_s,cu=Yr.current,Et(Yr,e),Et(_n,_n.current),!0}function NP(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=i3(e,t,cu),n.__reactInternalMemoizedMergedChildContext=e,Ft(_n),Ft(Yr),Et(Yr,e)):Ft(_n),Et(_n,r)}var Ka=null,r1=!1,pS=!1;function a3(e){Ka===null?Ka=[e]:Ka.push(e)}function SY(e){r1=!0,a3(e)}function Fs(){if(!pS&&Ka!==null){pS=!0;var e=0,t=Ct;try{var r=Ka;for(Ct=1;e>=o,i-=o,Qa=1<<32-Vi(t)+i|r<C?(A=w,w=null):A=w.sibling;var T=d(m,w,x[C],S);if(T===null){w===null&&(w=A);break}e&&w&&T.alternate===null&&t(m,w),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T,w=A}if(C===x.length)return r(m,w),Ht&&ml(m,C),_;if(w===null){for(;CC?(A=w,w=null):A=w.sibling;var M=d(m,w,T.value,S);if(M===null){w===null&&(w=A);break}e&&w&&M.alternate===null&&t(m,w),y=a(M,y,C),b===null?_=M:b.sibling=M,b=M,w=A}if(T.done)return r(m,w),Ht&&ml(m,C),_;if(w===null){for(;!T.done;C++,T=x.next())T=f(m,T.value,S),T!==null&&(y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return Ht&&ml(m,C),_}for(w=n(m,w);!T.done;C++,T=x.next())T=h(w,m,C,T.value,S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return e&&w.forEach(function(k){return t(m,k)}),Ht&&ml(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===kc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Wv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===kc){if(b.tag===7){r(m,b.sibling),y=i(b,x.props.children),y.return=m,m=y;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ho&&HP(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=ud(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===kc?(y=Kl(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Em(x.type,x.key,x.props,null,m.mode,S),S.ref=ud(m,y,x),S.return=m,m=S)}return o(m);case Mc:e:{for(b=x.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=_S(x,m.mode,S),y.return=m,m=y}return o(m);case Ho:return b=x._init,g(m,y,b(x._payload),S)}if(Kd(x))return p(m,y,x,S);if(id(x))return v(m,y,x,S);tg(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,x),y.return=m,m=y):(r(m,y),y=bS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var ff=h3(!0),p3=h3(!1),uv={},Ta=Bs(uv),dp=Bs(uv),hp=Bs(uv);function zl(e){if(e===uv)throw Error(ae(174));return e}function vM(e,t){switch(Et(hp,t),Et(dp,e),Et(Ta,uv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fw(t,e)}Ft(Ta),Et(Ta,t)}function df(){Ft(Ta),Ft(dp),Ft(hp)}function v3(e){zl(hp.current);var t=zl(Ta.current),r=Fw(t,e.type);t!==r&&(Et(dp,e),Et(Ta,r))}function gM(e){dp.current===e&&(Ft(Ta),Ft(dp))}var qt=Bs(0);function Ty(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vS=[];function mM(){for(var e=0;er?r:4,e(!0);var n=gS.transition;gS.transition={};try{e(!1),t()}finally{Ct=r,gS.transition=n}}function D3(){return Si().memoizedState}function CY(e,t,r){var n=hs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},R3(e))L3(t,r);else if(r=u3(e,t,r,n),r!==null){var i=an();Gi(r,e,n,i),E3(r,t,n)}}function TY(e,t,r){var n=hs(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(R3(e))L3(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Ui(s,o)){var l=t.interleaved;l===null?(i.next=i,hM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=u3(e,t,i,n),r!==null&&(i=an(),Gi(r,e,n,i),E3(r,t,n))}}function R3(e){var t=e.alternate;return e===Xt||t!==null&&t===Xt}function L3(e,t){Ch=Ay=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function E3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,JA(e,r)}}var My={readContext:xi,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useInsertionEffect:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useMutableSource:$r,useSyncExternalStore:$r,useId:$r,unstable_isNewReconciler:!1},AY={readContext:xi,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:xi,useEffect:UP,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Pm(4194308,4,A3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Pm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pm(4,2,e,t)},useMemo:function(e,t){var r=sa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CY.bind(null,Xt,e),[n.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:WP,useDebugValue:_M,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=WP(!1),t=e[0];return e=wY.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Xt,i=sa();if(Ht){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Tr===null)throw Error(ae(349));du&30||y3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,UP(S3.bind(null,n,a,e),[e]),n.flags|=2048,gp(9,x3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sa(),t=Tr.identifierPrefix;if(Ht){var r=Ja,n=Qa;r=(n&~(1<<32-Vi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=pp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[da]=t,e[fp]=n,H3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vw(r,n),r){case"dialog":zt("cancel",e),zt("close",e),i=n;break;case"iframe":case"object":case"embed":zt("load",e),i=n;break;case"video":case"audio":for(i=0;ipf&&(t.flags|=128,n=!0,cd(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ty(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),cd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ht)return Vr(t),null}else 2*ir()-a.renderingStartTime>pf&&r!==1073741824&&(t.flags|=128,n=!0,cd(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ir(),t.sibling=null,r=qt.current,Et(qt,n?r&1|2:r&1),t):(Vr(t),null);case 22:case 23:return kM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?En&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function EY(e,t){switch(lM(t),t.tag){case 1:return wn(t.type)&&yy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return df(),Ft(_n),Ft(Yr),mM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gM(t),null;case 13:if(Ft(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));cf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(qt),null;case 4:return df(),null;case 10:return dM(t.type._context),null;case 22:case 23:return kM(),null;case 24:return null;default:return null}}var ng=!1,qr=!1,OY=typeof WeakSet=="function"?WeakSet:Set,_e=null;function zc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Jt(e,t,n)}else r.current=null}function pC(e,t,r){try{r()}catch(n){Jt(e,t,n)}}var eD=!1;function NY(e,t){if(Kw=py,e=X$(),oM(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qw={focusedElem:e,selectionRange:r},py=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ei(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){Jt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return p=eD,eD=!1,p}function Th(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&pC(t,r,a)}i=i.next}while(i!==n)}}function a1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function vC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function j3(e){var t=e.alternate;t!==null&&(e.alternate=null,j3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[fp],delete t[tC],delete t[yY],delete t[xY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function q3(e){return e.tag===5||e.tag===3||e.tag===4}function tD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=my));else if(n!==4&&(e=e.child,e!==null))for(gC(e,t,r),e=e.sibling;e!==null;)gC(e,t,r),e=e.sibling}function mC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(mC(e,t,r),e=e.sibling;e!==null;)mC(e,t,r),e=e.sibling}var kr=null,Ni=!1;function ko(e,t,r){for(r=r.child;r!==null;)Y3(e,t,r),r=r.sibling}function Y3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(K0,r)}catch{}switch(r.tag){case 5:qr||zc(r,t);case 6:var n=kr,i=Ni;kr=null,ko(e,t,r),kr=n,Ni=i,kr!==null&&(Ni?(e=kr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):kr.removeChild(r.stateNode));break;case 18:kr!==null&&(Ni?(e=kr,r=r.stateNode,e.nodeType===8?hS(e.parentNode,r):e.nodeType===1&&hS(e,r),op(e)):hS(kr,r.stateNode));break;case 4:n=kr,i=Ni,kr=r.stateNode.containerInfo,Ni=!0,ko(e,t,r),kr=n,Ni=i;break;case 0:case 11:case 14:case 15:if(!qr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&pC(r,t,o),i=i.next}while(i!==n)}ko(e,t,r);break;case 1:if(!qr&&(zc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Jt(r,t,s)}ko(e,t,r);break;case 21:ko(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,ko(e,t,r),qr=n):ko(e,t,r);break;default:ko(e,t,r)}}function rD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new OY),t.forEach(function(n){var i=UY.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function ki(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=ir()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*BY(n/1960))-n,10e?16:e,Ko===null)var n=!1;else{if(e=Ko,Ko=null,Py=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,_e=e.current;_e!==null;){var a=_e,o=a.child;if(_e.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lir()-AM?Zl(e,0):TM|=r),Cn(e,t)}function r4(e,t){t===0&&(e.mode&1?(t=Yv,Yv<<=1,!(Yv&130023424)&&(Yv=4194304)):t=1);var r=an();e=co(e,t),e!==null&&(ov(e,t,r),Cn(e,r))}function WY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),r4(e,r)}function UY(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),r4(e,r)}var n4;n4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,RY(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Ht&&t.flags&1048576&&o3(t,by,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Dm(e,t),e=t.pendingProps;var i=uf(t,Yr.current);Yc(t,r),i=xM(null,t,n,e,i,r);var a=SM();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wn(n)?(a=!0,xy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pM(t),i.updater=n1,t.stateNode=i,i._reactInternals=t,sC(t,n,e,r),t=cC(null,t,n,!0,a,r)):(t.tag=0,Ht&&a&&sM(t),en(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Dm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=qY(n),e=Ei(n,e),i){case 0:t=uC(null,t,n,e,r);break e;case 1:t=KP(null,t,n,e,r);break e;case 11:t=XP(null,t,n,e,r);break e;case 14:t=ZP(null,t,n,Ei(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),uC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),KP(e,t,n,i,r);case 3:e:{if($3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,c3(e,t),Cy(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=hf(Error(ae(423)),t),t=QP(e,t,n,r,i);break e}else if(n!==i){i=hf(Error(ae(424)),t),t=QP(e,t,n,r,i);break e}else for(Bn=cs(t.stateNode.containerInfo.firstChild),$n=t,Ht=!0,zi=null,r=p3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(cf(),n===i){t=fo(e,t,r);break e}en(e,t,n,r)}t=t.child}return t;case 5:return v3(t),e===null&&iC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Jw(n,i)?o=null:a!==null&&Jw(n,a)&&(t.flags|=32),F3(e,t),en(e,t,o,r),t.child;case 6:return e===null&&iC(t),null;case 13:return V3(e,t,r);case 4:return vM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ff(t,null,n,r):en(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),XP(e,t,n,i,r);case 7:return en(e,t,t.pendingProps,r),t.child;case 8:return en(e,t,t.pendingProps.children,r),t.child;case 12:return en(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Et(_y,n._currentValue),n._currentValue=o,a!==null)if(Ui(a.value,o)){if(a.children===i.children&&!_n.current){t=fo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=ro(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),aC(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ae(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),aC(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}en(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Yc(t,r),i=xi(i),n=n(i),t.flags|=1,en(e,t,n,r),t.child;case 14:return n=t.type,i=Ei(n,t.pendingProps),i=Ei(n.type,i),ZP(e,t,n,i,r);case 15:return z3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Dm(e,t),t.tag=1,wn(n)?(e=!0,xy(t)):e=!1,Yc(t,r),d3(t,n,i),sC(t,n,i,r),cC(null,t,n,!0,e,r);case 19:return G3(e,t,r);case 22:return B3(e,t,r)}throw Error(ae(156,t.tag))};function i4(e,t){return P$(e,t)}function jY(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(e,t,r,n){return new jY(e,t,r,n)}function PM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qY(e){if(typeof e=="function")return PM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===XA)return 11;if(e===ZA)return 14}return 2}function ps(e,t){var r=e.alternate;return r===null?(r=vi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Em(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")PM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kc:return Kl(r.children,i,a,t);case YA:o=8,i|=8;break;case Dw:return e=vi(12,r,t,i|2),e.elementType=Dw,e.lanes=a,e;case Rw:return e=vi(13,r,t,i),e.elementType=Rw,e.lanes=a,e;case Lw:return e=vi(19,r,t,i),e.elementType=Lw,e.lanes=a,e;case h$:return s1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case f$:o=10;break e;case d$:o=9;break e;case XA:o=11;break e;case ZA:o=14;break e;case Ho:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=vi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Kl(e,t,r,n){return e=vi(7,e,n,t),e.lanes=r,e}function s1(e,t,r,n){return e=vi(22,e,n,t),e.elementType=h$,e.lanes=r,e.stateNode={isHidden:!1},e}function bS(e,t,r){return e=vi(6,e,null,t),e.lanes=r,e}function _S(e,t,r){return t=vi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function YY(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rS(0),this.expirationTimes=rS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function DM(e,t,r,n,i,a,o,s,l){return e=new YY(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=vi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},pM(a),e}function XY(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l4)}catch(e){console.error(e)}}l4(),o$.exports=qn;var Ef=o$.exports;const og=iv(Ef);var cD=Ef;Iw.createRoot=cD.createRoot,Iw.hydrateRoot=cD.hydrateRoot;var u4={exports:{}},c4={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var vf=O;function eX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tX=typeof Object.is=="function"?Object.is:eX,rX=vf.useState,nX=vf.useEffect,iX=vf.useLayoutEffect,aX=vf.useDebugValue;function oX(e,t){var r=t(),n=rX({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return iX(function(){i.value=r,i.getSnapshot=t,wS(i)&&a({inst:i})},[e,r,t]),nX(function(){return wS(i)&&a({inst:i}),e(function(){wS(i)&&a({inst:i})})},[e]),aX(r),r}function wS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!tX(e,r)}catch{return!0}}function sX(e,t){return t()}var lX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?sX:oX;c4.useSyncExternalStore=vf.useSyncExternalStore!==void 0?vf.useSyncExternalStore:lX;u4.exports=c4;var f4=u4.exports,d4={exports:{}},h4={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var d1=O,uX=f4;function cX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fX=typeof Object.is=="function"?Object.is:cX,dX=uX.useSyncExternalStore,hX=d1.useRef,pX=d1.useEffect,vX=d1.useMemo,gX=d1.useDebugValue;h4.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=hX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=vX(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,fX(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=dX(e,a[0],a[1]);return pX(function(){o.hasValue=!0,o.value=s},[s]),gX(s),s};d4.exports=h4;var mX=d4.exports;function yX(e){e()}let p4=yX;const xX=e=>p4=e,SX=()=>p4,fD=Symbol.for("react-redux-context"),dD=typeof globalThis<"u"?globalThis:{};function bX(){var e;if(!O.createContext)return{};const t=(e=dD[fD])!=null?e:dD[fD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const ho=bX();function OM(e=ho){return function(){return O.useContext(e)}}const v4=OM(),g4=()=>{throw new Error("uSES not initialized!")};let m4=g4;const _X=e=>{m4=e},wX=(e,t)=>e===t;function CX(e=ho){const t=e===ho?v4:OM(e);return function(n,i={}){const{equalityFn:a=wX,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();O.useRef(!0);const h=O.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,o]),p=m4(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const y4=CX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var x4={exports:{}},At={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mr=typeof Symbol=="function"&&Symbol.for,NM=Mr?Symbol.for("react.element"):60103,zM=Mr?Symbol.for("react.portal"):60106,h1=Mr?Symbol.for("react.fragment"):60107,p1=Mr?Symbol.for("react.strict_mode"):60108,v1=Mr?Symbol.for("react.profiler"):60114,g1=Mr?Symbol.for("react.provider"):60109,m1=Mr?Symbol.for("react.context"):60110,BM=Mr?Symbol.for("react.async_mode"):60111,y1=Mr?Symbol.for("react.concurrent_mode"):60111,x1=Mr?Symbol.for("react.forward_ref"):60112,S1=Mr?Symbol.for("react.suspense"):60113,TX=Mr?Symbol.for("react.suspense_list"):60120,b1=Mr?Symbol.for("react.memo"):60115,_1=Mr?Symbol.for("react.lazy"):60116,AX=Mr?Symbol.for("react.block"):60121,MX=Mr?Symbol.for("react.fundamental"):60117,kX=Mr?Symbol.for("react.responder"):60118,IX=Mr?Symbol.for("react.scope"):60119;function Xn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case NM:switch(e=e.type,e){case BM:case y1:case h1:case v1:case p1:case S1:return e;default:switch(e=e&&e.$$typeof,e){case m1:case x1:case _1:case b1:case g1:return e;default:return t}}case zM:return t}}}function S4(e){return Xn(e)===y1}At.AsyncMode=BM;At.ConcurrentMode=y1;At.ContextConsumer=m1;At.ContextProvider=g1;At.Element=NM;At.ForwardRef=x1;At.Fragment=h1;At.Lazy=_1;At.Memo=b1;At.Portal=zM;At.Profiler=v1;At.StrictMode=p1;At.Suspense=S1;At.isAsyncMode=function(e){return S4(e)||Xn(e)===BM};At.isConcurrentMode=S4;At.isContextConsumer=function(e){return Xn(e)===m1};At.isContextProvider=function(e){return Xn(e)===g1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===NM};At.isForwardRef=function(e){return Xn(e)===x1};At.isFragment=function(e){return Xn(e)===h1};At.isLazy=function(e){return Xn(e)===_1};At.isMemo=function(e){return Xn(e)===b1};At.isPortal=function(e){return Xn(e)===zM};At.isProfiler=function(e){return Xn(e)===v1};At.isStrictMode=function(e){return Xn(e)===p1};At.isSuspense=function(e){return Xn(e)===S1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===h1||e===y1||e===v1||e===p1||e===S1||e===TX||typeof e=="object"&&e!==null&&(e.$$typeof===_1||e.$$typeof===b1||e.$$typeof===g1||e.$$typeof===m1||e.$$typeof===x1||e.$$typeof===MX||e.$$typeof===kX||e.$$typeof===IX||e.$$typeof===AX)};At.typeOf=Xn;x4.exports=At;var PX=x4.exports,FM=PX,DX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},RX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},LX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},b4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$M={};$M[FM.ForwardRef]=LX;$M[FM.Memo]=b4;function hD(e){return FM.isMemo(e)?b4:$M[e.$$typeof]||DX}var EX=Object.defineProperty,OX=Object.getOwnPropertyNames,pD=Object.getOwnPropertySymbols,NX=Object.getOwnPropertyDescriptor,zX=Object.getPrototypeOf,vD=Object.prototype;function _4(e,t,r){if(typeof t!="string"){if(vD){var n=zX(t);n&&n!==vD&&_4(e,n,r)}var i=OX(t);pD&&(i=i.concat(pD(t)));for(var a=hD(e),o=hD(t),s=0;st(i(...a)))}return r}function _C(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function mD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function T4(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=mD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=mD(u),u=a(s,l)),u},a}}function HM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function jX(e){return e&&typeof e=="object"?_C(t=>UX(e,t)):e?typeof e=="function"?T4(e):HM(e,"mapDispatchToProps"):_C(t=>({dispatch:t}))}function qX(e){return e?typeof e=="function"?T4(e):HM(e,"mapStateToProps"):_C(()=>({}))}function YX(e,t,r){return F({},r,e,t)}function XX(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function ZX(e){return e?typeof e=="function"?XX(e):HM(e,"mergeProps"):()=>YX}function KX(){const e=SX();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const yD={notify(){},get:()=>[]};function A4(e,t){let r,n=yD;function i(f){return l(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=KX())}function u(){r&&(r(),r=void 0,n.clear(),n=yD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const QX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ly=QX?O.useLayoutEffect:O.useEffect;function xD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ql(e,t){if(xD(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{M4=e},tZ=[null,null];function rZ(e,t,r){Ly(()=>e(...t),r)}function nZ(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function iZ(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,m;try{g=n(v,i.current)}catch(y){m=y,d=y}m||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function aZ(e,t){return e===t}function Zn(e,t,r,{pure:n,areStatesEqual:i=aZ,areOwnPropsEqual:a=Ql,areStatePropsEqual:o=Ql,areMergedPropsEqual:s=Ql,forwardRef:l=!1,context:u=ho}={}){const c=u,f=qX(e),d=jX(t),h=ZX(r),p=!!e;return g=>{const m=g.displayName||g.name||"Component",y=`Connect(${m})`,x={shouldHandleStateChanges:p,displayName:y,wrappedComponentName:m,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,A,T]=O.useMemo(()=>{const{reactReduxForwardedRef:J}=w,fe=me(w,JX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&VX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),k=O.useContext(M),I=!!w.store&&!!w.store.getState&&!!w.store.dispatch,P=!!k&&!!k.store,R=I?w.store:k.store,z=P?k.getServerState:R.getState,V=O.useMemo(()=>WX(R.dispatch,x),[R]),[N,$]=O.useMemo(()=>{if(!p)return tZ;const J=A4(R,I?void 0:k.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,I,k]),L=O.useMemo(()=>I?k:F({},k,{subscription:N}),[I,k,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Ly(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:V(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?iZ(p,R,N,V,U,G,j,X,B,$,fe):()=>{},[N]);rZ(nZ,[U,G,j,T,B,$]);let ie;try{ie=M4(te,ee,z?()=>V(z(),T):ee)}catch(J){throw W.current&&(J.message+=` +The error may be correlated with this previous error: +${W.current.stack} + +`),J}Ly(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}const b=O.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=O.forwardRef(function(T,M){return O.createElement(b,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,gD(C,g)}return gD(b,g)}}function oZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=A4(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=O.useMemo(()=>e.getState(),[e]);Ly(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||ho;return O.createElement(l.Provider,{value:o},r)}function k4(e=ho){const t=e===ho?v4:OM(e);return function(){const{store:n}=t();return n}}const I4=k4();function sZ(e=ho){const t=e===ho?I4:k4(e);return function(){return t().dispatch}}const P4=sZ();_X(mX.useSyncExternalStoreWithSelector);eZ(f4.useSyncExternalStore);xX(Ef.unstable_batchedUpdates);function Il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function D4(e){if(!Il(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=D4(e[r])}),t}function Tn(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Il(e)&&Il(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Il(t[i])&&i in e&&Il(e[i])?n[i]=Tn(e[i],t[i],r):r.clone?n[i]=Il(t[i])?D4(t[i]):t[i]:n[i]=t[i])}),n}function ws(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function cv(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function lZ(e,t){return()=>null}function kh(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function uZ(e,t){return()=>null}function Ey(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const cZ=typeof window<"u"?O.useLayoutEffect:O.useEffect,po=cZ;let SD=0;function fZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(SD+=1,r(`mui-${SD}`))},[t]),n}const bD=kw["useId".toString()];function R4(e){if(bD!==void 0){const t=bD();return e??t}return fZ(e)}function dZ(e,t,r,n,i){return null}function yp({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=O.useRef(e!==void 0),[a,o]=O.useState(t),s=i?e:a,l=O.useCallback(u=>{i||o(u)},[]);return[s,l]}function ya(e){const t=O.useRef(e);return po(()=>{t.current=e}),O.useCallback((...r)=>(0,t.current)(...r),[])}function Ar(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ey(r,t)})},e)}let L1=!0,CC=!1,_D;const hZ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function pZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&hZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function vZ(e){e.metaKey||e.altKey||e.ctrlKey||(L1=!0)}function CS(){L1=!1}function gZ(){this.visibilityState==="hidden"&&CC&&(L1=!0)}function mZ(e){e.addEventListener("keydown",vZ,!0),e.addEventListener("mousedown",CS,!0),e.addEventListener("pointerdown",CS,!0),e.addEventListener("touchstart",CS,!0),e.addEventListener("visibilitychange",gZ,!0)}function yZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return L1||pZ(t)}function WM(){const e=O.useCallback(i=>{i!=null&&mZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(CC=!0,window.clearTimeout(_D),_D=window.setTimeout(()=>{CC=!1},100),t.current=!1,!0):!1}function n(i){return yZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function L4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Hu;function E4(){if(Hu)return Hu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Hu="reverse",e.scrollLeft>0?Hu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Hu="negative")),document.body.removeChild(e),Hu}function xZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(E4()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function UM(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=UM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function We(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const wD=e=>e,SZ=()=>{let e=wD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wD}}},bZ=SZ(),jM=bZ,_Z={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ge(e,t,r="Mui"){const n=_Z[t];return n?`${r}-${n}`:`${jM.generate(e)}-${t}`}function Ue(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ge(e,i,r)}),n}function O4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wZ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,CZ=O4(function(e){return wZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function TZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pr(Of,--kn):0,gf--,ur===10&&(gf=1,O1--),ur}function Vn(){return ur=kn2||Sp(ur)>3?"":" "}function BZ(e,t){for(;--t&&Vn()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return fv(e,Om()+(t<6&&Aa()==32&&Vn()==32))}function AC(e){for(;Vn();)switch(ur){case e:return kn;case 34:case 39:e!==34&&e!==39&&AC(ur);break;case 40:e===41&&AC(e);break;case 92:Vn();break}return kn}function FZ(e,t){for(;Vn()&&e+ur!==47+10;)if(e+ur===42+42&&Aa()===47)break;return"/*"+fv(t,kn-1)+"*"+E1(e===47?e:Vn())}function $Z(e){for(;!Sp(Aa());)Vn();return fv(e,kn)}function VZ(e){return V4(zm("",null,null,null,[""],e=$4(e),0,[0],e))}function zm(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,_=a,b=n,w=x;g;)switch(p=y,y=Vn()){case 40:if(p!=108&&Pr(w,f-1)==58){TC(w+=vt(Nm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Nm(y);break;case 9:case 10:case 13:case 32:w+=zZ(p);break;case 92:w+=BZ(Om()-1,7);continue;case 47:switch(Aa()){case 42:case 47:sg(GZ(FZ(Vn(),Om()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ca(w)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:m==-1&&(w=vt(w,/\f/g,"")),h>0&&ca(w)-f&&sg(h>32?TD(w+";",n,r,f-1):TD(vt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(sg(b=CD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)zm(w,t,b,b,S,a,f,s,_);else switch(d===99&&Pr(w,3)===110?100:d){case 100:case 108:case 109:case 115:zm(e,b,b,n&&sg(CD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:zm(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ca(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&NZ()==125)continue}switch(w+=E1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ca(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Nm(Vn())),d=Aa(),c=f=ca(x=w+=$Z(Om())),y++;break;case 45:p===45&&ca(w)==2&&(v=0)}}return a}function CD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=XM(d),p=0,v=0,g=0;p0?d[m]+" "+y:vt(y,/&\f/g,d[m])))&&(l[g++]=x);return N1(e,t,r,i===0?qM:s,l,u,c)}function GZ(e,t,r){return N1(e,t,r,N4,E1(OZ()),xp(e,2,-2),0)}function TD(e,t,r,n){return N1(e,t,r,YM,xp(e,0,n),xp(e,n+1,-1),n)}function Zc(e,t){for(var r="",n=XM(e),i=0;i6)switch(Pr(e,t+1)){case 109:if(Pr(e,t+4)!==45)break;case 102:return vt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Oy+(Pr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~TC(e,"stretch")?G4(vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pr(e,t+1)!==115)break;case 6444:switch(Pr(e,ca(e)-3-(~TC(e,"!important")&&10))){case 107:return vt(e,":",":"+pt)+e;case 101:return vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(Pr(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(Pr(e,t+11)){case 114:return pt+e+Wr+vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+Wr+vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+Wr+vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+Wr+e+e}return e}var KZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case YM:t.return=G4(t.value,t.length);break;case z4:return Zc([dd(t,{value:vt(t.value,"@","@"+pt)})],i);case qM:if(t.length)return EZ(t.props,function(a){switch(LZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zc([dd(t,{props:[vt(a,/:(read-\w+)/,":"+Oy+"$1")]})],i);case"::placeholder":return Zc([dd(t,{props:[vt(a,/:(plac\w+)/,":"+pt+"input-$1")]}),dd(t,{props:[vt(a,/:(plac\w+)/,":"+Oy+"$1")]}),dd(t,{props:[vt(a,/:(plac\w+)/,Wr+"input-$1")]})],i)}return""})}},QZ=[KZ],JZ=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||QZ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),m=1;m=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},iK=/[A-Z]|^ms/g,aK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U4=function(t){return t.charCodeAt(1)===45},MD=function(t){return t!=null&&typeof t!="boolean"},TS=O4(function(e){return U4(e)?e:e.replace(iK,"-$&").toLowerCase()}),kD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aK,function(n,i,a){return fa={name:i,styles:a,next:fa},i})}return nK[t]!==1&&!U4(t)&&typeof r=="number"&&r!==0?r+"px":r};function bp(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return fa={name:r.name,styles:r.styles,next:fa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fa={name:n.name,styles:n.styles,next:fa},n=n.next;var i=r.styles+";";return i}return oK(e,t,r)}case"function":{if(e!==void 0){var a=fa,o=r(e);return fa=a,bp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function oK(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?fK:dK},RD=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},hK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return H4(r,n,i),lK(function(){return W4(r,n,i)}),null},pK=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=RD(t,r,n),l=s||DD(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(gK(i)?r:i):t;return E.jsx(uK,{styles:n})}/** + * @mui/styled-engine v5.14.10 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function X4(e,t){return MC(e,t)}const yK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},xK=["values","unit","step"],SK=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>F({},r,{[n.key]:n.val}),{})};function bK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=me(e,xK),a=SK(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${QM[e]}px)`};function ji(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||LD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||LD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||QM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function Z4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function K4(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function CK(e,...t){const r=Z4(e),n=[r,...t].reduce((i,a)=>Tn(i,a),{});return K4(Object.keys(r),n)}function TK(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a{e[i]!=null&&(r[i]=!0)}),r}function AS({values:e,breakpoints:t,base:r}){const n=r||TK(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function mf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Ny(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=mf(e,r)||n,t&&(i=t(i,n,e)),i}function St(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=mf(l,n)||{};return ji(o,s,f=>{let d=Ny(u,i,f);return f===d&&typeof f=="string"&&(d=Ny(u,i,`${t}${f==="default"?"":Te(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function AK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const MK={m:"margin",p:"padding"},kK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ED={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IK=AK(e=>{if(e.length>2)if(ED[e])e=ED[e];else return[e];const[t,r]=e.split(""),n=MK[t],i=kK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),JM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],e2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...JM,...e2];function dv(e,t,r,n){var i;const a=(i=mf(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function t2(e){return dv(e,"spacing",8)}function vu(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function PK(e,t){return r=>e.reduce((n,i)=>(n[i]=vu(t,r),n),{})}function DK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=IK(r),a=PK(i,n),o=e[r];return ji(e,o,a)}function Q4(e,t){const r=t2(e.theme);return Object.keys(e).map(n=>DK(e,t,n,r)).reduce(Ih,{})}function Kt(e){return Q4(e,JM)}Kt.propTypes={};Kt.filterProps=JM;function Qt(e){return Q4(e,e2)}Qt.propTypes={};Qt.filterProps=e2;function RK(e=8){if(e.mui)return e;const t=t2({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function B1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Ih(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const LK=St({prop:"border",themeKey:"borders",transform:ha}),EK=St({prop:"borderTop",themeKey:"borders",transform:ha}),OK=St({prop:"borderRight",themeKey:"borders",transform:ha}),NK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),zK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),BK=St({prop:"borderColor",themeKey:"palette"}),FK=St({prop:"borderTopColor",themeKey:"palette"}),$K=St({prop:"borderRightColor",themeKey:"palette"}),VK=St({prop:"borderBottomColor",themeKey:"palette"}),GK=St({prop:"borderLeftColor",themeKey:"palette"}),F1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:vu(t,n)});return ji(e,e.borderRadius,r)}return null};F1.propTypes={};F1.filterProps=["borderRadius"];B1(LK,EK,OK,NK,zK,BK,FK,$K,VK,GK,F1);const $1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dv(e.theme,"spacing",8),r=n=>({gap:vu(t,n)});return ji(e,e.gap,r)}return null};$1.propTypes={};$1.filterProps=["gap"];const V1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dv(e.theme,"spacing",8),r=n=>({columnGap:vu(t,n)});return ji(e,e.columnGap,r)}return null};V1.propTypes={};V1.filterProps=["columnGap"];const G1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dv(e.theme,"spacing",8),r=n=>({rowGap:vu(t,n)});return ji(e,e.rowGap,r)}return null};G1.propTypes={};G1.filterProps=["rowGap"];const HK=St({prop:"gridColumn"}),WK=St({prop:"gridRow"}),UK=St({prop:"gridAutoFlow"}),jK=St({prop:"gridAutoColumns"}),qK=St({prop:"gridAutoRows"}),YK=St({prop:"gridTemplateColumns"}),XK=St({prop:"gridTemplateRows"}),ZK=St({prop:"gridTemplateAreas"}),KK=St({prop:"gridArea"});B1($1,V1,G1,HK,WK,UK,jK,qK,YK,XK,ZK,KK);function Kc(e,t){return t==="grey"?t:e}const QK=St({prop:"color",themeKey:"palette",transform:Kc}),JK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kc}),eQ=St({prop:"backgroundColor",themeKey:"palette",transform:Kc});B1(QK,JK,eQ);function Nn(e){return e<=1&&e!==0?`${e*100}%`:e}const tQ=St({prop:"width",transform:Nn}),r2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||QM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Nn(r)}};return ji(e,e.maxWidth,t)}return null};r2.filterProps=["maxWidth"];const rQ=St({prop:"minWidth",transform:Nn}),nQ=St({prop:"height",transform:Nn}),iQ=St({prop:"maxHeight",transform:Nn}),aQ=St({prop:"minHeight",transform:Nn});St({prop:"size",cssProperty:"width",transform:Nn});St({prop:"size",cssProperty:"height",transform:Nn});const oQ=St({prop:"boxSizing"});B1(tQ,r2,rQ,nQ,iQ,aQ,oQ);const sQ={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:F1},color:{themeKey:"palette",transform:Kc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kc},backgroundColor:{themeKey:"palette",transform:Kc},p:{style:Qt},pt:{style:Qt},pr:{style:Qt},pb:{style:Qt},pl:{style:Qt},px:{style:Qt},py:{style:Qt},padding:{style:Qt},paddingTop:{style:Qt},paddingRight:{style:Qt},paddingBottom:{style:Qt},paddingLeft:{style:Qt},paddingX:{style:Qt},paddingY:{style:Qt},paddingInline:{style:Qt},paddingInlineStart:{style:Qt},paddingInlineEnd:{style:Qt},paddingBlock:{style:Qt},paddingBlockStart:{style:Qt},paddingBlockEnd:{style:Qt},m:{style:Kt},mt:{style:Kt},mr:{style:Kt},mb:{style:Kt},ml:{style:Kt},mx:{style:Kt},my:{style:Kt},margin:{style:Kt},marginTop:{style:Kt},marginRight:{style:Kt},marginBottom:{style:Kt},marginLeft:{style:Kt},marginX:{style:Kt},marginY:{style:Kt},marginInline:{style:Kt},marginInlineStart:{style:Kt},marginInlineEnd:{style:Kt},marginBlock:{style:Kt},marginBlockStart:{style:Kt},marginBlockEnd:{style:Kt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$1},rowGap:{style:G1},columnGap:{style:V1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nn},maxWidth:{style:r2},minWidth:{transform:Nn},height:{transform:Nn},maxHeight:{transform:Nn},minHeight:{transform:Nn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},H1=sQ;function lQ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function uQ(e,t){return typeof e=="function"?e(t):e}function cQ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=mf(i,u)||{};return f?f(o):ji(o,n,p=>{let v=Ny(d,c,p);return p===v&&typeof p=="string"&&(v=Ny(d,c,`${r}${p==="default"?"":Te(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:H1;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=Z4(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=uQ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Ih(d,e(h,p,a,o));else{const v=ji({theme:a},p,g=>({[h]:g}));lQ(v,p)?d[h]=t({sx:p,theme:a}):d=Ih(d,v)}else d=Ih(d,e(h,p,a,o))}),K4(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const J4=cQ();J4.filterProps=["sx"];const W1=J4,fQ=["breakpoints","palette","spacing","shape"];function hv(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=me(e,fQ),s=bK(r),l=RK(i);let u=Tn({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},wK,a)},o);return u=t.reduce((c,f)=>Tn(c,f),u),u.unstable_sxConfig=F({},H1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return W1({sx:f,theme:this})},u}function dQ(e){return Object.keys(e).length===0}function eV(e=null){const t=O.useContext(z1);return!t||dQ(t)?e:t}const hQ=hv();function U1(e=hQ){return eV(e)}function pQ({styles:e,themeId:t,defaultTheme:r={}}){const n=U1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(mK,{styles:i})}const vQ=["sx"],gQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:H1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function n2(e){const{sx:t}=e,r=me(e,vQ),{systemProps:n,otherProps:i}=gQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Il(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function tV(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(W1);return O.forwardRef(function(l,u){const c=U1(r),f=n2(l),{className:d,component:h="div"}=f,p=me(f,mQ);return E.jsx(a,F({as:h,ref:u,className:xe(d,i?i(n):n),theme:t&&c[t]||c},p))})}const xQ=["variant"];function OD(e){return e.length===0}function rV(e){const{variant:t}=e,r=me(e,xQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=OD(n)?e[i]:Te(e[i]):n+=`${OD(n)?i:Te(i)}${Te(e[i].toString())}`}),n}const SQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function bQ(e){return Object.keys(e).length===0}function _Q(e){return typeof e=="string"&&e.charCodeAt(0)>96}const wQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,CQ=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=rV(i.props);n[a]=i.style}),n},TQ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[rV(l.props)])}),o};function Ph(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AQ=hv(),MQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hd({defaultTheme:e,theme:t,themeId:r}){return bQ(t)?e:t[r]||t}function kQ(e){return e?(t,r)=>r[e]:null}function nV(e={}){const{themeId:t,defaultTheme:r=AQ,rootShouldForwardProp:n=Ph,slotShouldForwardProp:i=Ph}=e,a=o=>W1(F({},o,{theme:hd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{yK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=kQ(MQ(u))}=s,h=me(s,SQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Ph;u==="Root"||u==="root"?m=n:u?m=i:_Q(o)&&(m=void 0);const y=X4(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:hd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=hd(F({},T,{defaultTheme:r,themeId:t})),k=wQ(l,M);if(k){const I={};return Object.entries(k).forEach(([P,R])=>{I[P]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,I)}return null}),l&&!p&&b.push(T=>{const M=hd(F({},T,{defaultTheme:r,themeId:t}));return TQ(T,CQ(l,M),M,l)}),v||b.push(a);const C=b.length-_.length;if(Array.isArray(S)&&C>0){const T=new Array(C).fill("");w=[...S,...T],w.raw=[...S.raw,...T]}else typeof S=="function"&&S.__emotion_real!==S&&(w=T=>S(F({},T,{theme:hd(F({},T,{defaultTheme:r,themeId:t}))})));const A=y(w,...b);return o.muiName&&(A.muiName=o.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const IQ=nV(),iV=IQ;function PQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:UM(t.components[r].defaultProps,n)}function i2({props:e,name:t,defaultTheme:r,themeId:n}){let i=U1(r);return n&&(i=i[n]||i),PQ({theme:i,name:t,props:e})}function a2(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function DQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function gu(e){if(e.type)return e;if(e.charAt(0)==="#")return gu(DQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(ws(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(ws(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function j1(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function RQ(e){e=gu(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),j1({type:s,values:l})}function ND(e){e=gu(e);let t=e.type==="hsl"||e.type==="hsla"?gu(RQ(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function LQ(e,t){const r=ND(e),n=ND(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function gr(e,t){return e=gu(e),t=a2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,j1(e)}function aV(e,t){if(e=gu(e),t=a2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return j1(e)}function oV(e,t){if(e=gu(e),t=a2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return j1(e)}const EQ=O.createContext(null),sV=EQ;function lV(){return O.useContext(sV)}const OQ=typeof Symbol=="function"&&Symbol.for,NQ=OQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function zQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function BQ(e){const{children:t,theme:r}=e,n=lV(),i=O.useMemo(()=>{const a=n===null?r:zQ(n,r);return a!=null&&(a[NQ]=n!==null),a},[r,n]);return E.jsx(sV.Provider,{value:i,children:t})}const zD={};function BD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function FQ(e){const{children:t,theme:r,themeId:n}=e,i=eV(zD),a=lV()||zD,o=BD(n,i,r),s=BD(n,a,r,!0);return E.jsx(BQ,{theme:s,children:E.jsx(z1.Provider,{value:o,children:t})})}const $Q=["className","component","disableGutters","fixed","maxWidth","classes"],VQ=hv(),GQ=iV("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Te(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),HQ=e=>i2({props:e,name:"MuiContainer",defaultTheme:VQ}),WQ=(e,t)=>{const r=l=>Ge(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Te(String(o))}`,i&&"fixed",a&&"disableGutters"]};return We(s,r,n)};function UQ(e={}){const{createStyledComponent:t=GQ,useThemeProps:r=HQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>F({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return O.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=me(u,$Q),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=WQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:xe(m.root,c),ref:l},v))})}const jQ=["component","direction","spacing","divider","children","className","useFlexGap"],qQ=hv(),YQ=iV("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function XQ(e){return i2({props:e,name:"MuiStack",defaultTheme:qQ})}function ZQ(e,t){const r=O.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],QQ=({ownerState:e,theme:t})=>{let r=F({display:"flex",flexDirection:"column"},ji({theme:t},AS({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=t2(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=AS({values:e.direction,base:i}),o=AS({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=Tn(r,ji({theme:t},o,(l,u)=>e.useFlexGap?{gap:vu(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${KQ(u?a[u]:e.direction)}`]:vu(n,l)}}))}return r=CK(t.breakpoints,r),r};function JQ(e={}){const{createStyledComponent:t=YQ,useThemeProps:r=XQ,componentName:n="MuiStack"}=e,i=()=>We({root:["root"]},l=>Ge(n,l),{}),a=t(QQ);return O.forwardRef(function(l,u){const c=r(l),f=n2(c),{component:d="div",direction:h="column",spacing:p=0,divider:v,children:g,className:m,useFlexGap:y=!1}=f,x=me(f,jQ),S={direction:h,spacing:p,useFlexGap:y},_=i();return E.jsx(a,F({as:d,ownerState:S,ref:u,className:xe(_.root,m)},x,{children:v?ZQ(g,v):g}))})}function eJ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const tJ={black:"#000",white:"#fff"},_p=tJ,rJ={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},nJ=rJ,iJ={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wu=iJ,aJ={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Uu=aJ,oJ={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},pd=oJ,sJ={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ju=sJ,lJ={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},qu=lJ,uJ={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Yu=uJ,cJ=["mode","contrastThreshold","tonalOffset"],FD={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_p.white,default:_p.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},MS={text:{primary:_p.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_p.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $D(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=oV(e.main,i):t==="dark"&&(e.dark=aV(e.main,a)))}function fJ(e="light"){return e==="dark"?{main:ju[200],light:ju[50],dark:ju[400]}:{main:ju[700],light:ju[400],dark:ju[800]}}function dJ(e="light"){return e==="dark"?{main:Wu[200],light:Wu[50],dark:Wu[400]}:{main:Wu[500],light:Wu[300],dark:Wu[700]}}function hJ(e="light"){return e==="dark"?{main:Uu[500],light:Uu[300],dark:Uu[700]}:{main:Uu[700],light:Uu[400],dark:Uu[800]}}function pJ(e="light"){return e==="dark"?{main:qu[400],light:qu[300],dark:qu[700]}:{main:qu[700],light:qu[500],dark:qu[900]}}function vJ(e="light"){return e==="dark"?{main:Yu[400],light:Yu[300],dark:Yu[700]}:{main:Yu[800],light:Yu[500],dark:Yu[900]}}function gJ(e="light"){return e==="dark"?{main:pd[400],light:pd[300],dark:pd[700]}:{main:"#ed6c02",light:pd[500],dark:pd[900]}}function mJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=me(e,cJ),a=e.primary||fJ(t),o=e.secondary||dJ(t),s=e.error||hJ(t),l=e.info||pJ(t),u=e.success||vJ(t),c=e.warning||gJ(t);function f(v){return LQ(v,MS.text.primary)>=r?MS.text.primary:FD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(ws(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(ws(12,g?` (${g})`:"",JSON.stringify(v.main)));return $D(v,"light",y,n),$D(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:MS,light:FD};return Tn(F({common:F({},_p),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:nJ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const yJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function xJ(e){return Math.round(e*1e5)/1e5}const VD={textTransform:"uppercase"},GD='"Roboto", "Helvetica", "Arial", sans-serif';function SJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=GD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=me(r,yJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===GD?{letterSpacing:`${xJ(S/y)}em`}:{},_,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,VD),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,VD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tn(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const bJ=.2,_J=.14,wJ=.12;function Vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${_J})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wJ})`].join(",")}const CJ=["none",Vt(0,2,1,-1,0,1,1,0,0,1,3,0),Vt(0,3,1,-2,0,2,2,0,0,1,5,0),Vt(0,3,3,-2,0,3,4,0,0,1,8,0),Vt(0,2,4,-1,0,4,5,0,0,1,10,0),Vt(0,3,5,-1,0,5,8,0,0,1,14,0),Vt(0,3,5,-1,0,6,10,0,0,1,18,0),Vt(0,4,5,-2,0,7,10,1,0,2,16,1),Vt(0,5,5,-3,0,8,10,1,0,3,14,2),Vt(0,5,6,-3,0,9,12,1,0,3,16,2),Vt(0,6,6,-3,0,10,14,1,0,4,18,3),Vt(0,6,7,-4,0,11,15,1,0,4,20,3),Vt(0,7,8,-4,0,12,17,2,0,5,22,4),Vt(0,7,8,-4,0,13,19,2,0,5,24,4),Vt(0,7,9,-4,0,14,21,2,0,5,26,4),Vt(0,8,9,-5,0,15,22,2,0,6,28,5),Vt(0,8,10,-5,0,16,24,2,0,6,30,5),Vt(0,8,11,-5,0,17,26,2,0,6,32,5),Vt(0,9,11,-5,0,18,28,2,0,7,34,6),Vt(0,9,12,-6,0,19,29,2,0,7,36,6),Vt(0,10,13,-6,0,20,31,3,0,8,38,7),Vt(0,10,13,-6,0,21,33,3,0,8,40,7),Vt(0,10,14,-6,0,22,35,3,0,8,42,7),Vt(0,11,14,-7,0,23,36,3,0,9,44,8),Vt(0,11,15,-7,0,24,38,3,0,9,46,8)],TJ=CJ,AJ=["duration","easing","delay"],MJ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function HD(e){return`${Math.round(e)}ms`}function kJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function IJ(e){const t=F({},MJ,e.easing),r=F({},uV,e.duration);return F({getAutoHeightDuration:kJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return me(a,AJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:HD(o)} ${s} ${typeof l=="string"?l:HD(l)}`).join(",")}},e,{easing:t,duration:r})}const PJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},DJ=PJ,RJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function o2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=me(e,RJ);if(e.vars)throw new Error(ws(18));const s=mJ(n),l=hv(e);let u=Tn(l,{mixins:eJ(l.breakpoints,r),palette:s,shadows:TJ.slice(),typography:SJ(s,a),transitions:IJ(i),zIndex:F({},DJ)});return u=Tn(u,o),u=t.reduce((c,f)=>Tn(c,f),u),u.unstable_sxConfig=F({},H1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return W1({sx:f,theme:this})},u}const LJ=o2(),q1=LJ,mu="$$material";function je({props:e,name:t}){return i2({props:e,name:t,defaultTheme:q1,themeId:mu})}function cV(e){return E.jsx(pQ,F({},e,{defaultTheme:q1,themeId:mu}))}const EJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),OJ=e=>F({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),NJ=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=F({html:EJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},OJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function fV(e){const t=je({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(cV,{styles:i=>NJ(i,n)}),r]})}function Nf(){const e=U1(q1);return e[mu]||e}const Va=e=>Ph(e)&&e!=="classes",zJ=Ph,BJ=nV({themeId:mu,defaultTheme:q1,rootShouldForwardProp:Va}),pe=BJ,FJ=["theme"];function dV(e){let{theme:t}=e,r=me(e,FJ);const n=t[mu];return E.jsx(FQ,F({},r,{themeId:n?mu:void 0,theme:n||t}))}const $J=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},WD=$J;function VJ(e){return Ge("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],HJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(r)}`]};return We(i,VJ,n)},WJ=pe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Te(r.color)}`],t[`fontSize${Te(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),hV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=me(n,GJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=HJ(v);return E.jsxs(WJ,F({as:s,className:xe(m.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?E.jsx("title",{children:f}):null]}))});hV.muiName="SvgIcon";const UD=hV;function Mu(e,t){function r(n,i){return E.jsx(UD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=UD.muiName,O.memo(O.forwardRef(r))}const UJ={configure:e=>{jM.configure(e)}},jJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Te,createChainedFunction:wC,createSvgIcon:Mu,debounce:cv,deprecatedPropType:lZ,isMuiElement:kh,ownerDocument:on,ownerWindow:Da,requirePropFactory:uZ,setRef:Ey,unstable_ClassNameGenerator:UJ,unstable_useEnhancedEffect:po,unstable_useId:R4,unsupportedProp:dZ,useControlled:yp,useEventCallback:ya,useForkRef:Ar,useIsFocusVisible:WM},Symbol.toStringTag,{value:"Module"}));function kC(e,t){return kC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kC(e,t)}function pV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kC(e,t)}const jD={disabled:!1},zy=ma.createContext(null);var qJ=function(t){return t.scrollTop},eh="unmounted",xl="exited",Sl="entering",xc="entered",IC="exiting",wo=function(e){pV(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=xl,a.appearStatus=Sl):l=xc:n.unmountOnExit||n.mountOnEnter?l=eh:l=xl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===eh?{status:xl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Sl&&o!==xc&&(a=Sl):(o===Sl||o===xc)&&(a=IC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Sl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this);o&&qJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xl&&this.setState({status:eh})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[og.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||jD.disabled){this.safeSetState({status:xc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:xc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:og.findDOMNode(this);if(!a||jD.disabled){this.safeSetState({status:xl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:IC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:xl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===eh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=me(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(zy.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);wo.contextType=zy;wo.propTypes={};function Xu(){}wo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xu,onEntering:Xu,onEntered:Xu,onExit:Xu,onExiting:Xu,onExited:Xu};wo.UNMOUNTED=eh;wo.EXITED=xl;wo.ENTERING=Sl;wo.ENTERED=xc;wo.EXITING=IC;const s2=wo;function YJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l2(e,t){var r=function(a){return t&&O.isValidElement(a)?t(a):a},n=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function XJ(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;oe.scrollTop;function yf(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function tee(e){return Ge("MuiCollapse",e)}Ue("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ree=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],nee=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return We(n,tee,r)},iee=pe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),aee=pe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),oee=pe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),gV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:m="vertical",style:y,timeout:x=uV.standard,TransitionComponent:S=s2}=n,_=me(n,ree),b=F({},n,{orientation:m,collapsedSize:s}),w=nee(b),C=Nf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),k=typeof s=="number"?`${s}px`:s,I=m==="horizontal",P=I?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Ar(r,R),V=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[I?"clientWidth":"clientHeight"]:0,$=V((W,ee)=>{T.current&&I&&(T.current.style.position="absolute"),W.style[P]=k,f&&f(W,ee)}),L=V((W,ee)=>{const te=N();T.current&&I&&(T.current.style.position="");const{duration:ie,easing:re}=yf({style:y,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=C.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${Q}ms`,M.current=Q}else W.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;W.style[P]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=V((W,ee)=>{W.style[P]="auto",d&&d(W,ee)}),U=V(W=>{W.style[P]=`${N()}px`,p&&p(W)}),B=V(v),j=V(W=>{const ee=N(),{duration:te,easing:ie}=yf({style:y,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const re=C.transitions.getAutoHeightDuration(ee);W.style.transitionDuration=`${re}ms`,M.current=re}else W.style.transitionDuration=typeof te=="string"?te:`${te}ms`;W.style[P]=k,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:$,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx(iee,F({as:l,className:xe(w.root,o,{entered:w.entered,exited:!c&&k==="0px"&&w.hidden}[W]),style:F({[I?"minWidth":"minHeight"]:k},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(aee,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(oee,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});gV.muiSupportAuto=!0;const see=gV;function lee(e){return Ge("MuiPaper",e)}Ue("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const uee=["className","component","elevation","square","variant"],cee=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return We(a,lee,i)},fee=pe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gr("#fff",WD(t.elevation))}, ${gr("#fff",WD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=me(n,uee),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=cee(c);return E.jsx(fee,F({as:a,ownerState:c,className:xe(f.root,i),ref:r},u))}),Y1=dee,hee=O.createContext({}),mV=hee;function pee(e){return Ge("MuiAccordion",e)}const vee=Ue("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),lg=vee,gee=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],mee=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return We({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},pee,t)},yee=pe(Y1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${lg.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${lg.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${lg.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${lg.expanded}`]:{margin:"16px 0"}})),xee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=see,TransitionProps:h}=n,p=me(n,gee),[v,g]=yp({controlled:u,default:o,name:"Accordion",state:"expanded"}),m=O.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[y,...x]=O.Children.toArray(i),S=O.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:m}),[v,s,l,m]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=mee(_);return E.jsxs(yee,F({className:xe(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(mV.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),yV=xee;function See(e){return Ge("MuiAccordionDetails",e)}Ue("MuiAccordionDetails",["root"]);const bee=["className"],_ee=e=>{const{classes:t}=e;return We({root:["root"]},See,t)},wee=pe("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),Cee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=me(n,bee),o=n,s=_ee(o);return E.jsx(wee,F({className:xe(s.root,i),ref:r,ownerState:o},a))}),xV=Cee;function Tee(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=O.useState(!1),d=xe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=xe(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),O.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const Aee=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),oi=Aee,Mee=["center","classes","className"];let X1=e=>e,qD,YD,XD,ZD;const PC=550,kee=80,Iee=KM(qD||(qD=X1` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Pee=KM(YD||(YD=X1` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Dee=KM(XD||(XD=X1` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),Ree=pe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Lee=pe(Tee,{name:"MuiTouchRipple",slot:"Ripple"})(ZD||(ZD=X1` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),oi.rippleVisible,Iee,PC,({theme:e})=>e.transitions.easing.easeInOut,oi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,oi.child,oi.childLeaving,Pee,PC,({theme:e})=>e.transitions.easing.easeInOut,oi.childPulsate,Dee,({theme:e})=>e.transitions.easing.easeInOut),Eee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=me(n,Mee),[l,u]=O.useState([]),c=O.useRef(0),f=O.useRef(null);O.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=O.useRef(!1),h=O.useRef(0),p=O.useRef(null),v=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=O.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:A}=S;u(T=>[...T,E.jsx(Lee,{classes:{ripple:xe(a.ripple,oi.ripple),rippleVisible:xe(a.rippleVisible,oi.rippleVisible),ripplePulsate:xe(a.ripplePulsate,oi.ripplePulsate),child:xe(a.child,oi.child),childLeaving:xe(a.childLeaving,oi.childLeaving),childPulsate:xe(a.childPulsate,oi.childPulsate)},timeout:PC,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=A},[a]),m=O.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:A=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const T=A?null:v.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,P;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(R-M.left),I=Math.round(z-M.top)}if(C)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-k),k)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;P=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},kee)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:b})},[i,g]),y=O.useCallback(()=>{m({},{pulsate:!0})},[m]),x=O.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return O.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),E.jsx(Ree,F({className:xe(oi.root,a.root,o),ref:v},s,{children:E.jsx(eee,{component:null,exit:!0,children:l})}))}),Oee=Eee;function Nee(e){return Ge("MuiButtonBase",e)}const zee=Ue("MuiButtonBase",["root","disabled","focusVisible"]),Bee=zee,Fee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],$ee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=We({root:["root",t&&"disabled",r&&"focusVisible"]},Nee,i);return r&&n&&(o.root+=` ${n}`),o},Vee=pe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Bee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Gee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:A,onTouchMove:T,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:P,type:R}=n,z=me(n,Fee),V=O.useRef(null),N=O.useRef(null),$=Ar(N,P),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=WM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),V.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,$t,Sr=f){return ya(Ae=>($t&&$t(Ae),!Sr&&N.current&&N.current[he](Ae),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),Pe=ie("start",M),Ye=ie("stop",A),He=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{V.current||(V.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),kt=()=>{const he=V.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),It=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&kt()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&kt()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),jt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&kt()&&he.key===" "&&!he.defaultPrevented&&v(he)});let Pt=l;Pt==="button"&&(z.href||z.to)&&(Pt=h);const K={};Pt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Ar(r,B,V),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:j}),we=$ee(Re);return E.jsxs(Vee,F({as:Pt,className:xe(we.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:It,onKeyUp:jt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:Ye,onTouchMove:He,onTouchStart:Pe,ref:le,tabIndex:u?-1:k,type:R},K,z,{children:[o,te?E.jsx(Oee,F({ref:$,center:a},I)):null]}))}),ku=Gee;function Hee(e){return Ge("MuiAccordionSummary",e)}const Wee=Ue("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Fc=Wee,Uee=["children","className","expandIcon","focusVisibleClassName","onClick"],jee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return We({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Hee,t)},qee=pe(ku,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Fc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Fc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Fc.expanded}`]:{minHeight:64}})}),Yee=pe("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Fc.expanded}`]:{margin:"20px 0"}})),Xee=pe("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Fc.expanded}`]:{transform:"rotate(180deg)"}})),Zee=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=me(n,Uee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(mV),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=jee(v);return E.jsxs(qee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:xe(g.root,a),focusVisibleClassName:xe(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(Yee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Xee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),SV=Zee;function Kee(e){return Ge("MuiIconButton",e)}const Qee=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jee=Qee,ete=["edge","children","className","color","disabled","disableFocusRipple","size"],tte=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Te(n)}`,i&&`edge${Te(i)}`,`size${Te(a)}`]};return We(o,Kee,t)},rte=pe(ku,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Te(r.color)}`],r.edge&&t[`edge${Te(r.edge)}`],t[`size${Te(r.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Jee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),nte=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=me(n,ete),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=tte(d);return E.jsx(rte,F({className:xe(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),bV=nte;function ite(e){return Ge("MuiTypography",e)}Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ate=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ote=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Te(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return We(s,ite,o)},ste=pe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Te(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),KD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lte={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ute=e=>lte[e]||e,cte=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTypography"}),i=ute(n.color),a=n2(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=KD}=a,p=me(a,ate),v=F({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||KD[d])||"span",m=ote(v);return E.jsx(ste,F({as:g,ref:r,ownerState:v,className:xe(m.root,s)},p))}),Ze=cte;function fte(e){return Ge("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const dte=["className","color","enableColorOnDark","position"],hte=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Te(t)}`,`position${Te(r)}`]};return We(i,fte,n)},ug=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,pte=pe(Y1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Te(r.position)}`],t[`color${Te(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&F({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ug(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ug(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ug(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ug(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),vte=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=me(n,dte),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=hte(u);return E.jsx(pte,F({square:!0,component:"header",ownerState:u,elevation:4,className:xe(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),gte=vte;function xf(e){return typeof e=="string"}function mte(e,t,r){return e===void 0||xf(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function _V(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function yte(e,t,r){return typeof e=="function"?e(t,r):e}function QD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function xte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=xe(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=_V(F({},i,n)),s=QD(n),l=QD(i),u=t(o),c=xe(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=F({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=F({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const Ste=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=me(e,Ste),s=a?{}:yte(n,i),{props:l,internalRef:u}=xte(F({},o,{externalSlotProps:s})),c=Ar(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return mte(r,F({},l,{ref:c}),i)}const bte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _te(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function wte(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Cte(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||wte(e))}function Tte(e){const t=[],r=[];return Array.from(e.querySelectorAll(bte)).forEach((n,i)=>{const a=_te(n);a===-1||!Cte(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Ate(){return!0}function Mte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Tte,isEnabled:o=Ate,open:s}=e,l=O.useRef(!1),u=O.useRef(null),c=O.useRef(null),f=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),p=O.useRef(null),v=Ar(t.ref,p),g=O.useRef(null);O.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!p.current)return;const x=on(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),O.useEffect(()=>{if(!s||!p.current)return;const x=on(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var A,T;const M=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function kte(e){return typeof e=="function"?e():e}const Ite=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=O.useState(null),l=Ar(O.isValidElement(n)?n.ref:null,r);if(po(()=>{a||s(kte(i)||document.body)},[i,a]),po(()=>{if(o&&!a)return Ey(r,o),()=>{Ey(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&Ef.createPortal(n,o)})});function Pte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function JD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function Dte(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function eR(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Dte(o);s&&l&&Dh(o,i)})}function kS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Rte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Pte(n)){const o=L4(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${JD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${JD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function Lte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ete{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Dh(t.modalRef,!1);const i=Lte(r);eR(r,t.mount,t.modalRef,i,!0);const a=kS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=kS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Rte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=kS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Dh(t.modalRef,r),eR(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Dh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ote(e){return typeof e=="function"?e():e}function Nte(e){return e?e.props.hasOwnProperty("in"):!1}const zte=new Ete;function Bte(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=zte,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=O.useRef({}),h=O.useRef(null),p=O.useRef(null),v=Ar(p,f),[g,m]=O.useState(!c),y=Nte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=ya(()=>{const z=Ote(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Dh(p.current,x))}),T=O.useCallback(()=>{i.remove(_(),x)},[x,i]);O.useEffect(()=>()=>{T()},[T]),O.useEffect(()=>{c?w():(!y||!a)&&T()},[c,T,y,a,w]);const M=z=>V=>{var N;(N=z.onKeyDown)==null||N.call(z,V),!(V.key!=="Escape"||!C())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},k=z=>V=>{var N;(N=z.onClick)==null||N.call(z,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(z={})=>{const V=_V(e);delete V.onTransitionEnter,delete V.onTransitionExited;const N=F({},V,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const V=z;return F({"aria-hidden":!0},V,{onClick:k(V),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},V=()=>{m(!0),s&&s(),a&&T()};return{onEnter:wC(z,l==null?void 0:l.props.onEnter),onExited:wC(V,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const Fte=["onChange","maxRows","minRows","style","value"];function cg(e){return parseInt(e,10)||0}const $te={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Vte=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=me(t,Fte),{current:u}=O.useRef(s!=null),c=O.useRef(null),f=Ar(r,c),d=O.useRef(null),h=O.useRef(0),[p,v]=O.useState({outerHeightStyle:0}),g=O.useCallback(()=>{const _=c.current,w=Da(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const A=w.boxSizing,T=cg(w.paddingBottom)+cg(w.paddingTop),M=cg(w.borderBottomWidth)+cg(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let P=k;a&&(P=Math.max(Number(a)*I,P)),i&&(P=Math.min(Number(i)*I,P)),P=Math.max(P,I);const R=P+(A==="border-box"?T+M:0),z=Math.abs(P-k)<=1;return{outerHeightStyle:R,overflow:z}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=O.useCallback(()=>{const _=g();tR(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();tR(_)||Ef.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=cv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),po(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},$te.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Iu({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Gte=O.createContext(void 0),c2=Gte;function $s(){return O.useContext(c2)}function rR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function By(e,t=!1){return e&&(rR(e.value)&&e.value!==""||t&&rR(e.defaultValue)&&e.defaultValue!=="")}function Hte(e){return e.startAdornment}function Wte(e){return Ge("MuiInputBase",e)}const Ute=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Sf=Ute,jte=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Z1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Te(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},K1=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},qte=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${Te(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Te(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return We(v,Wte,t)},Q1=pe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Z1})(({theme:e,ownerState:t})=>F({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),J1=pe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:K1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return F({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Sf.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Sf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Yte=E.jsx(cV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xte=O.forwardRef(function(t,r){var n;const i=je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:P,readOnly:R,renderSuffix:z,rows:V,slotProps:N={},slots:$={},startAdornment:L,type:G="text",value:U}=i,B=me(i,jte),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(we=>{},[]),te=Ar(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=$s(),J=Iu({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,O.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,Pe=O.useCallback(we=>{By(we)?fe&&fe():de&&de()},[fe,de]);po(()=>{X&&Pe({value:j})},[j,Pe,X]);const Ye=we=>{if(J.disabled){we.stopPropagation();return}M&&M(we),y.onFocus&&y.onFocus(we),Q&&Q.onFocus?Q.onFocus(we):re(!0)},He=we=>{C&&C(we),y.onBlur&&y.onBlur(we),Q&&Q.onBlur?Q.onBlur(we):re(!1)},at=(we,...he)=>{if(!X){const $t=we.target||W.current;if($t==null)throw new Error(ws(1));Pe({value:$t.value})}y.onChange&&y.onChange(we,...he),A&&A(we,...he)};O.useEffect(()=>{Pe(W.current)},[]);const ot=we=>{W.current&&we.currentTarget===we.target&&W.current.focus(),T&&T(we)};let kt=m,Be=y;b&&kt==="input"&&(V?Be=F({type:void 0,minRows:V,maxRows:V},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),kt=Vte);const It=we=>{Pe(we.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const jt=F({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:L,type:G}),Pt=qte(jt),K=$.root||u.Root||Q1,le=N.root||c.root||{},Re=$.input||u.Input||J1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&Yte,E.jsxs(K,F({},le,!xf(K)&&{ownerState:F({},jt,le.ownerState)},{ref:r,onClick:ot},B,{className:xe(Pt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(c2.Provider,{value:null,children:E.jsx(Re,F({ownerState:jt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:It,name:w,placeholder:P,readOnly:R,required:J.required,rows:V,value:j,onKeyDown:k,onKeyUp:I,type:G},Be,!xf(Re)&&{as:kt,ownerState:F({},jt,Be.ownerState)},{ref:te,className:xe(Pt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:He,onChange:at,onFocus:Ye}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),f2=Xte;function Zte(e){return Ge("MuiInput",e)}const Kte=F({},Sf,Ue("MuiInput",["root","underline","input"])),vd=Kte;function Qte(e){return Ge("MuiOutlinedInput",e)}const Jte=F({},Sf,Ue("MuiOutlinedInput",["root","notchedOutline","input"])),Io=Jte;function ere(e){return Ge("MuiFilledInput",e)}const tre=F({},Sf,Ue("MuiFilledInput",["root","underline","input"])),Us=tre,rre=Mu(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ire={entering:{opacity:1},entered:{opacity:1}},are=O.forwardRef(function(t,r){const n=Nf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=s2}=t,x=me(t,nre),S=O.useRef(null),_=Ar(S,s.ref,r),b=P=>R=>{if(P){const z=S.current;R===void 0?P(z):P(z,R)}},w=b(d),C=b((P,R)=>{vV(P);const z=yf({style:g,timeout:m,easing:l},{mode:"enter"});P.style.webkitTransition=n.transitions.create("opacity",z),P.style.transition=n.transitions.create("opacity",z),c&&c(P,R)}),A=b(f),T=b(v),M=b(P=>{const R=yf({style:g,timeout:m,easing:l},{mode:"exit"});P.style.webkitTransition=n.transitions.create("opacity",R),P.style.transition=n.transitions.create("opacity",R),h&&h(P)}),k=b(p),I=P=>{a&&a(S.current,P)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:k,onExiting:T,addEndListener:I,timeout:m},x,{children:(P,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},ire[P],g,s.props.style),ref:_},R))}))}),ore=are;function sre(e){return Ge("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const lre=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ure=e=>{const{classes:t,invisible:r}=e;return We({root:["root",r&&"invisible"]},sre,t)},cre=pe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),fre=O.forwardRef(function(t,r){var n,i,a;const o=je({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=ore,transitionDuration:m}=o,y=me(o,lre),x=F({},o,{component:u,invisible:d}),S=ure(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(cre,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:xe(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),dre=fre,hre=o2(),pre=yQ({themeId:mu,defaultTheme:hre,defaultClassName:"MuiBox-root",generateClassName:jM.generate}),xt=pre;function vre(e){return Ge("MuiButton",e)}const gre=Ue("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),fg=gre,mre=O.createContext({}),yre=mre,xre=O.createContext(void 0),Sre=xre,bre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_re=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Te(t)}`,`size${Te(i)}`,`${a}Size${Te(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Te(i)}`],endIcon:["endIcon",`iconSize${Te(i)}`]},l=We(s,vre,o);return F({},o,l)},wV=e=>F({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wre=pe(ku,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Te(r.color)}`],t[`size${Te(r.size)}`],t[`${r.variant}Size${Te(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return F({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fg.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fg.disabled}`]:F({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fg.disabled}`]:{boxShadow:"none"}}),Cre=pe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Te(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},wV(e))),Tre=pe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Te(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},wV(e))),Are=O.forwardRef(function(t,r){const n=O.useContext(yre),i=O.useContext(Sre),a=UM(n,t),o=je({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=me(o,bre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=_re(b),C=y&&E.jsx(Cre,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(Tre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(wre,F({ownerState:b,className:xe(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:xe(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Pu=Are;function Mre(e){return Ge("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kre=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ire=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${Te(i)}`],input:["input"]};return We(a,Mre,t)},Pre=pe(ku)(({ownerState:e})=>F({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Dre=pe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rre=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:_,type:b,value:w}=t,C=me(t,kre),[A,T]=yp({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=$s(),k=$=>{y&&y($),M&&M.onFocus&&M.onFocus($)},I=$=>{g&&g($),M&&M.onBlur&&M.onBlur($)},P=$=>{if($.nativeEvent.defaultPrevented)return;const L=$.target.checked;T(L),m&&m($,L)};let R=l;M&&typeof R>"u"&&(R=M.disabled);const z=b==="checkbox"||b==="radio",V=F({},t,{checked:A,disabled:R,disableFocusRipple:u,edge:c}),N=Ire(V);return E.jsxs(Pre,F({component:"span",className:xe(N.root,o),centerRipple:!0,focusRipple:!u,disabled:R,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:V,ref:r},C,{children:[E.jsx(Dre,F({autoFocus:n,checked:i,defaultChecked:s,className:N.input,disabled:R,id:z?d:void 0,name:v,onChange:P,readOnly:x,ref:p,required:S,ownerState:V,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),A?a:f]}))}),Lre=Rre,Ere=Mu(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Ore=Mu(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Nre=Mu(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function zre(e){return Ge("MuiCheckbox",e)}const Bre=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),IS=Bre,Fre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],$re=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${Te(n)}`,`size${Te(i)}`]},o=We(a,zre,t);return F({},t,o)},Vre=pe(Lre,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${Te(r.color)}`]]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${IS.checked}, &.${IS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${IS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Gre=E.jsx(Ore,{}),Hre=E.jsx(Ere,{}),Wre=E.jsx(Nre,{}),Ure=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Gre,color:s="primary",icon:l=Hre,indeterminate:u=!1,indeterminateIcon:c=Wre,inputProps:f,size:d="medium",className:h}=a,p=me(a,Fre),v=u?c:l,g=u?c:o,m=F({},a,{color:s,indeterminate:u,size:d}),y=$re(m);return E.jsx(Vre,F({type:"checkbox",inputProps:F({"data-indeterminate":u},f),icon:O.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:O.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:xe(y.root,h)},p,{classes:y}))}),jre=Ure,qre=UQ({createStyledComponent:pe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Te(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>je({props:e,name:"MuiContainer"})}),zf=qre;function Yre(e){return Ge("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const Xre=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Zre=e=>{const{open:t,exited:r,classes:n}=e;return We({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Yre,n)},Kre=pe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Qre=pe(dre,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=je({name:"MuiModal",props:t}),{BackdropComponent:c=Qre,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:k,slotProps:I,slots:P}=u,R=me(u,Xre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:V,getBackdropProps:N,getTransitionProps:$,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=Bte(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=Zre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=$();W.onEnter=fe,W.onExited=de}const ee=(n=(i=P==null?void 0:P.root)!=null?i:m.Root)!=null?n:Kre,te=(a=(o=P==null?void 0:P.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=I==null?void 0:I.root)!=null?s:y.root,re=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:V,additionalProps:{ref:r,as:g},ownerState:j,className:xe(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:xe(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!k&&(!B||U)?null:E.jsx(Ite,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(Mte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,W)})]}))})}),CV=Jre;function ene(e){return Ge("MuiDivider",e)}Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const tne=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],rne=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return We({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},ene,n)},nne=pe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>F({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gr(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ine=pe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),TV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=me(n,tne),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=rne(v);return E.jsx(nne,F({as:s,className:xe(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(ine,{className:g.wrapper,ownerState:v,children:a}):null}))});TV.muiSkipListHighlight=!0;const gd=TV,ane=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],one=e=>{const{classes:t,disableUnderline:r}=e,i=We({root:["root",!r&&"underline"],input:["input"]},ere,t);return F({},t,i)},sne=pe(Q1,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Z1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return F({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Us.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Us.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Us.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Us.disabled}, .${Us.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Us.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),lne=pe(J1,{name:"MuiFilledInput",slot:"Input",overridesResolver:K1})(({theme:e,ownerState:t})=>F({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),AV=O.forwardRef(function(t,r){var n,i,a,o;const s=je({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=me(s,ane),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=one(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?Tn(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:sne,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:lne;return E.jsx(f2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});AV.muiName="Input";const MV=AV;function une(e){return Ge("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],fne=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Te(r)}`,n&&"fullWidth"]};return We(i,une,t)},dne=pe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),hne=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=me(n,cne),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=fne(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{if(!kh(P,["Input","Select"]))return;const R=kh(P,["Select"])?P.props.input:P;R&&Hte(R.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{kh(P,["Input","Select"])&&(By(P.props,!0)||By(P.props.inputProps,!0))&&(I=!0)}),I}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return E.jsx(c2.Provider,{value:k,children:E.jsx(dne,F({as:s,ownerState:y,className:xe(x.root,a),ref:r},m,{children:i}))})}),kV=hne,pne=JQ({createStyledComponent:pe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),vne=pne;function gne(e){return Ge("MuiFormControlLabel",e)}const mne=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),th=mne,yne=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],xne=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${Te(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return We(o,gne,t)},Sne=pe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${th.label}`]:t.label},t.root,t[`labelPlacement${Te(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>F({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${th.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${th.label}`]:{[`&.${th.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),bne=pe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${th.error}`]:{color:(e.vars||e).palette.error.main}})),_ne=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=me(a,yne),g=$s(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof l.props[A]>"u"&&typeof a[A]<"u"&&(x[A]=a[A])});const S=Iu({props:a,muiFormControl:g,states:["error"]}),_=F({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=xne(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==Ze&&!c&&(C=E.jsx(Ze,F({component:"span"},w,{className:xe(b.label,w==null?void 0:w.className),children:C}))),E.jsxs(Sne,F({className:xe(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?E.jsxs(vne,{direction:"row",alignItems:"center",children:[C,E.jsxs(bne,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))}),wne=_ne;function Cne(e){return Ge("MuiFormHelperText",e)}const Tne=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),nR=Tne;var iR;const Ane=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Mne=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${Te(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return We(u,Cne,t)},kne=pe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Te(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ine=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=me(n,Ane),l=$s(),u=Iu({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Mne(c);return E.jsx(kne,F({as:o,ownerState:c,className:xe(f.root,a),ref:r},s,{children:i===" "?iR||(iR=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Pne=Ine;function Dne(e){return Ge("MuiFormLabel",e)}const Rne=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Rh=Rne,Lne=["children","className","color","component","disabled","error","filled","focused","required"],Ene=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Te(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return We(l,Dne,t)},One=pe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Rh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rh.error}`]:{color:(e.vars||e).palette.error.main}})),Nne=pe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Rh.error}`]:{color:(e.vars||e).palette.error.main}})),zne=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=me(n,Lne),l=$s(),u=Iu({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Ene(c);return E.jsxs(One,F({as:o,ownerState:c,className:xe(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Nne,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Bne=zne,Fne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function DC(e){return`scale(${e}, ${e**2})`}const $ne={entering:{opacity:1,transform:DC(1)},entered:{opacity:1,transform:"none"}},PS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),IV=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=s2}=t,m=me(t,Fne),y=O.useRef(),x=O.useRef(),S=Nf(),_=O.useRef(null),b=Ar(_,a.ref,r),w=R=>z=>{if(R){const V=_.current;z===void 0?R(V):R(V,z)}},C=w(c),A=w((R,z)=>{vV(R);const{duration:V,delay:N,easing:$}=yf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=V,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:PS?L:L*.666,delay:N,easing:$})].join(","),l&&l(R,z)}),T=w(u),M=w(h),k=w(R=>{const{duration:z,delay:V,easing:N}=yf({style:p,timeout:v,easing:o},{mode:"exit"});let $;v==="auto"?($=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=$):$=z,R.style.transition=[S.transitions.create("opacity",{duration:$,delay:V}),S.transitions.create("transform",{duration:PS?$:$*.666,delay:PS?V:V||$*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=DC(.75),f&&f(R)}),I=w(d),P=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:P,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:DC(.75),visibility:R==="exited"&&!s?"hidden":void 0},$ne[R],p,a.props.style),ref:b},z))}))});IV.muiSupportAuto=!0;const Vne=IV,Gne=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Hne=e=>{const{classes:t,disableUnderline:r}=e,i=We({root:["root",!r&&"underline"],input:["input"]},Zte,t);return F({},t,i)},Wne=pe(Q1,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Z1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),F({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vd.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vd.disabled}, .${vd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${vd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Une=pe(J1,{name:"MuiInput",slot:"Input",overridesResolver:K1})({}),PV=O.forwardRef(function(t,r){var n,i,a,o;const s=je({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=me(s,Gne),y=Hne(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?Tn(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Wne,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Une;return E.jsx(f2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});PV.muiName="Input";const DV=PV;function jne(e){return Ge("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const qne=["disableAnimation","margin","shrink","variant","className"],Yne=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${Te(n)}`,o],asterisk:[s&&"asterisk"]},u=We(l,jne,t);return F({},t,u)},Xne=pe(Bne,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Rh.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>F({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&F({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&F({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&F({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Zne=O.forwardRef(function(t,r){const n=je({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=me(n,qne),l=$s();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Iu({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Yne(f);return E.jsx(Xne,F({"data-shrink":u,ownerState:f,ref:r,className:xe(d.root,o)},s,{classes:d}))}),RV=Zne;function Kne(e){return Ge("MuiLink",e)}const Qne=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Jne=Qne,LV={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},eie=e=>LV[e]||e,tie=({theme:e,ownerState:t})=>{const r=eie(t.color),n=mf(e,`palette.${r}`,!1)||t.color,i=mf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:gr(n,.4)},rie=tie,nie=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],iie=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Te(i)}`,r==="button"&&"button",n&&"focusVisible"]};return We(a,Kne,t)},aie=pe(Ze,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Te(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:rie({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jne.focusVisible}`]:{outline:"auto"}})),oie=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=me(n,nie),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=WM(),[y,x]=O.useState(!1),S=Ar(r,m),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=iie(w);return E.jsx(aie,F({color:a,className:xe(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(LV).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),nn=oie,sie=O.createContext({}),Lh=sie;function lie(e){return Ge("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const uie=["children","className","component","dense","disablePadding","subheader"],cie=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return We({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},lie,t)},fie=pe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),die=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=me(n,uie),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=cie(d);return E.jsx(Lh.Provider,{value:f,children:E.jsxs(fie,F({as:o,className:xe(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),EV=die;function hie(e){return Ge("MuiListItem",e)}const pie=Ue("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Sc=pie,vie=Ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),gie=vie;function mie(e){return Ge("MuiListItemSecondaryAction",e)}Ue("MuiListItemSecondaryAction",["root","disableGutters"]);const yie=["className"],xie=e=>{const{disableGutters:t,classes:r}=e;return We({root:["root",t&&"disableGutters"]},mie,r)},Sie=pe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),OV=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=me(n,yie),o=O.useContext(Lh),s=F({},n,{disableGutters:o.disableGutters}),l=xie(s);return E.jsx(Sie,F({className:xe(l.root,i),ownerState:s,ref:r},a))});OV.muiName="ListItemSecondaryAction";const bie=OV,_ie=["className"],wie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Cie=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Tie=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return We({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},hie,n)},Aie=pe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Cie})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${gie.root}`]:{paddingRight:48}},{[`&.${Sc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Mie=pe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kie=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=me(n.ContainerProps,_ie),A=me(n,wie),T=O.useContext(Lh),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),k=O.useRef(null);po(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),P=I.length&&kh(I[I.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:P,selected:_}),z=Tie(R),V=Ar(k,r),N=w.root||c.Root||Aie,$=b.root||f.root||{},L=F({className:xe(z.root,$.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=xe(Sc.focusVisible,x),G=ku),P?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Lh.Provider,{value:M,children:E.jsxs(Mie,F({as:d,className:xe(z.container,h),ref:V,ownerState:R},C,{children:[E.jsx(N,F({},$,!xf(N)&&{as:G,ownerState:F({},R,$.ownerState)},L,{children:I})),I.pop()]}))})):E.jsx(Lh.Provider,{value:M,children:E.jsxs(N,F({},$,{as:G,ref:V},!xf(N)&&{ownerState:F({},R,$.ownerState)},L,{children:[I,S&&E.jsx(bie,{children:S})]}))})}),Zu=kie,Iie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function DS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function aR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function NV(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function md(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!NV(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Pie=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=me(t,Iie),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),md(S,b,u,l,DS);else if(_==="ArrowUp")x.preventDefault(),md(S,b,u,l,aR);else if(_==="Home")x.preventDefault(),md(S,null,u,l,DS);else if(_==="End")x.preventDefault(),md(S,null,u,l,aR);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&NV(b,w);w.previousKeyMatched&&(T||md(S,b,!1,l,DS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Ar(h,r);let m=-1;O.Children.forEach(o,(x,S)=>{if(!O.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=O.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),O.cloneElement(x,_)}return x});return E.jsx(EV,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),Die=Pie;function Rie(e){return Ge("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);const Lie=["onEntering"],Eie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Oie=["slotProps"];function oR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function sR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function lR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function RS(e){return typeof e=="function"?e():e}const Nie=e=>{const{classes:t}=e;return We({root:["root"],paper:["paper"]},Rie,t)},zie=pe(CV,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zV=pe(Y1,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Bie=O.forwardRef(function(t,r){var n,i,a;const o=je({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Vne,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=me(o.TransitionProps,Lie),M=me(o,Eie),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),P=Ar(I,k.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Nie(R),V=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=RS(l),Pe=(fe&&fe.nodeType===1?fe:on(I.current).body).getBoundingClientRect();return{top:Pe.top+oR(Pe,u.vertical),left:Pe.left+sR(Pe,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:oR(fe,_.vertical),horizontal:sR(fe,_.horizontal)}),[_.horizontal,_.vertical]),$=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},Pe=N(de);if(f==="none")return{top:null,left:null,transformOrigin:lR(Pe)};const Ye=V();let He=Ye.top-Pe.vertical,at=Ye.left-Pe.horizontal;const ot=He+de.height,kt=at+de.width,Be=Da(RS(l)),It=Be.innerHeight-g,jt=Be.innerWidth-g;if(g!==null&&HeIt){const Pt=ot-It;He-=Pt,Pe.vertical+=Pt}if(g!==null&&atjt){const Pt=kt-jt;at-=Pt,Pe.horizontal+=Pt}return{top:`${Math.round(He)}px`,left:`${Math.round(at)}px`,transformOrigin:lR(Pe)}},[l,f,V,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=I.current;if(!fe)return;const de=$(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[$]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=cv(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(RS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:zie,te=(a=x==null?void 0:x.paper)!=null?a:zV,ie=Ra({elementType:te,externalSlotProps:F({},k,{style:L?k.style:F({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:P},ownerState:R,className:xe(z.paper,k==null?void 0:k.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:xe(z.root,h)}),{slotProps:Q}=re,J=me(re,Oie);return E.jsx(ee,F({},J,!xf(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Fie=Bie;function $ie(e){return Ge("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const Vie=["onEntering"],Gie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Hie={vertical:"top",horizontal:"right"},Wie={vertical:"top",horizontal:"left"},Uie=e=>{const{classes:t}=e;return We({root:["root"],paper:["paper"],list:["list"]},$ie,t)},jie=pe(Fie,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qie=pe(zV,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yie=pe(Die,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Xie=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=me(a.TransitionProps,Vie),_=me(a,Gie),b=Nf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Uie(C),T=o&&!u&&d,M=O.useRef(null),k=($,L)=>{M.current&&M.current.adjustStyleForScrollbar($,b),g&&g($,L)},I=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let P=-1;O.Children.map(s,($,L)=>{O.isValidElement($)&&($.props.disabled||(m==="selectedMenu"&&$.props.selected||P===-1)&&(P=L))});const R=(n=y.paper)!=null?n:qie,z=(i=x.paper)!=null?i:h,V=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(jie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Hie:Wie,slots:{paper:R,root:y.root},slotProps:{root:V,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:k},S),ownerState:C},_,{classes:p,children:E.jsx(Yie,F({onKeyDown:I,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:T,variant:m},c,{className:xe(A.list,c.className),children:s}))}))}),Zie=Xie;function Kie(e){return Ge("MuiNativeSelect",e)}const Qie=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),d2=Qie,Jie=["className","disabled","error","IconComponent","inputRef","variant"],eae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Te(r)}`,a&&"iconOpen",n&&"disabled"]};return We(s,Kie,t)},BV=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${d2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),tae=pe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Va,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${d2.multiple}`]:t.multiple}]}})(BV),FV=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${d2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),rae=pe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})(FV),nae=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=me(t,Jie),c=F({},t,{disabled:i,variant:l,error:a}),f=eae(c);return E.jsxs(O.Fragment,{children:[E.jsx(tae,F({ownerState:c,className:xe(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(rae,{as:o,ownerState:c,className:f.icon})]})}),iae=nae;var uR;const aae=["children","classes","className","label","notched"],oae=pe("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),sae=pe("legend")(({ownerState:e,theme:t})=>F({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&F({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function lae(e){const{className:t,label:r,notched:n}=e,i=me(e,aae),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(oae,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(sae,{ownerState:o,children:a?E.jsx("span",{children:r}):uR||(uR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const uae=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],cae=e=>{const{classes:t}=e,n=We({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Qte,t);return F({},t,n)},fae=pe(Q1,{shouldForwardProp:e=>Va(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Z1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Io.focused} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Io.error} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Io.disabled} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),dae=pe(lae,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),hae=pe(J1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:K1})(({theme:e,ownerState:t})=>F({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),$V=O.forwardRef(function(t,r){var n,i,a,o,s;const l=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=me(l,uae),y=cae(l),x=$s(),S=Iu({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:fae,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:hae;return E.jsx(f2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(dae,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.jsxs(O.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:F({},y,{notchedOutline:null})}))});$V.muiName="Input";const VV=$V;function pae(e){return Ge("MuiSelect",e)}const vae=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yd=vae;var cR;const gae=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],mae=pe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${yd.select}`]:t.select},{[`&.${yd.select}`]:t[r.variant]},{[`&.${yd.error}`]:t.error},{[`&.${yd.multiple}`]:t.multiple}]}})(BV,{[`&.${yd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yae=pe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})(FV),xae=pe("input",{shouldForwardProp:e=>zJ(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Sae(e){return e==null||typeof e=="string"&&!e.trim()}const bae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Te(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return We(s,pae,t)},_ae=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:P,value:R,variant:z="standard"}=t,V=me(t,gae),[N,$]=yp({controlled:R,default:f,name:"Select"}),[L,G]=yp({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Ar(r,g),re=O.useCallback(Ae=>{B.current=Ae,Ae&&X(Ae)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Ae=on(B.current).getElementById(m);if(Ae){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Ae.addEventListener("click",ut),()=>{Ae.removeEventListener("click",ut)}}},[m]);const J=(Ae,ut)=>{Ae?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Ae))},fe=Ae=>{Ae.button===0&&(Ae.preventDefault(),B.current.focus(),J(!0,Ae))},de=Ae=>{J(!1,Ae)},Pe=O.Children.toArray(l),Ye=Ae=>{const ut=Pe.find(Dt=>Dt.props.value===Ae.target.value);ut!==void 0&&($(ut.props.value),b&&b(Ae,ut))},He=Ae=>ut=>{let Dt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Dt=Array.isArray(N)?N.slice():[];const ve=N.indexOf(Ae.props.value);ve===-1?Dt.push(Ae.props.value):Dt.splice(ve,1)}else Dt=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ut),N!==Dt&&($(Dt),b)){const ve=ut.nativeEvent||ut,De=new ve.constructor(ve.type,ve);Object.defineProperty(De,"target",{writable:!0,value:{value:Dt,name:S}}),b(De,Ae)}x||J(!1,ut)}},at=Ae=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),J(!0,Ae))},ot=j!==null&&L,kt=Ae=>{!ot&&_&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:N,name:S}}),_(Ae))};delete V["aria-invalid"];let Be,It;const jt=[];let Pt=!1;(By({value:N})||h)&&(k?Be=k(N):Pt=!0);const K=Pe.map(Ae=>{if(!O.isValidElement(Ae))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(ws(2));ut=N.some(Dt=>fR(Dt,Ae.props.value)),ut&&Pt&&jt.push(Ae.props.children)}else ut=fR(N,Ae.props.value),ut&&Pt&&(It=Ae.props.children);return O.cloneElement(Ae,{"aria-selected":ut?"true":"false",onClick:He(Ae),onKeyUp:Dt=>{Dt.key===" "&&Dt.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp(Dt)},role:"option",selected:ut,value:void 0,"data-value":Ae.props.value})});Pt&&(x?jt.length===0?Be=null:Be=jt.reduce((Ae,ut,Dt)=>(Ae.push(ut),Dt{const{classes:t}=e;return t},h2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Va(e)&&e!=="variant",slot:"Root"},Mae=pe(DV,h2)(""),kae=pe(VV,h2)(""),Iae=pe(MV,h2)(""),GV=O.forwardRef(function(t,r){const n=je({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=rre,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=me(n,Cae),T=y?iae:wae,M=$s(),k=Iu({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,P=F({},n,{variant:I,classes:o}),R=Aae(P),z=me(R,Tae),V=d||{standard:E.jsx(Mae,{ownerState:P}),outlined:E.jsx(kae,{label:p,ownerState:P}),filled:E.jsx(Iae,{ownerState:P})}[I],N=Ar(r,V.ref);return E.jsx(O.Fragment,{children:O.cloneElement(V,F({inputComponent:T,inputProps:F({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:F({id:f},w)},h,{classes:h?Tn(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:N,className:xe(V.props.className,s,R.root)},!d&&{variant:I},A))})});GV.muiName="Select";const HV=GV;function Pae(e){return Ge("MuiTab",e)}const Dae=Ue("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),js=Dae,Rae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Lae=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${Te(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return We(u,Pae,t)},Eae=pe(ku,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Te(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${js.iconWrapper}`]:F({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${js.selected}`]:{opacity:1},[`&.${js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Oae=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=me(n,Rae),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Lae(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:xe(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,y),h&&h(T)},A=T=>{g&&!v&&d&&d(T,y),p&&p(T)};return E.jsxs(Eae,F({focusRipple:!o,className:xe(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Nae=Oae,zae=O.createContext(),WV=zae;function Bae(e){return Ge("MuiTable",e)}Ue("MuiTable",["root","stickyHeader"]);const Fae=["className","component","padding","size","stickyHeader"],$ae=e=>{const{classes:t,stickyHeader:r}=e;return We({root:["root",r&&"stickyHeader"]},Bae,t)},Vae=pe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),dR="table",Gae=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTable"}),{className:i,component:a=dR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=me(n,Fae),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=$ae(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(WV.Provider,{value:d,children:E.jsx(Vae,F({as:a,role:a===dR?null:"table",ref:r,className:xe(f.root,i),ownerState:c},u))})}),Hae=Gae,Wae=O.createContext(),ex=Wae;function Uae(e){return Ge("MuiTableBody",e)}Ue("MuiTableBody",["root"]);const jae=["className","component"],qae=e=>{const{classes:t}=e;return We({root:["root"]},Uae,t)},Yae=pe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xae={variant:"body"},hR="tbody",Zae=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableBody"}),{className:i,component:a=hR}=n,o=me(n,jae),s=F({},n,{component:a}),l=qae(s);return E.jsx(ex.Provider,{value:Xae,children:E.jsx(Yae,F({className:xe(l.root,i),as:a,ref:r,role:a===hR?null:"rowgroup",ownerState:s},o))})}),Kae=Zae;function Qae(e){return Ge("MuiTableCell",e)}const Jae=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),eoe=Jae,toe=["align","className","component","padding","scope","size","sortDirection","variant"],roe=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Te(n)}`,i!=="normal"&&`padding${Te(i)}`,`size${Te(a)}`]};return We(s,Qae,t)},noe=pe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Te(r.size)}`],r.padding!=="normal"&&t[`padding${Te(r.padding)}`],r.align!=="inherit"&&t[`align${Te(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?oV(gr(e.palette.divider,1),.88):aV(gr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${eoe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ioe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=me(n,toe),h=O.useContext(WV),p=O.useContext(ex),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=F({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=roe(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(noe,F({as:g,ref:r,className:xe(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),pR=ioe;function aoe(e){return Ge("MuiTableContainer",e)}Ue("MuiTableContainer",["root"]);const ooe=["className","component"],soe=e=>{const{classes:t}=e;return We({root:["root"]},aoe,t)},loe=pe("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),uoe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=me(n,ooe),s=F({},n,{component:a}),l=soe(s);return E.jsx(loe,F({ref:r,as:a,className:xe(l.root,i),ownerState:s},o))}),coe=uoe;function foe(e){return Ge("MuiTableHead",e)}Ue("MuiTableHead",["root"]);const doe=["className","component"],hoe=e=>{const{classes:t}=e;return We({root:["root"]},foe,t)},poe=pe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),voe={variant:"head"},vR="thead",goe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableHead"}),{className:i,component:a=vR}=n,o=me(n,doe),s=F({},n,{component:a}),l=hoe(s);return E.jsx(ex.Provider,{value:voe,children:E.jsx(poe,F({as:a,className:xe(l.root,i),ref:r,role:a===vR?null:"rowgroup",ownerState:s},o))})}),moe=goe;function yoe(e){return Ge("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const xoe=["className","component","disableGutters","variant"],Soe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return We({root:["root",!r&&"gutters",n]},yoe,t)},boe=pe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>F({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),_oe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=me(n,xoe),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Soe(u);return E.jsx(boe,F({as:a,className:xe(c.root,i),ref:r,ownerState:u},l))}),woe=_oe,Coe=Mu(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Toe=Mu(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Aoe(e){return Ge("MuiTableRow",e)}const Moe=Ue("MuiTableRow",["root","selected","hover","head","footer"]),gR=Moe,koe=["className","component","hover","selected"],Ioe=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return We({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Aoe,t)},Poe=pe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${gR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${gR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),mR="tr",Doe=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTableRow"}),{className:i,component:a=mR,hover:o=!1,selected:s=!1}=n,l=me(n,koe),u=O.useContext(ex),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Ioe(c);return E.jsx(Poe,F({as:a,ref:r,className:xe(f.root,i),role:a===mR?null:"row",ownerState:c},l))}),yR=Doe;function Roe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Loe(e,t,r,n={},i=()=>{}){const{ease:a=Roe,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Eoe=["onChange"],Ooe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Noe(e){const{onChange:t}=e,r=me(e,Eoe),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return po(()=>{const o=cv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Ooe,ref:i},r))}function zoe(e){return Ge("MuiTabScrollButton",e)}const Boe=Ue("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Foe=Boe,$oe=["className","slots","slotProps","direction","orientation","disabled"],Voe=e=>{const{classes:t,orientation:r,disabled:n}=e;return We({root:["root",r,n&&"disabled"]},zoe,t)},Goe=pe(ku,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Foe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Hoe=O.forwardRef(function(t,r){var n,i;const a=je({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=me(a,$oe),d=Nf().direction==="rtl",h=F({isRtl:d},a),p=Voe(h),v=(n=s.StartScrollButtonIcon)!=null?n:Coe,g=(i=s.EndScrollButtonIcon)!=null?i:Toe,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(Goe,F({component:"div",className:xe(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Woe=Hoe;function Uoe(e){return Ge("MuiTabs",e)}const joe=Ue("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),LS=joe,qoe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],xR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,SR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,dg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},Yoe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return We({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Uoe,l)},Xoe=pe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${LS.scrollButtons}`]:t.scrollButtons},{[`& .${LS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${LS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Zoe=pe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Koe=pe("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Qoe=pe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Joe=pe(Noe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),bR={},ese=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTabs"}),i=Nf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=Woe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,k=me(n,qoe),I=T==="scrollable",P=g==="vertical",R=P?"scrollTop":"scrollLeft",z=P?"top":"left",V=P?"bottom":"right",N=P?"clientHeight":"clientWidth",$=P?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:P,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!P,scrollableY:I&&P,centered:u&&!I,scrollButtonsHideMobile:!h}),G=Yoe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(bR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,Pe]=O.useState({overflow:"hidden",scrollbarWidth:0}),Ye=new Map,He=O.useRef(null),at=O.useRef(null),ot=()=>{const ve=He.current;let De;if(ve){const mt=ve.getBoundingClientRect();De={clientWidth:ve.clientWidth,scrollLeft:ve.scrollLeft,scrollTop:ve.scrollTop,scrollLeftNormalized:xZ(ve,i.direction),scrollWidth:ve.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let Xe;if(ve&&A!==!1){const mt=at.current.children;if(mt.length>0){const Fr=mt[Ye.get(A)];Xe=Fr?Fr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:Xe}},kt=ya(()=>{const{tabsMeta:ve,tabMeta:De}=ot();let Xe=0,mt;if(P)mt="top",De&&ve&&(Xe=De.top-ve.top+ve.scrollTop);else if(mt=a?"right":"left",De&&ve){const Mo=a?ve.scrollLeftNormalized+ve.clientWidth-ve.scrollWidth:ve.scrollLeft;Xe=(a?-1:1)*(De[mt]-ve[mt]+Mo)}const Fr={[mt]:Xe,[$]:De?De[$]:0};if(isNaN(W[mt])||isNaN(W[$]))ee(Fr);else{const Mo=Math.abs(W[mt]-Fr[mt]),Gv=Math.abs(W[$]-Fr[$]);(Mo>=1||Gv>=1)&&ee(Fr)}}),Be=(ve,{animation:De=!0}={})=>{De?Loe(R,He.current,ve,{duration:i.transitions.duration.standard}):He.current[R]=ve},It=ve=>{let De=He.current[R];P?De+=ve:(De+=ve*(a?-1:1),De*=a&&E4()==="reverse"?-1:1),Be(De)},jt=()=>{const ve=He.current[N];let De=0;const Xe=Array.from(at.current.children);for(let mt=0;mtve){mt===0&&(De=ve);break}De+=Fr[N]}return De},Pt=()=>{It(-1*jt())},K=()=>{It(jt())},le=O.useCallback(ve=>{Pe({overflow:null,scrollbarWidth:ve})},[]),Re=()=>{const ve={};ve.scrollbarSizeListener=I?E.jsx(Joe,{onChange:le,className:xe(G.scrollableX,G.hideScrollbar)}):null;const Xe=I&&(y==="auto"&&(te||re)||y===!0);return ve.scrollButtonStart=Xe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:Pt,disabled:!te},w,{className:xe(G.scrollButtons,w.className)})):null,ve.scrollButtonEnd=Xe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:xe(G.scrollButtons,w.className)})):null,ve},we=ya(ve=>{const{tabsMeta:De,tabMeta:Xe}=ot();if(!(!Xe||!De)){if(Xe[z]De[V]){const mt=De[R]+(Xe[V]-De[V]);Be(mt,{animation:ve})}}}),he=ya(()=>{I&&y!==!1&&fe(!J)});O.useEffect(()=>{const ve=cv(()=>{He.current&&kt()}),De=Da(He.current);De.addEventListener("resize",ve);let Xe;return typeof ResizeObserver<"u"&&(Xe=new ResizeObserver(ve),Array.from(at.current.children).forEach(mt=>{Xe.observe(mt)})),()=>{ve.clear(),De.removeEventListener("resize",ve),Xe&&Xe.disconnect()}},[kt]),O.useEffect(()=>{const ve=Array.from(at.current.children),De=ve.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const Xe=ve[0],mt=ve[De-1],Fr={root:He.current,threshold:.99},Mo=Zx=>{ie(!Zx[0].isIntersecting)},Gv=new IntersectionObserver(Mo,Fr);Gv.observe(Xe);const M7=Zx=>{Q(!Zx[0].isIntersecting)},tP=new IntersectionObserver(M7,Fr);return tP.observe(mt),()=>{Gv.disconnect(),tP.disconnect()}}},[I,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{kt()}),O.useEffect(()=>{we(bR!==W)},[we,W]),O.useImperativeHandle(l,()=>({updateIndicator:kt,updateScrollButtons:he}),[kt,he]);const $t=E.jsx(Qoe,F({},b,{className:xe(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Ae=O.Children.map(c,ve=>{if(!O.isValidElement(ve))return null;const De=ve.props.value===void 0?Sr:ve.props.value;Ye.set(De,Sr);const Xe=De===A;return Sr+=1,O.cloneElement(ve,F({fullWidth:T==="fullWidth",indicator:Xe&&!j&&$t,selected:Xe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!ve.props.tabIndex?{tabIndex:0}:{}))}),ut=ve=>{const De=at.current,Xe=on(De).activeElement;if(Xe.getAttribute("role")!=="tab")return;let Fr=g==="horizontal"?"ArrowLeft":"ArrowUp",Mo=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Fr="ArrowRight",Mo="ArrowLeft"),ve.key){case Fr:ve.preventDefault(),dg(De,Xe,SR);break;case Mo:ve.preventDefault(),dg(De,Xe,xR);break;case"Home":ve.preventDefault(),dg(De,null,xR);break;case"End":ve.preventDefault(),dg(De,null,SR);break}},Dt=Re();return E.jsxs(Xoe,F({className:xe(G.root,f),ownerState:L,ref:r,as:d},k,{children:[Dt.scrollButtonStart,Dt.scrollbarSizeListener,E.jsxs(Zoe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[P?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:He,children:[E.jsx(Koe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Ae}),j&&$t]}),Dt.scrollButtonEnd]}))}),tse=ese;function rse(e){return Ge("MuiTextField",e)}Ue("MuiTextField",["root"]);const nse=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ise={standard:DV,filled:MV,outlined:VV},ase=e=>{const{classes:t}=e;return We({root:["root"]},rse,t)},ose=pe(kV,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sse=O.forwardRef(function(t,r){const n=je({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:k,required:I=!1,rows:P,select:R=!1,SelectProps:z,type:V,value:N,variant:$="outlined"}=n,L=me(n,nse),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:R,variant:$}),U=ase(G),B={};$==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=R4(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=ise[$],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:P,maxRows:_,minRows:b,type:V,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:k,inputProps:m},B,y));return E.jsxs(ose,F({className:xe(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:$,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(RV,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(HV,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Pne,F({id:X},d,{children:p}))]}))}),Fl=sse;var p2={},UV={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(UV);var pv=UV.exports,ES={};const lse=I7(jJ);var _R;function vv(){return _R||(_R=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=lse}(ES)),ES}var use=pv;Object.defineProperty(p2,"__esModule",{value:!0});var jV=p2.default=void 0,cse=use(vv()),fse=E,dse=(0,cse.default)((0,fse.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");jV=p2.default=dse;function v2({open:e,onClose:t,children:r}){return E.jsx(CV,{onClose:t,open:e,children:E.jsxs(xt,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[E.jsx(bV,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(jV,{})}),r]})})}const Vs=y4,hse=P4;function $l(e){const t=hse();return O.useCallback(r=>{t(e(r))},[e,t])}function pse(){const[e,t]=O.useState(!1),r=Vs(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(xt,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Pu,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(v2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Ze,{component:"h2",mb:1,variant:"h4",children:"About"}),E.jsxs(Ze,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the ",E.jsx(nn,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),E.jsxs(Ze,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and ",E.jsx(nn,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",E.jsx(nn,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),E.jsxs(Ze,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful ",E.jsx(nn,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),E.jsxs("div",{children:[E.jsx(Ze,{component:"h2",mb:1,variant:"h4",children:"Version"}),E.jsx(nn,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Ze,{component:"h2",mb:1,variant:"h4",children:"Links"}),E.jsx(Ze,{component:"p",variant:"subtitle1",children:E.jsx(nn,{href:"https://github.com/locustio/locust",children:"GitHub"})}),E.jsx(Ze,{component:"p",variant:"subtitle1",children:E.jsx(nn,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function vse(){return E.jsx(xt,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(zf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(pse,{})})})}var g2={},gse=pv;Object.defineProperty(g2,"__esModule",{value:!0});var qV=g2.default=void 0,mse=gse(vv()),yse=E,xse=(0,mse.default)((0,yse.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");qV=g2.default=xse;var m2={},Sse=pv;Object.defineProperty(m2,"__esModule",{value:!0});var YV=m2.default=void 0,bse=Sse(vv()),_se=E,wse=(0,bse.default)((0,_se.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");YV=m2.default=wse;const Ma={DARK:"dark",LIGHT:"light"},XV=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;function Dr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:tx(e)?2:rx(e)?3:0}function vs(e,t){return Ts(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bm(e,t){return Ts(e)===2?e.get(t):e[t]}function ZV(e,t,r){var n=Ts(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function KV(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function tx(e){return Pse&&e instanceof Map}function rx(e){return Dse&&e instanceof Set}function bl(e){return e.o||e.t}function y2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=JV(e);delete t[Bt];for(var r=Qc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Tse),Object.freeze(e),t&&Cs(e,function(r,n){return x2(n,!0)},!0)),e}function Tse(){Dr(2)}function S2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ka(e){var t=OC[e];return t||Dr(18,e),t}function QV(e,t){OC[e]||(OC[e]=t)}function RC(){return wp}function OS(e,t){t&&(ka("Patches"),e.u=[],e.s=[],e.v=t)}function Fy(e){LC(e),e.p.forEach(Ase),e.p=null}function LC(e){e===wp&&(wp=e.l)}function wR(e){return wp={p:[],l:wp,h:e,m:!0,_:0}}function Ase(e){var t=e[Bt];t.i===0||t.i===1?t.j():t.g=!0}function NS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ka("ES5").S(t,e,n),n?(r[Bt].P&&(Fy(t),Dr(4)),Yi(e)&&(e=$y(t,e),t.l||Vy(t,e)),t.u&&ka("Patches").M(r[Bt].t,e,t.u,t.s)):e=$y(t,r,[]),Fy(t),t.u&&t.v(t.u,t.s),e!==_2?e:void 0}function $y(e,t,r){if(S2(t))return t;var n=t[Bt];if(!n)return Cs(t,function(s,l){return CR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Vy(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=y2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Cs(a,function(s,l){return CR(e,n,i,s,l,r,o)}),Vy(e,i,!1),r&&e.u&&ka("Patches").N(n,r,e.u,e.s)}return n.o}function CR(e,t,r,n,i,a,o){if(qi(i)){var s=$y(e,i,a&&t&&t.i!==3&&!vs(t.R,n)?a.concat(n):void 0);if(ZV(r,n,s),!qi(s))return;e.m=!1}else o&&r.add(i);if(Yi(i)&&!S2(i)){if(!e.h.D&&e._<1)return;$y(e,i),t&&t.A.l||Vy(e,i)}}function Vy(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&x2(t,r)}function zS(e,t){var r=e[Bt];return(r?bl(r):e)[t]}function TR(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Xo(e){e.P||(e.P=!0,e.l&&Xo(e.l))}function BS(e){e.o||(e.o=y2(e.t))}function EC(e,t,r){var n=tx(t)?ka("MapSet").F(t,r):rx(t)?ka("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:RC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=Cp;o&&(l=[s],u=rh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):ka("ES5").J(t,r);return(r?r.A:RC()).p.push(n),n}function Mse(e){return qi(e)||Dr(22,e),function t(r){if(!Yi(r))return r;var n,i=r[Bt],a=Ts(r);if(i){if(!i.P&&(i.i<4||!ka("ES5").K(i)))return i.t;i.I=!0,n=AR(r,a),i.I=!1}else n=AR(r,a);return Cs(n,function(o,s){i&&Bm(i.t,o)===s||ZV(n,o,t(s))}),a===3?new Set(n):n}(e)}function AR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y2(e)}function kse(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Bt];return Cp.get(l,a)},set:function(l){var u=this[Bt];Cp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Bt];if(!s.P)switch(s.i){case 5:n(s)&&Xo(s);break;case 4:r(s)&&Xo(s)}}}function r(a){for(var o=a.t,s=a.k,l=Qc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Bt){var f=o[c];if(f===void 0&&!vs(o,c))return!0;var d=s[c],h=d&&d[Bt];if(h?h.t!==f:!KV(d,f))return!0}}var p=!!o[Bt];return l.length!==Qc(o).length+(p?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),x=1;x1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=ka("Patches").$;return qi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Un=new Lse,gv=Un.produce,eG=Un.produceWithPatches.bind(Un);Un.setAutoFreeze.bind(Un);Un.setUseProxies.bind(Un);var IR=Un.applyPatches.bind(Un);Un.createDraft.bind(Un);Un.finishDraft.bind(Un);function Tp(e){"@babel/helpers - typeof";return Tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tp(e)}function Ese(e,t){if(Tp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ose(e){var t=Ese(e,"string");return Tp(t)==="symbol"?t:String(t)}function Nse(e,t,r){return t=Ose(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ur(1));return r(tG)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(Ur(3));return a}function f(v){if(typeof v!="function")throw new Error(Ur(4));if(l)throw new Error(Ur(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(Ur(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!zse(v))throw new Error(Ur(7));if(typeof v.type>"u")throw new Error(Ur(8));if(l)throw new Error(Ur(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(Ur(12));if(typeof r(void 0,{type:Gy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function w2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(Ur(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Hy(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var u=r[l];return l>0&&(r.splice(l,1),r.unshift(u)),u.value}return Wy}function i(s,l){n(s)===Wy&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Gse=function(t,r){return t===r};function Hse(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]-1;return r&&n}function mv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),mle=lG.actions,yle=lG.reducer;function xle(){const e=Vs(({theme:{isDarkMode:n}})=>n),t=$l(mle.setIsDarkMode);O.useEffect(()=>{t(XV===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(bV,{color:"inherit",onClick:r,children:e?E.jsx(YV,{}):E.jsx(qV,{})})}function uG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>uG(e,n,r)):typeof t=="object"?A2(t,r):t)}const A2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:uG(e,i,t)}),{}),cG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Sle=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),ih=e=>A2(e,cG),ble=e=>A2(e,Sle),_le=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),wle=e=>Object.fromEntries(new URLSearchParams(e).entries()),Cle=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},On={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Jl=ih(window.templateArgs);function Tle({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(xt,{sx:{display:"flex",columnGap:2},children:[E.jsxs(xt,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ze,{variant:"button",children:"Host"}),E.jsx(Ze,{children:r})]}),E.jsx(gd,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ze,{variant:"button",children:"Status"}),E.jsx(Ze,{variant:"button",children:t})]}),t===On.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(gd,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"Users"}),E.jsx(Ze,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(gd,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"Workers"}),E.jsx(Ze,{variant:"button",children:o})]})]}),E.jsx(gd,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"RPS"}),E.jsx(Ze,{variant:"button",children:n})]}),E.jsx(gd,{flexItem:!0,orientation:"vertical"}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ze,{variant:"button",children:"Failures"}),E.jsx(Ze,{variant:"button",children:`${i}%`})]})]})}const Ale=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Mle=Zn(Ale)(Tle),kle="input, select, textarea",Ile=e=>e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function fG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(kle)].reduce((o,s)=>({...o,[s.name]:Ile(s)}),{});t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var Uy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,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(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function Fle(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var GR=As;function pG(e,t){if(e===t||!(GR(e)&&GR(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},Vle=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function WR(e){if(!As(e))return e;for(var t=nr({},e),r=0,n=Object.entries(t);r"u"&&s===HR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Yy(t,null,function(){var _,b,w,C,A,T,M,k,I,P,R,z,V,N,$,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,Pe,Ye,He,at,ot,kt;return Uy(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,P=k.headers,R=P===void 0?new Headers(m.headers):P,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,$=N===void 0?v??"json":N,L=k.validateStatus,G=L===void 0?g??$le:L,U=k.timeout,B=U===void 0?p:U,j=$R(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=nr(xa(nr({},m),{signal:_}),j),R=new Headers(WR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(It){return typeof It=="object"&&(As(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(WR(V)),I+=te+ie),I=zle(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return Pe=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:Ye=J.clone(),M.response=Ye,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,$).then(function(It){return He=It},function(It){return ot=It}),Ye.text().then(function(It){return at=It},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return kt=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(kt)},meta:M}];case 10:return[2,G(J,He)?{data:He,meta:M}:{error:{status:J.status,data:He},meta:M}]}})})};function y(x,S){return Yy(this,null,function(){var _;return Uy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var UR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),M2=An("__rtkq/focused"),vG=An("__rtkq/unfocused"),k2=An("__rtkq/online"),gG=An("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function mG(e){return e.type===La.query}function Hle(e){return e.type===La.mutation}function yG(e,t,r,n,i,a){return Wle(e)?e(t,r,n,i).map(FC).map(a):Array.isArray(e)?e.map(FC).map(a):[]}function Wle(e){return typeof e=="function"}function FC(e){return typeof e=="string"?{type:e}:e}function HS(e){return e!=null}var Mp=Symbol("forceQueryFn"),$C=function(e){return typeof e[Mp]=="function"};function Ule(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. + Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. + See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return jy(jy([],S(o)),S(s)).filter(HS)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(HS)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(HS)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=Mp,R=A[P];return function(z,V){var N,$,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:L},N[Mp]=R,N)),U=i.endpoints[S].select(w),B=z(G),j=U(V()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=($=o.get(z))==null?void 0:$[L],ie=function(){return U(V())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:L,abort:W,unwrap:function(){return Yy(this,null,function(){var J;return Uy(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),R=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),$=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(N,{arg:P.arg,requestId:R,abort:z,unwrap:V,unsubscribe:$,reset:$}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function jR(e){return e}function jle(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Gt.uninitialized)return M;if("data"in T)if(Yi(T.data)){var k=eG(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[Mp]=function(){return{data:_}},w)))}},c=function(x,S){return Yy(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,R,z,V,N,$,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Uy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=jR,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[Mp]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new UR(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[nh]=!0,B)])];case 8:if(N=J.sent(),$=N,!($ instanceof UR))return[3,12];L=jR,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L($.value,$.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:$.meta},j[nh]=!0,j)])];case 11:return U=J.sent(),$=U,[3,12];case 12:throw typeof process<"u",console.error($),$;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=zR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[nh]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return $C(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||mG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=zR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[nh]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Nh(C2(x),m(S)),matchFulfilled:Nh(Du(x),m(S)),matchRejected:Nh(Ap(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function xG(e,t,r,n){return yG(r[e.meta.arg.endpointName][t],Du(e)?e.payload:void 0,ix(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function hg(e,t,r){var n=e[t];n&&r(n)}function kp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function qR(e,t,r){var n=e[kp(t)];n&&r(n)}var xd={};function qle(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=An(t+"/resetApiState"),d=ui({name:t+"/queries",initialState:xd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:GS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;hg(_,C,function(T){T.data=IR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=$C(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Gt.uninitialized,endpointName:A.endpointName})),hg(b,A.queryCacheKey,function(I){I.status=Gt.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;hg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!$C(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Gt.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,R=C.baseQueryMeta,z=C.requestId,V=gv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?pG(qi(T.data)?Cse(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;hg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Gt.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Tue=e=>bc(e)===0;function Aue(e,t){return{...e,...t}}const Mue=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},ax=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),VC=Cue({baseQuery:Gle(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:ih}),getTasks:e.query({query:()=>"tasks",transformResponse:ih}),getExceptions:e.query({query:()=>"exceptions",transformResponse:ih}),getLogs:e.query({query:()=>"logs",transformResponse:ih}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Mue(ble(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:kue,useGetTasksQuery:Iue,useGetExceptionsQuery:Pue,useGetLogsQuery:Due,useStartSwarmMutation:bG}=VC;function Rue({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=bG(),i=a=>{e(),n(a)};return E.jsxs(zf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Ze,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(fG,{onSubmit:i,children:E.jsxs(xt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Fl,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:r||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Pu,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Lue=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),Eue=Zn(Lue)(Rue);function Oue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Pu,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(v2,{onClose:()=>t(!1),open:e,children:E.jsx(Eue,{onSubmit:()=>t(!1)})})]})}var I2={},Nue=pv;Object.defineProperty(I2,"__esModule",{value:!0});var P2=I2.default=void 0,zue=Nue(vv()),Bue=E,Fue=(0,zue.default)((0,Bue.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");P2=I2.default=Fue;function GC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(kV,{sx:a,children:[E.jsx(RV,{htmlFor:t,shrink:!0,children:e}),E.jsx(HV,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function $ue({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=_le(e),o=n?`${a} (${n})`:a;return r?E.jsx(GC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?E.jsx(wne,{control:E.jsx(jre,{defaultChecked:t}),label:o,name:e}):E.jsx(Fl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Vue({extraOptions:e}){return E.jsxs(yV,{children:[E.jsx(SV,{expandIcon:E.jsx(P2,{}),children:E.jsx(Ze,{children:"Custom parameters"})}),E.jsx(xV,{children:E.jsx(xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>E.jsx($ue,{label:t,...r},`valid-parameter-${n}`))})})]})}function yv(e,{payload:t}){return Aue(e,t)}const Gue=Jl,_G=ui({name:"swarm",initialState:Gue,reducers:{setSwarm:yv}}),wG=_G.actions,Hue=_G.reducer;function Wue({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=bG(),d=h=>{l({state:On.RUNNING,host:h.host||r,runTime:h.runTime,spawnRate:Number(h.spawnRate)||null,numUsers:Number(h.userCount)||null}),f(h)};return E.jsxs(zf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Ze,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(fG,{onSubmit:d,children:E.jsxs(xt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(GC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(GC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Fl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Fl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(yV,{children:[E.jsx(SV,{expandIcon:E.jsx(P2,{}),children:E.jsx(Ze,{children:"Advanced options"})}),E.jsx(xV,{children:E.jsx(Fl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Tue(n)&&E.jsx(Vue,{extraOptions:n}),E.jsx(Pu,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Uue=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),jue={setSwarm:wG.setSwarm},CG=Zn(Uue,jue)(Wue);function que(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Pu,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(v2,{onClose:()=>t(!1),open:e,children:E.jsx(CG,{})})]})}function Yue(){const e=()=>{fetch("stats/reset")};return E.jsx(Pu,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Xue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Pu,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Zue(){const e=Vs(({swarm:t})=>t.state);return e===On.READY?null:e===On.STOPPED?E.jsx(que,{}):E.jsxs(xt,{sx:{display:"flex",columnGap:2},children:[E.jsx(Oue,{}),E.jsx(Xue,{}),E.jsx(Yue,{})]})}function Kue(){return E.jsx(gte,{position:"static",children:E.jsx(zf,{maxWidth:"xl",children:E.jsxs(woe,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(nn,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Ze,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(xt,{sx:{display:"flex",columnGap:6},children:[E.jsx(Mle,{}),E.jsx(Zue,{}),E.jsx(xle,{})]})]})})})}function Que({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(Kue,{}),E.jsx("main",{children:e}),E.jsx(vse,{})]})}function ah(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const Jue={},TG=ui({name:"notification",initialState:Jue,reducers:{setNotification:yv}}),AG=TG.actions,ece=TG.reducer;function tce(e,{key:t,shouldNotify:r}){const n=$l(AG.setNotification),i=Vs(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{bc(e)>0&&bc(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=bc(e))},[e])}const rce={logs:[]},MG=ui({name:"logViewer",initialState:rce,reducers:{setLogs:yv}}),nce=MG.actions,ice=MG.reducer,ace=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function oce(){const e=Vs(({swarm:o})=>o),t=$l(nce.setLogs),{data:r,refetch:n}=Due(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(ace),[i]);return ah(n,5e3,{shouldRunInterval:e.state===On.SPAWNING||e.state==On.RUNNING}),tce(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var D2={},sce=pv;Object.defineProperty(D2,"__esModule",{value:!0});var kG=D2.default=void 0,lce=sce(vv()),nL=E,uce=(0,lce.default)([(0,nL.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,nL.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");kG=D2.default=uce;function cce(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const fce=/[ \t\n\f\r]/g;function dce(e){return typeof e=="object"?e.type==="text"?iL(e.value):!1:iL(e)}function iL(e){return e.replace(fce,"")===""}class xv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}xv.prototype.property={};xv.prototype.normal={};xv.prototype.space=null;function IG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&mce.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(oL,bce);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!oL.test(a)){let o=a.replace(yce,Sce);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=R2}return new i(n,t)}function Sce(e){return"-"+e.toLowerCase()}function bce(e){return e.charAt(1).toUpperCase()}const _ce={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},wce=IG([RG,DG,OG,NG,vce],"html"),zG=IG([RG,DG,OG,NG,gce],"svg");function Cce(e){return e.join(" ").trim()}var L2={exports:{}},sL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Tce=/\n/g,Ace=/^\s*/,Mce=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kce=/^:\s*/,Ice=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pce=/^[;\s]*/,Dce=/^\s+|\s+$/g,Rce=` +`,lL="/",uL="*",Pl="",Lce="comment",Ece="declaration",Oce=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(Tce);v&&(r+=v.length);var g=p.lastIndexOf(Rce);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Ace)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(lL!=e.charAt(0)||uL!=e.charAt(1))){for(var v=2;Pl!=e.charAt(v)&&(uL!=e.charAt(v)||lL!=e.charAt(v+1));)++v;if(v+=2,Pl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:Lce,comment:g})}}function d(){var p=a(),v=l(Mce);if(v){if(f(),!l(kce))return s("property missing ':'");var g=l(Ice),m=p({type:Ece,property:cL(v[0].replace(sL,Pl)),value:g?cL(g[0].replace(sL,Pl)):Pl});return l(Pce),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function cL(e){return e?e.replace(Dce,Pl):Pl}var Nce=Oce;function BG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Nce(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Fce(e){const t=E2(e),r=FG(e);if(t&&r)return{start:t,end:r}}function zh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fL(e.position):"start"in e||"end"in e?fL(e):"line"in e||"column"in e?UC(e):""}function UC(e){return dL(e&&e.line)+":"+dL(e&&e.column)}function fL(e){return UC(e&&e.start)+"-"+UC(e&&e.end)}function dL(e){return e&&typeof e=="number"?e:1}class dn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=zh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const O2={}.hasOwnProperty,$ce=new Map,Vce=/[A-Z]/g,Gce=/-([a-z])/g,Hce=new Set(["table","tbody","thead","tfoot","tr"]),Wce=new Set(["td","th"]);function Uce(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=qce(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=jce(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zG:wce,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=VG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function VG(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=zG,e.schema=i),e.ancestors.push(t);let a=Yce(e,t);const o=Xce(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Hce.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!dce(l):!0})),O2.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function jce(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function qce(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=E2(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Yce(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:$ce;for(;++n-1&&e.test(String.fromCharCode(r))}}const sfe={'"':"quot","&":"amp","<":"lt",">":"gt"};function lfe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+sfe[r]+";"}}function ufe(e,t){const r=lfe(Lu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Lu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const cfe={};function ffe(e,t){const r=t||cfe,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return HG(e,n,i)}function HG(e,t,r){if(dfe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hL(e.children,t,r)}return Array.isArray(e)?hL(e,t,r):""}function hL(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?(Ea(e,e.length,0,t),e):t}const vL={}.hasOwnProperty;function hfe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function ef(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ot(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return gt(l)?(e.enter(r),s(l)):t(l)}function s(l){return gt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Sfe(e,t,r){return Ot(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mL(e){if(e===null||Mn(e)||ofe(e))return 1;if(afe(e))return 2}function z2(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);yL(f,-l),yL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ci(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ci(u,z2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ci(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&>(b)?Ot(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||Ve(b)?e.check(xL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),gt(R)?Ot(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):k(R)}function k(R){return R===s?(b.enter("codeFencedFenceSequence"),I(R)):C(R)}function I(R){return R===s?(A++,b.consume(R),I):A>=o?(b.exit("codeFencedFenceSequence"),gt(R)?Ot(b,P,"whitespace")(R):P(R)):C(R)}function P(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Rfe(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const XS={name:"codeIndented",tokenize:Efe},Lfe={tokenize:Ofe,partial:!0};function Efe(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Ot(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Ve(u)?e.attempt(Lfe,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Ofe(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ot(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ve(o)?i(o):r(o)}}const Nfe={name:"codeText",tokenize:Ffe,resolve:zfe,previous:Bfe};function zfe(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function XG(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||jC(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||Ve(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||Mn(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Ve(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Ve(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!gt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function KG(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):Ve(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ot(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Ve(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Bh(e,t){let r;return n;function n(i){return Ve(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):gt(i)?Ot(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const jfe={name:"definition",tokenize:Yfe},qfe={tokenize:Xfe,partial:!0};function Yfe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return ZG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=ef(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Mn(h)?Bh(e,u)(h):u(h)}function u(h){return XG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(qfe,f,f)(h)}function f(h){return gt(h)?Ot(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Xfe(e,t,r){return n;function n(s){return Mn(s)?Bh(e,i)(s):r(s)}function i(s){return KG(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return gt(s)?Ot(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ve(s)?t(s):r(s)}}const Zfe={name:"hardBreakEscape",tokenize:Kfe};function Kfe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Qfe={name:"headingAtx",tokenize:ede,resolve:Jfe};function Jfe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ede(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||Mn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(c)?(e.exit("atxHeading"),t(c)):gt(c)?Ot(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Mn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const tde=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bL=["pre","script","style","textarea"],rde={name:"htmlFlow",tokenize:ode,resolveTo:ade,concrete:!0},nde={tokenize:lde,partial:!0},ide={tokenize:sde,partial:!0};function ade(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ode(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:L):pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:k:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||Mn(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&bL.includes(X)?(i=1,n.interrupt?t(B):k(B)):tde.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Fn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return gt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||pa(B)?(e.consume(B),S):gt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||Fn(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):gt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):gt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||Ve(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Mn(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||gt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||Ve(B)?k(B):gt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),V):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),$):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(nde,U,I)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(ide,P,U)(B)}function P(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),L):k(B)}function V(B){return B===47?(e.consume(B),o="",N):k(B)}function N(B){if(B===62){const j=o.toLowerCase();return bL.includes(j)?(e.consume(B),G):k(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):k(B)}function $(B){return B===93?(e.consume(B),L):k(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):k(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function sde(e,t,r){const n=this;return i;function i(o){return Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function lde(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ox,t,r)}}const ude={name:"htmlText",tokenize:cde};function cde(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,V(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,V(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,V(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,V(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Fn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,V(L)):gt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Fn(L)?(e.consume(L),C):L===47||L===62||Mn(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,V(L)):gt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Fn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),k):Ve(L)?(o=M,V(L)):gt(L)?(e.consume(L),M):A(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,I):Ve(L)?(o=k,V(L)):gt(L)?(e.consume(L),k):(e.consume(L),P)}function I(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=I,V(L)):(e.consume(L),I)}function P(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||Mn(L)?A(L):(e.consume(L),P)}function R(L){return L===47||L===62||Mn(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function V(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return gt(L)?Ot(e,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):$(L)}function $(L){return e.enter("htmlTextData"),o(L)}}const B2={name:"labelEnd",tokenize:gde,resolveTo:vde,resolveAll:pde},fde={tokenize:mde},dde={tokenize:yde},hde={tokenize:xde};function pde(e){let t=-1;for(;++t=3&&(u===null||Ve(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),gt(u)?Ot(e,s,"whitespace")(u):s(u))}}const vn={name:"list",tokenize:kde,continuation:{tokenize:Ide},exit:Dde},Ade={tokenize:Rde,partial:!0},Mde={tokenize:Pde,partial:!0};function kde(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:qC(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check($m,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return qC(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(ox,n.interrupt?r:c,e.attempt(Ade,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return gt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ide(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ox,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ot(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!gt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Mde,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ot(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Pde(e,t,r){const n=this;return Ot(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Dde(e){e.exit(this.containerState.type)}function Rde(e,t,r){const n=this;return Ot(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!gt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const _L={name:"setextUnderline",tokenize:Ede,resolveTo:Lde};function Lde(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function Ede(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),gt(u)?Ot(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Ode={tokenize:Nde};function Nde(e){const t=this,r=e.attempt(ox,n,e.attempt(this.parser.constructs.flowInitial,i,Ot(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Vfe,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const zde={resolveAll:JG()},Bde=QG("string"),Fde=QG("text");function QG(e){return{tokenize:t,resolveAll:JG(e==="text"?$de:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Hde(e,t){let r=-1;const n=[];let i;for(;++r0){const $t=Re.tokenStack[Re.tokenStack.length-1];($t[1]||CL).call(Re,void 0,$t[0])}for(le.position={start:Do(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Do(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ghe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mhe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function rH(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function yhe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return rH(e,t);const i={src:Lu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function xhe(e,t){const r={src:Lu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function She(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function bhe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return rH(e,t);const i={href:Lu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function _he(e,t){const r={href:Lu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function whe(e,t,r){const n=e.all(t),i=r?Che(r):nH(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function The(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=E2(t.children[1]),l=FG(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Phe(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(ML(t.slice(i),i>0,!1)),a.join("")}function ML(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===TL||a===AL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===TL||a===AL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Lhe(e,t){const r={type:"text",value:Rhe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ehe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Ohe={blockquote:che,break:fhe,code:dhe,delete:hhe,emphasis:phe,footnoteReference:vhe,heading:ghe,html:mhe,imageReference:yhe,image:xhe,inlineCode:She,linkReference:bhe,link:_he,listItem:whe,list:The,paragraph:Ahe,root:Mhe,strong:khe,table:Ihe,tableCell:Dhe,tableRow:Phe,text:Lhe,thematicBreak:Ehe,toml:mg,yaml:mg,definition:mg,footnoteDefinition:mg};function mg(){}const iH=-1,sx=0,Zy=1,Ky=2,F2=3,$2=4,V2=5,G2=6,aH=7,oH=8,kL=typeof self=="object"?self:globalThis,Nhe=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case sx:case iH:return r(o,i);case Zy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case Ky:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case F2:return r(new Date(o),i);case $2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case V2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case G2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case aH:{const{name:s,message:l}=o;return r(new kL[s](l),i)}case oH:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new kL[a](o),i)};return n},IL=e=>Nhe(new Map,e)(0),Ku="",{toString:zhe}={},{keys:Bhe}=Object,Sd=e=>{const t=typeof e;if(t!=="object"||!e)return[sx,t];const r=zhe.call(e).slice(8,-1);switch(r){case"Array":return[Zy,Ku];case"Object":return[Ky,Ku];case"Date":return[F2,Ku];case"RegExp":return[$2,Ku];case"Map":return[V2,Ku];case"Set":return[G2,Ku]}return r.includes("Array")?[Zy,r]:r.includes("Error")?[aH,r]:[Ky,r]},yg=([e,t])=>e===sx&&(t==="function"||t==="symbol"),Fhe=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=Sd(o);switch(s){case sx:{let c=o;switch(l){case"bigint":s=oH,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([iH],o)}return i([s,c],o)}case Zy:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case Ky:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of Bhe(o))(e||!yg(Sd(o[d])))&&c.push([a(d),a(o[d])]);return f}case F2:return i([s,o.toISOString()],o);case $2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case V2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(yg(Sd(d))||yg(Sd(h))))&&c.push([a(d),a(h)]);return f}case G2:{const c=[],f=i([s,c],o);for(const d of o)(e||!yg(Sd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},PL=(e,{json:t,lossy:r}={})=>{const n=[];return Fhe(!(t||r),!!t,new Map,n)(e),n},Qy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?IL(PL(e,t)):structuredClone(e):(e,t)=>IL(PL(e,t));function $he(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Vhe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ghe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||$he,n=e.options.footnoteBackLabel||Vhe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Qy(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const sH=function(e){if(e==null)return jhe;if(typeof e=="function")return lx(e);if(typeof e=="object")return Array.isArray(e)?Hhe(e):Whe(e);if(typeof e=="string")return Uhe(e);throw new Error("Expected function, string, or object as test")};function Hhe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=lH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Khe(r(l,c)),h[0]===DL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Xhe)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` +`}),r}function RL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function LL(e,t){const r=Jhe(e,t),n=r.one(e,void 0),i=Ghe(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function ipe(e,t){return e&&"run"in e?async function(r,n){const i=LL(r,t);await e.run(i,n)}:function(r){return LL(r,t||e)}}function EL(e){if(e)throw e}var Vm=Object.prototype.hasOwnProperty,cH=Object.prototype.toString,OL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,zL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):cH.call(t)==="[object Array]"},BL=function(t){if(!t||cH.call(t)!=="[object Object]")return!1;var r=Vm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Vm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Vm.call(t,i)},FL=function(t,r){OL&&r.name==="__proto__"?OL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},$L=function(t,r){if(r==="__proto__")if(Vm.call(t,r)){if(NL)return NL(t,r).value}else return;return t[r]},ape=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const la={basename:lpe,dirname:upe,extname:cpe,join:fpe,sep:"/"};function lpe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Sv(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function upe(e){if(Sv(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function cpe(e){Sv(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function fpe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function hpe(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function Sv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ppe={cwd:vpe};function vpe(){return"/"}function KC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gpe(e){if(typeof e=="string")e=new URL(e);else if(!KC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mpe(e)}function mpe(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=c;const v=n[d][1];ZC(v)&&ZC(h)&&(h=KS(!0,v,h)),n[d]=[u,h,...p]}}}}const bpe=new H2().freeze();function tb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function nb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function GL(e){if(!ZC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xg(e){return _pe(e)?e:new fH(e)}function _pe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wpe(e){return typeof e=="string"||Cpe(e)}function Cpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WL={}.hasOwnProperty,Tpe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",UL=[],jL={allowDangerousHtml:!0},Ape=/^(https?|ircs?|mailto|xmpp)$/i,Mpe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kpe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||UL,l=e.remarkPlugins||UL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jL}:jL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Ipe,h=bpe().use(uhe).use(l).use(ipe,u).use(s),p=new fH;typeof n=="string"&&(p.value=n);for(const y of Mpe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Tpe+y.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),uH(g,m),Uce(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(y,x,S){if(y.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let _;for(_ in YS)if(WL.call(YS,_)&&WL.call(y.properties,_)){const b=y.properties[_],w=YS[_];(w===null||w.includes(y.tagName))&&(y.properties[_]=d(String(b||""),_,y))}}if(y.type==="element"){let _=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&r&&typeof x=="number"&&(_=!r(y,x,S)),_&&S&&typeof x=="number")return f&&y.children?S.children.splice(x,1,...y.children):S.children.splice(x,1),x}}}function Ipe(e){return ufe(e,Ape)}const oh=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Ppe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?oh(e,r):n?E.jsx(kpe,{skipHtml:!1,children:e}):e}function $f({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(coe,{component:Y1,children:E.jsxs(Hae,{children:[E.jsx(moe,{children:E.jsx(yR,{children:t.map(({title:i,key:a})=>E.jsx(pR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(Kae,{children:e.map((i,a)=>E.jsx(yR,{children:t.map(({key:o,...s},l)=>E.jsx(pR,{children:E.jsx(Ppe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Dpe({rows:e,tableStructure:t}){return t?E.jsx($f,{rows:e,structure:t}):null}const Rpe=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:cG(a),...o})):null,rows:i?i.data:[]}},Lpe=Zn(Rpe)(Dpe),Epe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function dH({exceptions:e}){return E.jsx($f,{rows:e,structure:Epe})}const Ope=({ui:{exceptions:e}})=>({exceptions:e}),Npe=Zn(Ope)(dH);function zpe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function W2(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=O.useState(e),[a,o]=O.useState(!1),s=O.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(zpe(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=O.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,i(e);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return O.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedStats:n,currentSortField:s.current}}const Bpe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function hH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=W2(e);return E.jsx($f,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Bpe})}const Fpe=({ui:{errors:e}})=>({errors:e}),$pe=Zn(Fpe)(hH);function Vpe(){const e=Vs(({logViewer:{logs:t}})=>t);return E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function Gpe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Vs(({theme:{isDarkMode:n}})=>n);return E.jsxs(EV,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Zu,{children:E.jsx(nn,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(Zu,{children:E.jsx(nn,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(Zu,{children:E.jsx(nn,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(Zu,{children:E.jsx(nn,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(Zu,{children:E.jsx(nn,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(Zu,{children:E.jsx(nn,{href:n,children:i})},`extended-csv-${a}`))]})}const Hpe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Wpe=Zn(Hpe)(Gpe),Upe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function pH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=W2(e,{hasTotalRow:!0});return E.jsx($f,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Upe})}const jpe=({ui:{stats:e}})=>({stats:e}),qpe=Zn(jpe)(pH);/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var QC=function(e,t){return QC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},QC(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");QC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ype=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Xpe=function(){function e(){this.browser=new Ype,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),_l=new Xpe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(_l.wxa=!0,_l.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?_l.worker=!0:typeof navigator>"u"?(_l.node=!0,_l.svgSupported=!0):Zpe(navigator.userAgent,_l);function Zpe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=_l;var U2=12,vH="sans-serif",Ms=U2+"px "+vH,Kpe=20,Qpe=100,Jpe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function eve(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function wve(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?ZL(s,o):ZL(o,s))}function _H(e){return e.nodeName.toUpperCase()==="CANVAS"}var Cve=/([&<>"'])/g,Tve={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(Cve,function(t,r){return Tve[r]})}var Ave=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ab=[],Mve=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function aT(e,t,r,n){return r=r||{},n?QL(e,t,r):Mve&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):QL(e,t,r),r}function QL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(_H(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(iT(ab,e,n,i)){r.zrX=ab[0],r.zrY=ab[1];return}}r.zrX=r.zrY=0}function Q2(e){return e||window.event}function ri(e,t,r){if(t=Q2(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&aT(e,o,t,r)}else{aT(e,t,t,r);var a=kve(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ave.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function kve(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function oT(e,t,r,n){e.addEventListener(t,r,n)}function Ive(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function JL(e){return e.which===2||e.which===3}var Pve=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=eE(n)/eE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Dve(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function bi(){return[1,0,0,1,0,0]}function dx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function J2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function io(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Na(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Ou(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function ek(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Hf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Rve(e){var t=bi();return J2(t,e),t}var Lve=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Le=Lve;var bg=Math.min,_g=Math.max,qs=new Le,Ys=new Le,Xs=new Le,Zs=new Le,bd=new Le,_d=new Le,Eve=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=bg(t.x,this.x),n=bg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=_g(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=_g(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=bi();return Na(a,a,[-r.x,-r.y]),ek(a,a,[n,i]),Na(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ap&&(p=x,vp&&(p=S,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}qs.x=Xs.x=r.x,qs.y=Zs.y=r.y,Ys.x=Zs.x=r.x+r.width,Ys.y=Xs.y=r.y+r.height,qs.transform(n),Zs.transform(n),Ys.transform(n),Xs.transform(n),t.x=bg(qs.x,Ys.x,Xs.x,Zs.x),t.y=bg(qs.y,Ys.y,Xs.y,Zs.y);var l=_g(qs.x,Ys.x,Xs.x,Zs.x),u=_g(qs.y,Ys.y,Xs.y,Zs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Eve;var wH="silent";function Ove(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Nve}}function Nve(){vo(this.event)}var zve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ti),wd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Bve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sb=new Ne(0,0,0,0),CH=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new wd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new zve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new yve(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Bve,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=TH(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new wd(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new wd(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Ove(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new wd(r,n);if(tE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(sb.copy(d.getBoundingRect()),d.transform&&sb.applyTransform(d.transform),sb.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Fve(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?wH:!0}return!1}function tE(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Fve(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==wH)){t.target=o;break}}}function TH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const $ve=CH;var AH=32,Cd=7;function Vve(e){for(var t=0;e>=AH;)t|=e&1,e>>=1;return e+t}function rE(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Gve(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function lb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function ub(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function Hve(e,t){var r=Cd,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Cd||w>=Cd);if(C)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(m=0;m=0;m--)e[b+m]=e[_+m];e[S]=o[x];return}for(var w=r;;){var C=0,A=0,T=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],C++,A=0,--p===0){T=!0;break}}else if(e[S--]=o[x--],A++,C=0,--g===1){T=!0;break}while((C|A)=0;m--)e[b+m]=e[_+m];if(p===0){T=!0;break}}if(e[S--]=o[x--],--g===1){T=!0;break}if(A=g-lb(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,b=S+1,_=x+1,m=0;m=Cd||A>=Cd);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,y-=p,b=S+1,_=y+1,m=p-1;m>=0;m--)e[b+m]=e[_+m];e[S]=o[x]}else{if(g===0)throw new Error;for(_=S-(g-1),m=0;ms&&(l=s),nE(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var zn=1,sh=2,_c=4,iE=!1;function cb(){iE||(iE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function aE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Wve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=aE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(cb(),c.z=0),isNaN(c.z2)&&(cb(),c.z2=0),isNaN(c.zlevel)&&(cb(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Uve=Wve;var MH;MH=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const sT=MH;var jm={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-jm.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?jm.bounceIn(e*2)*.5:jm.bounceOut(e*2-1)*.5+.5}};const kH=jm;var wg=Math.pow,ms=Math.sqrt,t0=1e-8,IH=1e-4,oE=ms(3),Cg=1/3,va=Eu(),fi=Eu(),tf=Eu();function ts(e){return e>-t0&&et0||e<-t0}function pr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function sE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function r0(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(ts(c)&&ts(f))if(ts(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(ts(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m)}else if(v>0){var y=ms(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-wg(-x,Cg):x=wg(x,Cg),S<0?S=-wg(-S,Cg):S=wg(S,Cg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ms(c*c*c)),b=Math.acos(_)/3,w=ms(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+oE*Math.sin(b)))/(3*o),A=(-s+w*(C-oE*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m),A>=0&&A<=1&&(a[h++]=A)}}return h}function DH(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(ts(o)){if(PH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ts(c))i[0]=-a/(2*o);else if(c>0){var f=ms(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Is(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function RH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)fi[0]=pr(e,r,i,o,y),fi[1]=pr(t,n,a,s,y),g=eu(va,fi),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ts(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ms(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function LH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Dp(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function EH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){fi[0]=_r(e,r,i,d),fi[1]=_r(t,n,a,d);var h=eu(va,fi);h=0&&h=1?1:r0(0,n,a,1,l,s)&&pr(0,i,o,1,s[0])}}}var Zve=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||tr,this.ondestroy=t.ondestroy||tr,this.onrestart=t.onrestart||tr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ye(t)?t:kH[t]||tk(t)},e}();const Kve=Zve;var OH=function(){function e(t){this.value=t}return e}(),Qve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new OH(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Jve=function(){function e(t){this._list=new Qve,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new OH(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const bv=Jve;var lE={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 Hi(e){return e=Math.round(e),e<0?0:e>255?255:e}function ege(e){return e=Math.round(e),e<0?0:e>360?360:e}function Rp(e){return e<0?0:e>1?1:e}function fb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hi(parseFloat(t)/100*255):Hi(parseInt(t,10))}function tu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Rp(parseFloat(t)/100):Rp(parseFloat(t))}function db(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function rs(e,t,r){return e+(t-e)*r}function ti(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function uT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var NH=new bv(20),Tg=null;function Ju(e,t){Tg&&uT(Tg,t),Tg=NH.put(e,Tg||t.slice())}function Gn(e,t){if(e){t=t||[];var r=NH.get(e);if(r)return uT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in lE)return uT(t,lE[n]),Ju(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ti(t,0,0,0,1);return}return ti(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Ju(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ti(t,0,0,0,1);return}return ti(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ju(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ti(t,+u[0],+u[1],+u[2],1):ti(t,0,0,0,1);c=tu(u.pop());case"rgb":if(u.length>=3)return ti(t,fb(u[0]),fb(u[1]),fb(u[2]),u.length===3?c:tu(u[3])),Ju(e,t),t;ti(t,0,0,0,1);return;case"hsla":if(u.length!==4){ti(t,0,0,0,1);return}return u[3]=tu(u[3]),cT(u,t),Ju(e,t),t;case"hsl":if(u.length!==3){ti(t,0,0,0,1);return}return cT(u,t),Ju(e,t),t;default:return}}ti(t,0,0,0,1)}}function cT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tu(e[1]),i=tu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ti(t,Hi(db(o,a,r+1/3)*255),Hi(db(o,a,r)*255),Hi(db(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function tge(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function fT(e,t){var r=Gn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ao(r,r.length===4?"rgba":"rgb")}}function hb(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Hi(rs(o[0],s[0],l)),r[1]=Hi(rs(o[1],s[1],l)),r[2]=Hi(rs(o[2],s[2],l)),r[3]=Rp(rs(o[3],s[3],l)),r}}function rge(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Gn(t[i]),s=Gn(t[a]),l=n-i,u=ao([Hi(rs(o[0],s[0],l)),Hi(rs(o[1],s[1],l)),Hi(rs(o[2],s[2],l)),Rp(rs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function $h(e,t,r,n){var i=Gn(e);if(e)return i=tge(i),t!=null&&(i[0]=ege(t)),r!=null&&(i[1]=tu(r)),n!=null&&(i[2]=tu(n)),ao(cT(i),"rgba")}function n0(e,t){var r=Gn(e);if(r&&t!=null)return r[3]=Rp(t),ao(r,"rgba")}function ao(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function i0(e,t){var r=Gn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var a0=Math.round;function Lp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Gn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var uE=1e-4;function ns(e){return e-uE}function Ag(e){return a0(e*1e3)/1e3}function dT(e){return a0(e*1e4)/1e4}function nge(e){return"matrix("+Ag(e[0])+","+Ag(e[1])+","+Ag(e[2])+","+Ag(e[3])+","+dT(e[4])+","+dT(e[5])+")"}var ige={left:"start",right:"end",center:"middle",middle:"middle"};function age(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function oge(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function sge(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function zH(e){return e&&!!e.image}function lge(e){return e&&!!e.svgElement}function rk(e){return zH(e)||lge(e)}function BH(e){return e.type==="linear"}function FH(e){return e.type==="radial"}function $H(e){return e&&(e.type==="linear"||e.type==="radial")}function hx(e){return"url(#"+e+")"}function VH(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function GH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Gm,i=Ee(e.scaleX,1),a=Ee(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+a0(o*Gm)+"deg, "+a0(s*Gm)+"deg)"),l.join(" ")}var uge=function(){return tt.hasGlobalWindow&&ye(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),hT=Array.prototype.slice;function Xa(e,t,r){return(t-e)*r+e}function pb(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=fE,l=r;if(Xr(r)){var u=hge(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Pp(r))s=kg;else if(oe(r))if(!isNaN(+r))s=kg;else{var c=Gn(r);c&&(l=c,s=lh)}else if(cx(r)){var f=q({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Gn(h.color)}}),BH(r)?s=pT:FH(r)&&(s=vT),l=f}a===0?this.valType=s:(s!==this.valType||s===fE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ye(n)?n:kH[n]||tk(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ig(i),u=dE(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?Td:t[l];if((Ig(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Ig(a))a===Ym?pb(y,h[i],p[i],m):cge(y,h[i],p[i],m);else if(dE(a)){var x=h[i],S=p[i],_=a===pT;t[l]={type:_?"linear":"radial",x:Xa(x.x,S.x,m),y:Xa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:Xa(w.offset,A.offset,m),color:qm(pb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=Xa(x.x2,S.x2,m),t[l].y2=Xa(x.y2,S.y2,m)):t[l].r=Xa(x.r,S.r,m)}else if(u)pb(y,h[i],p[i],m),n||(t[l]=qm(y));else{var b=Xa(h[i],p[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===kg?t[n]=t[n]+i:r===lh?(Gn(t[n],Td),Mg(Td,Td,i,1),t[n]=qm(Td)):r===Ym?Mg(t[n],t[n],i,1):r===HH&&cE(t[n],t[n],i,1)},e}(),nk=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Y2("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,qe(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Vh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Vh(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function $c(){return new Date().getTime()}var vge=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=$c()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(sT(n),!r._paused&&r.update())}sT(n)},t.prototype.start=function(){this._running||(this._time=$c(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=$c(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=$c()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new nk(r,n.loop);return this.addAnimator(i),i},t}(Ti);const gge=vge;var mge=300,vb=tt.domSupported,gb=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),hE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pE=!1;function gT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function yge(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function mb(e){e&&(e.zrByTouch=!0)}function xge(e,t){return ri(e.dom,new Sge(e,t),!0)}function WH(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Sge=function(){function e(t,r){this.stopPropagation=tr,this.stopImmediatePropagation=tr,this.preventDefault=tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ri={mousedown:function(e){e=ri(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ri(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ri(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ri(this.dom,e);var t=e.toElement||e.relatedTarget;WH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){pE=!0,e=ri(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){pE||(e=ri(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ri(this.dom,e),mb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ri.mousemove.call(this,e),Ri.mousedown.call(this,e)},touchmove:function(e){e=ri(this.dom,e),mb(e),this.handler.processGesture(e,"change"),Ri.mousemove.call(this,e)},touchend:function(e){e=ri(this.dom,e),mb(e),this.handler.processGesture(e,"end"),Ri.mouseup.call(this,e),+new Date-+this.__lastTouchMomentmE||e<-mE}var Qs=[],ec=[],xb=bi(),Sb=Math.abs,Age=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Ks(this.rotation)||Ks(this.x)||Ks(this.y)||Ks(this.scaleX-1)||Ks(this.scaleY-1)||Ks(this.skewX)||Ks(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(gE(n),this.invTransform=null);return}n=n||bi(),r?this.getLocalTransform(n):gE(n),t&&(r?io(n,t,n):J2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qs);var n=Qs[0]<0?-1:1,i=Qs[1]<0?-1:1,a=((Qs[0]-n)*r+n)/Qs[0]||0,o=((Qs[1]-i)*r+i)/Qs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||bi(),Hf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(io(ec,t.invTransform,r),r=ec);var n=this.originX,i=this.originY;(n||i)&&(xb[4]=n,xb[5]=i,io(ec,r,xb),ec[4]-=n,ec[5]-=i,r=ec),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Lr(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Lr(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Sb(t[0]-1)>1e-10&&Sb(t[3]-1)>1e-10?Math.sqrt(Sb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){jH(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Ou(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function s0(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Xi(n[0],r.width),u+=Xi(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var bb="__zr_normal__",_b=za.concat(["ignore"]),Mge=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),tc={},kge=new Ne(0,0,0,0),ik=function(){function e(t){this.id=yH(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=kge;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tc,n,c):s0(tc,n,c),a.x=tc.x,a.y=tc.y,o=tc.align,s=tc.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Xi(f[0],c.width),h=Xi(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=zn,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ST:xT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Gn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ao(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},q(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(be(t))for(var n=t,i=qe(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(bb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===bb,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Y2("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~zn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~zn)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d0||i.force&&!o.length){var C=void 0,A=void 0,T=void 0;if(s){A={},d&&(C={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ze(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function ne(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return oe(e)?zge(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Yt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),KH),e=(+e).toFixed(t),r?e:+e}function gi(e){return e.sort(function(t,r){return t-r}),e}function Sa(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Bge(e)}function Bge(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function QH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Fge(e,t){var r=Oa(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Z(i,function(h){return Math.floor(h)}),s=Oa(o,function(h,p){return h+p},0),l=Z(i,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Z(o,function(h){return h/n})}function $ge(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>KH?n:Yt(n,r)}var _E=9007199254740991;function JH(e){var t=Math.PI*2;return(e%t+t)%t}function l0(e){return e>-bE&&e=10&&t++,t}function e6(e,t){var r=ak(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Tb(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function wE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var dme=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],hme=Su(dme),pme=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return hme(this,t,r)},e}(),_T=new bv(50);function vme(e){if(typeof e=="string"){var t=_T.get(e);return t&&t.image}else return e}function uk(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=_T.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!gx(t)&&a.pending.push(o)):(t=ks.loadImage(e,ME,ME),t.__zrImageSrc=e,_T.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function ME(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Hn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function h6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Hn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?mme(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Hn(e,n)}return e===""&&(e=t.placeholder),e}function mme(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=d6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Mb(r,e.substring(s,u),t,o),Mb(r,l[2],t,o,l[1]),s=Ab.lastIndex}si){_>0?(y.tokens=y.tokens.slice(0,_),g(y,S,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var k=w.width,I=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")b.percentWidth=k,c.push(b),b.contentWidth=Hn(b.text,T);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=vme(R),gx(R)&&(b.width=Math.max(b.width,R.width*M/R.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` +`),u=!0),n.accumWidth=p}else{var v=p6(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` +`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var wme=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Cme(e){return _me(e)?!!wme[e]:!0}function p6(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var wT="__zr_style_"+Math.round(Math.random()*10),ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},mx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ru[wT]=!0;var IE=["z","z2","invisible"],Tme=["invisible"],Ame=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=qe(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Pg[0]=Db(i)*r+e,Pg[1]=Pb(i)*n+t,Dg[0]=Db(a)*r+e,Dg[1]=Pb(a)*n+t,u(s,Pg,Dg),c(l,Pg,Dg),i=i%el,i<0&&(i=i+el),a=a%el,a<0&&(a=a+el),i>a&&!o?a+=el:ii&&(Rg[0]=Db(h)*r+e,Rg[1]=Pb(h)*n+t,u(s,Rg,s),c(l,Rg,l))}var yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],ea=[],Ro=[],ta=[],ra=[],Rb=Math.min,Lb=Math.max,nl=Math.cos,il=Math.sin,Wa=Math.abs,CT=Math.PI,Vo=CT*2,Eb=typeof Float32Array<"u",Ad=[];function Ob(e){var t=Math.round(e/CT*1e8)/1e8;return t%2*CT}function v6(e,t){var r=Ob(e[0]);r<0&&(r+=Vo);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Vo?i=r+Vo:t&&r-i>=Vo?i=r-Vo:!t&&r>i?i=r+(Vo-Ob(r-i)):t&&r0&&(this._ux=Wa(n/o0/t)||0,this._uy=Wa(n/o0/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(yt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Wa(t-this._xi),i=Wa(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(yt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(yt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(yt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ad[0]=i,Ad[1]=a,v6(Ad,o),i=Ad[0],a=Ad[1];var s=a-i;return this.addData(yt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=nl(a)*n+t,this._yi=il(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(yt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(yt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Eb&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Ro[0]=Ro[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Wa(x)>i||d===r-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case yt.C:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++],b=t[d++],w=t[d++];v=jve(a,o,S,_,g,m,b,w,10),a=b,o=w;break}case yt.Q:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++];v=Yve(a,o,S,_,g,m,10),a=g,o=m;break}case yt.A:var C=t[d++],A=t[d++],T=t[d++],M=t[d++],k=t[d++],I=t[d++],P=I+k;d+=1,t[d++],p&&(s=nl(k)*T+C,l=il(k)*M+A),v=Lb(T,M)*Rb(Vo,Math.abs(I)),a=nl(P)*T+C,o=il(P)*M+A;break;case yt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*2+z*2;break}case yt.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,m=0,y,x=0,S,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b0&&(t.lineTo(S,_),x=0),w){case yt.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case yt.L:{f=n[b++],d=n[b++];var A=Wa(f-u),T=Wa(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var I=A*A+T*T;I>x&&(S=f,_=d,x=I)}break}case yt.C:{var P=n[b++],R=n[b++],z=n[b++],V=n[b++],N=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Is(u,P,z,N,k,tl),Is(c,R,V,$,k,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}g+=M}t.bezierCurveTo(P,R,z,V,N,$),u=N,c=$;break}case yt.Q:{var P=n[b++],R=n[b++],z=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Dp(u,P,z,k,tl),Dp(c,R,V,k,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}g+=M}t.quadraticCurveTo(P,R,z,V),u=z,c=V;break}case yt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Wa(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=nl(j)*U+L,l=il(j)*B+G),u=nl(re)*U+L,c=il(re)*B+G;break;case yt.R:s=u=n[b],l=c=n[b+1],f=n[b++],d=n[b++];var J=n[b++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Rb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Rb(de,fe)),de-=fe,de>0&&t.lineTo(f+Lb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+Lb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case yt.Z:if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=yt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Fa=Dme;function Uo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Md);var d=Math.atan2(l,s);return d<0&&(d+=Md),d>=n&&d<=i||d+Md>=n&&d+Md<=i}function Za(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Lo=Fa.CMD,al=Math.PI*2,Eme=1e-4;function Ome(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Nme(),h=pr(t,n,a,s,ii[0]),d>1&&(p=pr(t,n,a,s,ii[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);tn[0]=-l,tn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=al-1e-4){n=0,i=al;var c=a?1:-1;return o>=tn[0]+e&&o<=tn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=al,i+=al);for(var d=0,h=0;h<2;h++){var p=tn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=al+v),(v>=n&&v<=i||v+al>=n&&v+al<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Za(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Lo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Lo.L:if(r){if(Uo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Za(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Lo.C:if(r){if(Rme(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=zme(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Lo.Q:if(r){if(g6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Bme(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Lo.A:var m=a[p++],y=a[p++],x=a[p++],S=a[p++],_=a[p++],b=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(_)*x+m,h=Math.sin(_)*S+y,g?(c=d,f=h):s+=Za(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Lme(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Fme(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Lo.R:c=l=a[p++],f=u=a[p++];var A=a[p++],T=a[p++];if(d=c+A,h=f+T,r){if(Uo(c,f,d,f,t,n,i)||Uo(d,f,d,h,t,n,i)||Uo(d,h,c,h,t,n,i)||Uo(c,h,c,f,t,n,i))return!0}else s+=Za(d,f,d,h,n,i),s+=Za(c,h,c,f,n,i);break;case Lo.Z:if(r){if(Uo(l,u,c,f,t,n,i))return!0}else s+=Za(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Ome(u,f)&&(s+=Za(l,u,c,f,n,i)||0),s!==0}function $me(e,t,r){return m6(e,0,!1,t,r)}function Vme(e,t,r,n){return m6(e,t,!0,r,n)}var u0=Se({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ru),Gme={style:Se({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},mx.style)},Nb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),Hme=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?xT:n>.2?Tge:ST}else if(r)return ST}return xT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=i0(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&_c)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Vme(s,l/u,r,n)))return!0}if(this.hasFill())return $me(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=_c,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:q(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&_c)},t.prototype.createStyle=function(r){return fx(u0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=q({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=q({},i.shape),q(u,n.shape)):(u=q({},a?this.shape:i.shape),q(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=q({},this.shape);for(var c={},f=qe(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return fx(Wme,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=_v(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(_i);y6.prototype.type="tspan";const Op=y6;var Ume=Se({x:0,y:0},ru),jme={style:Se({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},mx.style)};function qme(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var x6=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return fx(Ume,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=qme(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return jme},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_i);x6.prototype.type="image";const Br=x6;function Yme(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Vc=Math.round;function S6(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Vc(n*2)===Vc(i*2)&&(e.x1=e.x2=Hl(n,s,!0)),Vc(a*2)===Vc(o*2)&&(e.y1=e.y2=Hl(a,s,!0))),e}}function b6(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Hl(n,s,!0),e.y=Hl(i,s,!0),e.width=Math.max(Hl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Hl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Hl(e,t,r){if(!t)return e;var n=Vc(e*2);return(n+Vc(t))%2===0?n/2:(n+(r?1:-1))/2}var Xme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Zme={},_6=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Xme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=b6(Zme,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Yme(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);_6.prototype.type="rect";const Qe=_6;var EE={fill:"#000"},OE=2,Kme={style:Se({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},mx.style)},w6=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=EE,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,k=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=b[I],P.align==="right");)this._placeToken(P,r,C,m,k,"right",x),A-=P.width,k-=P.width,I--;for(M+=(a-(M-g)-(y-k)-A)/2;T<=I;)P=b[T],this._placeToken(P,r,C,m,M+P.width/2,"center",x),M+=P.width,T++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&zb(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=VE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Op),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=$E("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=FE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=OE,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Ms,g.opacity=Ia(u.opacity,n.opacity,1),zE(g,u),_&&(g.lineWidth=Ia(u.lineWidth,n.lineWidth,x),g.lineDash=Ee(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(uh(g.x,w,g.textAlign),wc(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(Qe),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=Ee(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Br),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ee(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ia(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return T6(r)&&(n=[r.fontStyle,r.fontWeight,C6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Bi(n)||r.textFont||r.font},t}(_i),Qme={left:!0,right:1,center:1},Jme={top:1,bottom:1,middle:1},NE=["fontStyle","fontWeight","fontSize","fontFamily"];function C6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?U2+"px":e+"px"}function zE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=A6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(rc(s)||rc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=q({},n),u=q({},u),u.fill=s):!rc(u.fill)&&rc(s)?(a=!0,n=q({},n),u=q({},u),u.fill=jE(s)):!rc(u.stroke)&&rc(l)&&(a||(n=q({},n),u=q({},u)),u.stroke=jE(l)),n.style=u}}if(n&&n.z2==null){a||(n=q({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Uf)}return n}function oye(e,t,r){if(r&&r.z2==null){r=q({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??tye)}return r}function sye(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:iye(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=q({},r),o=q({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Bb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return aye(this,e,t,r);if(e==="blur")return sye(this,e,r);if(e==="select")return oye(this,e,r)}return r}function bu(e){e.stateProxy=Bb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Bb),r&&(r.stateProxy=Bb)}function YE(e,t){!L6(e,t)&&!e.__highByOuter&&Co(e,M6)}function XE(e,t){!L6(e,t)&&!e.__highByOuter&&Co(e,k6)}function mo(e,t){e.__highByOuter|=1<<(t||0),Co(e,M6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Co(e,k6)}function P6(e){Co(e,dk)}function hk(e){Co(e,I6)}function D6(e){Co(e,rye)}function R6(e){Co(e,nye)}function L6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function E6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=ck(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){I6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function AT(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function iu(e,t,r){Wl(e,!0),Co(e,bu),kT(e,t,r)}function hye(e){Wl(e,!1)}function Wt(e,t,r,n){n?hye(e):iu(e,t,r)}function kT(e,t,r){var n=ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var KE=["emphasis","blur","select"],pye={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Nr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Fb(p),s*=Fb(p));var v=(i===a?-1:1)*Fb((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+r)/2+Eg(f)*g-Lg(f)*m,x=(t+n)/2+Lg(f)*g+Eg(f)*m,S=tO([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=tO(_,b);if(PT(_,b)<=-1&&(w=kd),PT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/kd*1e6)/1e6;w=kd*2+C%2*kd}c.addData(u,y,x,o,s,S,w,f,a)}var Sye=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bye=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _ye(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(Sye);if(!l)return t;for(var u=0;uP*P+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Iye(e){var t;if(Y(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Pye(e,t){var r,n=ch(t.r,0),i=ch(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=nO(u-l),p=h>$b&&h%$b;if(p>Di&&(h=p),!(n>Di))e.moveTo(c,f);else if(h>$b-Di)e.moveTo(c+n*ic(l),f+n*ol(l)),e.arc(c,f,n,l,u,!d),i>Di&&(e.moveTo(c+i*ic(u),f+i*ol(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0,w=void 0,C=void 0,A=void 0,T=void 0,M=void 0,k=void 0,I=void 0,P=void 0,R=n*ic(l),z=n*ol(l),V=i*ic(u),N=i*ol(u),$=h>Di;if($){var L=t.cornerRadius;L&&(r=Iye(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=nO(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=ch(x,S),T=C=ch(_,b),(w>Di||C>Di)&&(M=n*ic(u),k=n*ol(u),I=i*ic(l),P=i*ol(l),hDi){var ie=na(m,A),re=na(y,A),Q=Og(I,P,R,z,n,ie,d),J=Og(M,k,V,N,n,re,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),A0&&e.arc(c+Q.cx,f+Q.cy,ie,Gr(Q.y0,Q.x0),Gr(Q.y1,Q.x1),!d),e.arc(c,f,n,Gr(Q.cy+Q.y1,Q.cx+Q.x1),Gr(J.cy+J.y1,J.cx+J.x1),!d),re>0&&e.arc(c+J.cx,f+J.cy,re,Gr(J.y1,J.x1),Gr(J.y0,J.x0),!d))}else e.moveTo(c+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Di)||!$)e.lineTo(c+V,f+N);else if(T>Di){var ie=na(v,T),re=na(g,T),Q=Og(V,N,M,k,i,-re,d),J=Og(R,z,I,P,i,-ie,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,re,Gr(Q.y0,Q.x0),Gr(Q.y1,Q.x1),!d),e.arc(c,f,i,Gr(Q.cy+Q.y1,Q.cx+Q.x1),Gr(J.cy+J.y1,J.cx+J.x1),d),ie>0&&e.arc(c+J.cx,f+J.cy,ie,Gr(J.y1,J.x1),Gr(J.y0,J.x0),!d))}else e.lineTo(c+V,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Dye=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),H6=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Dye},t.prototype.buildPath=function(r,n){Pye(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);H6.prototype.type="sector";const In=H6;var Rye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),W6=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Rye},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}($e);W6.prototype.type="ring";const bx=W6;function Lye(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=Lye(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sll[1]){if(s=!1,a)return s;var c=Math.abs(ll[0]-sl[1]),f=Math.abs(sl[0]-ll[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function it(e,t,r,n,i,a){xk("update",e,t,r,n,i,a)}function Rt(e,t,r,n,i,a){xk("enter",e,t,r,n,i,a)}function rf(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function oO(e){return!e.isGroup}function Jye(e){return e.shape!=null}function Av(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){oO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Jye(o)&&(s.shape=q({},o.shape)),s}var a=n(e);t.traverse(function(o){if(oO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,ke(o).dataIndex)}}})}function nW(e,t){return Z(e,function(r){var n=r[0];n=d0(n,t.x),n=h0(n,t.x+t.width);var i=r[1];return i=d0(i,t.y),i=h0(i,t.y+t.height),[n,i]})}function e0e(e,t){var r=d0(e.x,t.x),n=h0(e.x+e.width,t.x+t.width),i=d0(e.y,t.y),a=h0(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Mv(e,t,r){var n=q({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Se(i,r),new Br(n)):Cx(e.replace("path://",""),n,r,"center")}function fh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Vb(h,p,c,f)/d;return!(g<0||g>1)}function Vb(e,t,r,n){return e*n-r*t}function t0e(e){return e<=1e-6&&e>=-1e-6}function qf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=oe(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(qe(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Se({content:n,formatterParams:s},i)}}function sO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Hs(e,t){if(e)if(Y(e))for(var r=0;r=0&&s.push(l)}),s}}function Ws(e,t){return Oe(Oe({},e,!0),t,!0)}const p0e={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"}},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:". "}}}},v0e={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:"旭日图"}},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 v0="ZH",bk="EN",Fp=bk,ey={},_k={},fW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(v0)>-1?v0:Fp}():Fp;function dW(e,t){e=e.toUpperCase(),_k[e]=new wt(t),ey[e]=t}function g0e(e){if(oe(e)){var t=ey[e.toUpperCase()]||{};return e===v0||e===bk?Ce(t):Oe(Ce(t),Ce(ey[Fp]),!1)}else return Oe(Ce(e),Ce(ey[Fp]),!1)}function LT(e){return _k[e]}function m0e(){return _k[Fp]}dW(bk,p0e);dW(v0,v0e);var wk=1e3,Ck=wk*60,qh=Ck*60,pi=qh*24,dO=pi*365,dh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Bg="{yyyy}-{MM}-{dd}",hO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bg,hour:Bg+" "+dh.hour,minute:Bg+" "+dh.minute,second:Bg+" "+dh.second,millisecond:dh.none},Wb=["year","month","day","hour","minute","second","millisecond"],hW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Eo(e,t){return e+="","0000".substr(0,t-e.length)+e}function nf(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function y0e(e){return e===nf(e)}function x0e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Mx(e,t,r,n){var i=Ba(e),a=i[Tk(r)](),o=i[af(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[kx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[$p(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Px(r)](),p=i[Dx(r)](),v=n instanceof wt?n:LT(n||fW)||m0e(),g=v.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Eo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Eo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Eo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Eo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Eo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Eo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Eo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Eo(p,3)).replace(/{S}/g,p+"")}function S0e(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(ye(r))a=r(e.value,t,{level:e.level});else{var o=q({},dh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return Mx(new Date(e.value),a,i,n)}function pW(e,t){var r=Ba(e),n=r[af(t)]()+1,i=r[kx(t)](),a=r[$p(t)](),o=r[Ix(t)](),s=r[Px(t)](),l=r[Dx(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function pO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||pW(e,r),t){case"year":return n[Tk(r)]();case"half-year":return n[af(r)]()>=6?1:0;case"quarter":return Math.floor((n[af(r)]()+1)/4);case"month":return n[af(r)]();case"day":return n[kx(r)]();case"half-day":return n[$p(r)]()/24;case"hour":return n[$p(r)]();case"minute":return n[Ix(r)]();case"second":return n[Px(r)]();case"millisecond":return n[Dx(r)]()}}function Tk(e){return e?"getUTCFullYear":"getFullYear"}function af(e){return e?"getUTCMonth":"getMonth"}function kx(e){return e?"getUTCDate":"getDate"}function $p(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Px(e){return e?"getUTCSeconds":"getSeconds"}function Dx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function b0e(e){return e?"setUTCFullYear":"setFullYear"}function vW(e){return e?"setUTCMonth":"setMonth"}function gW(e){return e?"setUTCDate":"setDate"}function mW(e){return e?"setUTCHours":"setHours"}function yW(e){return e?"setUTCMinutes":"setMinutes"}function xW(e){return e?"setUTCSeconds":"setSeconds"}function SW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function bW(e){if(!t6(e))return oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function _W(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Zf=K2;function ET(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Bi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Mx(l,n,r)}if(t==="ordinal")return JC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?bW(u):JC(e)?i(e):typeof e=="boolean"?e+"":"-"}var vO=["a","b","c","d","e","f","g"],Ub=function(e,t){return"{"+e+(t??"")+"}"};function wW(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function _u(e,t){return t=t||"transparent",oe(e)?e:be(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function g0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ty=D,CW=["left","right","top","bottom","width","height"],Ul=[["width","left","right"],["height","top","bottom"]];function Ak(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var ou=Ak;Ie(Ak,"vertical");Ie(Ak,"horizontal");function C0e(e,t,r){var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Zf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function dr(e,t,r){r=Zf(r||0);var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i),u=ne(e.width,n),c=ne(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function Rx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=dr(Se({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function T0e(e,t){return e[Ul[t][0]]!=null||e[Ul[t][1]]!=null&&e[Ul[t][2]]!=null}function Vp(e){var t=e.layoutMode||e.constructor.layoutMode;return be(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(Ul[0],0),a=o(Ul[1],1);u(Ul[0],e,i),u(Ul[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(ty(c,function(x){p[x]=e[x]}),ty(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return wv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(wt);f6(Qf,wt);vx(Qf);d0e(Qf);h0e(Qf,M0e);function M0e(e){var t=[];return D(Qf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Qf;var AW="";typeof navigator<"u"&&(AW=navigator.platform||"");var ac="rgba(0, 0, 0, 0.2)";const k0e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ac,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ac,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ac,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ac,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ac,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ac,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:AW.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 MW=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ai="original",Zr="arrayRows",Mi="objectRows",Ga="keyedColumns",ys="typedArray",kW="unknown",Pa="column",Jf="row",Ir={Must:1,Might:2,Not:3},IW=Je();function I0e(e){IW(e).datasetMap=ge()}function PW(e,t,r){var n={},i=kk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=IW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=be(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});D(e,function(v,g){var m=v.name,y=p(v);if(c==null){var x=d.valueWayDim;h(n[m],x,y),h(o,x,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var x=d.categoryWayDim;h(n[m],x,y),h(o,x,y),d.categoryWayDim+=y}});function h(v,g,m){for(var y=0;yt)return e[n];return e[r-1]}function LW(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:E0e(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function O0e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Fg,Id,mO,yO="\0_ec_inner",N0e=1,EW=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=bO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,bO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?mO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=n&&n.replaceMergeMainTypeMap;I0e(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ce(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){et.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),et.topologicalTravel(s,et.getAllClassMainTypes(),c,this);function c(f){var d=R0e(this,f,ht(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=o6(h,d,p);Kge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(v,function(S,_){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=et.getClass(f,S.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var T=q({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),q(b,T),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Fg(this)}this._seriesIndices||Fg(this)},t.prototype.getOption=function(){var r=Ce(this.option);return D(r,function(n,i){if(et.hasClass(i)){for(var a=ht(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ep(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[yO],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function q0e(e,t){return e.join(",")===t.join(",")}const Y0e=H0e;var Ii=D,Gp=be,_O=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=_O.length;r=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=$ge(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Lx=function(){function e(t){this.data=t.data||(t.sourceFormat===Ga?{}:[]),this.sourceFormat=t.sourceFormat||kW,this.seriesLayoutBy=t.seriesLayoutBy||Pa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nv&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};IO=(t={},t[Zr+"_"+Pa]={pure:!0,appendData:a},t[Zr+"_"+Jf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Mi]={pure:!0,appendData:a},t[Ga]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ai]={appendData:a},t[ys]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return wf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function LO(e){var t,r;return be(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Yh(e){return new f1e(e)}var f1e=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},h1e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=jW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),qW=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=nt(t)?t:go(t),i=nt(r)?r:go(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),p1e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function v1e(e,t){return e==="eq"||e==="ne"?new p1e(e==="eq",t):ce(jW,e)?new h1e(e,t):null}var g1e=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return xs(t,r)},e}();function m1e(e,t){var r=new g1e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Pa&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?T1e:A1e}function oc(){return[1/0,-1/0]}function M1e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function NO(e,t,r,n,i){var a=ZW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Dd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return xs(r[a],this._dimensions[a])}Zb={arrayRows:t,objectRows:function(r,n,i,a){return xs(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return xs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),KW=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if($g(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=jn(s)?ys:Ai,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ee(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ee(f.sourceHeader,d.sourceHeader),v=Ee(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[zT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[zT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&BO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&BO(f),s.push(c),l.push(u._getVersionSign())}),n?o=w1e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[i1e(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=tU(i);a>=t&&(t=a+ +(n&&(!a||FT(i)&&!i.noHeader)))}),t}return 0}function P1e(e,t,r,n){var i=t.noHeader,a=R1e(tU(t)),o=[],s=t.blocks||[];ln(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new qW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=eU(p)(g?q(q({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):$T(o.join(""),i?r:a.html);if(i)return f;var d=ET(t.header,"ordinal",e.useUTC),h=JW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?rU(e,d,h)+a.richText+f:$T('
'+mn(d)+"
"+f,r)}function D1e(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(_,b){return ET(_,Y(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":ET(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=JW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":rU(e,d,y))+(o?"":O1e(e,p,v,g,x)):$T((s?"":f)+(a?"":L1e(d,!s,y))+(o?"":E1e(p,v,g,x)),r)}}function FO(e,t,r,n,i,a){if(e){var o=eU(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function R1e(e){return{html:k1e[e],richText:I1e[e]}}function $T(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function L1e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function E1e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Y(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function rU(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function O1e(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function nU(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return _u(n)}function iU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Kb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=r6()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=w0e({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?D(r,function(a){return q(n,a)}):q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function aU(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Y(s),u=nU(t,r),c,f,d,h;if(o>1||l&&!o){var p=N1e(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=wf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=ok(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Bi(x),value:c,valueType:f})].concat(d||[])})}function N1e(e,t,r,n,i){var a=t.getData(),o=Oa(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(wf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Oo=Je();function Vg(e,t){return e.getName(t)||e.getId(t)}var ry="__universalTransitionEnabled",Ox=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Yh({count:B1e,reset:F1e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Oo(this).sourceManager=new KW(this);a.prepareSource();var o=this.getInitialData(r,i);VO(o,this),this.dataTask.context.data=o,Oo(this).dataBeforeProcessed=o,$O(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Vp(this),a=i?Kf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),yu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Vp(this);i&&Ds(this.option,r,i);var a=Oo(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);VO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Oo(this).dataBeforeProcessed=o,$O(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!jn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Ik.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Vg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ry])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){be(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return et.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(et);sr(Ox,Lk);sr(Ox,Ik);f6(Ox,et);function $O(e){var t=e.name;ok(e)||(e.name=z1e(e)||t)}function z1e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function B1e(e){return e.model.getRawData().count()}function F1e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$1e}function $1e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function VO(e,t){D(e0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ie(V1e,t))})}function V1e(e,t){var r=VT(e);return r&&r.setOutputEnd((t||this).count()),t}function VT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Nt=Ox;var Ok=function(){function e(){this.group=new Me,this.uid=Xf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();lk(Ok);vx(Ok);const Ut=Ok;function ed(){var e=Je();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var oU=Je(),G1e=ed(),Nk=function(){function e(){this.group=new Me,this.uid=Xf("viewChart"),this.renderTask=Yh({plan:H1e,reset:W1e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&HO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&HO(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Hs(this.group,t)},e.markUpdateMethod=function(t,r){oU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function GO(e,t,r){e&&zp(e)&&(t==="emphasis"?mo:yo)(e,r)}function HO(e,t,r){var n=xu(e,t),i=t&&t.highlightKey!=null?gye(t.highlightKey):null;n!=null?D(ht(n),function(a){GO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){GO(a,r,i)})}lk(Nk);vx(Nk);function H1e(e){return G1e(e.model)}function W1e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&oU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),U1e[l]}var U1e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Tt=Nk;var m0="\0__throttleOriginMethod",WO="\0__throttleRate",UO="\0__throttleType";function zk(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function td(e,t,r,n){var i=e[t];if(i){var a=i[m0]||i,o=i[UO],s=i[WO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=zk(a,r,n==="debounce"),i[m0]=a,i[UO]=n,i[WO]=r}return i}}function Hp(e,t){var r=e[t];r&&r[m0]&&(r.clear&&r.clear(),e[t]=r[m0])}var jO=Je(),qO={itemStyle:Su(cW,!0),lineStyle:Su(uW,!0)},j1e={lineStyle:"stroke",itemStyle:"fill"};function sU(e,t){var r=e.visualStyleMapper||qO[t];return r||(console.warn("Unknown style type '"+t+"'."),qO.itemStyle)}function lU(e,t){var r=e.visualDrawType||j1e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var q1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=sU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=lU(e,n),u=o[l],c=ye(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ye(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ye(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=q({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Rd=new wt,Y1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=sU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Rd.option=l[n];var u=i(Rd),c=o.ensureUniqueItemVisual(s,"style");q(c,u),Rd.option.decal&&(o.setItemVisual(s,"decal",Rd.option.decal),Rd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},X1e={performRawSeries:!0,overallReset:function(e){var t=ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),jO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=jO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=lU(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},Gg=Math.PI;function Z1e(e,t){t=t||{},Se(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,n=new Qe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Qe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new mk({shape:{startAngle:-Gg/2,endAngle:-Gg/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:Gg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Gg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var K1e=function(){function e(t,r,n,i){this._stageTaskMap=ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Yh({plan:rxe,reset:nxe,count:axe}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Yh({reset:Q1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Yh({reset:J1e,onDirty:txe})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return ye(t)&&(t={overallReset:t,seriesType:oxe(t)}),t.uid=Xf("stageHandler"),r&&(t.visualType=r),t},e}();function Q1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function J1e(e){return e.overallProgress&&exe}function exe(){this.agent.dirty(),this.getDownstream().dirty()}function txe(){this.agent&&this.agent.dirty()}function rxe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function nxe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ht(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return uU(n)}):ixe}var ixe=uU(0);function uU(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),GT=["symbol","symbolSize","symbolRotate","symbolOffset"],KO=GT.concat(["symbolKeepAspect"]),cxe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&ql(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function HT(e,t,r){for(var n=t.type==="radial"?Axe(e,t,r):Txe(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:Y(e)?e:null}function Fk(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&kxe(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var Ixe=new Fa(!0);function S0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function QO(e){return typeof e=="string"&&e!=="none"}function b0(e){var t=e.fill;return t!=null&&t!=="none"}function JO(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function eN(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function WT(e,t,r){var n=uk(t.image,t.__image,r);if(gx(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Gm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Pxe(e,t,r,n){var i,a=S0(r),o=b0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Ixe,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=f?HT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?HT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?WT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?WT(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=Fk(t),C=i[0],A=i[1]);var T=!0;(u||f&_c)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&eN(e,r),o&&JO(e,r)):(o&&JO(e,r),a&&eN(e,r))),C&&e.setLineDash([])}function Dxe(e,t,r){var n=t.__image=uk(r.image,t.__image,t,t.onload);if(!(!n||!gx(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Rxe(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Ms,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Fk(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(S0(r)&&e.strokeText(i,r.x,r.y),b0(r)&&e.fillText(i,r.x,r.y)):(b0(r)&&e.fillText(i,r.x,r.y),S0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var tN=["shadowBlur","shadowOffsetX","shadowOffsetY"],rN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function gU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ru.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||ru.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Hr]){if(this._disposed){this.id;return}var a,o,s;if(be(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Hr]=!0,!this._model||n){var l=new Y0e(this._api),u=this._theme,c=this._model=new OW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},jT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Hr]=!1,this.getZr().wakeUp();else{try{lc(this),No.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Hr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Hr]=!1,Ld.call(this,a),Ed.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(YT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(of,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Ce(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=ks.createCanvas(),m=SE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(d,function(x){var S=x.left-l,_=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qe({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(d,function(x){var S=new Br({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return r_(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return r_(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Hh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Hh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Bk(s,l,n):Pv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(iSe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&jl(s,function(p){var v=ke(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=q({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Xh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),dxe(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&l6(this.getDom(),Gk,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete of[n.id]},t.prototype.resize=function(r){if(!this[Hr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Hr]=!0;try{i&&lc(this),No.update.call(this,{type:"resize",animation:q({duration:0},r&&r.animation)})}catch(o){throw this[Hr]=!1,o}this[Hr]=!1,Ld.call(this,a),Ed.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(be(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!qT[r]){var i=qT[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=q({},r);return n.type=Xh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(be(n)||(n={silent:!!n}),!!w0[r.type]&&this._model){if(this[Hr]){this._pendingActions.push(r);return}var i=n.silent;i_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Ld.call(this,i),Ed.call(this,i)}},t.prototype.updateLabelLayout=function(){Li.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){lc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),t_(f,!0),t_(f,!1),d.plan()},t_=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;xd.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(rf(m))return;if(m instanceof $e&&mye(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}vN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){mo(p,v),Kn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Kn(f)},h.prototype.enterBlur=function(p){P6(p),Kn(f)},h.prototype.leaveBlur=function(p){hk(p),Kn(f)},h.prototype.enterSelect=function(p){D6(p),Kn(f)},h.prototype.leaveSelect=function(p){R6(p),Kn(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(NW))(f)},DU=function(f){function d(h,p){for(var v=0;v=0)){mN.push(r);var a=dU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function NU(e,t){qT[e]=t}function pSe(e,t,r){var n=Hxe("registerMap");n&&n(e,t,r)}var vSe=_1e;Bu($k,q1e);Bu(Nx,Y1e);Bu(Nx,X1e);Bu($k,cxe);Bu(Nx,fxe);Bu(TU,$xe);EU(BW);OU(jxe,r1e);NU("default",Z1e);Ha({type:nu,event:nu,update:nu},tr);Ha({type:Km,event:Km,update:Km},tr);Ha({type:Wh,event:Wh,update:Wh},tr);Ha({type:Qm,event:Qm,update:Qm},tr);Ha({type:Uh,event:Uh,update:Uh},tr);Hk("light",sxe);Hk("dark",lxe);var yN=[],gSe={registerPreprocessor:EU,registerProcessor:OU,registerPostInit:cSe,registerPostUpdate:fSe,registerUpdateLifecycle:Wk,registerAction:Ha,registerCoordinateSystem:dSe,registerLayout:hSe,registerVisual:Bu,registerTransform:vSe,registerLoading:NU,registerMap:pSe,registerImpl:Gxe,PRIORITY:tSe,ComponentModel:et,ComponentView:Ut,SeriesModel:Nt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){Nt.registerClass(e)},registerChartView:function(e){Tt.registerClass(e)},registerSubTypeDefaulter:function(e,t){et.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Nge(e,t)}};function Fe(e){if(Y(e)){D(e,function(t){Fe(t)});return}ze(yN,e)>=0||(yN.push(e),ye(e)&&(e={install:e}),e.install(gSe))}function Od(e){return e==null?0:e.length||1}function xN(e){return e}var mSe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||xN,this._newKeyGetter=i||xN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Nd=be,zo=Z,CSe=typeof Int32Array>"u"?Array:Int32Array,TSe="e\0\0",SN=-1,ASe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],MSe=["_approximateExtent"],bN,qg,zd,Bd,s_,Yg,l_,kSe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;BU(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ai;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Y(a)?a=a.slice():Nd(a)&&(a=q({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Nd(r)?q(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Nd(t)?q(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?q(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;TT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zo(this.dimensions,this._getDimInfo,this),this.hostModel)),s_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ye(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Z2(arguments)))})},e.internalField=function(){bN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new CSe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=kSe;function Dv(e,t){Pk(e)||(e=Dk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ge(),a=[],o=PSe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&VU(o),l=n===e.dimensionsDefine,u=l?$U(e):FU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ge(c),d=new XW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function PSe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;be(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function DSe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var RSe=function(){function e(t){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=t}return e}();function LSe(e){var t=e.get("coordinateSystem"),r=new RSe(t),n=ESe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ESe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ar).models[0],a=e.getReferringComponents("yAxis",ar).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),uc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),uc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ar).models[0];t.coordSysDims=["single"],r.set("single",i),uc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ar).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),uc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),uc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),uc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function uc(e){return e.get("type")==="category"}function OSe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;NSe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(a,function(y,x){oe(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function NSe(e){return!BU(e.schema)}function Rs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function GU(e,t){return Rs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function zSe(e,t){var r=e.get("coordinateSystem"),n=Iv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=T0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function BSe(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function To(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Dk(e)):(i=n.getSource(),a=i.sourceFormat===Ai);var o=LSe(t),s=zSe(t,o),l=r.useEncodeDefaulter,u=ye(l)?l:l?Ie(PW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Dv(i,c),d=BSe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=OSe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&FSe(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function FSe(e){if(e.sourceFormat===Ai){var t=$Se(e.data||[]);return!Y(Wf(t))}}function $Se(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();vx(HU);const Ao=HU;var VSe=0,GSe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++VSe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,HSe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},e}();function HSe(e){return be(e)&&e.value!=null?e.value:e+""}const XT=GSe;function ZT(e){return e.type==="interval"||e.type==="log"}function WSe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=e6(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=WU(o),l=i.niceTickExtent=[Yt(Math.ceil(e[0]/o)*o,s),Yt(Math.floor(e[1]/o)*o,s)];return USe(l,e),i}function u_(e){var t=Math.pow(10,ak(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yt(r*t)}function WU(e){return Sa(e)+2}function _N(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function USe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),_N(e,0,t),_N(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function zx(e,t){return e>=t[0]&&e<=t[1]}function Bx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Fx(e,t){return e*(t[1]-t[0])+t[0]}var UU=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new XT({})),Y(i)&&(i=new XT({categories:Z(i,function(a){return be(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),zx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Bx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Fx(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ao);Ao.registerClass(UU);const jk=UU;var dl=Yt,jU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return zx(r,this._extent)},t.prototype.normalize=function(r){return Bx(r,this._extent)},t.prototype.scale=function(r){return Fx(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=WU(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:dl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function XU(e){var t=YSe(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(ej(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Yk(a),stackId:qk(n)})}),ZU(r)}function ZU(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=qe(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),D(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&yS&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;D(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function XSe(e,t,r){if(e&&t){var n=e[Yk(t)];return n!=null&&r!=null?n[qk(r)]:n}}function KU(e,t){var r=YU(e,t),n=XU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=qk(i),u=n[Yk(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function QU(e){return{seriesType:e,plan:ed(),reset:function(t){if(JU(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Rs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=ZSe(i,a),p=ej(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,k=S.getStore(),I=0;(M=x.next())!=null;){var P=k.get(f?g:o,M),R=k.get(s,M),z=h,V=void 0;f&&(V=+P-k.get(o,M));var N=void 0,$=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([P,R]);if(f){var B=n.dataToPoint([V,R]);z=B[0]}N=z,$=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Xg.length,l=Math.min(KSe(Xg,this._approxInterval,0,s),s-1);this._interval=Xg[l][1],this._minLevelUnit=Xg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return zx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Bx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Fx(r,this._extent)},t.type="time",t}(Ls),Xg=[["second",wk],["minute",Ck],["hour",qh],["quarter-day",qh*6],["half-day",qh*12],["day",pi*1.2],["half-week",pi*3.5],["week",pi*7],["month",pi*31],["quarter",pi*95],["half-year",dO/2],["year",dO]];function QSe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return pO(i,p,n)===pO(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function JSe(e,t){return e/=pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ebe(e){var t=30*pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function tbe(e){return e/=qh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function wN(e,t){return e/=t?Ck:wk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rbe(e){return e6(e,!0)}function nbe(e,t,r){var n=new Date(e);switch(nf(t)){case"year":case"month":n[vW(r)](0);case"day":n[gW(r)](1);case"hour":n[mW(r)](0);case"minute":n[yW(r)](0);case"second":n[xW(r)](0),n[SW(r)](0)}return n.getTime()}function ibe(e,t,r,n){var i=1e4,a=hW,o=0;function s(T,M,k,I,P,R,z){for(var V=new Date(M),N=M,$=V[I]();N1&&R===0&&k.unshift({value:k[0].value-N})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=ft(Z(u,function(T){return ft(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[Yt(sbe(n[0]/a)*a),Yt(obe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Zh.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Pi(r)/Pi(this.base),zx(r,this._extent)},t.prototype.normalize=function(r){return r=Pi(r)/Pi(this.base),Bx(r,this._extent)},t.prototype.scale=function(r){return r=Fx(r,this._extent),Zg(this.base,r)},t.type="log",t}(Ao),nj=Xk.prototype;nj.getMinorTicks=Zh.getMinorTicks;nj.getLabel=Zh.getLabel;function Kg(e,t){return abe(e,Sa(t))}Ao.registerClass(Xk);const lbe=Xk;var ube=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[fbe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=cbe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),cbe={min:"_determinedMin",max:"_determinedMax"},fbe={min:"_dataMin",max:"_dataMax"};function ij(e,t,r){var n=e.rawExtentInfo;return n||(n=new ube(e,t,r),e.rawExtentInfo=n,n)}function Qg(e,t){return t==null?null:Pp(t)?NaN:e.parse(t)}function aj(e,t){var r=e.type,n=ij(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=YU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=XU(s),c=dbe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function dbe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=XSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Tf(e,t){var r=t,n=aj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof lbe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function $x(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new jk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new rj({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ao.getClass(t)||Ls)}}function hbe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Rv(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):oe(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):ye(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Zk(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Zk(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function pbe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof jk?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Rv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Lv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),mbe=1e-8;function TN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return xbe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?AN(s.exterior,i,a,r):D(s.points,function(l){AN(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function _be(e,t){return e=bbe(e),Z(ft(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new MN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new MN(l[0],l.slice(1)))});break;case"LineString":a.push(new kN([i.coordinates]));break;case"MultiLineString":a.push(new kN(i.coordinates))}var s=new lj(n[t||"name"],a,n.cp);return s.properties=n,s})}var jp=Je();function wbe(e){return e.type==="category"?Tbe(e):Mbe(e)}function Cbe(e,t){return e.type==="category"?Abe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function Tbe(e){var t=e.getLabelModel(),r=cj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function cj(e,t){var r=fj(e,"labels"),n=Kk(t),i=dj(r,n);if(i)return i;var a,o;return ye(n)?a=vj(e,n):(o=n==="auto"?kbe(e):n,a=pj(e,o)),hj(r,n,{labels:a,labelCategoryInterval:o})}function Abe(e,t){var r=fj(e,"ticks"),n=Kk(t),i=dj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ye(n))a=vj(e,n,!0);else if(n==="auto"){var s=cj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=pj(e,o,!0);return hj(r,n,{ticks:a,tickCategoryInterval:o})}function Mbe(e){var t=e.scale.getTicks(),r=Rv(e);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function fj(e,t){return jp(e)[t]||(jp(e)[t]=[])}function dj(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=_v(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),S=jp(e.model),_=e.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&S.axisExtent0===_[0]&&S.axisExtent1===_[1]?x=b:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=_[0],S.axisExtent1=_[1]),x}function Pbe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function pj(e,t,r){var n=Rv(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=oj(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function vj(e,t,r){var n=e.scale,i=Rv(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var IN=[0,1],Dbe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return QH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),PN(n,i.count())),ct(t,IN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),PN(n,i.count()));var a=ct(t,n,IN,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Cbe(this,r),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Rbe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return wbe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Ibe(this)},e}();function PN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Rbe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=Yt(h),p=Yt(p),f?h>p:hi&&(i+=Fd);var h=Math.atan2(s,o);if(h<0&&(h+=Fd),h>=n&&h<=i||h+Fd>=n&&h+Fd<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y0){t=t/180*Math.PI,$i.fromArray(e[0]),bt.fromArray(e[1]),er.fromArray(e[2]),Le.sub(wa,$i,bt),Le.sub(ga,er,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(rn,er),rn.toArray(e[1])}}}}function Bbe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,$i.fromArray(e[0]),bt.fromArray(e[1]),er.fromArray(e[2]),Le.sub(wa,bt,$i),Le.sub(ga,er,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(rn,er);else{rn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=er.x!==bt.x?(rn.x-bt.x)/(er.x-bt.x):(rn.y-bt.y)/(er.y-bt.y);if(isNaN(f))return;f<0?Le.copy(rn,bt):f>1&&Le.copy(rn,er)}rn.toArray(e[1])}}}}function RN(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Fbe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Qo(n[0],n[1]),a=Qo(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Wm([],n[1],n[0],o/i),l=Wm([],n[1],n[2],o/a),u=Wm([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&_(-c/o,0,o);var v=e[0],g=e[o-1],m,y;x(),m<0&&b(-m,.8),y<0&&b(y,.8),x(),S(m,y,1),S(y,m,-1),x(),m<0&&w(-m),y<0&&w(y);function x(){m=v.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function S(C,A,T){if(C<0){var M=Math.min(A,-C);if(M>0){_(M*T,0,o);var k=M+C;k<0&&b(-k*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var k=0;k0;k--){var z=T[k-1]*R;_(-z,k,o)}}}function w(C){var A=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(o-1)),M=0;M0?_(T,0,M+1):_(-T,o-M-1,o),C-=T,C<=0)return}return u}function $be(e,t,r,n){return xj(e,"x","width",t,r,n)}function Sj(e,t,r,n){return xj(e,"y","height",t,r,n)}function bj(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),it(n,u,r,l)}else if(n.attr(u),!Yf(n).valueAnimation){var f=Ee(n.style.opacity,1);n.style.opacity=0,Rt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Jg(h,u,em),Jg(h,n.states.select,em)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Jg(p,u,em),Jg(p,n.states.emphasis,em)}lW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Hbe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Rt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const Ube=Wbe;var h_=Je();function jbe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=h_(r).labelManager;i||(i=h_(r).labelManager=new Ube),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=h_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var p_=Math.sin,v_=Math.cos,_j=Math.PI,pl=Math.PI*2,qbe=180/_j,Ybe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=ns(f-pl)||(c?u>=pl:-u>=pl),h=u>0?u%pl:u%pl+pl,p=!1;d?p=!0:ns(f)?p=!1:p=h>=_j==!!c;var v=t+n*v_(o),g=r+i*p_(o);this._start&&this._add("M",v,g);var m=Math.round(a*qbe);if(d){var y=1/this._p,x=(c?1:-1)*(pl-y);this._add("A",n,i,m,1,+c,t+n*v_(o+x),r+i*p_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*v_(s),_=r+i*p_(s);this._add("A",n,i,m,+p,+c,S,_)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function n_e(e){return""}function eI(e,t){t=t||{};var r=t.newline?` +`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return r_e(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+n_e(o)}return n(e)}function i_e(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(qe(e),function(l){return l+i+Z(qe(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(qe(t),function(l){return"@keyframes "+l+i+Z(qe(t[l]),function(u){return u+i+Z(qe(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function JT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function EN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:Cj,"xmlns:xlink":Tj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var ON={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"},wl="transform-origin";function a_e(e,t,r){var n=q({},e.shape);q(n,t),e.buildPath(r,n);var i=new wj;return i.reset(VH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function o_e(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[wl]=r+"px "+n+"px")}var s_e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Mj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function l_e(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=JT(r.zrId);u.animation=!0,Vx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=qe(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=Mj(i,r);return a.replace(o,s)}}function NN(e){return oe(e)?ON[e]?"cubic-bezier("+ON[e]+")":tk(e)?e:"":""}function Vx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof yk){var s=l_e(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ee=Mj(w,r);return ee+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var qp=Math.round;function kj(e){return e&&oe(e.src)}function Ij(e){return e&&ye(e.toDataURL)}function tI(e,t,r,n){Jbe(function(i,a){var o=i==="fill"||i==="stroke";o&&$H(a)?Dj(t,e,i,n):o&&rk(a)?Rj(r,e,i,n):e[i]=a},t,r,!1),v_e(r,e,n)}function zN(e){return ns(e[0]-1)&&ns(e[1])&&ns(e[2])&&ns(e[3]-1)}function u_e(e){return ns(e[4])&&ns(e[5])}function rI(e,t,r){if(t&&!(u_e(t)&&zN(t))){var n=r?10:1e4;e.transform=zN(t)?"translate("+qp(t[4]*n)/n+" "+qp(t[5]*n)/n+")":nge(t)}}function BN(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var k=T.elm,I=d||M.width,P=h||M.height;T.tag==="pattern"&&(u?(P=1,I/=a.width):c&&(I=1,P/=a.height)),T.attrs.width=I,T.attrs.height=P,k&&(k.setAttribute("width",I),k.setAttribute("height",P))}},y=uk(p,null,e,function(T){l||m(b,T),m(f,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=Ce(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var _=GH(i);_&&(o.patternTransform=_);var b=mr("pattern","",o,[f]),w=eI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=mr("pattern",A,o,[f])),t[r]=hx(A)}}function g_e(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=mr("clipPath",a,o,[Pj(e,r)])}t["clip-path"]=hx(a)}function VN(e){return document.createTextNode(e)}function Rl(e,t,r){e.insertBefore(t,r)}function GN(e,t){e.removeChild(t)}function HN(e,t){e.appendChild(t)}function Lj(e){return e.parentNode}function Ej(e){return e.nextSibling}function g_(e,t){e.textContent=t}var WN=58,m_e=120,y_e=mr("","");function eA(e){return e===void 0}function ua(e){return e!==void 0}function x_e(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function ph(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Yp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=Aj(n);if(nI(y_e,e),Y(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Oj(e,p,r,i,l)):I0(e,t,n,a))}function Cc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(nI(e,t),eA(t.text)?ua(n)&&ua(i)?n!==i&&S_e(r,n,i):ua(i)?(ua(e.text)&&g_(r,""),Oj(r,null,i,0,i.length-1)):ua(n)?I0(r,n,0,n.length-1):ua(e.text)&&g_(r,""):e.text!==t.text&&(ua(n)&&I0(r,n,0,n.length-1),g_(r,t.text)))}function b_e(e,t){if(ph(e,t))Cc(e,t);else{var r=e.elm,n=Lj(r);Yp(t),n!==null&&(Rl(n,t.elm,Ej(r)),I0(n,[e],0,0))}return t}var __e=0,w_e=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=UN(),this.configLayer=UN(),this.storage=r,this._opts=n=q({},n),this.root=t,this._id="zr"+__e++,this._oldVNode=EN(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Aj("svg");nI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",b_e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return $N(t,JT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=JT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=C_e(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(qe(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=i_e(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return EN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},eI(this.renderToVNode({animation:Ee(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ee(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m=s)}}for(var f=this.__startIndex;f15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var T=h.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?tm:0),this._needsManuallyCompositing),c.__builtin__||Y2("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&zn&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Nt);const O_e=E_e;function Af(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=wf(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var N_e=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=or(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=z_e,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):it(d,h,s,n),Zi(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Rt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=yr(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var _=zu(r.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var b=r.getItemVisual(n,"style"),w=b.fill;if(s instanceof Br){var C=s.style;s.useStyle(q({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(q({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),T=this._z2;A!=null?T==null&&(this._z2=s.z2,s.z2+=A):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;zr(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:w,defaultOpacity:b.opacity});function k(R){return M?r.getName(R):Af(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Wt(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ps(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ps(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return rd(r.getItemVisual(n,"symbolSize"))},t}(Me);function z_e(e,t){this.parent.drift(e,t)}const Ev=N_e;function y_(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function YN(e){return e!=null&&!be(e)&&(e={isIgnore:e}),e||{}}function XN(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:yr(t),cursorStyle:t.get("cursor")}}var B_e=function(){function e(t){this.group=new Me,this._SymbolCtor=t||Ev}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=YN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=XN(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(y_(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!y_(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):it(h,m,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=XN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=YN(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function Bj(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function $_e(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function V_e(e,t,r,n,i,a,o,s){for(var l=$_e(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=zj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(su(m,y)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var x=m-u,S=y-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],w=t[_*2+1];b===m&&w===y&&g=n||su(b,w))h=m,p=y;else{T=b-u,M=w-c;var P=m-u,R=b-m,z=y-c,V=w-y,N=void 0,$=void 0;if(s==="x"){N=Math.abs(P),$=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,k=m+L*$*o,I=y}else if(s==="y"){N=Math.abs(z),$=Math.abs(V);var G=M>0?1:-1;h=m,p=y-G*N*o,k=m,I=y+G*$*o}else N=Math.sqrt(P*P+z*z),$=Math.sqrt(R*R+V*V),A=$/($+N),h=m-T*o*(1-A),p=y-M*o*(1-A),k=m+T*o*A,I=y+M*o*A,k=Bo(k,Fo(b,m)),I=Bo(I,Fo(w,y)),k=Fo(k,Bo(b,m)),I=Fo(I,Bo(w,y)),T=k-m,M=I-y,h=m-T*N/$,p=y-M*N/$,h=Bo(h,Fo(u,m)),p=Bo(p,Fo(c,y)),h=Fo(h,Bo(u,m)),p=Fo(p,Bo(c,y)),T=m-h,M=y-p,k=m+T*$/N,I=y+M*$/N}e.bezierCurveTo(f,d,h,p,m,y),f=k,d=I}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Fj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),G_e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&su(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var _=u?r0(s,h,v,m,r,c):r0(l,p,g,y,r,c);if(_>0)for(var b=0;b<_;b++){var w=c[b];if(w<=1&&w>=0){var S=u?pr(l,p,g,y,w):pr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),H_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Fj),$j=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new H_e},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&su(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function j_e(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=U_e(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";D(d,function(x){x.offset=(x.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new Tv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function q_e(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Y_e(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Y_e(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function X_e(e,t){return isNaN(e)||isNaN(t)}function Z_e(e){for(var t=e.length/2;t>0&&X_e(e[t*2-2],e[t*2-1]);t--);return t-1}function ez(e,t){return[e[t*2],e[t*2+1]]}function K_e(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Hj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}ke(v).seriesIndex=r.seriesIndex,Wt(v,V,N,$);var G=JN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(Se(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=JN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),Nr(g,r,"areaStyle"),ke(g).seriesIndex=r.seriesIndex,Wt(g,V,N,$)}var X=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=xu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Ev(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=xu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Tt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;c0(this._polyline,r),n&&c0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new G_e({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new $j({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ye(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ye(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var S=i,_=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,x=-_[1]/180*Math.PI):(m=S.r0,y=S.r,x=_[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,x=h.x):(m=b.y+b.height,y=b.y,x=h.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=ye(f)?f(p):c*w+d,A=v.getSymbolPath(),T=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Hj(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Z_e(l);c>=0&&(zr(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Nj(o,h):Af(o,f)},enableTextSetter:!0},Q_e(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,S=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?v:0)*(y?-1:1),b=(m?0:-v)*(y?-1:1),w=m?"x":"y",C=K_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var k=ez(f,A[0]);u.attr({x:k[0]+_,y:k[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var k=c.getPointOn(S,w);k&&u.attr({x:k[0]+_,y:k[1]+b});var I=d.getRawValue(A[0]),P=d.getRawValue(A[1]);o&&(M=u6(i,p,I,P,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,k=ez(f,R);o&&(M=d.getRawValue(R)),u.attr({x:k[0]+_,y:k[1]+b})}if(o){var z=Yf(u);typeof z.setLabelText=="function"&&z.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=V_e(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=$o(d.current,i,o,l),p=$o(d.stackedOnCurrent,i,o,l),v=$o(d.next,i,o,l),g=$o(d.stackedOnNext,i,o,l)),QN(h,v)>3e3||c&&QN(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=d.status,S=0;St&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;oe(a)?p=twe[a]:ye(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,rwe))}}}}}function nwe(e){e.registerChartView(ewe),e.registerSeriesModel(O_e),e.registerLayout(Nv("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Wj("line"))}var Uj=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,x=1,S=0;Sv){y=(_+m)/2;break}S===1&&(x=b-p[0].tickValue)}y==null&&(m?m&&(y=p[p.length-1].coord):y=p[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Nt);Nt.registerClass(Uj);const P0=Uj;var iwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return To(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ws(P0.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}(P0);const awe=iwe;var owe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),swe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new owe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Bp(a,r,ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Tt),tz={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=S_(t.x,e.x),s=b_(t.x+t.width,i),l=S_(t.y,e.y),u=b_(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=b_(t.r,e.r),a=S_(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},rz={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:q({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?D0:In,c=new u({shape:n,z2:1});c.name="item";var f=jj(i);if(c.calculateTextPosition=lwe(f,{isRoundCap:u===D0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Rt)(c,{shape:p},a)}return c}};function dwe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function nz(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?it:Rt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Rt)(r,{shape:u},c,i)}function iz(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function vwe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function jj(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function oz(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Xl(n.getModel("itemStyle"),c,!0);q(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=yr(n);zr(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Af(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,uwe(e,g==="outside"?h:g,jj(o),n.get(["label","rotate"]))}sW(v,p,a.getRawValue(r),function(y){return Nj(t,y)});var m=n.getModel(["emphasis"]);Wt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Nr(e,n),vwe(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function gwe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var mwe=function(){function e(){}return e}(),sz=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new mwe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function ywe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function qj(e,t,r){if(Fu(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function xwe(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:qj(t,r,e),silent:!0,z2:0})}const Swe=fwe;function bwe(e){e.registerChartView(Swe),e.registerSeriesModel(awe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(KU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Wj("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var am=Math.PI*2,cz=Math.PI/180;function Yj(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Xj(e,t){var r=Yj(e,t),n=e.get("center"),i=e.get("radius");Y(i)||(i=[0,i]);var a=ne(r.width,t.getWidth()),o=ne(r.height,t.getHeight()),s=Math.min(a,o),l=ne(i[0],s/2),u=ne(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Y(n)||(n=[n,n]),c=ne(n[0],a)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function _we(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Yj(n,r),s=Xj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*cz,h=n.get("minAngle")*cz,p=0;i.each(a,function(T){!isNaN(T)&&p++});var v=i.getSum(a),g=Math.PI/(v||p)*2,m=n.get("clockwise"),y=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var _=am,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var k;if(isNaN(T)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?k=v===0&&x?g:T*g:k=am/p,kr?m:g,_=Math.abs(x.label.y-r);if(_>=S.maxY){var b=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function __(e){return e.position==="center"}function Twe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*wwe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),T=w.getTextGuideLine(),M=t.getItemModel(b),k=M.getModel("label"),I=k.get("position")||M.get(["emphasis","label","position"]),P=k.get("distanceToLabelLine"),R=k.get("alignTo"),z=ne(k.get("edgeDistance"),u),V=k.get("bleedMargin"),N=M.getModel("labelLine"),$=N.get("length");$=ne($,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var Pe=Math.PI,Ye=0,He=k.get("rotate");if(nt(He))Ye=He*(Pe/180);else if(I==="center")Ye=0;else if(He==="radial"||He===!0){var at=U<0?-G+Pe:-G;Ye=at}else if(He==="tangential"&&I!=="outside"&&I!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=Pe*2+ot);var kt=B>0;kt&&(ot=Pe+ot),Ye=ot-Pe}if(a=!!Ye,A.x=j,A.y=X,A.rotation=Ye,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var jt=A.states.select;jt&&(jt.x+=A.x,jt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var It=(A.style.margin||0)+2.1;Be.y-=It/2,Be.height+=It,r.push({label:A,labelLine:T,position:I,len:$,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:P,labelAlignTo:R,edgeDistance:z,bleedMargin:V,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&Cwe(r,n,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Tt);const kwe=Mwe;function nd(e,t,r){t=Y(t)&&{coordDimensions:t}||q({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Dv(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var Iwe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const Bv=Iwe;var Pwe=Je(),Dwe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return nd(this,{coordDimensions:["value"],encodeDefaulter:Ie(Mk,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=Pwe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Fge(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){yu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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}(Nt);const Rwe=Dwe;function Lwe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function Ewe(e){e.registerChartView(kwe),e.registerSeriesModel(Rwe),vU("pie",e.registerAction),e.registerLayout(Ie(_we,"pie")),e.registerProcessor(zv("pie")),e.registerProcessor(Lwe("pie"))}var Owe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Nt);const Nwe=Owe;var Kj=4,zwe=function(){function e(){}return e}(),Bwe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new zwe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const $we=Fwe;var Vwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Nv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new $we:new Ov,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Tt);const Gwe=Vwe;var Hwe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(et);const Wwe=Hwe;var rA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ar).models[0]},t.type="cartesian2dAxis",t}(et);sr(rA,Lv);var Qj={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Uwe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Qj),iI=Oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Qj),jwe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iI),qwe=Se({logBase:10},iI);const Jj={category:Uwe,value:iI,time:jwe,log:qwe};var Ywe={value:1,category:1,time:1,log:1};function Mf(e,t,r,n){D(Ywe,function(i,a){var o=Oe(Oe({},Jj[a],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Vp(this),h=d?Kf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=dz(c),d&&Ds(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=XT.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",dz)}function dz(e){return e.type||(e.data?"category":"value")}var Xwe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const Zwe=Xwe;var nA=["x","y"];function hz(e){return e.type==="interval"||e.type==="time"}var Kwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=nA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!hz(r)||!hz(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Hf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Lr(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Lr(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ne(i,a,o,s)},t}(Zwe),Qwe=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Qi);const Jwe=Qwe;function iA(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),wr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function pz(e){return e.get("coordinateSystem")==="cartesian2d"}function vz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,ar).models[0];t[n]=a}),t}var w_=Math.log;function e8(e,t,r){var n=Ls.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=aj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=w_(e.base);u=[w_(u[0])/d,w_(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=u_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=u_(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=Yt(g-y),v<0&&u[0]>=0?(v=0,g=Yt(y)):g>0&&u[1]<=0&&(g=0,v=-Yt(y))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var eCe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=qe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;ZT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Tf(v,p),ZT(v)&&(s=h))}c.length&&(s||(s=c.pop(),Tf(s.scale,s.model)),D(c,function(g){e8(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){gz(n,"y",o,a)}),D(n.y,function(o){gz(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=dr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=pbe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),tCe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}be(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):l0(i-is)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),yz={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Lr(s,s,o),Lr(l,l,o));var c=q({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Cr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});_f(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);oe(d)&&(d=[d,d]),(oe(h)||nt(h))&&(h=[h,h]);var p=zu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var x=or(d[y],-v/2,-g/2,v,g,c.stroke,!0),S=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+S*Math.cos(e.rotation),y:_[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=aCe(r,n,t,e),a=sCe(r,n,t,e);if(iCe(t,a,i),oCe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=yj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));bj(o)}},axisName:function(e,t,r,n){var i=wr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,Sz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*is/180);var p;Sz(a)?d=lu.innerTextLayout(e.rotation,h??e.rotation,o):(d=nCe(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=wr(e.nameTruncateMaxWidth,g.maxWidth,p),x=new rt({x:f[0],y:f[1],rotation:d.rotation,silent:lu.isLabelSilent(t),style:_t(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(qf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=lu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ke(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function nCe(e,t,r,n){var i=JH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return l0(i-is/2)?(o=l?"bottom":"top",a="center"):l0(i-is*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iis/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function iCe(e,t,r){if(!oj(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Qn(a),Qn(u)):xz(a,o)&&(n?(Qn(o),Qn(c)):(Qn(a),Qn(u))),i===!1?(Qn(s),Qn(f)):xz(l,s)&&(i?(Qn(l),Qn(d)):(Qn(s),Qn(f)))}}function Qn(e){e&&(e.ignore=!0)}function xz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=dx([]);return Ou(i,i,-e.rotation),r.applyTransform(io([],i,e.getLocalTransform())),n.applyTransform(io([],i,t.getLocalTransform())),r.intersect(n)}}function Sz(e){return e==="middle"||e==="center"}function t8(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function hCe(e){var t=aI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=aA(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Se({color:p.color},l));var g=Oe(Ce(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(oe(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ye(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return sr(y,Lv.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},$d.axisLine),axisLabel:om($d.axisLabel,!1),axisTick:om($d.axisTick,!1),splitLine:om($d.splitLine,!0),splitArea:om($d.splitArea,!0),indicator:[]},t}(et);const ICe=kCe;var PCe=["axisLine","axisTickLabel","axisName"],DCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(PCe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Y(d)?d:[d],v=Y(h)?h:[h],g=[],m=[];function y(R,z,V){var N=V%z.length;return R[N]=R[N]||[],N}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,_=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;A_(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);A_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Az(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;A_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ti);function A_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),s8(e,t,r,n,i))}function s8(e,t,r,n,i){i.isAvailableBehavior=ue(iy,null,r,n),e.trigger(t,i)}function iy(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Fv=VCe;function sI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function lI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var GCe={axisPointer:1,tooltip:1,brush:1};function Hx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!GCe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function l8(e){if(oe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var M_,R0={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"},Mz=qe(R0),L0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kz=qe(L0),HCe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=l8(t);this._defsUsePending=[];var i=new Me;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Rn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;jCe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Wx(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=c8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Me,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Qe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=M_[s];if(c&&ce(M_,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=Iz[s];if(h&&ce(Iz,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Op({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),WCe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){M_={g:function(t,r){var n=new Me;return Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new $a;return Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Cr;return Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new gk;return Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Rz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Jn(r,a),Rn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Rz(n));var a=new Dn({shape:{points:i||[]},silent:!0});return Jn(r,a),Rn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Br;return Jn(r,n),Rn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Me;return Jn(r,s),Rn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Me;return Jn(r,s),Rn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=F6(n);return Jn(r,i),Rn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Iz={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Tv(t,r,n,i);return Pz(e,a),Dz(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new Q6(t,r,n);return Pz(e,i),Dz(e,i),i}};function Pz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Dz(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};u8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Jn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Se(t.__inheritedStyle,e.__inheritedStyle))}function Rz(e){for(var t=Wx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Wx(o);switch(i=i||bi(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ek(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ou(i,i,-parseFloat(l[0])*k_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*k_);io(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*k_);io(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var Ez=/([^\s:;]+)\s*:\s*([^:;]+)/g;function u8(e,t,r){var n=e.getAttribute("style");if(n){Ez.lastIndex=0;for(var i;(i=Ez.exec(n))!=null;){var a=i[1],o=ce(R0,a)?R0[a]:null;o&&(t[o]=i[2]);var s=ce(L0,a)?L0[a]:null;s&&(r[s]=i[2])}}}function ZCe(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ge(),n=ge(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;zr(t,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(f8(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Fz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function $z(e,t,r,n,i){e.data||qf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Vz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Wt(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&vye(t,i,r),o}function Gz(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Nt);const yTe=mTe;function xTe(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var _=e.getBoxLayoutParams();_.aspect=g,S=dr(_,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function CTe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var TTe=function(){function e(){this.dimensions=h8}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new jz(l+s,l,q({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=qz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new jz(s,s,q({nameMap:X2(l)},i(o[0])));u.zoomLimit=wr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=qz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,CTe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ge(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function ETe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){zTe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=BTe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function OTe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Xz(e){return arguments.length?e:VTe}function vh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function NTe(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zTe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function BTe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=I_(s),a=P_(a),s&&a;){i=I_(i),o=P_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&($Te(FTe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!I_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!P_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function I_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function P_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function FTe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function $Te(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function VTe(e,t){return e.parentNode===t.parentNode?1:2}var GTe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),HTe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GTe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ne(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;py.x,_||(S=S-Math.PI));var w=_?"left":"right",C=s.getModel("label"),A=C.get("rotate"),T=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-S:T,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),I=k==="relative"?e0(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;I&&(ke(r).focus=I),UTe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Cv||c0(r.__edge,P)}})}function UTe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new _x({shape:lA(c,f,d,i,i)})),it(v,{shape:lA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;yr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(oe(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function S8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function hI(e,t){var r=S8(e);return ze(r,t)>=0}function Ux(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var rAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new wt(i,this,this.ecModel),o=dI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Ux(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Nt);const nAe=rAe;function iAe(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function aAe(e,t){e.eachSeriesByType("tree",function(r){oAe(r,t)})}function oAe(e,t){var r=NTe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=Xz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Xz());var s=e.getData().tree.root,l=s.children[0];if(l){LTe(s),iAe(l,ETe,o),s.hierNode.modifier=-l.hierNode.prelim,Gd(l,OTe);var u=l,c=l,f=l;Gd(l,function(x){var S=x.getLayout().x;Sc.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Gd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=vh(g,m);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Gd(l,function(x){m=(x.getLayout().x+h)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Gd(l,function(x){g=(x.getLayout().x+h)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function sAe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");q(s,o)})})}function lAe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=cI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function uAe(e){e.registerChartView(jTe),e.registerSeriesModel(nAe),e.registerLayout(aAe),e.registerVisual(sAe),lAe(e)}var eB=["treemapZoomToNode","treemapRender","treemapMove"];function cAe(e){for(var t=0;t1;)a=a.parentNode;var o=NT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var fAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};_8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=dAe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=dI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return xr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Ux(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},q(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ge(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){b8(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,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}(Nt);function _8(e){var t=0;D(e.children,function(n){_8(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function dAe(e,t){var r=ht(t.get("color")),n=ht(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(e,function(s){var l=new wt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}const hAe=fAe;var pAe=8,tB=8,D_=5,vAe=function(){function e(t){this.group=new Me,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),Rx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=fr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+pAe*2,r.emptyItemWidth);r.totalWidth+=s+tB,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=C0e(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,y=g.width,x=g.text;d>f.width&&(d-=y-u,y=u,x=null);var S=new Pn({shape:{points:gAe(l,0,y,c,v===h.length-1,v===0)},style:Se(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Uf*1e4,onclick:Ie(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Wt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),mAe(S,t,m),l+=y+tB}},e.prototype.remove=function(){this.group.removeAll()},e}();function gAe(e,t,r,n,i,a){var o=[[i?e:e-D_,t],[e+r,t],[e+r,t+n],[i?e:e-D_,t+n]];return!a&&o.splice(2,0,[e+r+D_,t+n/2]),!i&&o.push([e,t+n/2]),o}function mAe(e,t,r){ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Ux(r,t)}}const yAe=vAe;var xAe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;inB||Math.abs(r.dy)>nB)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ne(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=bi();Na(u,u,[-n,-i]),ek(u,u,[r.scale,r.scale]),Na(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&g0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new yAe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(hI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Tt);function Hd(){return{nodeGroup:[],background:[],content:[]}}function TAe(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,_=x&&x.length,b=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,M=j("nodeGroup",uA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),E0(M).nodeWidth=h,E0(M).nodeHeight=p,c.isAboveViewRoot)return M;var k=j("background",rB,u,_Ae);k&&$(M,k,_&&c.upperLabelHeight);var I=d.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),z=I.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)zp(M)&&Wl(M,!1),k&&(Wl(k,!z),f.setItemGraphicEl(o.dataIndex,k),kT(k,V,R));else{var N=j("content",rB,u,wAe);N&&L(M,N),k.disableMorphing=!0,k&&zp(k)&&Wl(k,!1),Wl(M,!z),f.setItemGraphicEl(o.dataIndex,M),kT(M,V,R)}return M;function $(ee,te,ie){var re=ke(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:p,r:T}),g)G(te);else{te.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,fe=oB(b);fe.fill=J;var de=Tl(w);de.fill=w.get("borderColor");var Pe=Tl(C);Pe.fill=C.get("borderColor");var Ye=Tl(A);if(Ye.fill=A.get("borderColor"),ie){var He=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:He,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=Pe,te.ensureState("select").style=Ye,bu(te)}ee.add(te)}function L(ee,te){var ie=ke(te);ie.dataIndex=o.dataIndex,ie.seriesIndex=e.seriesIndex;var re=Math.max(h-2*v,0),Q=Math.max(p-2*v,0);if(te.culling=!0,te.setShape({x:v,y:v,width:re,height:Q,r:T}),g)G(te);else{te.invisible=!1;var J=o.getVisual("style"),fe=J.fill,de=oB(b);de.fill=fe,de.decal=J.decal;var Pe=Tl(w),Ye=Tl(C),He=Tl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=Pe,te.ensureState("blur").style=Ye,te.ensureState("select").style=He,bu(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?aB:iB),J=fr(d.get("name"),null),fe=Q.getShallow("show");zr(ee,yr(d,re?aB:iB),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var Pe=de.style,Ye=K2(Pe.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-Ye[1]-Ye[3],0),ot=Math.max((re?re.height:ee.shape.height)-Ye[0]-Ye[2],0);(Pe.width!==at||Pe.height!==ot)&&de.setStyle({width:at,height:ot})},Pe.truncateMinChar=2,Pe.lineOverflow="truncate",B(Pe,re,c);var He=de.getState("emphasis");B(He?He.style:null,re,c)}}function B(ee,te,ie){var re=ee?ee.text:null;if(!te&&ie.isLeafRoot&&re!=null){var Q=e.get("drillDownIcon",!0);ee.text=Q?Q+" "+re:re}}function j(ee,te,ie,re){var Q=y!=null&&r[ee][y],J=i[ee];return Q?(r[ee][y]=null,X(J,Q)):g||(Q=new te,Q instanceof _i&&(Q.z2=AAe(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof uA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=q({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Me;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function AAe(e,t){return e*bAe+t}const MAe=CAe;var Kp=D,kAe=be,O0=-1,pI=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Ce(t);this.type=n,this.mappingMethod=r,this._normalizeData=DAe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(R_(i),IAe(i)):r==="category"?i.categories?PAe(i):R_(i,!0):(ln(r!=="linear"||i.dataExtent),R_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return qe(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){be(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Y(t)?[]:be(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Kp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(kAe(t)){var r=[];Kp(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function R_(e,t){var r=e.visual,n=[];be(r)?Kp(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),w8(e,n)}function lm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:cA([0,1])}}function sB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Wd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function gh(e){var t=this.option.visual;return t[this.option.loop&&e!==O0?e%t.length:e]}function Al(){return this.option.visual[0]}function cA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:gh,piecewise:function(t,r){var n=fA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Al}}function fA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=pI.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function w8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Gn(r);return n||[0,0,0,1]})),t}var DAe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=pI.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??O0},fixed:tr};function um(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=zAe(i,l,v,g,p,n);T8(v,m,r,n)}})}}}function EAe(e,t,r){var n=q({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function lB(e){var t=L_(e,"color");if(t){var r=L_(e,"colorAlpha"),n=L_(e,"colorSaturation");return n&&(t=$h(t,null,null,n)),r&&(t=n0(t,r)),t}}function OAe(e,t){return t!=null?$h(t,null,null,e):null}function L_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function NAe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=E_(t,"color")||i.color!=null&&i.color!=="none"&&(E_(t,"colorAlpha")||E_(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Er(f);return C8(d).drColorMappingBy=c,d}}}function E_(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function zAe(e,t,r,n,i,a){var o=q({},t);if(i){var s=i.type,l=s==="color"&&C8(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Qp=Math.max,N0=Math.min,uB=wr,vI=D,A8=["itemStyle","borderWidth"],BAe=["itemStyle","gapWidth"],FAe=["upperLabel","show"],$Ae=["upperLabel","height"];const VAe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=dr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(uB(s.width,l[0]),i),c=ne(uB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Zp(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=S8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?qAe(e,h,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(S),M8(v,x,!1,0),S=v.getLayout(),vI(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(q({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(YAe(s,p,h),!0),e.setLayoutInfo(s),k8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function M8(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(A8),u=s.get(BAe)/2,c=I8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Qp(i-2*d,0),a=Qp(a-d-h,0);var p=i*a,v=GAe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=N0(i,a),y=1/0,x=[];x.area=0;for(var S=0,_=v.length;S<_;){var b=v[S];x.push(b),x.area+=b.getLayout().area;var w=jAe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,cB(x,m,g,u,!1),m=N0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&cB(x,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function jAe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Qp(u*n/l,l/(u*i)):1/0}function cB(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;f_E&&(u=_E),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*w+c[0],a.y=c[1]+A,p=S[0]<0?"right":"left",a.originX=-m*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,p="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*w+f[0],a.y=f[1]+A,p=S[0]>=0?"right":"left",a.originX=m*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Me);const xI=hMe;var pMe=function(){function e(t){this.group=new Me,this._LineCtor=t||xI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=gB(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=gB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!vMe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function gB(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:yr(t)}}function mB(e){return isNaN(e[0])||isNaN(e[1])}function F_(e){return e&&!mB(e[0])&&!mB(e[1])}const SI=pMe;var $_=[],V_=[],G_=[],dc=_r,H_=eu,yB=Math.abs;function xB(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){$_[0]=dc(n[0],i[0],a[0],c),$_[1]=dc(n[1],i[1],a[1],c);var f=yB(H_($_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function W_(e,t){var r=[],n=Dp,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[no(u[0]),no(u[1])],u[2]&&u.__original.push(no(u[2])));var d=u.__original;if(u[2]!=null){if(Jr(i[0],d[0]),Jr(i[1],d[2]),Jr(i[2],d[1]),c&&c!=="none"){var h=yh(s.node1),p=xB(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=yh(s.node2),p=xB(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}Jr(u[0],i[0]),Jr(u[1],i[2]),Jr(u[2],i[1])}else{if(Jr(a[0],d[0]),Jr(a[1],d[1]),Gl(o,a[1],a[0]),Gf(o,o),c&&c!=="none"){var h=yh(s.node1);eT(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=yh(s.node2);eT(a[1],a[1],o,-h*t)}Jr(u[0],a[0]),Jr(u[1],a[1])}})}function SB(e){return e.type==="view"}var gMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new Ov,a=new SI,o=this.group;this._controller=new Fv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(SB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}W_(r.getGraph(),mh(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[_.x,_.y]);break;case"circular":f.setItemLayout(S,[_.x,_.y]),x.setLayout({fixed:!0},!0),yI(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),mI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),_.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ke(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(ke(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){L8(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Hx(u,i,r)}),!SB(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){sI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){lI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),W_(r.getGraph(),mh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=mh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){W_(r.getGraph(),mh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Tt);const mMe=gMe;function hc(e){return"_EC_"+e}var yMe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[hc(t)]){var i=new Ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[hc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[hc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof Ml||(t=i[hc(t)]),r instanceof Ml||(r=i[hc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new O8(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Ml&&(t=t.id),r instanceof Ml&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Ml||(r=this._nodesMap[hc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}sr(Ml,N8("hostGraph","data"));sr(O8,N8("hostGraph","edgeData"));const xMe=yMe;function z8(e,t,r,n,i){for(var a=new xMe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=To(e,r);else{var v=Iv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Dv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),y8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var SMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Bv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),yu(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){tMe(this);var s=z8(a,i,this,!0,l);return D(s.edges,function(u){rMe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=wt.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=aU({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Z(this.option.categories||[],function(i){return i.value!=null?i:q({value:0},i)}),n=new sn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Nt);const bMe=SMe;var _Me={type:"graphRoam",event:"graphRoam",update:"none"};function wMe(e){e.registerChartView(mMe),e.registerSeriesModel(bMe),e.registerProcessor(ZAe),e.registerVisual(KAe),e.registerVisual(QAe),e.registerLayout(nMe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,aMe),e.registerLayout(sMe),e.registerCoordinateSystem("graphView",{dimensions:$v.dimensions,create:uMe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},tr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},tr),e.registerAction(_Me,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=cI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var CMe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),TMe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new CMe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}($e);const AMe=TMe;function MMe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=ne(r[0],t.getWidth()),s=ne(r[1],t.getHeight()),l=ne(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function fm(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):ye(t)&&(r=t(e))),r}var kMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=MMe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?D0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];v6(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,S=[],_=0;p&&_=A&&(T===0?0:a[T-1][0])Math.PI/2&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:$,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:$,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var V=y.get("distance");V=V?V+c:c;for(var X=0;X<=_;X++){P=Math.cos(C),R=Math.sin(C);var W=new Cr({shape:{x1:P*(p-V)+d,y1:R*(p-V)+h,x2:P*(p-w-V)+d,y2:R*(p-w-V)+h},silent:!0,style:k});k.stroke==="auto"&&W.setStyle({stroke:a((z+X/_)/S)}),f.add(W),C+=T}C-=T}else C+=A}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),x=y.mapDimension("value"),S=+r.get("min"),_=+r.get("max"),b=[S,_],w=[s,l];function C(T,M){var k=y.getItemModel(T),I=k.getModel("pointer"),P=ne(I.get("width"),o.r),R=ne(I.get("length"),o.r),z=r.get(["pointer","icon"]),V=I.get("offsetCenter"),N=ne(V[0],o.r),$=ne(V[1],o.r),L=I.get("keepAspect"),G;return z?G=or(z,N-P/2,$-R,P,R,null,L):G=new AMe({shape:{angle:-Math.PI/2,width:P,r:R,x:N,y:$}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var k=g.get("roundCap"),I=k?D0:In,P=g.get("overlap"),R=P?g.get("width"):c/y.count(),z=P?o.r-R:o.r-(T+1)*R,V=P?o.r:o.r-T*R,N=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:V}});return P&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var k=C(T,s);Rt(k,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(k),y.setItemGraphicEl(T,k)}if(m){var I=A(T,s),P=g.get("clip");Rt(I,{shape:{endAngle:ct(M,b,w,P)}},r),f.add(I),TT(r.seriesIndex,y.dataType,T,I),p[T]=I}}).update(function(T,M){var k=y.get(x,T);if(v){var I=d.getItemGraphicEl(M),P=I?I.rotation:s,R=C(T,P);R.rotation=P,it(R,{rotation:-((isNaN(+k)?w[0]:ct(k,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],V=z?z.shape.endAngle:s,N=A(T,V),$=g.get("clip");it(N,{shape:{endAngle:ct(k,b,w,$)}},r),f.add(N),TT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),k=M.getModel("emphasis"),I=k.get("focus"),P=k.get("blurScope"),R=k.get("disabled");if(v){var z=y.getItemGraphicEl(T),V=y.getItemVisual(T,"style"),N=V.fill;if(z instanceof Br){var $=z.style;z.useStyle(q({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},V))}else z.useStyle(V),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,Nr(z,M),Wt(z,I,P,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,Nr(L,M),Wt(L,I,P,R)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=or(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Me,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new rt({silent:!0}),p[m]=new rt({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),S=new Me,_=a(ct(x,[c,f],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+ne(w[0],o.r),A=o.cy+ne(w[1],o.r),T=h[m];T.attr({z2:g?0:2,style:_t(b,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),S.add(T)}var M=y.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),I=o.cx+ne(k[0],o.r),P=o.cy+ne(k[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),V=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,T=p[m],N=M.get("formatter");T.attr({z2:g?0:2,style:_t(M,{x:I,y:P,text:fm(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:V})}),sW(T,{normal:M},x,function(L){return fm(L,N)}),v&&lW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return fm(X?X.interpolatedValue:x,N)}}),S.add(T)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Tt);const IMe=kMe;var PMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return nd(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}(Nt);const DMe=PMe;function RMe(e){e.registerChartView(IMe),e.registerSeriesModel(DMe)}var LMe=["itemStyle","opacity"],EMe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Dn,s=new rt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(LMe);c=c??1,i||Zi(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Rt(a,{style:{opacity:c}},o,n)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),Nr(a,s),this._updateLabel(r,n),Wt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;zr(o,yr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Qk(i,Jk(l),{stroke:d})},t}(Pn),OMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new EMe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Bp(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Tt);const NMe=OMe;var zMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return nd(this,{coordDimensions:["value"],encodeDefaulter:Ie(Mk,this)})},t.prototype._defaultLabelLine=function(r){yu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Nt);const BMe=zMe;function FMe(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $Me(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oa2e)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!j_(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function j_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const l2e=o2e;var u2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(et);const c2e=u2e;var f2e=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Qi);const d2e=f2e;function Vu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=pc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=pc(s,[0,o]),i=a=pc(s,[i,a]),n=0}t[0]=pc(t[0],r),t[1]=pc(t[1],r);var l=q_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=pc(t[n],c);var f;return f=q_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function q_(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function pc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Y_=D,F8=Math.min,$8=Math.max,wB=Math.floor,h2e=Math.ceil,CB=Yt,p2e=Math.PI,v2e=function(){function e(t,r,n){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;Y_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new d2e(o,$x(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();Y_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Tf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=dr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=dm(t.get("axisExpandWidth"),l),f=dm(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=dm(h[1]-h[0],l),h[1]=h[0]+p;else{p=dm(c*(f-1),l);var v=t.get("axisExpandCenter")||wB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[wB(CB(h[0]/c,1))+1,h2e(CB(h[1]/c,1))-1],y=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Y_(n,function(o,s){var l=(i.axisExpandable?m2e:g2e)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:p2e/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=bi();Ou(h,h,d),Na(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Vu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[$8(0,p-h/2)],i[1]=F8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function dm(e,t){return F8($8(e,t[0]),t[1])}function g2e(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function m2e(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)gi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aC2e}function q8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Y8(e,t,r,n){var i=new Me;return i.add(new Qe({name:"main",style:CI(r),silent:!0,draggable:!0,cursor:"move",drift:Ie(kB,e,t,i,["n","s","w","e"]),ondragend:Ie(Cu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ie(kB,e,t,i,a),ondragend:Ie(Cu,t,{isEnd:!0})}))}),i}function X8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=kf(i,T2e),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,m=v+i;ja(e,t,"main",o,s,p,v),n.transformable&&(ja(e,t,"w",l,u,a,m),ja(e,t,"e",d,u,a,m),ja(e,t,"n",l,u,g,a),ja(e,t,"s",l,h,g,a),ja(e,t,"nw",l,u,a,a),ja(e,t,"ne",d,u,a,a),ja(e,t,"sw",l,h,a,a),ja(e,t,"se",d,h,a,a))}function gA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(CI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?mA(e,a[0]):R2e(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?M2e[s]+"-resize":null})})}function ja(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(E2e(TI(e,t,[[n,i],[n+a,i+o]])))}function CI(e){return Se({strokeNoScale:!0},e.brushStyle)}function Z8(e,t,r,n){var i=[ev(e,r),ev(t,n)],a=[kf(e,r),kf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function D2e(e){return au(e.group)}function mA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Tx(r[t],D2e(e));return n[i]}function R2e(e,t){var r=[mA(e,t[0]),mA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function kB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=K8(t,i,a);D(n,function(u){var c=A2e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(Z8(s[0][0],s[1][0],s[0][1],s[1][1])),bI(t,r),Cu(t,{isEnd:!1})}function L2e(e,t,r,n){var i=t.__brushOption.range,a=K8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),bI(e,t),Cu(e,{isEnd:!1})}function K8(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function TI(e,t,r){var n=j8(e,t);return n&&n!==wu?n.clipPath(r,e._transform):Ce(r)}function E2e(e){var t=ev(e[0][0],e[1][0]),r=ev(e[0][1],e[1][1]),n=kf(e[0][0],e[1][0]),i=kf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function O2e(e,t,r){if(!(!e._brushType||z2e(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=wI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var qx={lineX:DB(0),lineY:DB(1),rect:{createCover:function(e,t){function r(n){return n}return Y8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=q8(e);return Z8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){X8(e,t,r,n)},updateCommon:gA,contain:xA},polygon:{createCover:function(e,t){var r=new Me;return r.add(new Dn({name:"main",style:CI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Ie(L2e,e,t),ondragend:Ie(Cu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:TI(e,t,r)})},updateCommon:gA,contain:xA}};function DB(e){return{createCover:function(t,r){return Y8({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=q8(t),n=ev(r[0][e],r[1][e]),i=kf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=j8(t,r);if(o!==wu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),X8(t,r,l,i)},updateCommon:gA,contain:xA}}const AI=I2e;function J8(e){return e=MI(e),function(t){return nW(t,e)}}function e9(e,t){return e=MI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function t9(e,t,r){var n=MI(e);return function(i,a){return n.contain(a[0],a[1])&&!Hx(i,t,r)}}function MI(e){return Ne.create(e)}var B2e=["axisLine","axisTickLabel","axisName"],F2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new AI(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!$2e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!r.get("show")){var s=G2e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=q({strokeContainThreshold:c},d),p=new So(r,h);D(B2e,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Av(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:J8(f),isTargetByCursor:t9(f,s,a),getLinearBrushOtherExtent:e9(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(V2e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ut);function $2e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function V2e(e){var t=e.axis;return Z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function G2e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const H2e=F2e;var W2e={type:"axisAreaSelect",event:"axisAreaSelected"};function U2e(e){e.registerAction(W2e,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var j2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function r9(e){e.registerComponentView(l2e),e.registerComponentModel(c2e),e.registerCoordinateSystem("parallel",b2e),e.registerPreprocessor(r2e),e.registerComponentModel(TB),e.registerComponentView(H2e),Mf(e,"parallel",TB,j2e),U2e(e)}function q2e(e){Fe(r9),e.registerChartView(YMe),e.registerSeriesModel(QMe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,t2e)}var Y2e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),X2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Y2e},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),Z2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new X2e,g=ke(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),S=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),T=A.get("localX"),M=A.get("localY"),k=p.getLayout(),I,P,R,z,V,N,$,L;v.shape.extent=Math.max(1,k.dy),v.shape.orient=h,h==="vertical"?(I=(b!=null?b*u:S.x)+k.sy,P=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+k.ty,z=M!=null?M*c:C.y,V=I,N=P*(1-x)+z*x,$=R,L=P*x+z*(1-x)):(I=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*c:S.y)+k.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+k.ty,V=I*(1-x)+R*x,N=P,$=I*x+R*(1-x),L=z),v.setShape({x1:I,y1:P,x2:R,y2:z,cpx1:V,cpy1:N,cpx2:$,cpy2:L}),v.useStyle(y.getItemStyle()),RB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");zr(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Ia(ie,U.normal&&U.normal.get("formatter"),G),re)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var B=m.getModel("emphasis");Nr(v,m,"lineStyle",function(X){var W=X.getItemStyle();return RB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Wt(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,B.get("blurScope"),B.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),S=new Qe({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});zr(S,yr(g),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(b,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Nr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),ke(S).dataType="node";var _=x.get("focus");Wt(S,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(K2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function RB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");oe(n)&&oe(i)&&(e.fill=new Tv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function K2e(e,t,r){var n=new Qe({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Rt(n,{shape:{width:e.width+20}},t,r),n}const Q2e=Z2e;var J2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new wt(o[l],this,n));if(a&&i){var u=z8(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return xr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Nt);const eke=J2e;function tke(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=rke(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;ike(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");nke(u,c,n,i,o,s,d,h,p)})}function rke(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nke(e,t,r,n,i,a,o,s,l){ake(e,t,r,i,a,s,l),uke(e,t,a,i,n,o,s),yke(e,s)}function ike(e){D(e,function(t){var r=Ss(t.outEdges,z0),n=Ss(t.inEdges,z0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function ake(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var y=0;yf-1?h:f-1;o&&o!=="left"&&oke(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;lke(e,C,a)}function n9(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function oke(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,dke(s,l,o),X_(s,i,r,n,o),mke(s,l,o),X_(s,i,r,n,o)}function cke(e,t){var r=[],n=t==="vertical"?"y":"x",i=bT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function fke(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function dke(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=Ss(i.outEdges,hke,r)/Ss(i.outEdges,z0);if(isNaN(a)){var o=i.outEdges.length;a=o?Ss(i.outEdges,pke,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Es(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Es(i,r))*t;i.setLayout({y:l},!0)}}})})}function hke(e,t){return Es(e.node2,t)*e.getValue()}function pke(e,t){return Es(e.node2,t)}function vke(e,t){return Es(e.node1,t)*e.getValue()}function gke(e,t){return Es(e.node1,t)}function Es(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function z0(e){return e.getValue()}function Ss(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(n,function(s){var l=new Er({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Ske(e){e.registerChartView(Q2e),e.registerSeriesModel(eke),e.registerLayout(tke),e.registerVisual(xke),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var i9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,_){var b;Y(S)?(b=S.slice(),S.unshift(_)):Y(S.value)?(b=q({},S),b.value=b.value.slice(),S.value.unshift(_)):b=S,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:T0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:T0(v),dimsDef:y.slice()}];return nd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Ie(PW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),a9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Nt);sr(a9,i9,!0);const bke=a9;var _ke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=LB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(Zi(f),o9(d,f,a,u)):f=LB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Tt),wke=function(){function e(){}return e}(),Cke=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new wke},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();av){var S=[m,x];n.push(S)}}}return{boxData:r,outliers:n}}var Rke={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Zr){var n="";st(n)}var i=Dke(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Lke(e){e.registerSeriesModel(bke),e.registerChartView(Ake),e.registerLayout(Mke),e.registerTransform(Rke)}var Eke=["color","borderColor"],Oke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&EB(u,f))return;var d=Z_(f,c,!0);Rt(d,{shape:{points:f.ends}},r,c),K_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&EB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=Z_(h),K_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),OB(r,this.group);var n=r.get("clip",!0)?Gx(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=Z_(s);K_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){OB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Tt),Nke=function(){function e(){}return e}(),zke=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Nke},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}($e);function Z_(e,t,r){var n=e.ends;return new zke({shape:{points:r?Bke(n,e):n},z2:100})}function EB(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(Eke);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const $ke=Oke;var s9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Nt);sr(s9,i9,!0);const Vke=s9;function Gke(e){!e||!Y(e.series)||D(e.series,function(t){be(t)&&t.type==="k"&&(t.type="candlestick")})}var Hke=["itemStyle","borderColor"],Wke=["itemStyle","borderColor0"],Uke=["itemStyle","borderColorDoji"],jke=["itemStyle","color"],qke=["itemStyle","color0"],Yke={seriesType:"candlestick",plan:ed(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?jke:qke)}function n(a,o){return o.get(a===0?Uke:a>0?Hke:Wke)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");q(f,c)}}}}}};const Xke=Yke;var Zke={seriesType:"candlestick",plan:ed(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=Kke(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Z(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),S=y.get(u,m),_=y.get(c,m),b=y.get(f,m),w=y.get(d,m),C=Math.min(S,_),A=Math.max(S,_),T=V(C,x),M=V(A,x),k=V(b,x),I=V(w,x),P=[];N(P,M,0),N(P,T,1),P.push(L(I),L(M),L(k),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:NB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:P,brushRect:$(b,w,x)})}function V(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Jm(j[i]+n/2,1,!1),X[i]=Jm(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function $(G,U,B){var j=V(G,B),X=V(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Jm(G[i],1),G}}function p(v,g){for(var m=_a(v.count*4),y=0,x,S=[],_=[],b,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var A=w.get(s,b),T=w.get(u,b),M=w.get(c,b),k=w.get(f,b),I=w.get(d,b);if(isNaN(A)||isNaN(k)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=NB(w,b,T,M,c,C),S[i]=A,S[a]=k,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function NB(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function Kke(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ne(Ee(e.get("barMaxWidth"),i),i),o=ne(Ee(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?ne(s,i):Math.max(Math.min(i/2,a),o)}const Qke=Zke;function Jke(e){e.registerChartView($ke),e.registerSeriesModel(Vke),e.registerPreprocessor(Gke),e.registerVisual(Xke),e.registerLayout(Qke)}function zB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var eIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Ev(r,n),o=new Me;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;ye(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Qo(r.__p1,r.__cp1)+Qo(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=_r,c=lT;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(l9);const cIe=uIe;var fIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),dIe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fIe},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],d=a[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(g6(f,d,g,m,p,v,s,r,n))return l}else if(Uo(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const pIe=hIe;var vIe={seriesType:"lines",plan:ed(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&Gx(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=c9.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new pIe:new SI(o?a?cIe:u9:a?l9:xI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Tt);const mIe=gIe;var yIe=typeof Uint32Array>"u"?Array:Uint32Array,xIe=typeof Float64Array>"u"?Array:Float64Array;function BB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),X2([i,r[0],r[1]])}))}var SIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],BB(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(BB(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=e0(this._flatCoords,n.flatCoords),this._flatCoordsOffset=e0(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Nt);const bIe=SIe;function hm(e){return e instanceof Array||(e=[e,e]),e}var _Ie={seriesType:"lines",reset:function(e){var t=hm(e.get("symbol")),r=hm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=hm(s.getShallow("symbol",!0)),u=hm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const wIe=_Ie;function CIe(e){e.registerChartView(mIe),e.registerSeriesModel(bIe),e.registerLayout(c9),e.registerVisual(wIe)}var TIe=256,AIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ks.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p0){var k=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=k[M],_[b++]=k[M+1],_[b++]=k[M+2],_[b++]=k[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ks.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();const MIe=AIe;function kIe(e,t,r){var n=e[1]-e[0];t=Z(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function FB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var PIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):FB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(FB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Fu(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),_=yr(r),b=r.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),T=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mf[1]||Rd[1])continue;var z=s.dataToPoint([P,R]);k=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:I})}else{if(isNaN(g.get(T[1],M)))continue;k=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:I})}if(g.hasItemOption){var V=g.getItemModel(M),N=V.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=V.getModel(["blur","itemStyle"]).getItemStyle(),x=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr(V)}k.shape.r=S;var $=r.getRawValue(M),L="-";$&&$[2]!=null&&(L=$[2]+""),zr(k,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:L}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=y,k.ensureState("select").style=x,Wt(k,w,C,A),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new MIe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,m=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var T=r.dataToPoint([w,C]);return T[0]-=d,T[1]-=h,T.push(A),T}),S=i.getExtent(),_=i.type==="visualMap.continuous"?IIe(S,i.option.range):kIe(S,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new Br({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const DIe=PIe;var RIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return To(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Iv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Nt);const LIe=RIe;function EIe(e){e.registerChartView(DIe),e.registerSeriesModel(LIe)}var OIe=["itemStyle","borderWidth"],$B=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],ew=new $a,NIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:$B[+c],categoryDim:$B[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=GB(o,h),v=VB(o,h,p,d),g=HB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),UB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=GB(o,h),m=VB(o,h,g,d),y=g9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?HIe(v,d,m):v=HB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),UB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&WB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){WB(a,ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function VB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};zIe(r,a,i,n,d),BIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),FIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=zu(r.get("symbolOffset"),h);return $Ie(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function zIe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Y(o)){var f=[tw(s,o[0])-l,tw(s,o[1])-l];f[1]0?1:-1}function tw(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function BIe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;Y(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=ne(p[f.index],d),p[c.index]=ne(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function FIe(e,t,r,n,i){var a=e.get(OIe)||0;a&&(ew.attr({scaleX:t[0],scaleY:t[1],rotation:r}),ew.updateTransform(),a/=ew.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function $Ie(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var m=Math.abs(l),y=wr(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var S=ne(y,t[h.index]),_=Math.max(v+S*2,0),b=x?0:S*2,w=t6(n),C=w?n:jB((m+b)/_),A=m-C*v;S=A/2/(x?C:Math.max(C-1,1)),_=v+S*2,b=x?0:S*2,!w&&n!=="fixed"&&(C=u?jB((Math.abs(u)+b)/_):0),g=C*_-b,f.repeatTimes=C,f.symbolMargin=S}var T=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?T:o==="end"?l-T:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[d.index]=r[d.xy],k[h.index]=r[h.xy];var I=f.barRectShape=q({},r);I[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),I[d.wh]=r[d.wh];var P=f.clipShape={};P[d.xy]=-r[d.xy],P[d.wh]=c.ecSize[d.wh],P[h.xy]=0,P[h.wh]=r[h.wh]}function f9(e){var t=e.symbolPatternSize,r=or(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function d9(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(kI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-v),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function h9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?sf(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=f9(r),i.add(a),sf(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function p9(e,t,r){var n=q({},t.barRectShape),i=e.__pictorialBarRect;i?sf(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Qe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function v9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=q({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(i,{shape:a},s,l);else{a[o.wh]=0,i=new Qe({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],kv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function GB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=VIe,r.isAnimationEnabled=GIe,r}function VIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function GIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function HB(e,t,r,n){var i=new Me,a=new Me;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?d9(i,t,r):h9(i,t,r),p9(i,r,n),v9(i,t,r,n),i.__pictorialShapeStr=g9(e,r),i.__pictorialSymbolMeta=r,i}function HIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?d9(e,t,r,!0):h9(e,t,r,!0),p9(e,r,!0),v9(e,t,r,!0)}function WB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];kI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ps(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function g9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function kI(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function sf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&kv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function UB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");kI(e,function(v){if(v instanceof Br){var g=v.style;v.useStyle(q({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;zr(p,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Af(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Wt(e,c,f,a.get("disabled"))}function jB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const WIe=NIe;var UIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ws(P0.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(P0);const jIe=UIe;function qIe(e){e.registerChartView(WIe),e.registerSeriesModel(jIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(KU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QU("pictorialBar"))}var YIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var S=[],_=[],b,w=l[m].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function tPe(e){e.registerChartView(ZIe),e.registerSeriesModel(QIe),e.registerLayout(JIe),e.registerProcessor(zv("themeRiver"))}var rPe=2,nPe=4,iPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=rPe,o.textConfig={inside:!0},ke(o).seriesIndex=n.seriesIndex;var s=new rt({z2:nPe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=q({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Cf(h,o));var p=Xl(l.getModel("itemStyle"),f,!0);q(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Xl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Rt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Wt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,k="center"):k==="left"?(T=o.r0+M,l>Math.PI/2&&(k="right")):k==="right"&&(T=o.r-M,l>Math.PI/2&&(k="left")),S.style.align=k,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var I=g(y,"rotate"),P=0;I==="radial"?(P=Fi(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):nt(I)&&(P=I*Math.PI/180),S.rotation=Fi(P)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const YB=iPe;var SA="sunburstRootToNode",XB="sunburstHighlight",aPe="sunburstUnhighlight";function oPe(e){e.registerAction({type:SA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Zp(t,[SA],i);if(o){var s=i.getViewRoot();s&&(t.direction=hI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:XB,update:"none"},function(t,r,n){t=q({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Zp(t,[XB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(q(t,{type:"highlight"}))}),e.registerAction({type:aPe,update:"updateView"},function(t,r,n){t=q({},t),n.dispatchAction(q(t,{type:"downplay"}))})}var sPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(y,x){if(y.length===0&&x.length===0)return;new xo(x,y,S,S).add(_).update(_).remove(Ie(_,null)).execute();function S(b){return b.getId()}function _(b,w){var C=b==null?null:y[b],A=w==null?null:x[w];v(C,A)}}function v(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,r,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var S=new YB(y,r,n,i);c.add(S),s.setItemGraphicEl(y.dataIndex,S)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,i):(o.virtualPiece=new YB(y,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";g0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:SA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Tt);const lPe=sPe;var uPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};m9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=dI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=Ux(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){b8(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}(Nt);function m9(e){var t=0;D(e.children,function(n){m9(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}const cPe=uPe;var ZB=Math.PI/180;function fPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(i[0],o),c=ne(i[1],s),f=ne(a[0],l/2),d=ne(a[1],l/2),h=-n.get("startAngle")*ZB,p=n.get("minAngle")*ZB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&y9(g,y);var x=0;D(g.children,function(z){!isNaN(z.getValue())&&x++});var S=g.getValue(),_=Math.PI/(S||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(d-f)/(w||1),A=n.get("clockwise"),T=n.get("stillShowZeroSum"),M=A?1:-1,k=function(z,V){if(z){var N=V;if(z!==v){var $=z.getValue(),L=S===0&&T?_:$*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=fT(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");q(u,l)})})}function pPe(e){e.registerChartView(lPe),e.registerSeriesModel(cPe),e.registerLayout(Ie(fPe,"sunburst")),e.registerProcessor(Ie(zv,"sunburst")),e.registerVisual(hPe),oPe(e)}var KB={color:"fill",borderColor:"stroke"},vPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},oo=Je(),gPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return To(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=oo(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Nt);const mPe=gPe;function yPe(e,t){return t=t||[0,0],Z(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function xPe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(yPe,e)}}}function SPe(e,t){return t=t||[0,0],Z([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function bPe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ue(SPe,e)}}}function _Pe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function wPe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(_Pe,e)}}}function CPe(e,t){return t=t||[0,0],Z(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function TPe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ue(CPe,e)}}}function APe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function x9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function S9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return QB(o,e),D(o.rich,function(l){QB(l,l)}),{textConfig:i,textContent:a}}function QB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function JB(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";e5(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){e5(s,s)}),n}function e5(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var b9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},t5=qe(b9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var B0=["","style","shape","extra"],If=Je();function II(e,t,r,n,i){var a=e+"Animation",o=jf(e,n,i)||{},s=If(t).userDuring;return o.duration>0&&(o.during=s?ue(DPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),q(o,r[a]),o}function ay(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=If(e),u=t.style;l.userDuring=t.during;var c={},f={};if(LPe(e,t,f),n5("shape",t,f),n5("extra",t,f),!a&&s&&(RPe(e,t,c),r5("shape",e,t,c),r5("extra",e,t,c),EPe(e,t,u,c)),f.style=u,MPe(e,f,o),IPe(e,t),s)if(a){var d={};D(B0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),q(p?d[p]:d,v.enterFrom))});var h=II("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else kPe(e,t,i||0,r,c);_9(e,t),u?e.dirty():e.markRedraw()}function _9(e,t){for(var r=If(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function IPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof _i&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},PPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function DPe(){var e=this,t=e.el;if(t){var r=If(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(PPe)}}function r5(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),uu(l))q(o,a);else for(var u=ht(l),c=0;c=0){!o&&(o=n[e]={});for(var h=qe(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=qe(r),u=0;u=0?t.getStore().get(V,R):void 0}var N=t.get(z.name,R),$=z&&z.ordinalMeta;return $?$.categories[N]:N}function b(P,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),V=z&&z.fill,N=z&&z.opacity,$=y(R,as).getItemStyle();V!=null&&($.fill=V),N!=null&&($.opacity=N);var L={inheritColor:oe(V)?V:"#000"},G=x(R,as),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,as),Af(t,R)):null;var B=p0(G,L,!1);return A(P,$),$=JB($,U,B),P&&C($,P),$.legacy=!0,$}function w(P,R){R==null&&(R=u);var z=y(R,so).getItemStyle(),V=x(R,so),N=_t(V,null,null,!0,!0);N.text=V.getShallow("show")?Ia(e.getFormattedLabel(R,so),e.getFormattedLabel(R,as),Af(t,R)):null;var $=p0(V,null,!0);return A(P,z),z=JB(z,N,$),P&&C(z,P),z.legacy=!0,z}function C(P,R){for(var z in R)ce(R,z)&&(P[z]=R[z])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function T(P,R){if(R==null&&(R=u),ce(KB,P)){var z=t.getItemVisual(R,"style");return z?z[KB[P]]:null}if(ce(vPe,P))return t.getItemVisual(R,P)}function M(P){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return qSe(Se({axis:R},P))}}function k(){return r.getCurrentSeriesIndices()}function I(P){return oW(P,r)}}function UPe(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function aw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=EI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Wt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function EI(e,t,r,n,i,a){var o=-1,s=t;t&&A9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=RI(n),s&&$Pe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ei.normal.cfg=ei.normal.conOpt=ei.emphasis.cfg=ei.emphasis.conOpt=ei.blur.cfg=ei.blur.conOpt=ei.select.cfg=ei.select.conOpt=null,ei.isLegacy=!1,qPe(u,r,n,i,l,ei),jPe(u,r,n,i,l),LI(e,u,r,n,ei,i,l),ce(n,"info")&&(oo(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function A9(e,t,r){var n=oo(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&QPe(a)&&M9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function jPe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&A9(o,a,n)&&(o=null),o||(o=RI(a),e.setClipPath(o)),LI(null,o,t,a,null,n,i)}}function qPe(e,t,r,n,i,a){if(!e.isGroup){a5(r,null,a),a5(r,so,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=RI(o),e.setTextContent(c)),LI(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);XPe(t,p,i)}}}function XPe(e,t,r){t&&Yx(t,oo(e).option,r)}function ZPe(e){new xo(e.oldChildren,e.newChildren,o5,o5,e).add(s5).update(s5).remove(KPe).execute()}function o5(e,t){var r=e&&e.name;return r??BPe+t}function s5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;EI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function KPe(e){var t=this.context,r=t.oldChildren[e];r&&Yx(r,oo(r).option,t.seriesModel)}function M9(e){return e&&(e.pathData||e.d)}function QPe(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function JPe(e){e.registerChartView(GPe),e.registerSeriesModel(mPe)}var Ll=Je(),l5=Ce,ow=ue,eDe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Ie(u5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}f5(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=aI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ll(t).pointerEl=new kv[a.type](l5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ll(t).labelEl=new rt(l5(r.label));t.add(a),c5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ll(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ll(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),c5(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Mv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:ow(this._onHandleDragMove,this,0,0),drift:ow(this._onHandleDragMove,this),ondragend:ow(this._onHandleDragEnd,this)}),n.add(i)),f5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,td(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){u5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,sw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(sw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(sw(i)),Ll(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Hp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function u5(e,t,r,n){k9(Ll(r).lastProp,n)||(Ll(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function k9(e,t){if(be(e)&&be(t)){var r=!0;return D(t,function(n,i){r=r&&k9(e[i],n)}),!!r}else return e===t}function c5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function sw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function f5(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const NI=eDe;function zI(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function I9(e,t,r,n,i){var a=r.get("value"),o=P9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Zf(s.get("padding")||0),u=s.getFont(),c=_v(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),tDe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:_t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function tDe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function P9(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Zk(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),oe(o)?a=o.replace("{value}",a):ye(o)&&(a=o(s))}return a}function BI(e,t,r){var n=bi();return Ou(n,n,r.rotation),Na(n,n,r.position),Wi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function D9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),I9(t,n,i,a,{position:BI(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function FI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function R9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function d5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var rDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=h5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=zI(a),h=nDe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=iA(l.model,i);D9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=iA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=BI(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=h5(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(NI);function h5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var nDe={line:function(e,t,r){var n=FI([t,r[0]],[t,r[1]],p5(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:R9([t-n/2,r[0]],[n,i],p5(e))}}};function p5(e){return e.dim==="x"?0:1}const iDe=rDe;var aDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.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}(et);const oDe=aDe;var to=Je(),sDe=D;function L9(e,t,r){if(!tt.node){var n=t.getZr();to(n).records||(to(n).records={}),lDe(n,t);var i=to(n).records[e]||(to(n).records[e]={});i.handler=r}}function lDe(e,t){if(to(e).initialized)return;to(e).initialized=!0,r("click",Ie(v5,"click")),r("mousemove",Ie(v5,"mousemove")),r("globalout",cDe);function r(n,i){e.on(n,function(a){var o=fDe(t);sDe(to(e).records,function(s){s&&i(s,a,o.dispatchAction)}),uDe(o.pendings,t)})}}function uDe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function cDe(e,t,r){e.handler("leave",null,r)}function v5(e,t,r,n){t.handler(e,r,n)}function fDe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function wA(e,t){if(!tt.node){var r=t.getZr(),n=(to(r).records||{})[e];n&&(to(r).records[e]=null)}}var dDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";L9("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){wA("axisPointer",n)},t.prototype.dispose=function(r,n){wA("axisPointer",n)},t.type="axisPointer",t}(Ut);const hDe=dDe;function E9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=xu(a,e);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var g5=Je();function pDe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){oy(i)&&(i=E9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=oy(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||oy(i),d={},h={},p={list:[],map:{}},v={showPointer:Ie(gDe,h),showTooltip:Ie(mDe,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=bDe(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&m5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(x.axesInfo,function(S,_){var b=h[_];if(S!==m&&b){var w=b.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,y5(S),y5(m)))),g[m.key]=w}})}),D(g,function(m,y){m5(c[y],m,v,!0,d)}),yDe(h,c,d),xDe(p,i,e,o),SDe(c,o,r),d}}function m5(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=vDe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&q(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function vDe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function gDe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function mDe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Xp(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function yDe(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function xDe(e,t,r,n){if(oy(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function SDe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=g5(n)[i]||{},o=g5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function bDe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function y5(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function oy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Vv(e){$u.registerAxisPointerClass("CartesianAxisPointer",iDe),e.registerComponentModel(oDe),e.registerComponentView(hDe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=lCe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},pDe)}function _De(e){Fe(o8),Fe(Vv)}var wDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=zI(a),p=TDe[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=CDe(n,i,a,l,v);I9(r,i,a,o,g)},t}(NI);function CDe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=bi();Ou(d,d,s),Na(d,d,[n.cx,n.cy]),u=Wi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var TDe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:FI(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:d5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:d5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const ADe=wDe;var MDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(et);const kDe=MDe;var $I=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ar).models[0]},t.type="polarAxis",t}(et);sr($I,Lv);var IDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}($I),PDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}($I),VI=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Qi);VI.prototype.dataToRadius=Qi.prototype.dataToCoord;VI.prototype.radiusToData=Qi.prototype.coordToData;const DDe=VI;var RDe=Je(),GI=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=_v(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=RDe(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(Qi);GI.prototype.dataToAngle=Qi.prototype.dataToCoord;GI.prototype.angleToData=Qi.prototype.coordToData;const LDe=GI;var O9=["radius","angle"],EDe=function(){function e(t){this.dimensions=O9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new DDe,this._angleAxis=new LDe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=x5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=x5(r);return i===this?this.pointToData(n):null},e}();function x5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const ODe=EDe;function NDe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=ne(n[0],i),e.cy=ne(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function zDe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(A0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(A0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Tf(n.scale,n.model),Tf(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function BDe(e){return e.mainType==="angleAxis"}function S5(e,t){if(e.type=t.get("type"),e.scale=$x(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),BDe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var FDe={dimensions:O9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new ODe(i+"");a.update=zDe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");S5(o,l),S5(s,u),NDe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ar).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const $De=FDe;var VDe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function pm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function vm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function b5(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var GDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(c){c=Ce(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});b5(u),b5(s),D(VDe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&HDe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}($u),HDe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=vm(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new bx({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[vm(r)],u=Z(n,function(c){return new Cr({shape:pm(r,[l,l+s],c.coord)})});e.add(hi(u,{style:Se(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[vm(r)],c=[],f=0;fm?"left":"right",S=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var _=s[p];be(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.isLabelSilent(t),style:_t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(b),c){var w=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,ke(b).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",I=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),I=n[c][M][k]);var P=void 0,R=void 0,z=void 0,V=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,$=l.dataToCoord(M);Math.abs(N)=V})}}})}function QDe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=z9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=N9(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=ne(n.get("barWidth"),c),v=ne(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),D(a,function(v,g){var m=v.maxWidth;m&&m=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=_5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=_5(r);return i===this?this.pointToData(n):null},e}();function _5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function fRe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new cRe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",ar).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var dRe={create:fRe,dimensions:F9};const hRe=dRe;var w5=["x","y"],pRe=["width","height"],vRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=uw(l,1-V0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=zI(a),h=gRe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=CA(i);D9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=CA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=BI(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=V0(o),u=uw(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=uw(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(NI),gRe={line:function(e,t,r){var n=FI([t,r[0]],[t,r[1]],V0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:R9([t-n/2,r[0]],[n,i],V0(e))}}};function V0(e){return e.isHorizontal()?0:1}function uw(e,t){var r=e.getRect();return[r[w5[t]],r[w5[t]]+r[pRe[t]]]}const mRe=vRe;var yRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Ut);function xRe(e){Fe(Vv),$u.registerAxisPointerClass("SingleAxisPointer",mRe),e.registerComponentView(yRe),e.registerComponentView(sRe),e.registerComponentModel(lw),Mf(e,"single",lw,lw.defaultOption),e.registerCoordinateSystem("single",hRe)}var SRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=Kf(r);e.prototype.init.apply(this,arguments),C5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),C5(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(et);function C5(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return T0e(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Ds(e,t,{type:"box",ignoreSize:i})}const bRe=SRe;var _Re=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Qe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Dn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return oe(r)&&r?_0e(r,n):ye(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new rt({z2:30,style:_t(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||oe(s))&&(s&&(n=LT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/cw)-Math.floor(r[0].time/cw)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function T5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const TRe=CRe;function ARe(e){e.registerComponentModel(bRe),e.registerComponentView(wRe),e.registerCoordinateSystem("calendar",TRe)}function MRe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function A5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function kRe(e,t,r){var n=q({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Ds(i,n,{ignoreSize:!0}),TW(r,i),gm(r,i),gm(r,i,"shape"),gm(r,i,"style"),gm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var $9=["transition","enterFrom","leaveTo"],IRe=$9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function gm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?$9:IRe,i=0;i=0;c--){var f=i[c],d=fr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ai(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Rx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ai(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){sy(i,ai(i).option,n,r._lastGraphicModel)}),this._elMap=ge()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ut);function TA(e){var t=ce(M5,e)?M5[e]:Sk(e),r=new t({});return ai(r).type=e,r}function k5(e,t,r,n){var i=TA(r);return t.add(i),n.set(e,i),ai(i).id=e,ai(i).isNew=!0,i}function sy(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){sy(a,t,r,n)}),Yx(e,t,n),r.removeKey(ai(e).id))}function I5(e,t,r,n){e.isGroup||D([["cursor",_i.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(qe(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=ye(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function LRe(e){return e=q({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(CW),function(t){delete e[t]}),e}function ERe(e,t,r){var n=ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function ORe(e){e.registerComponentModel(DRe),e.registerComponentView(RRe),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var P5=["x","y","radius","angle","single"],NRe=["cartesian2d","polar","singleAxis"];function zRe(e){var t=e.get("coordinateSystem");return ze(NRe,t)>=0}function os(e){return e+"Axis"}function BRe(e,t){var r=ge(),n=[],i=ge();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function V9(e){var t=e.ecModel,r={infoList:[],infoMap:ge()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(os(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var fw=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),FRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=D5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=D5(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ge(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(P5,function(i){var a=this.getReferringComponents(os(i),tme);if(a.specified){n=!0;var o=new fw;D(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new fw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ar).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",ar).models[0]&&d.add(p.componentIndex)})}}}a&&D(P5,function(u){if(a){var c=i.findComponents({mainType:os(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new fw;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(os(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(os(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(x&&!S&&!_)return!0;x&&(g=!0),S&&(p=!0),_&&(v=!0)}return g&&p&&v})}else Tc(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});Tc(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Tc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=QH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function jRe(e,t,r){var n=[1/0,-1/0];Tc(r,function(o){gbe(n,o.getData(),t)});var i=e.getAxisModel(),a=ij(i.axis.scale,i,n).calculate();return[a.min,a.max]}const qRe=URe;var YRe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(os(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new qRe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ge();return D(r,function(i){D(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const XRe=YRe;function ZRe(e){e.registerAction("dataZoom",function(t,r){var n=BRe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var L5=!1;function WI(e){L5||(L5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,XRe),ZRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function KRe(e){e.registerComponentModel(VRe),e.registerComponentView(WRe),WI(e)}var di=function(){function e(){}return e}(),G9={};function Ac(e,t){G9[e]=t}function H9(e){return G9[e]}var QRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,i){var a=H9(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(et);const JRe=QRe;function eLe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=dr(n,a,i);ou(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Rx(e,n,a,i)}function W9(e,t){var r=Zf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Qe({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var tLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Ie(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],y=u[g],x=new wt(y,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(rLe(g))S={onclick:x.option.onclick,featureName:g};else{var _=H9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=Xf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof di;if(!g&&m){b&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var A=this.option,T=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,T[w]&&(C==="emphasis"?mo:yo)(T[w])},S instanceof di&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof di&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},_,b;oe(x)?(_={},_[g]=x):_=x,oe(S)?(b={},b[g]=S):b=S;var w=p.iconPaths={};D(_,function(C,A){var T=Mv(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(m.getItemStyle());var M=T.ensureState("emphasis");M.style=y.getItemStyle();var k=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(k),qf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var I=y.getItemStyle(),P=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||P}),k.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}eLe(o,r,i),o.add(W9(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!ye(x)&&v){var S=x.style||(x.style={}),_=_v(v,rt.makeFont(S)),b=p.x+o.x,w=p.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(m.position="top",C=!0);var A=C?-5-_.height:s+10;b+_.width/2>i.getWidth()?(m.position=["100%",A],S.align="right"):b-_.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){D(this._features,function(o){o instanceof di&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof di&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof di&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Ut);function rLe(e){return e.indexOf("my")===0}const nLe=tLe;var iLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=tt.browser;if(ye(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,_=S.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),S.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(di);const aLe=iLe;var E5="__ec_magicType_stack__",oLe=[["line","bar"],["stack"]],sLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return D(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(O5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=O5[i](d,h,f,a);p&&(Se(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,ar).models[0],S=x.componentIndex;s[y]=s[y]||[];for(var _=0;_<=S;_++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};D(oLe,function(f){ze(f,i)>=0&&D(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(di),O5={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===E5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":E5},n.get(["option","stack"])||{},!0)}};Ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const lLe=sLe;var Xx=new Array(60).join("-"),Pf=" ";function uLe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function cLe(e){var t=[];return D(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Z(r.series,function(h){return h.name})),l=[i.model.getCategories()];D(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Pf)],c=0;c=0)return!0}var AA=new RegExp("["+Pf+"]+","g");function pLe(e){for(var t=e.split(/\n+/g),r=G0(t.shift()).split(AA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function bLe(e){var t=UI(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return U9(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function _Le(e){j9(e).snapshots=null}function wLe(e){return UI(e).length}function UI(e){var t=j9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var CLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){_Le(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(di);Ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const TLe=CLe;var ALe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MLe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=N5(r,t);D(kLe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=dw[n.brushType](0,a,i);n.__rangeOffset={offset:$5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=dw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=dw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?$5[n.brushType](a.values,o.offset,ILe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:J8(i),isTargetByCursor:t9(i,t,n.coordSysModel),getLinearBrushOtherExtent:e9(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=N5(r,t),a=0;ae[1]&&e.reverse(),e}function N5(e,t){return Hh(e,t,{includeMainTypes:ALe})}var kLe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ge(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:B5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:B5.geo})})}},z5=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],B5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(au(e)),t}},dw={lineX:Ie(F5,0),lineY:Ie(F5,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[MA([i[0],a[0]]),MA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function F5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=MA(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var $5={lineX:Ie(V5,0),lineY:Ie(V5,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Z(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function V5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function ILe(e,t){var r=G5(e),n=G5(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function G5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const jI=MLe;var kA=D,PLe=Zge("toolbox-dataZoom_"),DLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new AI(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),ELe(r,n,this,a,i),LLe(r,n)},t.prototype.onclick=function(r,n,i){RLe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new jI(qI(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),SLe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Vu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];kA(r,function(i,a){n.push(Ce(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(di),RLe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(bLe(this.ecModel))}};function qI(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function LLe(e,t){e.setIconStatus("back",wLe(t)>1?"emphasis":"normal")}function ELe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new jI(qI(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}D0e("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=qI(n),o=Hh(e,a);kA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),kA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:PLe+u+f};d[c]=f,i.push(d)}return i});const OLe=DLe;function NLe(e){e.registerComponentModel(JRe),e.registerComponentView(nLe),Ac("saveAsImage",aLe),Ac("magicType",lLe),Ac("dataView",xLe),Ac("dataZoom",OLe),Ac("restore",TLe),Fe(KRe)}var zLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(et);const BLe=zLe;function q9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Y9(e){if(tt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function ULe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=tt.transformSupported?","+YI+n:",left"+n+",top"+n),VLe+":"+i}function H5(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+YI+":"+o+";":[["top",0],["left",0],[X9,o]]}function jLe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function qLe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=iU(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(ULe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=_W(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(jLe(c)),f!=null&&n.push("padding:"+Zf(f).join("px ")+"px"),n.join(";")+";"}function W5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&bve(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var YLe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;W5(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();ri(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=$Le(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=GLe+qLe(t,!this._firstShow,this._longHide)+H5(a[0],a[1],!0)+("border-color:"+_u(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(oe(a)&&n.get("trigger")==="item"&&!q9(n)&&(s=WLe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=q5(a,i);this._ticket="";var s=a.dataByCoordSys,l=nEe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=QLe;c.x=a.x,c.y=a.y,c.update(),ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=E9(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(q5(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Ud([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;jl(i,function(u){if(ke(u).dataIndex!=null)return s=u,!0;if(ke(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ue(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ud([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new Kb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=P9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Bi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,M=A.getDataParams(T);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Zk(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",_u(M.color),l);var k=LO(A.formatTooltip(T,!0,null)),I=k.frag;if(I){var P=Ud([A],a).get("valueFormatter");w.blocks.push(P?q({valueFormatter:P},I):I)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=FO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` + +`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=Ud([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Kb;m.marker=y.makeTooltipMarker("item",_u(m.color),h);var x=LO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?FO(_?q({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ke(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Ud(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new Kb;this._showOrMove(d,function(){var g=Ce(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Mx(m.axisValue,h,g)),h=wW(h,i,!0)}else if(ye(d)){var x=ue(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ye(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Y(n))i=ne(n[0],u),a=ne(n[1],c);else if(be(n)){var v=n;v.width=f[0],v.height=f[1];var g=dr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=rEe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=eEe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=Y5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=Y5(h)?f[1]/2:h==="bottom"?f[1]:0),q9(r)){var m=tEe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){tt.node||!n.getDom()||(Hp(this,"_updatePosition"),this._tooltipContent.dispose(),wA("itemTooltip",n))},t.type="tooltip",t}(Ut);function Ud(e,t,r){var n=t.ecModel,i;r?(i=new wt(r,n,n),i=new wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function q5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function eEe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function tEe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function rEe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function Y5(e){return e==="center"||e==="middle"}function nEe(e,t,r){var n=sk(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=wv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const iEe=JLe;function aEe(e){Fe(Vv),e.registerComponentModel(BLe),e.registerComponentView(iEe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},tr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},tr)}var oEe=["rect","polygon","keep","clear"];function sEe(e,t){var r=ht(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),lEe(s),t&&!s.length&&s.push.apply(s,oEe)}}function lEe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var X5=D;function Z5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function IA(e,t,r){var n={};return X5(t,function(a){var o=n[a]=i();X5(e[a],function(s,l){if(Er.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Er(u),l==="opacity"&&(u=Ce(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Er(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function K9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&Z5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&Z5(t[i])?e[i]=Ce(t[i]):delete e[i]})}function uEe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Er.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return Bk(r,s,f)}function u(f,d){pU(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;mt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&tF(t)}};function tF(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var mEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new AI(n.getZr())).on("brush",ue(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){Q9(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ce(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ce(i),$from:n})},t.type="brush",t}(Ut);const yEe=mEe;var xEe="#ddd",SEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&K9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:xEe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return rF(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=rF(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(et);function rF(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new wt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const bEe=SEe;var _Ee=["rect","polygon","lineX","lineY","keep","clear"],wEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:_Ee.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(di);const CEe=wEe;function TEe(e){e.registerComponentView(yEe),e.registerComponentModel(bEe),e.registerPreprocessor(sEe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,dEe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},tr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},tr),Ac("brush",CEe)}var AEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(et),MEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ee(r.get("textBaseline"),r.get("textVerticalAlign")),c=new rt({style:_t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new rt({style:_t(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){g0(p,"_"+r.get("target"))}),v&&h.on("click",function(){g0(v,"_"+r.get("subtarget"))}),ke(c).eventData=ke(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=dr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Qe({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ut);function kEe(e){e.registerComponentModel(AEe),e.registerComponentView(MEe)}var IEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=fr(Wf(u),""),d;be(u)?(d=Ce(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new sn([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(et);const nF=IEe;var J9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Ws(nF.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}(nF);sr(J9,Lk.prototype);const PEe=J9;var DEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Ut);const REe=DEe;var LEe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Qi);const EEe=LEe;var pw=Math.PI,iF=Je(),OEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=zEe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:pw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*pw/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(y=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=bi(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Ou(s,s,-pw/2),Na(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=NEe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new EEe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Me;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Cr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:q({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Cr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Se({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ue(o._changeTimeline,o,u.value)},g=aF(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),iu(g);var m=ke(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new rt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ue(o._changeTimeline,o,f),silent:!1,style:_t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=_t(p),m.ensureState("progress").style=_t(v),n.add(m),iu(m),iF(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=BEe(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),iu(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),oF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){oF(f,u._progressLine,s,i,a)}};this._currentPointer=aF(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=gi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var vw={min:Ie(xm,"min"),max:Ie(xm,"max"),average:Ie(xm,"average"),median:Ie(xm,"median")};function rv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!jEe(t)&&!Y(t.coord)&&Y(i)){var a=t7(t,r,n,e);if(t=Ce(t),t.type&&vw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=vw[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)vw[u[c]]&&(u[c]=ZI(r,r.mapDimension(i[c]),u[c]));return t}}function t7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(qEe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function qEe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function nv(e,t){return e&&e.containData&&t.coord&&!DA(t)?e.containData(t.coord):!0}function YEe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!DA(t)&&!DA(r)?e.containZone(t.coord,r.coord):!0}function r7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return xs(o,t[a])}:function(r,n,i,a){return xs(r.value,t[a])}}function ZI(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var gw=Je(),XEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ge()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){gw(s).keep=!1}),n.eachSeries(function(s){var l=Ns.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!gw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){gw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=Ns.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?P6(l):hk(l))})}})},t.type="marker",t}(Ut);const KI=XEe;function lF(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var ZEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ns.getMarkerModelFromSeries(a,"markPoint");o&&(lF(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Ov),f=KEe(o,r,n);n.setData(f),lF(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(ye(p)||ye(v)||ye(g)||ye(m)){var x=n.getRawValue(d),S=n.getDataParams(d);ye(p)&&(p=p(x,S)),ye(v)&&(v=v(x,S)),ye(g)&&(g=g(x,S)),ye(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=Pv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ke(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(KI);function KEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return q(q({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Ie(rv,t));e&&(a=ft(a,Ie(nv,e)));var o=r7(!!e,n);return i.initData(a,null,o),i}const QEe=ZEe;function JEe(e){e.registerComponentModel(UEe),e.registerComponentView(QEe),e.registerPreprocessor(function(t){XI(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var eOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ns);const tOe=eOe;var Sm=Je(),rOe=function(e,t,r,n){var i=e.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=wr(n.yAxis,n.xAxis);else{var u=t7(n,i,t,e);s=u.valueAxis;var c=GU(i,u.valueDataDim);l=ZI(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Ce(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&nt(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[rv(e,a[0]),rv(e,a[1]),q({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function H0(e){return!isNaN(e)&&!isFinite(e)}function uF(e,t,r,n){var i=1-e,a=n.dimensions[e];return H0(t[i])&&H0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function nOe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(uF(1,r,n,e)||uF(0,r,n,e)))return!0}return nv(e,t[0])&&nv(e,t[1])}function mw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Fu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;H0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):H0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var iOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ns.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Sm(o).from,u=Sm(o).to;l.each(function(c){mw(l,c,!0,a,i),mw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new SI);this.group.add(c.group);var f=aOe(o,r,n),d=f.from,h=f.to,p=f.line;Sm(n).from=d,Sm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Y(v)||(v=[v,v]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ke(S).dataModel=n,S.traverse(function(_){ke(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);mw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Pv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ee(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Ee(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Ee(w.get("symbolSize"),g[b?0:1]),symbol:Ee(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(KI);function aOe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return q(q({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Ie(rOe,t,e,r));e&&(s=ft(s,Ie(nOe,e)));var l=r7(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const oOe=iOe;function sOe(e){e.registerComponentModel(tOe),e.registerComponentView(oOe),e.registerPreprocessor(function(t){XI(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var lOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ns);const uOe=lOe;var bm=Je(),cOe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=rv(e,i),s=rv(e,a),l=o.coord,u=s.coord;l[0]=wr(l[0],-1/0),l[1]=wr(l[1],-1/0),u[0]=wr(u[0],1/0),u[1]=wr(u[1],1/0);var c=X2([{},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 W0(e){return!isNaN(e)&&!isFinite(e)}function cF(e,t,r,n){var i=1-e;return W0(t[i])&&W0(r[i])}function fOe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Fu(e,"cartesian2d")?r&&n&&(cF(1,r,n)||cF(0,r,n))?!0:YEe(e,i,a):nv(e,i)||nv(e,a)}function fF(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Fu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);W0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):W0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var dF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ns.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(dF,function(f){return fF(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var f=hOe(o,r,n);n.setData(f),f.each(function(d){var h=Z(dF,function(C){return fF(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];gi(y),gi(x);var S=!(g[0]>y[1]||g[1]x[1]||m[1]=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}(et);const RA=mOe;var vc=Ie,LA=D,_m=Me,yOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new _m),this.group.add(this._selectorGroup=new _m),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=dr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=dr(Se({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=W9(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ge(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),LA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new _m;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",vc(hF,v,null,a,d)).on("mouseover",vc(EA,m.name,null,a,d)).on("mouseout",vc(OA,m.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),k=Gn(T.fill);k&&k[3]===0&&(k[3]=.2,T=q(q({},T),{fill:ao(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},T,M,f,a);I.on("click",vc(hF,null,v,a,d)).on("mouseover",vc(EA,null,v,a,d)).on("mouseout",vc(OA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();LA(r,function(u){var c=u.type,f=new rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);zr(f,{normal:d,emphasis:h},{defaultText:u.title}),iu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=xOe(c,a,l,u,h,g,d),_=new _m,b=a.getModel("textStyle");if(ye(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(SOe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):ye(T)&&(M=T(n));var k=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:k,align:A,verticalAlign:"middle"},{inheritColor:k})}));var I=new Qe({shape:_.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&qf({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),_.add(I),_.eachChild(function(R){R.silent=!0}),I.silent=!f,this.getContentGroup().add(_),iu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ou(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ou("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function xOe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),LA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Cf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function SOe(e){var t=e.icon||"roundRect",r=or(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function hF(e,t,r,n){OA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),EA(e,t,r,n)}function n7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Qe({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&it(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=yw[o],l=xw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(i7);const AOe=TOe;function MOe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function kOe(e){Fe(a7),e.registerComponentModel(COe),e.registerComponentView(AOe),MOe(e)}function IOe(e){Fe(a7),Fe(kOe)}var POe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Ws(tv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(tv);const DOe=POe;var QI=Je();function ROe(e,t,r){QI(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function LOe(e,t){for(var r=QI(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function BOe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=QI(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ge());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=V9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,EOe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){o7(i,a);return}var c=zOe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),td(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var FOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),ROe(i,r,{pan:ue(Sw.pan,this),zoom:ue(Sw.zoom,this),scrollMove:ue(Sw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){LOe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(HI),Sw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=bw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Vu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:gF(function(e,t,r,n,i,a){var o=bw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:gF(function(e,t,r,n,i,a){var o=bw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function gF(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Vu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var bw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const $Oe=FOe;function s7(e){WI(e),e.registerComponentModel(DOe),e.registerComponentView($Oe),BOe(e)}var VOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ws(tv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(tv);const GOe=VOe;var Yd=Qe,mF=7,HOe=1,_w=30,WOe=7,Xd="horizontal",yF="vertical",UOe=5,jOe=["line","bar","candlestick","scatter"],qOe={easing:"cubicOut",duration:100,delay:0},YOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),td(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Hp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?WOe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Xd?{right:s.width-o.x-o.width,top:s.height-_w-mF-a,width:o.width,height:_w}:{right:mF,top:o.y,width:_w,height:o.height},u=Kf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=dr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===yF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Xd&&!o?{scaleY:l?1:-1,scaleX:1}:i===Xd&&o?{scaleY:l?1:-1,scaleX:-1}:i===yF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Yd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",k=M?0:ct(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Me,k=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Dn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&ze(jOe,u.get("type"))<0)){var c=a.getComponent(os(o),s).axis,f=XOe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Yd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Yd({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:HOe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!x0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=or(S,-1,0,2,2,null,!0);_.attr({cursor:xF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),iu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new rt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=or(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:xF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Vu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=gi([ct(a[0],o,l,!0),ct(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=gi(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=gi([ct(i.x,o,s,!0),ct(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(vo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Yd({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?qOe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=V9(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(HI);function XOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function xF(e){return e==="vertical"?"ns-resize":"ew-resize"}const ZOe=YOe;function l7(e){e.registerComponentModel(GOe),e.registerComponentView(ZOe),WI(e)}function KOe(e){Fe(s7),Fe(l7)}var QOe={get:function(e,t,r){var n=Ce((JOe[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},JOe={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]}};const u7=QOe;var SF=Er.mapVisual,eNe=Er.eachVisual,tNe=Y,bF=D,rNe=gi,nNe=ct,iNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&K9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=IA(this.option.controller,n,r),this.targetVisuals=IA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=ht(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ye(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=rNe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){tNe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},bF(p,function(g,m){if(Er.isValidType(m)){var y=u7.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";bF(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Ce(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Ce(h)||(s?y[0]:[y[0],y[0]])),x.symbol=SF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;eNe(S,function(b){b>_&&(_=b)}),x.symbolSize=SF(S,function(b){return nNe(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(et);const U0=iNe;var _F=[20,140],aNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=_F[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=_F[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=gi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=wF(this,"outOfRange",this.getExtent()),i=wF(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();lNe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Wi(i.handleLabelPoints[c],au(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Wi(c.indicatorLabelPoint,au(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;Mo[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||MF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=Jge(d,h);this._dispatchHighDown("downplay",ly(p[0],i)),this._dispatchHighDown("highlight",ly(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(jl(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function mNe(e,t,r,n){for(var i=t.targetVisuals[n],a=Er.prepareVisualTypes(i),o={color:Pv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(pNe,vNe),D(gNe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(yNe))}function h7(e){e.registerComponentModel(oNe),e.registerComponentView(hNe),d7(e)}var xNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],SNe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ce(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Ce(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Er.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=u7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ce(r)},t.prototype.getValueState=function(r){var n=Er.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Er.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Ws(U0.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}(U0),SNe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function DF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const bNe=xNe;var _Ne=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=wr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ue(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new rt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),ou(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:ly(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return f7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new rt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(or(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ce(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(c7);const wNe=_Ne;function p7(e){e.registerComponentModel(bNe),e.registerComponentView(wNe),d7(e)}function CNe(e){Fe(h7),Fe(p7)}var TNe={label:{enabled:!0},decal:{show:!1}},RF=Je(),ANe={};function MNe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ce(TNe);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ge();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),RF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ye(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=NT(d.ecModel,d.name,ANe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=RF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=NT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?q(q({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=Se(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A1?c.get(["series","multiple",k]):c.get(["series","single",k]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var P=c.get(["data","partialData"]);T+=o(P,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),V=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PNe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):cve(t)?t:null;if(r==null){var n="";st(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):nt(r)?this._condVal.test(t+""):!1},e}(),DNe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),RNe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[I,P]}function c(I,P,R,z){Hc(I,R)&&Hc(P,z)||i.push(I,P,R,z,R,z)}function f(I,P,R,z,V,N){var $=Math.abs(P-I),L=Math.tan($/4)*4/3,G=PC:M2&&n.push(i),n}function zA(e,t,r,n,i,a,o,s,l,u){if(Hc(e,r)&&Hc(t,n)&&Hc(i,o)&&Hc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],T=[];Is(e,r,i,o,.5,A),Is(t,n,a,s,.5,T),zA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),zA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function jNe(e,t){var r=NA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=g7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=g7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d1?null:new Le(v*l+e,v*u+t)}function XNe(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function mc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function ZNe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),ZNe(t,u,c)}function j0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);j0(e,a[0],i,n),j0(e,a[1],r-i,n)}return n}function KNe(e,t){for(var r=[],n=0;n0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function X0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:oze(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function x7(e){return eze(e.path,e.count)}function BA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function sze(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];q0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return BA();var o=r.dividePath||x7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),BA();n=X0(n),s=X0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new eo,d=0;d=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var uze={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;VF(e)&&(u=e,c=t),VF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(q0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?Se({delay:s(x,S)},l):l;eP(C,A,T),a(C,A,C,A,T)}}else for(var M=Se({dividePath:uze[r],individualDelay:s&&function(V,N,$,L){return s(V+x,S)}},l),k=y?sze(b,w,M):lze(w,b,M),I=k.fromIndividuals,P=k.toIndividuals,R=I.length,z=0;zt.length,h=u?GF(c,u):GF(d?t:e,[d?e:t]),p=0,v=0;vS7))for(var i=n.getIndices(),a=fze(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function WF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function UF(e){return Y(e)?e.sort().join(","):e}function jo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function pze(e,t){var r=ge(),n=ge(),i=ge();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=WF(a),c=UF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=WF(a),u=UF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:jo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:jo(s),data:s}]});else if(Y(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:jo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:jo(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:jo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:jo(s)})}}}}),r}function jF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:jo(t.oldData[s]),dim:o.dimension})}),D(ht(e.to),function(o){var s=jF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:jo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&b7(i,a,n)}function gze(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(ht(n.seriesTransition),function(i){D(ht(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:ep,textStyle:{color:ep}},title:{text:t,x:10,y:10},tooltip:{trigger:"axis",formatter:i=>i&&Array.isArray(i)&&i.length>0&&i.some(a=>!!a.value)?i.reduce((a,{axisValue:o,color:s,seriesName:l,value:u},c)=>` + ${c===0?o:""} + ${a} +
+ + ${l}: ${u} + + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:ep,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:FA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:FA}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),yze=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),xze=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:FA},data:(e.markers||[]).map(t=>({xAxis:t}))});function Sze({charts:e,title:t,lines:r,colors:n}){const[i,a]=O.useState(null),o=O.useRef(null);return O.useEffect(()=>{if(!o.current)return;const s=sSe(o.current,"locust");s.setOption(mze({charts:e,title:t,seriesData:yze({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",lSe("swarmCharts"),a(s),()=>{uSe(s),window.removeEventListener("resize",l)}},[o]),O.useEffect(()=>{const s=r.every(({key:l})=>!!e[l]);i&&s&&i.setOption({xAxis:{data:e.time},series:r.map(({key:l},u)=>({data:e[l],...u===0?{markLine:xze(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const bze=Jl.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})),_ze=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[...bze,{name:"Average Response Time",key:"totalAvgResponseTime"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function _7({charts:e}){return E.jsx("div",{children:_ze.map((t,r)=>E.jsx(Sze,{...t,charts:e},`swarm-chart-${r}`))})}const wze=({ui:{charts:e}})=>({charts:e}),Cze=Zn(wze)(_7);function Tze(e){return(e*100).toFixed(1)+"%"}function $A({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${Tze(r)} ${t}`,n&&E.jsx($A,{classRatio:n})]},`nested-ratio-${t}`))})}function w7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx($A,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx($A,{classRatio:t})]})]})}const Aze=({ui:{ratios:e}})=>({ratios:e}),Mze=Zn(Aze)(w7),kze=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Cle}];function Ize({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=W2(e,{defaultSortKey:"worker"});return E.jsx($f,{currentSortField:n,onTableHeadClick:t,rows:r,structure:kze})}const Pze=({ui:{workers:e}})=>({workers:e}),Dze=Zn(Pze)(Ize),Rze=[{component:qpe,key:"stats",title:"Statistics"},{component:Cze,key:"charts",title:"Charts"},{component:$pe,key:"failures",title:"Failures"},{component:Npe,key:"exceptions",title:"Exceptions"},{component:Mze,key:"ratios",title:"Current Ratio"},{component:Wpe,key:"reports",title:"Download Data"},{component:Vpe,key:"logViewer",title:"Logs"}],Lze=[{component:Dze,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],Eze=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},Oze=()=>window.location.search?wle(window.location.search):null,Nze={query:Oze()},C7=ui({name:"url",initialState:Nze,reducers:{setUrl:yv}}),zze=C7.actions,Bze=C7.reducer;function Fze({hasNotification:e,title:t}){return E.jsxs(xt,{sx:{display:"flex",alignItems:"center"},children:[e&&E.jsx(kG,{color:"secondary"}),E.jsx("span",{children:t})]})}function $ze({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),Eze({tab:c}),n({query:{tab:c}}),o(u)};return E.jsxs(zf,{maxWidth:"xl",children:[E.jsx(xt,{sx:{mb:2},children:E.jsx(tse,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>E.jsx(Nae,{label:E.jsx(Fze,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Lpe},u)=>a===u&&E.jsx(l,{},`tabpabel-${u}`))]})}const Vze=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=Lze.filter(({shouldDisplayTab:o})=>o(e)),a=[...Rze,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},Gze={setNotification:AG.setNotification,setUrl:zze.setUrl},Hze=Zn(Vze,Gze)($ze),Wze={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Jl.history.reduce(ax,{}),ratios:{},userCount:0},Uze=Jl.percentilesToChart.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),jze=e=>ax(e,{...Uze,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),T7=ui({name:"ui",initialState:Wze,reducers:{setUi:yv,updateCharts:(e,{payload:t})=>({...e,charts:ax(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...jze(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Mw=T7.actions,qze=T7.reducer,YF=2e3;function Yze(){const e=$l(wG.setSwarm),t=$l(Mw.setUi),r=$l(Mw.updateCharts),n=$l(Mw.updateChartMarkers),i=Vs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=kue(),{data:f,refetch:d}=Iue(),{data:h,refetch:p}=Pue(),v=i.state===On.SPAWNING||i.state==On.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:_,totalFailPerSec:b,failRatio:w,workers:C,userCount:A,totalAvgResponseTime:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const k=oh(_,2),I=oh(b,2),P=oh(w*100),R={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:oh(T,2),userCount:A,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:P,workers:C,userCount:A}),r(R)};O.useEffect(()=>{u&&(u.state===On.STOPPED||u.state===On.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),ah(g,YF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),ah(c,YF,{shouldRunInterval:v}),ah(d,5e3,{shouldRunInterval:v}),ah(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===On.RUNNING&&a.current===On.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const A7=e=>o2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function Xze({isDarkMode:e,swarmState:t}){Yze(),oce();const r=O.useMemo(()=>A7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(dV,{theme:r,children:[E.jsx(fV,{}),E.jsx(Que,{children:t===On.READY?E.jsx(CG,{}):E.jsx(Hze,{})})]})}const Zze=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),Kze=Zn(Zze)(Xze),Qze=w2({[VC.reducerPath]:VC.reducer,logViewer:ice,notification:ece,swarm:Hue,theme:yle,ui:qze,url:Bze}),Jze=ole({reducer:Qze}),eBe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function tBe({responseTimes:e}){const t=O.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return E.jsx($f,{rows:e,structure:[...eBe,...t]})}const rBe=A7(window.theme||XV);function nBe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(dV,{theme:rBe,children:[E.jsx(fV,{}),E.jsxs(zf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(xt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Ze,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(nn,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(xt,{sx:{my:2},children:[E.jsxs(xt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ze,{fontWeight:600,children:"During:"}),E.jsxs(Ze,{children:[r," - ",n]})]}),E.jsxs(xt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ze,{fontWeight:600,children:"Target Host:"}),E.jsx(Ze,{children:a||"None"})]}),E.jsxs(xt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ze,{fontWeight:600,children:"Script:"}),E.jsx(Ze,{children:e})]})]}),E.jsxs(xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(pH,{stats:s})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(tBe,{responseTimes:u})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(hH,{errors:l})]}),!!o.length&&E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(dH,{exceptions:o})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(_7,{charts:i})]}),E.jsxs(xt,{children:[E.jsx(Ze,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(w7,{ratios:c})]})]})]})]})}const XF=Iw.createRoot(document.getElementById("root"));if(Jl.isReport){const e={...Jl,charts:Jl.history.reduce((t,{currentResponseTimePercentiles:r,...n})=>ax(t,{...r,...n}),{})};XF.render(E.jsx(nBe,{...e}))}else XF.render(E.jsx(oZ,{store:Jze,children:E.jsx(Kze,{})})); diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index 3fe428bc9d..0f179a9209 100644 --- a/locust/webui/dist/index.html +++ b/locust/webui/dist/index.html @@ -7,7 +7,7 @@ Locust - +
diff --git a/locust/webui/src/components/SwarmForm/SwarmEditForm.tsx b/locust/webui/src/components/SwarmForm/SwarmEditForm.tsx index 149c6df82f..bc375bdbcf 100644 --- a/locust/webui/src/components/SwarmForm/SwarmEditForm.tsx +++ b/locust/webui/src/components/SwarmForm/SwarmEditForm.tsx @@ -6,13 +6,13 @@ import { useStartSwarmMutation } from 'redux/api/swarm'; import { ISwarmState } from 'redux/slice/swarm.slice'; import { IRootState } from 'redux/store'; -type ISwarmFormInput = Pick; +type ISwarmFormInput = Pick; interface ISwarmForm extends ISwarmFormInput { onSubmit: () => void; } -function SwarmEditForm({ onSubmit, spawnRate, userCount }: ISwarmForm) { +function SwarmEditForm({ onSubmit, numUsers, spawnRate }: ISwarmForm) { const [startSwarm] = useStartSwarmMutation(); const onEditSwarm = (inputData: ISwarmFormInput) => { @@ -28,7 +28,7 @@ function SwarmEditForm({ onSubmit, spawnRate, userCount }: ISwarmForm) { onSubmit={onEditSwarm}> @@ -48,9 +48,9 @@ function SwarmEditForm({ onSubmit, spawnRate, userCount }: ISwarmForm) { ); } -const storeConnector = ({ swarm: { spawnRate, userCount } }: IRootState) => ({ +const storeConnector = ({ swarm: { spawnRate, numUsers } }: IRootState) => ({ spawnRate, - userCount, + numUsers, }); export default connect(storeConnector)(SwarmEditForm); diff --git a/locust/webui/src/components/SwarmForm/SwarmForm.tsx b/locust/webui/src/components/SwarmForm/SwarmForm.tsx index b0886db9f5..0b842d25fb 100644 --- a/locust/webui/src/components/SwarmForm/SwarmForm.tsx +++ b/locust/webui/src/components/SwarmForm/SwarmForm.tsx @@ -62,7 +62,13 @@ function SwarmForm({ const [startSwarm] = useStartSwarmMutation(); const onStartSwarm = (inputData: ISwarmFormInput) => { - setSwarm({ state: SWARM_STATE.RUNNING, host: inputData.host || host }); + setSwarm({ + state: SWARM_STATE.RUNNING, + host: inputData.host || host, + runTime: inputData.runTime, + spawnRate: Number(inputData.spawnRate) || null, + numUsers: Number(inputData.userCount) || null, + }); startSwarm(inputData); }; @@ -85,7 +91,6 @@ function SwarmForm({